diff --git a/Assets/Thirdweb/Core/Scripts/Wallet.cs b/Assets/Thirdweb/Core/Scripts/Wallet.cs index 016fe8cb..aae5cedd 100644 --- a/Assets/Thirdweb/Core/Scripts/Wallet.cs +++ b/Assets/Thirdweb/Core/Scripts/Wallet.cs @@ -9,8 +9,6 @@ using Nethereum.Siwe.Core; using System.Collections.Generic; using Nethereum.Web3.Accounts; -using UnityEngine.Networking; -using Nethereum.Hex.HexConvertors.Extensions; using WalletConnectSharp.Core.Models.Ethereum; //using WalletConnectSharp.NEthereum; @@ -22,8 +20,7 @@ namespace Thirdweb /// public class Wallet : Routable { - public Wallet() - : base($"sdk{subSeparator}wallet") { } + public Wallet() : base($"sdk{subSeparator}wallet") { } /// /// Connect a user's wallet via a given wallet provider @@ -507,7 +504,7 @@ public static WalletProvider CoinbaseWallet } public static WalletProvider WalletConnect { - get { return new WalletProvider("walletConnect"); } + get { return new WalletProvider("walletConnectV1"); } } public static WalletProvider Injected { @@ -519,7 +516,7 @@ public static WalletProvider MagicAuth } public static WalletProvider DeviceWallet { - get { return new WalletProvider("deviceWallet"); } + get { return new WalletProvider("localWallet"); } } public override string ToString() diff --git a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js index 84ae3057..1922abad 100644 --- a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js +++ b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js @@ -1,34 +1,34 @@ -"use strict";(()=>{var W7t=Object.create;var Aie=Object.defineProperty;var U7t=Object.getOwnPropertyDescriptor;var H7t=Object.getOwnPropertyNames;var j7t=Object.getPrototypeOf,z7t=Object.prototype.hasOwnProperty;var tqe=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var ce=(r,e)=>()=>(r&&(e=r(r=0)),e);var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),cr=(r,e)=>{for(var t in e)Aie(r,t,{get:e[t],enumerable:!0})},kie=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of H7t(e))!z7t.call(r,a)&&a!==t&&Aie(r,a,{get:()=>e[a],enumerable:!(n=U7t(e,a))||n.enumerable});return r},gr=(r,e,t)=>(kie(r,e,"default"),t&&kie(t,e,"default")),un=(r,e,t)=>(t=r!=null?W7t(j7t(r)):{},kie(e||!r||!r.__esModule?Aie(t,"default",{value:r,enumerable:!0}):t,r)),nt=r=>kie(Aie({},"__esModule",{value:!0}),r);var g,d=ce(()=>{g={env:"production"}});var aqe=_(Pie=>{"use strict";d();p();Pie.byteLength=V7t;Pie.toByteArray=$7t;Pie.fromByteArray=Z7t;var uf=[],Ed=[],G7t=typeof Uint8Array<"u"?Uint8Array:Array,Kve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(J1=0,rqe=Kve.length;J10)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function V7t(r){var e=nqe(r),t=e[0],n=e[1];return(t+n)*3/4-n}function Y7t(r,e,t){return(e+t)*3/4-t}function $7t(r){var e,t=nqe(r),n=t[0],a=t[1],i=new G7t(Y7t(r,n,a)),s=0,o=a>0?n-4:n,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=Ed[r.charCodeAt(c)]<<2|Ed[r.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=Ed[r.charCodeAt(c)]<<10|Ed[r.charCodeAt(c+1)]<<4|Ed[r.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function Q7t(r){return uf[r>>18&63]+uf[r>>12&63]+uf[r>>6&63]+uf[r&63]}function J7t(r,e,t){for(var n,a=[],i=e;io?o:s+i));return n===1?(e=r[t-1],a.push(uf[e>>2]+uf[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],a.push(uf[e>>10]+uf[e>>4&63]+uf[e<<2&63]+"=")),a.join("")}});var iqe=_(Gve=>{d();p();Gve.read=function(r,e,t,n,a){var i,s,o=a*8-n-1,c=(1<>1,l=-7,h=t?a-1:0,f=t?-1:1,m=r[e+h];for(h+=f,i=m&(1<<-l)-1,m>>=-l,l+=o;l>0;i=i*256+r[e+h],h+=f,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[e+h],h+=f,l-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(m?-1:1)*s*Math.pow(2,i-n)};Gve.write=function(r,e,t,n,a,i){var s,o,c,u=i*8-a-1,l=(1<>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,I=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(s++,c/=2),s+h>=l?(o=0,s=l):s+h>=1?(o=(e*c-1)*Math.pow(2,a),s=s+h):(o=e*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;r[t+m]=o&255,m+=y,o/=256,a-=8);for(s=s<0;r[t+m]=s&255,m+=y,s/=256,u-=8);r[t+m-y]|=I*128}});var lc=_(L5=>{"use strict";d();p();var Vve=aqe(),D5=iqe(),sqe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;L5.Buffer=_e;L5.SlowBuffer=aRt;L5.INSPECT_MAX_BYTES=50;var Sie=2147483647;L5.kMaxLength=Sie;_e.TYPED_ARRAY_SUPPORT=X7t();!_e.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function X7t(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(_e.prototype,"parent",{enumerable:!0,get:function(){if(!!_e.isBuffer(this))return this.buffer}});Object.defineProperty(_e.prototype,"offset",{enumerable:!0,get:function(){if(!!_e.isBuffer(this))return this.byteOffset}});function Hm(r){if(r>Sie)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,_e.prototype),e}function _e(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Jve(r)}return uqe(r,e,t)}_e.poolSize=8192;function uqe(r,e,t){if(typeof r=="string")return tRt(r,e);if(ArrayBuffer.isView(r))return rRt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(lf(r,ArrayBuffer)||r&&lf(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(lf(r,SharedArrayBuffer)||r&&lf(r.buffer,SharedArrayBuffer)))return $ve(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return _e.from(n,e,t);var a=nRt(r);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return _e.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}_e.from=function(r,e,t){return uqe(r,e,t)};Object.setPrototypeOf(_e.prototype,Uint8Array.prototype);Object.setPrototypeOf(_e,Uint8Array);function lqe(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function eRt(r,e,t){return lqe(r),r<=0?Hm(r):e!==void 0?typeof t=="string"?Hm(r).fill(e,t):Hm(r).fill(e):Hm(r)}_e.alloc=function(r,e,t){return eRt(r,e,t)};function Jve(r){return lqe(r),Hm(r<0?0:Zve(r)|0)}_e.allocUnsafe=function(r){return Jve(r)};_e.allocUnsafeSlow=function(r){return Jve(r)};function tRt(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!_e.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=dqe(r,e)|0,n=Hm(t),a=n.write(r,e);return a!==t&&(n=n.slice(0,a)),n}function Yve(r){for(var e=r.length<0?0:Zve(r.length)|0,t=Hm(e),n=0;n=Sie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Sie.toString(16)+" bytes");return r|0}function aRt(r){return+r!=r&&(r=0),_e.alloc(+r)}_e.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==_e.prototype};_e.compare=function(e,t){if(lf(e,Uint8Array)&&(e=_e.from(e,e.offset,e.byteLength)),lf(t,Uint8Array)&&(t=_e.from(t,t.offset,t.byteLength)),!_e.isBuffer(e)||!_e.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,a=t.length,i=0,s=Math.min(n,a);ia.length?_e.from(s).copy(a,i):Uint8Array.prototype.set.call(a,s,i);else if(_e.isBuffer(s))s.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return a};function dqe(r,e){if(_e.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||lf(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return Qve(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return gqe(r).length;default:if(a)return n?-1:Qve(r).length;e=(""+e).toLowerCase(),a=!0}}_e.byteLength=dqe;function iRt(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return mRt(this,e,t);case"utf8":case"utf-8":return hqe(this,e,t);case"ascii":return hRt(this,e,t);case"latin1":case"binary":return fRt(this,e,t);case"base64":return dRt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yRt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}_e.prototype._isBuffer=!0;function Z1(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}_e.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""};sqe&&(_e.prototype[sqe]=_e.prototype.inspect);_e.prototype.compare=function(e,t,n,a,i){if(lf(e,Uint8Array)&&(e=_e.from(e,e.offset,e.byteLength)),!_e.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,o=n-t,c=Math.min(s,o),u=this.slice(a,i),l=e.slice(t,n),h=0;h2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Xve(t)&&(t=a?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(a)return-1;t=r.length-1}else if(t<0)if(a)t=0;else return-1;if(typeof e=="string"&&(e=_e.from(e,n)),_e.isBuffer(e))return e.length===0?-1:oqe(r,e,t,n,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):oqe(r,[e],t,n,a);throw new TypeError("val must be string, number or Buffer")}function oqe(r,e,t,n,a){var i=1,s=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function c(m,y){return i===1?m[y]:m.readUInt16BE(y*i)}var u;if(a){var l=-1;for(u=t;us&&(t=s-o),u=t;u>=0;u--){for(var h=!0,f=0;fa&&(n=a)):n=a;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return sRt(this,e,t,n);case"utf8":case"utf-8":return oRt(this,e,t,n);case"ascii":case"latin1":case"binary":return cRt(this,e,t,n);case"base64":return uRt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lRt(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};_e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dRt(r,e,t){return e===0&&t===r.length?Vve.fromByteArray(r):Vve.fromByteArray(r.slice(e,t))}function hqe(r,e,t){t=Math.min(r.length,t);for(var n=[],a=e;a239?4:i>223?3:i>191?2:1;if(a+o<=t){var c,u,l,h;switch(o){case 1:i<128&&(s=i);break;case 2:c=r[a+1],(c&192)===128&&(h=(i&31)<<6|c&63,h>127&&(s=h));break;case 3:c=r[a+1],u=r[a+2],(c&192)===128&&(u&192)===128&&(h=(i&15)<<12|(c&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:c=r[a+1],u=r[a+2],l=r[a+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(h=(i&15)<<18|(c&63)<<12|(u&63)<<6|l&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=o}return pRt(n)}var cqe=4096;function pRt(r){var e=r.length;if(e<=cqe)return String.fromCharCode.apply(String,r);for(var t="",n=0;nn)&&(t=n);for(var a="",i=e;in&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}_e.prototype.readUintLE=_e.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e],i=1,s=0;++s>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e+--t],i=1;t>0&&(i*=256);)a+=this[e+--t]*i;return a};_e.prototype.readUint8=_e.prototype.readUInt8=function(e,t){return e=e>>>0,t||Ao(e,1,this.length),this[e]};_e.prototype.readUint16LE=_e.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Ao(e,2,this.length),this[e]|this[e+1]<<8};_e.prototype.readUint16BE=_e.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Ao(e,2,this.length),this[e]<<8|this[e+1]};_e.prototype.readUint32LE=_e.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};_e.prototype.readUint32BE=_e.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};_e.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a};_e.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};_e.prototype.readInt8=function(e,t){return e=e>>>0,t||Ao(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};_e.prototype.readInt16LE=function(e,t){e=e>>>0,t||Ao(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};_e.prototype.readInt16BE=function(e,t){e=e>>>0,t||Ao(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};_e.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};_e.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};_e.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),D5.read(this,e,!0,23,4)};_e.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),D5.read(this,e,!1,23,4)};_e.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Ao(e,8,this.length),D5.read(this,e,!0,52,8)};_e.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Ao(e,8,this.length),D5.read(this,e,!1,52,8)};function ol(r,e,t,n,a,i){if(!_e.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||er.length)throw new RangeError("Index out of range")}_e.prototype.writeUintLE=_e.prototype.writeUIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ol(this,e,t,n,i,0)}var s=1,o=0;for(this[t]=e&255;++o>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ol(this,e,t,n,i,0)}var s=n-1,o=1;for(this[t+s]=e&255;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n};_e.prototype.writeUint8=_e.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,1,255,0),this[t]=e&255,t+1};_e.prototype.writeUint16LE=_e.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};_e.prototype.writeUint16BE=_e.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};_e.prototype.writeUint32LE=_e.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};_e.prototype.writeUint32BE=_e.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};_e.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ol(this,e,t,n,i-1,-i)}var s=0,o=1,c=0;for(this[t]=e&255;++s>0)-c&255;return t+n};_e.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ol(this,e,t,n,i-1,-i)}var s=n-1,o=1,c=0;for(this[t+s]=e&255;--s>=0&&(o*=256);)e<0&&c===0&&this[t+s+1]!==0&&(c=1),this[t+s]=(e/o>>0)-c&255;return t+n};_e.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};_e.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};_e.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};_e.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ol(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};_e.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ol(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]=e&255,t+4};function fqe(r,e,t,n,a,i){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function mqe(r,e,t,n,a){return e=+e,t=t>>>0,a||fqe(r,e,t,4,34028234663852886e22,-34028234663852886e22),D5.write(r,e,t,n,23,4),t+4}_e.prototype.writeFloatLE=function(e,t,n){return mqe(this,e,t,!0,n)};_e.prototype.writeFloatBE=function(e,t,n){return mqe(this,e,t,!1,n)};function yqe(r,e,t,n,a){return e=+e,t=t>>>0,a||fqe(r,e,t,8,17976931348623157e292,-17976931348623157e292),D5.write(r,e,t,n,52,8),t+8}_e.prototype.writeDoubleLE=function(e,t,n){return yqe(this,e,t,!0,n)};_e.prototype.writeDoubleBE=function(e,t,n){return yqe(this,e,t,!1,n)};_e.prototype.copy=function(e,t,n,a){if(!_e.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s55295&&t<57344){if(!a){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),a=t;continue}t=(a-55296<<10|t-56320)+65536}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function vRt(r){for(var e=[],t=0;t>8,a=t%256,i.push(a),i.push(n);return i}function gqe(r){return Vve.toByteArray(bRt(r))}function Rie(r,e,t,n){for(var a=0;a=e.length||a>=r.length);++a)e[a+t]=r[a];return a}function lf(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Xve(r){return r!==r}var xRt=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,a=0;a<16;++a)e[n+a]=r[t]+r[a];return e}()});var _qe=_((V_n,xqe)=>{d();p();var gs=xqe.exports={},df,pf;function e2e(){throw new Error("setTimeout has not been defined")}function t2e(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?df=setTimeout:df=e2e}catch{df=e2e}try{typeof clearTimeout=="function"?pf=clearTimeout:pf=t2e}catch{pf=t2e}})();function bqe(r){if(df===setTimeout)return setTimeout(r,0);if((df===e2e||!df)&&setTimeout)return df=setTimeout,setTimeout(r,0);try{return df(r,0)}catch{try{return df.call(null,r,0)}catch{return df.call(this,r,0)}}}function _Rt(r){if(pf===clearTimeout)return clearTimeout(r);if((pf===t2e||!pf)&&clearTimeout)return pf=clearTimeout,clearTimeout(r);try{return pf(r)}catch{try{return pf.call(null,r)}catch{return pf.call(this,r)}}}var jm=[],O5=!1,X1,Mie=-1;function TRt(){!O5||!X1||(O5=!1,X1.length?jm=X1.concat(jm):Mie=-1,jm.length&&vqe())}function vqe(){if(!O5){var r=bqe(TRt);O5=!0;for(var e=jm.length;e;){for(X1=jm,jm=[];++Mie1)for(var t=1;t{b=un(lc()),w=un(_qe()),IRt=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),global=IRt});var Cr=_((Tqe,r2e)=>{d();p();(function(r,e){"use strict";function t(A,v){if(!A)throw new Error(v||"Assertion failed")}function n(A,v){A.super_=v;var k=function(){};k.prototype=v.prototype,A.prototype=new k,A.prototype.constructor=A}function a(A,v,k){if(a.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((v==="le"||v==="be")&&(k=v,v=10),this._init(A||0,v||10,k||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=lc().Buffer}catch{}a.isBN=function(v){return v instanceof a?!0:v!==null&&typeof v=="object"&&v.constructor.wordSize===a.wordSize&&Array.isArray(v.words)},a.max=function(v,k){return v.cmp(k)>0?v:k},a.min=function(v,k){return v.cmp(k)<0?v:k},a.prototype._init=function(v,k,O){if(typeof v=="number")return this._initNumber(v,k,O);if(typeof v=="object")return this._initArray(v,k,O);k==="hex"&&(k=16),t(k===(k|0)&&k>=2&&k<=36),v=v.toString().replace(/\s+/g,"");var D=0;v[0]==="-"&&(D++,this.negative=1),D=0;D-=3)x=v[D]|v[D-1]<<8|v[D-2]<<16,this.words[B]|=x<>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);else if(O==="le")for(D=0,B=0;D>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);return this._strip()};function s(A,v){var k=A.charCodeAt(v);if(k>=48&&k<=57)return k-48;if(k>=65&&k<=70)return k-55;if(k>=97&&k<=102)return k-87;t(!1,"Invalid character in "+A)}function o(A,v,k){var O=s(A,k);return k-1>=v&&(O|=s(A,k-1)<<4),O}a.prototype._parseHex=function(v,k,O){this.length=Math.ceil((v.length-k)/6),this.words=new Array(this.length);for(var D=0;D=k;D-=2)N=o(v,k,D)<=18?(B-=18,x+=1,this.words[x]|=N>>>26):B+=8;else{var U=v.length-k;for(D=U%2===0?k+1:k;D=18?(B-=18,x+=1,this.words[x]|=N>>>26):B+=8}this._strip()};function c(A,v,k,O){for(var D=0,B=0,x=Math.min(A.length,k),N=v;N=49?B=U-49+10:U>=17?B=U-17+10:B=U,t(U>=0&&B1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch{a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var h=["","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"],f=[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],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(v,k){v=v||10,k=k|0||1;var O;if(v===16||v==="hex"){O="";for(var D=0,B=0,x=0;x>>24-D&16777215,D+=2,D>=26&&(D-=26,x--),B!==0||x!==this.length-1?O=h[6-U.length]+U+O:O=U+O}for(B!==0&&(O=B.toString(16)+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(v===(v|0)&&v>=2&&v<=36){var E=f[v],z=m[v];O="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var j=ee.modrn(z).toString(v);ee=ee.idivn(z),ee.isZero()?O=j+O:O=h[E-j.length]+j+O}for(this.isZero()&&(O="0"+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=this.words[1]*67108864:this.length===3&&this.words[2]===1?v+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(v,k){return this.toArrayLike(i,v,k)}),a.prototype.toArray=function(v,k){return this.toArrayLike(Array,v,k)};var y=function(v,k){return v.allocUnsafe?v.allocUnsafe(k):new v(k)};a.prototype.toArrayLike=function(v,k,O){this._strip();var D=this.byteLength(),B=O||Math.max(1,D);t(D<=B,"byte array longer than desired length"),t(B>0,"Requested array length <= 0");var x=y(v,B),N=k==="le"?"LE":"BE";return this["_toArrayLike"+N](x,D),x},a.prototype._toArrayLikeLE=function(v,k){for(var O=0,D=0,B=0,x=0;B>8&255),O>16&255),x===6?(O>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O=0&&(v[O--]=N>>8&255),O>=0&&(v[O--]=N>>16&255),x===6?(O>=0&&(v[O--]=N>>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O>=0)for(v[O--]=D;O>=0;)v[O--]=0},Math.clz32?a.prototype._countBits=function(v){return 32-Math.clz32(v)}:a.prototype._countBits=function(v){var k=v,O=0;return k>=4096&&(O+=13,k>>>=13),k>=64&&(O+=7,k>>>=7),k>=8&&(O+=4,k>>>=4),k>=2&&(O+=2,k>>>=2),O+k},a.prototype._zeroBits=function(v){if(v===0)return 26;var k=v,O=0;return(k&8191)===0&&(O+=13,k>>>=13),(k&127)===0&&(O+=7,k>>>=7),(k&15)===0&&(O+=4,k>>>=4),(k&3)===0&&(O+=2,k>>>=2),(k&1)===0&&O++,O},a.prototype.bitLength=function(){var v=this.words[this.length-1],k=this._countBits(v);return(this.length-1)*26+k};function I(A){for(var v=new Array(A.bitLength()),k=0;k>>D&1}return v}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,k=0;kv.length?this.clone().ior(v):v.clone().ior(this)},a.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},a.prototype.iuand=function(v){var k;this.length>v.length?k=v:k=this;for(var O=0;Ov.length?this.clone().iand(v):v.clone().iand(this)},a.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},a.prototype.iuxor=function(v){var k,O;this.length>v.length?(k=this,O=v):(k=v,O=this);for(var D=0;Dv.length?this.clone().ixor(v):v.clone().ixor(this)},a.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},a.prototype.inotn=function(v){t(typeof v=="number"&&v>=0);var k=Math.ceil(v/26)|0,O=v%26;this._expand(k),O>0&&k--;for(var D=0;D0&&(this.words[D]=~this.words[D]&67108863>>26-O),this._strip()},a.prototype.notn=function(v){return this.clone().inotn(v)},a.prototype.setn=function(v,k){t(typeof v=="number"&&v>=0);var O=v/26|0,D=v%26;return this._expand(O+1),k?this.words[O]=this.words[O]|1<v.length?(O=this,D=v):(O=v,D=this);for(var B=0,x=0;x>>26;for(;B!==0&&x>>26;if(this.length=O.length,B!==0)this.words[this.length]=B,this.length++;else if(O!==this)for(;xv.length?this.clone().iadd(v):v.clone().iadd(this)},a.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var k=this.iadd(v);return v.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var O=this.cmp(v);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;O>0?(D=this,B=v):(D=v,B=this);for(var x=0,N=0;N>26,this.words[N]=k&67108863;for(;x!==0&&N>26,this.words[N]=k&67108863;if(x===0&&N>>26,ee=U&67108863,j=Math.min(E,v.length-1),X=Math.max(0,E-A.length+1);X<=j;X++){var ie=E-X|0;D=A.words[ie]|0,B=v.words[X]|0,x=D*B+ee,z+=x/67108864|0,ee=x&67108863}k.words[E]=ee|0,U=z|0}return U!==0?k.words[E]=U|0:k.length--,k._strip()}var R=function(v,k,O){var D=v.words,B=k.words,x=O.words,N=0,U,E,z,ee=D[0]|0,j=ee&8191,X=ee>>>13,ie=D[1]|0,ue=ie&8191,he=ie>>>13,ke=D[2]|0,ge=ke&8191,me=ke>>>13,Ke=D[3]|0,ve=Ke&8191,Ae=Ke>>>13,so=D[4]|0,It=so&8191,bt=so>>>13,ai=D[5]|0,xt=ai&8191,st=ai>>>13,ii=D[6]|0,Nt=ii&8191,dt=ii>>>13,oo=D[7]|0,jt=oo&8191,Bt=oo>>>13,sc=D[8]|0,ot=sc&8191,pt=sc>>>13,Dc=D[9]|0,Et=Dc&8191,Ct=Dc>>>13,Lc=B[0]|0,Dt=Lc&8191,kt=Lc>>>13,Oc=B[1]|0,At=Oc&8191,Lt=Oc>>>13,oc=B[2]|0,Ot=oc&8191,qt=oc>>>13,qc=B[3]|0,Pt=qc&8191,Ft=qc>>>13,Fc=B[4]|0,St=Fc&8191,Wt=Fc>>>13,cc=B[5]|0,Qe=cc&8191,it=cc>>>13,uc=B[6]|0,Ut=uc&8191,Kt=uc>>>13,il=B[7]|0,Gt=il&8191,Vt=il>>>13,sl=B[8]|0,Yt=sl&8191,$t=sl>>>13,Bu=B[9]|0,on=Bu&8191,cn=Bu>>>13;O.negative=v.negative^k.negative,O.length=19,U=Math.imul(j,Dt),E=Math.imul(j,kt),E=E+Math.imul(X,Dt)|0,z=Math.imul(X,kt);var Wc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,U=Math.imul(ue,Dt),E=Math.imul(ue,kt),E=E+Math.imul(he,Dt)|0,z=Math.imul(he,kt),U=U+Math.imul(j,At)|0,E=E+Math.imul(j,Lt)|0,E=E+Math.imul(X,At)|0,z=z+Math.imul(X,Lt)|0;var Uc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,U=Math.imul(ge,Dt),E=Math.imul(ge,kt),E=E+Math.imul(me,Dt)|0,z=Math.imul(me,kt),U=U+Math.imul(ue,At)|0,E=E+Math.imul(ue,Lt)|0,E=E+Math.imul(he,At)|0,z=z+Math.imul(he,Lt)|0,U=U+Math.imul(j,Ot)|0,E=E+Math.imul(j,qt)|0,E=E+Math.imul(X,Ot)|0,z=z+Math.imul(X,qt)|0;var Hc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,U=Math.imul(ve,Dt),E=Math.imul(ve,kt),E=E+Math.imul(Ae,Dt)|0,z=Math.imul(Ae,kt),U=U+Math.imul(ge,At)|0,E=E+Math.imul(ge,Lt)|0,E=E+Math.imul(me,At)|0,z=z+Math.imul(me,Lt)|0,U=U+Math.imul(ue,Ot)|0,E=E+Math.imul(ue,qt)|0,E=E+Math.imul(he,Ot)|0,z=z+Math.imul(he,qt)|0,U=U+Math.imul(j,Pt)|0,E=E+Math.imul(j,Ft)|0,E=E+Math.imul(X,Pt)|0,z=z+Math.imul(X,Ft)|0;var jc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(jc>>>26)|0,jc&=67108863,U=Math.imul(It,Dt),E=Math.imul(It,kt),E=E+Math.imul(bt,Dt)|0,z=Math.imul(bt,kt),U=U+Math.imul(ve,At)|0,E=E+Math.imul(ve,Lt)|0,E=E+Math.imul(Ae,At)|0,z=z+Math.imul(Ae,Lt)|0,U=U+Math.imul(ge,Ot)|0,E=E+Math.imul(ge,qt)|0,E=E+Math.imul(me,Ot)|0,z=z+Math.imul(me,qt)|0,U=U+Math.imul(ue,Pt)|0,E=E+Math.imul(ue,Ft)|0,E=E+Math.imul(he,Pt)|0,z=z+Math.imul(he,Ft)|0,U=U+Math.imul(j,St)|0,E=E+Math.imul(j,Wt)|0,E=E+Math.imul(X,St)|0,z=z+Math.imul(X,Wt)|0;var zc=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(zc>>>26)|0,zc&=67108863,U=Math.imul(xt,Dt),E=Math.imul(xt,kt),E=E+Math.imul(st,Dt)|0,z=Math.imul(st,kt),U=U+Math.imul(It,At)|0,E=E+Math.imul(It,Lt)|0,E=E+Math.imul(bt,At)|0,z=z+Math.imul(bt,Lt)|0,U=U+Math.imul(ve,Ot)|0,E=E+Math.imul(ve,qt)|0,E=E+Math.imul(Ae,Ot)|0,z=z+Math.imul(Ae,qt)|0,U=U+Math.imul(ge,Pt)|0,E=E+Math.imul(ge,Ft)|0,E=E+Math.imul(me,Pt)|0,z=z+Math.imul(me,Ft)|0,U=U+Math.imul(ue,St)|0,E=E+Math.imul(ue,Wt)|0,E=E+Math.imul(he,St)|0,z=z+Math.imul(he,Wt)|0,U=U+Math.imul(j,Qe)|0,E=E+Math.imul(j,it)|0,E=E+Math.imul(X,Qe)|0,z=z+Math.imul(X,it)|0;var zp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(zp>>>26)|0,zp&=67108863,U=Math.imul(Nt,Dt),E=Math.imul(Nt,kt),E=E+Math.imul(dt,Dt)|0,z=Math.imul(dt,kt),U=U+Math.imul(xt,At)|0,E=E+Math.imul(xt,Lt)|0,E=E+Math.imul(st,At)|0,z=z+Math.imul(st,Lt)|0,U=U+Math.imul(It,Ot)|0,E=E+Math.imul(It,qt)|0,E=E+Math.imul(bt,Ot)|0,z=z+Math.imul(bt,qt)|0,U=U+Math.imul(ve,Pt)|0,E=E+Math.imul(ve,Ft)|0,E=E+Math.imul(Ae,Pt)|0,z=z+Math.imul(Ae,Ft)|0,U=U+Math.imul(ge,St)|0,E=E+Math.imul(ge,Wt)|0,E=E+Math.imul(me,St)|0,z=z+Math.imul(me,Wt)|0,U=U+Math.imul(ue,Qe)|0,E=E+Math.imul(ue,it)|0,E=E+Math.imul(he,Qe)|0,z=z+Math.imul(he,it)|0,U=U+Math.imul(j,Ut)|0,E=E+Math.imul(j,Kt)|0,E=E+Math.imul(X,Ut)|0,z=z+Math.imul(X,Kt)|0;var Kp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,U=Math.imul(jt,Dt),E=Math.imul(jt,kt),E=E+Math.imul(Bt,Dt)|0,z=Math.imul(Bt,kt),U=U+Math.imul(Nt,At)|0,E=E+Math.imul(Nt,Lt)|0,E=E+Math.imul(dt,At)|0,z=z+Math.imul(dt,Lt)|0,U=U+Math.imul(xt,Ot)|0,E=E+Math.imul(xt,qt)|0,E=E+Math.imul(st,Ot)|0,z=z+Math.imul(st,qt)|0,U=U+Math.imul(It,Pt)|0,E=E+Math.imul(It,Ft)|0,E=E+Math.imul(bt,Pt)|0,z=z+Math.imul(bt,Ft)|0,U=U+Math.imul(ve,St)|0,E=E+Math.imul(ve,Wt)|0,E=E+Math.imul(Ae,St)|0,z=z+Math.imul(Ae,Wt)|0,U=U+Math.imul(ge,Qe)|0,E=E+Math.imul(ge,it)|0,E=E+Math.imul(me,Qe)|0,z=z+Math.imul(me,it)|0,U=U+Math.imul(ue,Ut)|0,E=E+Math.imul(ue,Kt)|0,E=E+Math.imul(he,Ut)|0,z=z+Math.imul(he,Kt)|0,U=U+Math.imul(j,Gt)|0,E=E+Math.imul(j,Vt)|0,E=E+Math.imul(X,Gt)|0,z=z+Math.imul(X,Vt)|0;var Gp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,U=Math.imul(ot,Dt),E=Math.imul(ot,kt),E=E+Math.imul(pt,Dt)|0,z=Math.imul(pt,kt),U=U+Math.imul(jt,At)|0,E=E+Math.imul(jt,Lt)|0,E=E+Math.imul(Bt,At)|0,z=z+Math.imul(Bt,Lt)|0,U=U+Math.imul(Nt,Ot)|0,E=E+Math.imul(Nt,qt)|0,E=E+Math.imul(dt,Ot)|0,z=z+Math.imul(dt,qt)|0,U=U+Math.imul(xt,Pt)|0,E=E+Math.imul(xt,Ft)|0,E=E+Math.imul(st,Pt)|0,z=z+Math.imul(st,Ft)|0,U=U+Math.imul(It,St)|0,E=E+Math.imul(It,Wt)|0,E=E+Math.imul(bt,St)|0,z=z+Math.imul(bt,Wt)|0,U=U+Math.imul(ve,Qe)|0,E=E+Math.imul(ve,it)|0,E=E+Math.imul(Ae,Qe)|0,z=z+Math.imul(Ae,it)|0,U=U+Math.imul(ge,Ut)|0,E=E+Math.imul(ge,Kt)|0,E=E+Math.imul(me,Ut)|0,z=z+Math.imul(me,Kt)|0,U=U+Math.imul(ue,Gt)|0,E=E+Math.imul(ue,Vt)|0,E=E+Math.imul(he,Gt)|0,z=z+Math.imul(he,Vt)|0,U=U+Math.imul(j,Yt)|0,E=E+Math.imul(j,$t)|0,E=E+Math.imul(X,Yt)|0,z=z+Math.imul(X,$t)|0;var Vp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,U=Math.imul(Et,Dt),E=Math.imul(Et,kt),E=E+Math.imul(Ct,Dt)|0,z=Math.imul(Ct,kt),U=U+Math.imul(ot,At)|0,E=E+Math.imul(ot,Lt)|0,E=E+Math.imul(pt,At)|0,z=z+Math.imul(pt,Lt)|0,U=U+Math.imul(jt,Ot)|0,E=E+Math.imul(jt,qt)|0,E=E+Math.imul(Bt,Ot)|0,z=z+Math.imul(Bt,qt)|0,U=U+Math.imul(Nt,Pt)|0,E=E+Math.imul(Nt,Ft)|0,E=E+Math.imul(dt,Pt)|0,z=z+Math.imul(dt,Ft)|0,U=U+Math.imul(xt,St)|0,E=E+Math.imul(xt,Wt)|0,E=E+Math.imul(st,St)|0,z=z+Math.imul(st,Wt)|0,U=U+Math.imul(It,Qe)|0,E=E+Math.imul(It,it)|0,E=E+Math.imul(bt,Qe)|0,z=z+Math.imul(bt,it)|0,U=U+Math.imul(ve,Ut)|0,E=E+Math.imul(ve,Kt)|0,E=E+Math.imul(Ae,Ut)|0,z=z+Math.imul(Ae,Kt)|0,U=U+Math.imul(ge,Gt)|0,E=E+Math.imul(ge,Vt)|0,E=E+Math.imul(me,Gt)|0,z=z+Math.imul(me,Vt)|0,U=U+Math.imul(ue,Yt)|0,E=E+Math.imul(ue,$t)|0,E=E+Math.imul(he,Yt)|0,z=z+Math.imul(he,$t)|0,U=U+Math.imul(j,on)|0,E=E+Math.imul(j,cn)|0,E=E+Math.imul(X,on)|0,z=z+Math.imul(X,cn)|0;var Yp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,U=Math.imul(Et,At),E=Math.imul(Et,Lt),E=E+Math.imul(Ct,At)|0,z=Math.imul(Ct,Lt),U=U+Math.imul(ot,Ot)|0,E=E+Math.imul(ot,qt)|0,E=E+Math.imul(pt,Ot)|0,z=z+Math.imul(pt,qt)|0,U=U+Math.imul(jt,Pt)|0,E=E+Math.imul(jt,Ft)|0,E=E+Math.imul(Bt,Pt)|0,z=z+Math.imul(Bt,Ft)|0,U=U+Math.imul(Nt,St)|0,E=E+Math.imul(Nt,Wt)|0,E=E+Math.imul(dt,St)|0,z=z+Math.imul(dt,Wt)|0,U=U+Math.imul(xt,Qe)|0,E=E+Math.imul(xt,it)|0,E=E+Math.imul(st,Qe)|0,z=z+Math.imul(st,it)|0,U=U+Math.imul(It,Ut)|0,E=E+Math.imul(It,Kt)|0,E=E+Math.imul(bt,Ut)|0,z=z+Math.imul(bt,Kt)|0,U=U+Math.imul(ve,Gt)|0,E=E+Math.imul(ve,Vt)|0,E=E+Math.imul(Ae,Gt)|0,z=z+Math.imul(Ae,Vt)|0,U=U+Math.imul(ge,Yt)|0,E=E+Math.imul(ge,$t)|0,E=E+Math.imul(me,Yt)|0,z=z+Math.imul(me,$t)|0,U=U+Math.imul(ue,on)|0,E=E+Math.imul(ue,cn)|0,E=E+Math.imul(he,on)|0,z=z+Math.imul(he,cn)|0;var $p=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+($p>>>26)|0,$p&=67108863,U=Math.imul(Et,Ot),E=Math.imul(Et,qt),E=E+Math.imul(Ct,Ot)|0,z=Math.imul(Ct,qt),U=U+Math.imul(ot,Pt)|0,E=E+Math.imul(ot,Ft)|0,E=E+Math.imul(pt,Pt)|0,z=z+Math.imul(pt,Ft)|0,U=U+Math.imul(jt,St)|0,E=E+Math.imul(jt,Wt)|0,E=E+Math.imul(Bt,St)|0,z=z+Math.imul(Bt,Wt)|0,U=U+Math.imul(Nt,Qe)|0,E=E+Math.imul(Nt,it)|0,E=E+Math.imul(dt,Qe)|0,z=z+Math.imul(dt,it)|0,U=U+Math.imul(xt,Ut)|0,E=E+Math.imul(xt,Kt)|0,E=E+Math.imul(st,Ut)|0,z=z+Math.imul(st,Kt)|0,U=U+Math.imul(It,Gt)|0,E=E+Math.imul(It,Vt)|0,E=E+Math.imul(bt,Gt)|0,z=z+Math.imul(bt,Vt)|0,U=U+Math.imul(ve,Yt)|0,E=E+Math.imul(ve,$t)|0,E=E+Math.imul(Ae,Yt)|0,z=z+Math.imul(Ae,$t)|0,U=U+Math.imul(ge,on)|0,E=E+Math.imul(ge,cn)|0,E=E+Math.imul(me,on)|0,z=z+Math.imul(me,cn)|0;var Qp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,U=Math.imul(Et,Pt),E=Math.imul(Et,Ft),E=E+Math.imul(Ct,Pt)|0,z=Math.imul(Ct,Ft),U=U+Math.imul(ot,St)|0,E=E+Math.imul(ot,Wt)|0,E=E+Math.imul(pt,St)|0,z=z+Math.imul(pt,Wt)|0,U=U+Math.imul(jt,Qe)|0,E=E+Math.imul(jt,it)|0,E=E+Math.imul(Bt,Qe)|0,z=z+Math.imul(Bt,it)|0,U=U+Math.imul(Nt,Ut)|0,E=E+Math.imul(Nt,Kt)|0,E=E+Math.imul(dt,Ut)|0,z=z+Math.imul(dt,Kt)|0,U=U+Math.imul(xt,Gt)|0,E=E+Math.imul(xt,Vt)|0,E=E+Math.imul(st,Gt)|0,z=z+Math.imul(st,Vt)|0,U=U+Math.imul(It,Yt)|0,E=E+Math.imul(It,$t)|0,E=E+Math.imul(bt,Yt)|0,z=z+Math.imul(bt,$t)|0,U=U+Math.imul(ve,on)|0,E=E+Math.imul(ve,cn)|0,E=E+Math.imul(Ae,on)|0,z=z+Math.imul(Ae,cn)|0;var Jp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,U=Math.imul(Et,St),E=Math.imul(Et,Wt),E=E+Math.imul(Ct,St)|0,z=Math.imul(Ct,Wt),U=U+Math.imul(ot,Qe)|0,E=E+Math.imul(ot,it)|0,E=E+Math.imul(pt,Qe)|0,z=z+Math.imul(pt,it)|0,U=U+Math.imul(jt,Ut)|0,E=E+Math.imul(jt,Kt)|0,E=E+Math.imul(Bt,Ut)|0,z=z+Math.imul(Bt,Kt)|0,U=U+Math.imul(Nt,Gt)|0,E=E+Math.imul(Nt,Vt)|0,E=E+Math.imul(dt,Gt)|0,z=z+Math.imul(dt,Vt)|0,U=U+Math.imul(xt,Yt)|0,E=E+Math.imul(xt,$t)|0,E=E+Math.imul(st,Yt)|0,z=z+Math.imul(st,$t)|0,U=U+Math.imul(It,on)|0,E=E+Math.imul(It,cn)|0,E=E+Math.imul(bt,on)|0,z=z+Math.imul(bt,cn)|0;var Zp=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,U=Math.imul(Et,Qe),E=Math.imul(Et,it),E=E+Math.imul(Ct,Qe)|0,z=Math.imul(Ct,it),U=U+Math.imul(ot,Ut)|0,E=E+Math.imul(ot,Kt)|0,E=E+Math.imul(pt,Ut)|0,z=z+Math.imul(pt,Kt)|0,U=U+Math.imul(jt,Gt)|0,E=E+Math.imul(jt,Vt)|0,E=E+Math.imul(Bt,Gt)|0,z=z+Math.imul(Bt,Vt)|0,U=U+Math.imul(Nt,Yt)|0,E=E+Math.imul(Nt,$t)|0,E=E+Math.imul(dt,Yt)|0,z=z+Math.imul(dt,$t)|0,U=U+Math.imul(xt,on)|0,E=E+Math.imul(xt,cn)|0,E=E+Math.imul(st,on)|0,z=z+Math.imul(st,cn)|0;var $1=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+($1>>>26)|0,$1&=67108863,U=Math.imul(Et,Ut),E=Math.imul(Et,Kt),E=E+Math.imul(Ct,Ut)|0,z=Math.imul(Ct,Kt),U=U+Math.imul(ot,Gt)|0,E=E+Math.imul(ot,Vt)|0,E=E+Math.imul(pt,Gt)|0,z=z+Math.imul(pt,Vt)|0,U=U+Math.imul(jt,Yt)|0,E=E+Math.imul(jt,$t)|0,E=E+Math.imul(Bt,Yt)|0,z=z+Math.imul(Bt,$t)|0,U=U+Math.imul(Nt,on)|0,E=E+Math.imul(Nt,cn)|0,E=E+Math.imul(dt,on)|0,z=z+Math.imul(dt,cn)|0;var Q1=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Q1>>>26)|0,Q1&=67108863,U=Math.imul(Et,Gt),E=Math.imul(Et,Vt),E=E+Math.imul(Ct,Gt)|0,z=Math.imul(Ct,Vt),U=U+Math.imul(ot,Yt)|0,E=E+Math.imul(ot,$t)|0,E=E+Math.imul(pt,Yt)|0,z=z+Math.imul(pt,$t)|0,U=U+Math.imul(jt,on)|0,E=E+Math.imul(jt,cn)|0,E=E+Math.imul(Bt,on)|0,z=z+Math.imul(Bt,cn)|0;var Hve=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(Hve>>>26)|0,Hve&=67108863,U=Math.imul(Et,Yt),E=Math.imul(Et,$t),E=E+Math.imul(Ct,Yt)|0,z=Math.imul(Ct,$t),U=U+Math.imul(ot,on)|0,E=E+Math.imul(ot,cn)|0,E=E+Math.imul(pt,on)|0,z=z+Math.imul(pt,cn)|0;var jve=(N+U|0)+((E&8191)<<13)|0;N=(z+(E>>>13)|0)+(jve>>>26)|0,jve&=67108863,U=Math.imul(Et,on),E=Math.imul(Et,cn),E=E+Math.imul(Ct,on)|0,z=Math.imul(Ct,cn);var zve=(N+U|0)+((E&8191)<<13)|0;return N=(z+(E>>>13)|0)+(zve>>>26)|0,zve&=67108863,x[0]=Wc,x[1]=Uc,x[2]=Hc,x[3]=jc,x[4]=zc,x[5]=zp,x[6]=Kp,x[7]=Gp,x[8]=Vp,x[9]=Yp,x[10]=$p,x[11]=Qp,x[12]=Jp,x[13]=Zp,x[14]=$1,x[15]=Q1,x[16]=Hve,x[17]=jve,x[18]=zve,N!==0&&(x[19]=N,O.length++),O};Math.imul||(R=C);function L(A,v,k){k.negative=v.negative^A.negative,k.length=A.length+v.length;for(var O=0,D=0,B=0;B>>26)|0,D+=x>>>26,x&=67108863}k.words[B]=N,O=x,x=D}return O!==0?k.words[B]=O:k.length--,k._strip()}function F(A,v,k){return L(A,v,k)}a.prototype.mulTo=function(v,k){var O,D=this.length+v.length;return this.length===10&&v.length===10?O=R(this,v,k):D<63?O=C(this,v,k):D<1024?O=L(this,v,k):O=F(this,v,k),O};function W(A,v){this.x=A,this.y=v}W.prototype.makeRBT=function(v){for(var k=new Array(v),O=a.prototype._countBits(v)-1,D=0;D>=1;return D},W.prototype.permute=function(v,k,O,D,B,x){for(var N=0;N>>1)B++;return 1<>>13,O[2*x+1]=B&8191,B=B>>>13;for(x=2*k;x>=26,O+=B/67108864|0,O+=x>>>26,this.words[D]=x&67108863}return O!==0&&(this.words[D]=O,this.length++),k?this.ineg():this},a.prototype.muln=function(v){return this.clone().imuln(v)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(v){var k=I(v);if(k.length===0)return new a(1);for(var O=this,D=0;D=0);var k=v%26,O=(v-k)/26,D=67108863>>>26-k<<26-k,B;if(k!==0){var x=0;for(B=0;B>>26-k}x&&(this.words[B]=x,this.length++)}if(O!==0){for(B=this.length-1;B>=0;B--)this.words[B+O]=this.words[B];for(B=0;B=0);var D;k?D=(k-k%26)/26:D=0;var B=v%26,x=Math.min((v-B)/26,this.length),N=67108863^67108863>>>B<x)for(this.length-=x,E=0;E=0&&(z!==0||E>=D);E--){var ee=this.words[E]|0;this.words[E]=z<<26-B|ee>>>B,z=ee&N}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(v,k,O){return t(this.negative===0),this.iushrn(v,k,O)},a.prototype.shln=function(v){return this.clone().ishln(v)},a.prototype.ushln=function(v){return this.clone().iushln(v)},a.prototype.shrn=function(v){return this.clone().ishrn(v)},a.prototype.ushrn=function(v){return this.clone().iushrn(v)},a.prototype.testn=function(v){t(typeof v=="number"&&v>=0);var k=v%26,O=(v-k)/26,D=1<=0);var k=v%26,O=(v-k)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(k!==0&&O++,this.length=Math.min(O,this.length),k!==0){var D=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},a.prototype.isubn=function(v){if(t(typeof v=="number"),t(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(U/67108864|0),this.words[B+O]=x&67108863}for(;B>26,this.words[B+O]=x&67108863;if(N===0)return this._strip();for(t(N===-1),N=0,B=0;B>26,this.words[B]=x&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(v,k){var O=this.length-v.length,D=this.clone(),B=v,x=B.words[B.length-1]|0,N=this._countBits(x);O=26-N,O!==0&&(B=B.ushln(O),D.iushln(O),x=B.words[B.length-1]|0);var U=D.length-B.length,E;if(k!=="mod"){E=new a(null),E.length=U+1,E.words=new Array(E.length);for(var z=0;z=0;j--){var X=(D.words[B.length+j]|0)*67108864+(D.words[B.length+j-1]|0);for(X=Math.min(X/x|0,67108863),D._ishlnsubmul(B,X,j);D.negative!==0;)X--,D.negative=0,D._ishlnsubmul(B,1,j),D.isZero()||(D.negative^=1);E&&(E.words[j]=X)}return E&&E._strip(),D._strip(),k!=="div"&&O!==0&&D.iushrn(O),{div:E||null,mod:D}},a.prototype.divmod=function(v,k,O){if(t(!v.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var D,B,x;return this.negative!==0&&v.negative===0?(x=this.neg().divmod(v,k),k!=="mod"&&(D=x.div.neg()),k!=="div"&&(B=x.mod.neg(),O&&B.negative!==0&&B.iadd(v)),{div:D,mod:B}):this.negative===0&&v.negative!==0?(x=this.divmod(v.neg(),k),k!=="mod"&&(D=x.div.neg()),{div:D,mod:x.mod}):(this.negative&v.negative)!==0?(x=this.neg().divmod(v.neg(),k),k!=="div"&&(B=x.mod.neg(),O&&B.negative!==0&&B.isub(v)),{div:x.div,mod:B}):v.length>this.length||this.cmp(v)<0?{div:new a(0),mod:this}:v.length===1?k==="div"?{div:this.divn(v.words[0]),mod:null}:k==="mod"?{div:null,mod:new a(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new a(this.modrn(v.words[0]))}:this._wordDiv(v,k)},a.prototype.div=function(v){return this.divmod(v,"div",!1).div},a.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},a.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},a.prototype.divRound=function(v){var k=this.divmod(v);if(k.mod.isZero())return k.div;var O=k.div.negative!==0?k.mod.isub(v):k.mod,D=v.ushrn(1),B=v.andln(1),x=O.cmp(D);return x<0||B===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},a.prototype.modrn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=(1<<26)%v,D=0,B=this.length-1;B>=0;B--)D=(O*D+(this.words[B]|0))%v;return k?-D:D},a.prototype.modn=function(v){return this.modrn(v)},a.prototype.idivn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+O*67108864;this.words[D]=B/v|0,O=B%v}return this._strip(),k?this.ineg():this},a.prototype.divn=function(v){return this.clone().idivn(v)},a.prototype.egcd=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),x=new a(0),N=new a(1),U=0;k.isEven()&&O.isEven();)k.iushrn(1),O.iushrn(1),++U;for(var E=O.clone(),z=k.clone();!k.isZero();){for(var ee=0,j=1;(k.words[0]&j)===0&&ee<26;++ee,j<<=1);if(ee>0)for(k.iushrn(ee);ee-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd(E),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var X=0,ie=1;(O.words[0]&ie)===0&&X<26;++X,ie<<=1);if(X>0)for(O.iushrn(X);X-- >0;)(x.isOdd()||N.isOdd())&&(x.iadd(E),N.isub(z)),x.iushrn(1),N.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(x),B.isub(N)):(O.isub(k),x.isub(D),N.isub(B))}return{a:x,b:N,gcd:O.iushln(U)}},a.prototype._invmp=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),x=O.clone();k.cmpn(1)>0&&O.cmpn(1)>0;){for(var N=0,U=1;(k.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(k.iushrn(N);N-- >0;)D.isOdd()&&D.iadd(x),D.iushrn(1);for(var E=0,z=1;(O.words[0]&z)===0&&E<26;++E,z<<=1);if(E>0)for(O.iushrn(E);E-- >0;)B.isOdd()&&B.iadd(x),B.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(B)):(O.isub(k),B.isub(D))}var ee;return k.cmpn(1)===0?ee=D:ee=B,ee.cmpn(0)<0&&ee.iadd(v),ee},a.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var k=this.clone(),O=v.clone();k.negative=0,O.negative=0;for(var D=0;k.isEven()&&O.isEven();D++)k.iushrn(1),O.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;O.isEven();)O.iushrn(1);var B=k.cmp(O);if(B<0){var x=k;k=O,O=x}else if(B===0||O.cmpn(1)===0)break;k.isub(O)}while(!0);return O.iushln(D)},a.prototype.invm=function(v){return this.egcd(v).a.umod(v)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(v){return this.words[0]&v},a.prototype.bincn=function(v){t(typeof v=="number");var k=v%26,O=(v-k)/26,D=1<>>26,N&=67108863,this.words[x]=N}return B!==0&&(this.words[x]=B,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(v){var k=v<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var O;if(this.length>1)O=1;else{k&&(v=-v),t(v<=67108863,"Number is too big");var D=this.words[0]|0;O=D===v?0:Dv.length)return 1;if(this.length=0;O--){var D=this.words[O]|0,B=v.words[O]|0;if(D!==B){DB&&(k=1);break}}return k},a.prototype.gtn=function(v){return this.cmpn(v)===1},a.prototype.gt=function(v){return this.cmp(v)===1},a.prototype.gten=function(v){return this.cmpn(v)>=0},a.prototype.gte=function(v){return this.cmp(v)>=0},a.prototype.ltn=function(v){return this.cmpn(v)===-1},a.prototype.lt=function(v){return this.cmp(v)===-1},a.prototype.lten=function(v){return this.cmpn(v)<=0},a.prototype.lte=function(v){return this.cmp(v)<=0},a.prototype.eqn=function(v){return this.cmpn(v)===0},a.prototype.eq=function(v){return this.cmp(v)===0},a.red=function(v){return new T(v)},a.prototype.toRed=function(v){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(v){return this.red=v,this},a.prototype.forceRed=function(v){return t(!this.red,"Already a number in reduction context"),this._forceRed(v)},a.prototype.redAdd=function(v){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},a.prototype.redIAdd=function(v){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},a.prototype.redSub=function(v){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},a.prototype.redISub=function(v){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},a.prototype.redShl=function(v){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},a.prototype.redMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},a.prototype.redIMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(v){return t(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var V={k256:null,p224:null,p192:null,p25519:null};function K(A,v){this.name=A,this.p=new a(v,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var v=new a(null);return v.words=new Array(Math.ceil(this.n/13)),v},K.prototype.ireduce=function(v){var k=v,O;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),O=k.bitLength();while(O>this.n);var D=O0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},K.prototype.split=function(v,k){v.iushrn(this.n,0,k)},K.prototype.imulK=function(v){return v.imul(this.k)};function H(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(H,K),H.prototype.split=function(v,k){for(var O=4194303,D=Math.min(v.length,9),B=0;B>>22,x=N}x>>>=22,v.words[B-10]=x,x===0&&v.length>10?v.length-=10:v.length-=9},H.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var k=0,O=0;O>>=26,v.words[O]=B,k=D}return k!==0&&(v.words[v.length++]=k),v},a._prime=function(v){if(V[v])return V[v];var k;if(v==="k256")k=new H;else if(v==="p224")k=new G;else if(v==="p192")k=new Q;else if(v==="p25519")k=new q;else throw new Error("Unknown prime "+v);return V[v]=k,k};function T(A){if(typeof A=="string"){var v=a._prime(A);this.m=v.p,this.prime=v}else t(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}T.prototype._verify1=function(v){t(v.negative===0,"red works only with positives"),t(v.red,"red works only with red numbers")},T.prototype._verify2=function(v,k){t((v.negative|k.negative)===0,"red works only with positives"),t(v.red&&v.red===k.red,"red works only with red numbers")},T.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(u(v,v.umod(this.m)._forceRed(this)),v)},T.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},T.prototype.add=function(v,k){this._verify2(v,k);var O=v.add(k);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},T.prototype.iadd=function(v,k){this._verify2(v,k);var O=v.iadd(k);return O.cmp(this.m)>=0&&O.isub(this.m),O},T.prototype.sub=function(v,k){this._verify2(v,k);var O=v.sub(k);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},T.prototype.isub=function(v,k){this._verify2(v,k);var O=v.isub(k);return O.cmpn(0)<0&&O.iadd(this.m),O},T.prototype.shl=function(v,k){return this._verify1(v),this.imod(v.ushln(k))},T.prototype.imul=function(v,k){return this._verify2(v,k),this.imod(v.imul(k))},T.prototype.mul=function(v,k){return this._verify2(v,k),this.imod(v.mul(k))},T.prototype.isqr=function(v){return this.imul(v,v.clone())},T.prototype.sqr=function(v){return this.mul(v,v)},T.prototype.sqrt=function(v){if(v.isZero())return v.clone();var k=this.m.andln(3);if(t(k%2===1),k===3){var O=this.m.add(new a(1)).iushrn(2);return this.pow(v,O)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);t(!D.isZero());var x=new a(1).toRed(this),N=x.redNeg(),U=this.m.subn(1).iushrn(1),E=this.m.bitLength();for(E=new a(2*E*E).toRed(this);this.pow(E,U).cmp(N)!==0;)E.redIAdd(N);for(var z=this.pow(E,D),ee=this.pow(v,D.addn(1).iushrn(1)),j=this.pow(v,D),X=B;j.cmp(x)!==0;){for(var ie=j,ue=0;ie.cmp(x)!==0;ue++)ie=ie.redSqr();t(ue=0;B--){for(var z=k.words[B],ee=E-1;ee>=0;ee--){var j=z>>ee&1;if(x!==D[0]&&(x=this.sqr(x)),j===0&&N===0){U=0;continue}N<<=1,N|=j,U++,!(U!==O&&(B!==0||ee!==0))&&(x=this.mul(x,D[N]),U=0,N=0)}E=26}return x},T.prototype.convertTo=function(v){var k=v.umod(this.m);return k===v?k.clone():k},T.prototype.convertFrom=function(v){var k=v.clone();return k.red=null,k},a.mont=function(v){return new M(v)};function M(A){T.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(M,T),M.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},M.prototype.convertFrom=function(v){var k=this.imod(v.mul(this.rinv));return k.red=null,k},M.prototype.imul=function(v,k){if(v.isZero()||k.isZero())return v.words[0]=0,v.length=1,v;var O=v.imul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),x=B;return B.cmp(this.m)>=0?x=B.isub(this.m):B.cmpn(0)<0&&(x=B.iadd(this.m)),x._forceRed(this)},M.prototype.mul=function(v,k){if(v.isZero()||k.isZero())return new a(0)._forceRed(this);var O=v.mul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),x=B;return B.cmp(this.m)>=0?x=B.isub(this.m):B.cmpn(0)<0&&(x=B.iadd(this.m)),x._forceRed(this)},M.prototype.invm=function(v){var k=this.imod(v._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof r2e>"u"||r2e,Tqe)});var Iqe=_(Nie=>{"use strict";d();p();Object.defineProperty(Nie,"__esModule",{value:!0});Nie.version=void 0;Nie.version="logger/5.7.0"});var Zt=_(ff=>{"use strict";d();p();Object.defineProperty(ff,"__esModule",{value:!0});ff.Logger=ff.ErrorCode=ff.LogLevel=void 0;var Eqe=!1,Cqe=!1,Bie={debug:1,default:2,info:2,warning:3,error:4,off:5},kqe=Bie.default,ERt=Iqe(),n2e=null;function CRt(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var Aqe=CRt(),Sqe;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(Sqe=ff.LogLevel||(ff.LogLevel={}));var hf;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(hf=ff.ErrorCode||(ff.ErrorCode={}));var Pqe="0123456789abcdef",kRt=function(){function r(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return r.prototype._log=function(e,t){var n=e.toLowerCase();Bie[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(kqe>Bie[n])&&console.log.apply(console,t)},r.prototype.debug=function(){for(var e=[],t=0;t>4],h+=Pqe[l[f]&15];a.push(u+"=Uint8Array(0x"+h+")")}else a.push(u+"="+JSON.stringify(l))}catch{a.push(u+"="+JSON.stringify(n[u].toString()))}}),a.push("code="+t),a.push("version="+this.version);var i=e,s="";switch(t){case hf.NUMERIC_FAULT:{s="NUMERIC_FAULT";var o=e;switch(o){case"overflow":case"underflow":case"division-by-zero":s+="-"+o;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case hf.CALL_EXCEPTION:case hf.INSUFFICIENT_FUNDS:case hf.MISSING_NEW:case hf.NONCE_EXPIRED:case hf.REPLACEMENT_UNDERPRICED:case hf.TRANSACTION_REPLACED:case hf.UNPREDICTABLE_GAS_LIMIT:s=t;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");var c=new Error(e);return c.reason=i,c.code=t,Object.keys(n).forEach(function(u){c[u]=n[u]}),c},r.prototype.throwError=function(e,t,n){throw this.makeError(e,t,n)},r.prototype.throwArgumentError=function(e,t,n){return this.throwError(e,r.errors.INVALID_ARGUMENT,{argument:t,value:n})},r.prototype.assert=function(e,t,n,a){e||this.throwError(t,n,a)},r.prototype.assertArgument=function(e,t,n,a){e||this.throwArgumentError(t,n,a)},r.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),Aqe&&this.throwError("platform missing String.prototype.normalize",r.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Aqe})},r.prototype.checkSafeUint53=function(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},r.prototype.checkArgumentCount=function(e,t,n){n?n=": "+n:n="",et&&this.throwError("too many arguments"+n,r.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},r.prototype.checkNew=function(e,t){(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",r.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.globalLogger=function(){return n2e||(n2e=new r(ERt.version)),n2e},r.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Eqe){if(!e)return;this.globalLogger().throwError("error censorship permanent",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Cqe=!!e,Eqe=!!t},r.setLogLevel=function(e){var t=Bie[e.toLowerCase()];if(t==null){r.globalLogger().warn("invalid log level - "+e);return}kqe=t},r.from=function(e){return new r(e)},r.errors=hf,r.levels=Sqe,r}();ff.Logger=kRt});var Rqe=_(Die=>{"use strict";d();p();Object.defineProperty(Die,"__esModule",{value:!0});Die.version=void 0;Die.version="bytes/5.7.0"});var wr=_(Zr=>{"use strict";d();p();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.joinSignature=Zr.splitSignature=Zr.hexZeroPad=Zr.hexStripZeros=Zr.hexValue=Zr.hexConcat=Zr.hexDataSlice=Zr.hexDataLength=Zr.hexlify=Zr.isHexString=Zr.zeroPad=Zr.stripZeros=Zr.concat=Zr.arrayify=Zr.isBytes=Zr.isBytesLike=void 0;var ARt=Zt(),PRt=Rqe(),ts=new ARt.Logger(PRt.version);function Nqe(r){return!!r.toHexString}function q5(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return q5(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function Bqe(r){return Xp(r)&&!(r.length%2)||Oie(r)}Zr.isBytesLike=Bqe;function Mqe(r){return typeof r=="number"&&r==r&&r%1===0}function Oie(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!Mqe(r.length)||r.length<0)return!1;for(var e=0;e=256)return!1}return!0}Zr.isBytes=Oie;function eb(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),q5(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Nqe(r)&&(r=r.toHexString()),Xp(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":ts.throwArgumentError("hex data is odd-length","value",r));for(var t=[],a=0;ae&&ts.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),q5(t)}Zr.zeroPad=Lqe;function Xp(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}Zr.isHexString=Xp;var a2e="0123456789abcdef";function Kc(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=a2e[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),Nqe(r))return r.toHexString();if(Xp(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":ts.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(Oie(r)){for(var n="0x",a=0;a>4]+a2e[i&15]}return n}return ts.throwArgumentError("invalid hexlify value","value",r)}Zr.hexlify=Kc;function RRt(r){if(typeof r!="string")r=Kc(r);else if(!Xp(r)||r.length%2)return null;return(r.length-2)/2}Zr.hexDataLength=RRt;function MRt(r,e,t){return typeof r!="string"?r=Kc(r):(!Xp(r)||r.length%2)&&ts.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}Zr.hexDataSlice=MRt;function NRt(r){var e="0x";return r.forEach(function(t){e+=Kc(t).substring(2)}),e}Zr.hexConcat=NRt;function BRt(r){var e=Oqe(Kc(r,{hexPad:"left"}));return e==="0x"?"0x0":e}Zr.hexValue=BRt;function Oqe(r){typeof r!="string"&&(r=Kc(r)),Xp(r)||ts.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e2*e+2&&ts.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}Zr.hexZeroPad=Lie;function qqe(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Bqe(r)){var t=eb(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=Kc(t.slice(0,32)),e.s=Kc(t.slice(32,64))):t.length===65?(e.r=Kc(t.slice(0,32)),e.s=Kc(t.slice(32,64)),e.v=t[64]):ts.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:ts.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=Kc(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=Lqe(eb(e._vs),32);e._vs=Kc(n);var a=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&ts.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var i=Kc(n);e.s==null?e.s=i:e.s!==i&&ts.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?ts.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&ts.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!Xp(e.r)?ts.throwArgumentError("signature missing or invalid r","signature",r):e.r=Lie(e.r,32),e.s==null||!Xp(e.s)?ts.throwArgumentError("signature missing or invalid s","signature",r):e.s=Lie(e.s,32);var o=eb(e.s);o[0]>=128&&ts.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(o[0]|=128);var c=Kc(o);e._vs&&(Xp(e._vs)||ts.throwArgumentError("signature invalid _vs","signature",r),e._vs=Lie(e._vs,32)),e._vs==null?e._vs=c:e._vs!==c&&ts.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Zr.splitSignature=qqe;function DRt(r){return r=qqe(r),Kc(Dqe([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}Zr.joinSignature=DRt});var i2e=_(qie=>{"use strict";d();p();Object.defineProperty(qie,"__esModule",{value:!0});qie.version=void 0;qie.version="bignumber/5.7.0"});var Wie=_(kd=>{"use strict";d();p();var LRt=kd&&kd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kd,"__esModule",{value:!0});kd._base16To36=kd._base36To16=kd.BigNumber=kd.isBigNumberish=void 0;var ORt=LRt(Cr()),YQ=ORt.default.BN,F5=wr(),W5=Zt(),qRt=i2e(),Km=new W5.Logger(qRt.version),s2e={},Fqe=9007199254740991;function FRt(r){return r!=null&&(Fie.isBigNumber(r)||typeof r=="number"&&r%1===0||typeof r=="string"&&!!r.match(/^-?[0-9]+$/)||(0,F5.isHexString)(r)||typeof r=="bigint"||(0,F5.isBytes)(r))}kd.isBigNumberish=FRt;var Wqe=!1,Fie=function(){function r(e,t){e!==s2e&&Km.throwError("cannot call constructor directly; use BigNumber.from",W5.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return r.prototype.fromTwos=function(e){return cl(Wr(this).fromTwos(e))},r.prototype.toTwos=function(e){return cl(Wr(this).toTwos(e))},r.prototype.abs=function(){return this._hex[0]==="-"?r.from(this._hex.substring(1)):this},r.prototype.add=function(e){return cl(Wr(this).add(Wr(e)))},r.prototype.sub=function(e){return cl(Wr(this).sub(Wr(e)))},r.prototype.div=function(e){var t=r.from(e);return t.isZero()&&Cd("division-by-zero","div"),cl(Wr(this).div(Wr(e)))},r.prototype.mul=function(e){return cl(Wr(this).mul(Wr(e)))},r.prototype.mod=function(e){var t=Wr(e);return t.isNeg()&&Cd("division-by-zero","mod"),cl(Wr(this).umod(t))},r.prototype.pow=function(e){var t=Wr(e);return t.isNeg()&&Cd("negative-power","pow"),cl(Wr(this).pow(t))},r.prototype.and=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Cd("unbound-bitwise-result","and"),cl(Wr(this).and(t))},r.prototype.or=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Cd("unbound-bitwise-result","or"),cl(Wr(this).or(t))},r.prototype.xor=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Cd("unbound-bitwise-result","xor"),cl(Wr(this).xor(t))},r.prototype.mask=function(e){return(this.isNegative()||e<0)&&Cd("negative-width","mask"),cl(Wr(this).maskn(e))},r.prototype.shl=function(e){return(this.isNegative()||e<0)&&Cd("negative-width","shl"),cl(Wr(this).shln(e))},r.prototype.shr=function(e){return(this.isNegative()||e<0)&&Cd("negative-width","shr"),cl(Wr(this).shrn(e))},r.prototype.eq=function(e){return Wr(this).eq(Wr(e))},r.prototype.lt=function(e){return Wr(this).lt(Wr(e))},r.prototype.lte=function(e){return Wr(this).lte(Wr(e))},r.prototype.gt=function(e){return Wr(this).gt(Wr(e))},r.prototype.gte=function(e){return Wr(this).gte(Wr(e))},r.prototype.isNegative=function(){return this._hex[0]==="-"},r.prototype.isZero=function(){return Wr(this).isZero()},r.prototype.toNumber=function(){try{return Wr(this).toNumber()}catch{Cd("overflow","toNumber",this.toString())}return null},r.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return Km.throwError("this platform does not support BigInt",W5.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},r.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?Wqe||(Wqe=!0,Km.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Km.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W5.Logger.errors.UNEXPECTED_ARGUMENT,{}):Km.throwError("BigNumber.toString does not accept parameters",W5.Logger.errors.UNEXPECTED_ARGUMENT,{})),Wr(this).toString(10)},r.prototype.toHexString=function(){return this._hex},r.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},r.from=function(e){if(e instanceof r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new r(s2e,$Q(e)):e.match(/^-?[0-9]+$/)?new r(s2e,$Q(new YQ(e))):Km.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Cd("underflow","BigNumber.from",e),(e>=Fqe||e<=-Fqe)&&Cd("overflow","BigNumber.from",e),r.from(String(e));var t=e;if(typeof t=="bigint")return r.from(t.toString());if((0,F5.isBytes)(t))return r.from((0,F5.hexlify)(t));if(t)if(t.toHexString){var n=t.toHexString();if(typeof n=="string")return r.from(n)}else{var n=t._hex;if(n==null&&t.type==="BigNumber"&&(n=t.hex),typeof n=="string"&&((0,F5.isHexString)(n)||n[0]==="-"&&(0,F5.isHexString)(n.substring(1))))return r.from(n)}return Km.throwArgumentError("invalid BigNumber value","value",e)},r.isBigNumber=function(e){return!!(e&&e._isBigNumber)},r}();kd.BigNumber=Fie;function $Q(r){if(typeof r!="string")return $Q(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&Km.throwArgumentError("invalid hex","value",r),r=$Q(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function cl(r){return Fie.from($Q(r))}function Wr(r){var e=Fie.from(r).toHexString();return e[0]==="-"?new YQ("-"+e.substring(3),16):new YQ(e.substring(2),16)}function Cd(r,e,t){var n={fault:r,operation:e};return t!=null&&(n.value=t),Km.throwError(r,W5.Logger.errors.NUMERIC_FAULT,n)}function WRt(r){return new YQ(r,36).toString(16)}kd._base36To16=WRt;function URt(r){return new YQ(r,16).toString(36)}kd._base16To36=URt});var Kqe=_(yf=>{"use strict";d();p();Object.defineProperty(yf,"__esModule",{value:!0});yf.FixedNumber=yf.FixedFormat=yf.parseFixed=yf.formatFixed=void 0;var Uie=wr(),ZQ=Zt(),HRt=i2e(),Du=new ZQ.Logger(HRt.version),Gm=Wie(),QQ={},Hqe=Gm.BigNumber.from(0),jqe=Gm.BigNumber.from(-1);function zqe(r,e,t,n){var a={fault:e,operation:t};return n!==void 0&&(a.value=n),Du.throwError(r,ZQ.Logger.errors.NUMERIC_FAULT,a)}var JQ="0";for(;JQ.length<256;)JQ+=JQ;function o2e(r){if(typeof r!="number")try{r=Gm.BigNumber.from(r).toNumber()}catch{}return typeof r=="number"&&r>=0&&r<=256&&!(r%1)?"1"+JQ.substring(0,r):Du.throwArgumentError("invalid decimal size","decimals",r)}function Hie(r,e){e==null&&(e=0);var t=o2e(e);r=Gm.BigNumber.from(r);var n=r.lt(Hqe);n&&(r=r.mul(jqe));for(var a=r.mod(t).toString();a.length2&&Du.throwArgumentError("too many decimal points","value",r);var i=a[0],s=a[1];for(i||(i="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>t.length-1&&zqe("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length80&&Du.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new r(QQ,t,n,a)},r}();yf.FixedFormat=jie;var c2e=function(){function r(e,t,n,a){e!==QQ&&Du.throwError("cannot use FixedNumber constructor; use FixedNumber.from",ZQ.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return r.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Du.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},r.prototype.addUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.add(n),this.format.decimals,this.format)},r.prototype.subUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.sub(n),this.format.decimals,this.format)},r.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},r.prototype.divUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},r.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(Uqe.toFormat(t.format))),t},r.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(Uqe.toFormat(t.format))),t},r.prototype.round=function(e){e==null&&(e=0);var t=this.toString().split(".");if(t.length===1&&t.push("0"),(e<0||e>80||e%1)&&Du.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;var n=r.from("1"+JQ.substring(0,e),this.format),a=jRt.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)},r.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},r.prototype.isNegative=function(){return this._value[0]==="-"},r.prototype.toString=function(){return this._value},r.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Du.throwArgumentError("invalid byte width","width",e);var t=Gm.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,Uie.hexZeroPad)(t,e/8)},r.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},r.prototype.toFormat=function(e){return r.fromString(this._value,e)},r.fromValue=function(e,t,n){return n==null&&t!=null&&!(0,Gm.isBigNumberish)(t)&&(n=t,t=null),t==null&&(t=0),n==null&&(n="fixed"),r.fromString(Hie(e,t),jie.from(n))},r.fromString=function(e,t){t==null&&(t="fixed");var n=jie.from(t),a=mf(e,n.decimals);!n.signed&&a.lt(Hqe)&&zqe("unsigned value cannot be negative","overflow","value",e);var i=null;n.signed?i=a.toTwos(n.width).toHexString():(i=a.toHexString(),i=(0,Uie.hexZeroPad)(i,n.width/8));var s=Hie(a,n.decimals);return new r(QQ,i,s,n)},r.fromBytes=function(e,t){t==null&&(t="fixed");var n=jie.from(t);if((0,Uie.arrayify)(e).length>n.width/8)throw new Error("overflow");var a=Gm.BigNumber.from(e);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),s=Hie(a,n.decimals);return new r(QQ,i,s,n)},r.from=function(e,t){if(typeof e=="string")return r.fromString(e,t);if((0,Uie.isBytes)(e))return r.fromBytes(e,t);try{return r.fromValue(e,0,t)}catch(n){if(n.code!==ZQ.Logger.errors.INVALID_ARGUMENT)throw n}return Du.throwArgumentError("invalid FixedNumber value","value",e)},r.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},r}();yf.FixedNumber=c2e;var Uqe=c2e.from(1),jRt=c2e.from("0.5")});var Ls=_(Gc=>{"use strict";d();p();Object.defineProperty(Gc,"__esModule",{value:!0});Gc._base36To16=Gc._base16To36=Gc.parseFixed=Gc.FixedNumber=Gc.FixedFormat=Gc.formatFixed=Gc.BigNumber=void 0;var zRt=Wie();Object.defineProperty(Gc,"BigNumber",{enumerable:!0,get:function(){return zRt.BigNumber}});var zie=Kqe();Object.defineProperty(Gc,"formatFixed",{enumerable:!0,get:function(){return zie.formatFixed}});Object.defineProperty(Gc,"FixedFormat",{enumerable:!0,get:function(){return zie.FixedFormat}});Object.defineProperty(Gc,"FixedNumber",{enumerable:!0,get:function(){return zie.FixedNumber}});Object.defineProperty(Gc,"parseFixed",{enumerable:!0,get:function(){return zie.parseFixed}});var Gqe=Wie();Object.defineProperty(Gc,"_base16To36",{enumerable:!0,get:function(){return Gqe._base16To36}});Object.defineProperty(Gc,"_base36To16",{enumerable:!0,get:function(){return Gqe._base36To16}})});var Vqe=_(Kie=>{"use strict";d();p();Object.defineProperty(Kie,"__esModule",{value:!0});Kie.version=void 0;Kie.version="properties/5.7.0"});var Aa=_(Os=>{"use strict";d();p();var KRt=Os&&Os.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},GRt=Os&&Os.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Yie,"__esModule",{value:!0});Yie.version=void 0;Yie.version="abi/5.7.0"});var tse=_(nr=>{"use strict";d();p();var Zie=nr&&nr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nr,"__esModule",{value:!0});nr.ErrorFragment=nr.FunctionFragment=nr.ConstructorFragment=nr.EventFragment=nr.Fragment=nr.ParamType=nr.FormatTypes=void 0;var p2e=Ls(),r9t=Aa(),Xie=Zt(),n9t=U5(),zr=new Xie.Logger(n9t.version),tb={},Qqe={calldata:!0,memory:!0,storage:!0},a9t={calldata:!0,memory:!0};function $ie(r,e){if(r==="bytes"||r==="string"){if(Qqe[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&a9t[e])return!0;return(Qqe[e]||e==="payable")&&zr.throwArgumentError("invalid modifier","name",e),!1}function i9t(r,e){var t=r;function n(h){zr.throwArgumentError("unexpected character at position "+h,"param",r)}r=r.replace(/\s/g," ");function a(h){var f={type:"",name:"",parent:h,state:{allowType:!0}};return e&&(f.indexed=!1),f}for(var i={type:"",name:"",state:{allowType:!0}},s=i,o=0;o2&&zr.throwArgumentError("invalid human-readable ABI signature","value",r),t[1].match(/^[0-9]+$/)||zr.throwArgumentError("invalid human-readable ABI signature gas","value",r),e.gas=p2e.BigNumber.from(t[1]),t[0]):r}function Xqe(r,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",r.split(" ").forEach(function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function eFe(r){var e={constant:!1,payable:!0,stateMutability:"payable"};return r.stateMutability!=null?(e.stateMutability=r.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",r.constant!=null&&!!r.constant!==e.constant&&zr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",r),e.payable=e.stateMutability==="payable",r.payable!=null&&!!r.payable!==e.payable&&zr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",r)):r.payable!=null?(e.payable=!!r.payable,r.constant==null&&!e.payable&&r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e.constant=!!r.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&zr.throwArgumentError("cannot have constant payable function","value",r)):r.constant!=null?(e.constant=!!r.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e}var Jie=function(r){Zie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});t===nr.FormatTypes.sighash&&zr.throwError("cannot format a constructor for sighash",Xie.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isConstructorFragment(t))return t;t.type!=="constructor"&&zr.throwArgumentError("invalid constructor object","value",t);var n=eFe(t);n.constant&&zr.throwArgumentError("constructor cannot be constant","value",t);var a={name:null,type:t.type,inputs:t.inputs?t.inputs.map(rb.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?p2e.BigNumber.from(t.gas):null};return new e(tb,a)},e.fromString=function(t){var n={type:"constructor"};t=Zqe(t,n);var a=t.match(tJ);return(!a||a[1].trim()!=="constructor")&&zr.throwArgumentError("invalid constructor string","value",t),n.inputs=XQ(a[2].trim(),!1),Xqe(a[3].trim(),n),e.fromObject(n)},e.isConstructorFragment=function(t){return t&&t._isFragment&&t.type==="constructor"},e}(ese);nr.ConstructorFragment=Jie;var l2e=function(r){Zie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))}),outputs:this.outputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",t!==nr.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(a){return a.format(t)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFunctionFragment(t))return t;t.type!=="function"&&zr.throwArgumentError("invalid function object","value",t);var n=eFe(t),a={type:t.type,name:eJ(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(rb.fromObject):[],outputs:t.outputs?t.outputs.map(rb.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?p2e.BigNumber.from(t.gas):null};return new e(tb,a)},e.fromString=function(t){var n={type:"function"};t=Zqe(t,n);var a=t.split(" returns ");a.length>2&&zr.throwArgumentError("invalid function string","value",t);var i=a[0].match(tJ);if(i||zr.throwArgumentError("invalid function signature","value",t),n.name=i[1].trim(),n.name&&eJ(n.name),n.inputs=XQ(i[2],!1),Xqe(i[3].trim(),n),a.length>1){var s=a[1].match(tJ);(s[1].trim()!=""||s[3].trim()!="")&&zr.throwArgumentError("unexpected tokens","value",t),n.outputs=XQ(s[2],!1)}else n.outputs=[];return e.fromObject(n)},e.isFunctionFragment=function(t){return t&&t._isFragment&&t.type==="function"},e}(Jie);nr.FunctionFragment=l2e;function Jqe(r){var e=r.format();return(e==="Error(string)"||e==="Panic(uint256)")&&zr.throwArgumentError("cannot specify user defined "+e+" error","fragment",r),r}var d2e=function(r){Zie(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isErrorFragment(t))return t;t.type!=="error"&&zr.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:eJ(t.name),inputs:t.inputs?t.inputs.map(rb.fromObject):[]};return Jqe(new e(tb,n))},e.fromString=function(t){var n={type:"error"},a=t.match(tJ);return a||zr.throwArgumentError("invalid error signature","value",t),n.name=a[1].trim(),n.name&&eJ(n.name),n.inputs=XQ(a[2],!1),Jqe(e.fromObject(n))},e.isErrorFragment=function(t){return t&&t._isFragment&&t.type==="error"},e}(ese);nr.ErrorFragment=d2e;function H5(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}var o9t=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function eJ(r){return(!r||!r.match(o9t))&&zr.throwArgumentError('invalid identifier "'+r+'"',"value",r),r}var tJ=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function c9t(r){r=r.trim();for(var e=[],t="",n=0,a=0;a{"use strict";d();p();Object.defineProperty(gf,"__esModule",{value:!0});gf.Reader=gf.Writer=gf.Coder=gf.checkResultErrors=void 0;var _y=wr(),tFe=Ls(),rJ=Aa(),h2e=Zt(),u9t=U5(),f2e=new h2e.Logger(u9t.version);function l9t(r){var e=[],t=function(n,a){if(!!Array.isArray(a))for(var i in a){var s=n.slice();s.push(i);try{t(s,a[i])}catch(o){e.push({path:s,error:o})}}};return t([],r),e}gf.checkResultErrors=l9t;var d9t=function(){function r(e,t,n,a){this.name=e,this.type=t,this.localName=n,this.dynamic=a}return r.prototype._throwError=function(e,t){f2e.throwArgumentError(e,this.localName,t)},r}();gf.Coder=d9t;var p9t=function(){function r(e){(0,rJ.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,_y.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),r.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},r.prototype.appendWriter=function(e){return this._writeData((0,_y.concat)(e._data))},r.prototype.writeBytes=function(e){var t=(0,_y.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,_y.concat)([t,this._padding.slice(n)])),this._writeData(t)},r.prototype._getValue=function(e){var t=(0,_y.arrayify)(tFe.BigNumber.from(e));return t.length>this.wordSize&&f2e.throwError("value out-of-bounds",h2e.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,_y.concat)([this._padding.slice(t.length%this.wordSize),t])),t},r.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},r.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}},r}();gf.Writer=p9t;var h9t=function(){function r(e,t,n,a){(0,rJ.defineReadOnly)(this,"_data",(0,_y.arrayify)(e)),(0,rJ.defineReadOnly)(this,"wordSize",t||32),(0,rJ.defineReadOnly)(this,"_coerceFunc",n),(0,rJ.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,_y.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),r.coerce=function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t,n){var a=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?a=t:f2e.throwError("data out-of-bounds",h2e.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},r.prototype.readBytes=function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)},r.prototype.readValue=function(){return tFe.BigNumber.from(this.readBytes(this.wordSize))},r}();gf.Reader=h9t});var m2e=_((qTn,rse)=>{d();p();(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof g=="object"&&g.versions&&g.versions.node;i?n=global:a&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof rse=="object"&&rse.exports,o=typeof define=="function"&&define.amd,c=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),l=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],f=[1,256,65536,16777216],m=[6,1536,393216,100663296],y=[0,8,16,24],I=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],C=[224,256,384,512],R=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],F={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(j){return Object.prototype.toString.call(j)==="[object Array]"}),c&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(j){return typeof j=="object"&&j.buffer&&j.buffer.constructor===ArrayBuffer});for(var W=function(j,X,ie){return function(ue){return new E(j,X,j).update(ue)[ie]()}},V=function(j,X,ie){return function(ue,he){return new E(j,X,he).update(ue)[ie]()}},K=function(j,X,ie){return function(ue,he,ke,ge){return v["cshake"+j].update(ue,he,ke,ge)[ie]()}},H=function(j,X,ie){return function(ue,he,ke,ge){return v["kmac"+j].update(ue,he,ke,ge)[ie]()}},G=function(j,X,ie,ue){for(var he=0;he>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ie>>5,this.extraBytes=(ie&31)>>3;for(var ue=0;ue<50;++ue)this.s[ue]=0}E.prototype.update=function(j){if(this.finalized)throw new Error(e);var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}for(var ue=this.blocks,he=this.byteCount,ke=j.length,ge=this.blockCount,me=0,Ke=this.s,ve,Ae;me>2]|=j[me]<>2]|=Ae<>2]|=(192|Ae>>6)<>2]|=(128|Ae&63)<=57344?(ue[ve>>2]|=(224|Ae>>12)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<>2]|=(240|Ae>>18)<>2]|=(128|Ae>>12&63)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<=he){for(this.start=ve-he,this.block=ue[ge],ve=0;ve>8,ie=j&255;ie>0;)he.unshift(ie),j=j>>8,ie=j&255,++ue;return X?he.push(ue):he.unshift(ue),this.update(he),he.length},E.prototype.encodeString=function(j){var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}var ue=0,he=j.length;if(X)ue=he;else for(var ke=0;ke=57344?ue+=3:(ge=65536+((ge&1023)<<10|j.charCodeAt(++ke)&1023),ue+=4)}return ue+=this.encode(ue*8),this.update(j),ue},E.prototype.bytepad=function(j,X){for(var ie=this.encode(X),ue=0;ue>2]|=this.padding[X&3],this.lastByteIndex===this.byteCount)for(j[0]=j[ie],X=1;X>4&15]+u[me&15]+u[me>>12&15]+u[me>>8&15]+u[me>>20&15]+u[me>>16&15]+u[me>>28&15]+u[me>>24&15];ke%j===0&&(ee(X),he=0)}return ue&&(me=X[he],ge+=u[me>>4&15]+u[me&15],ue>1&&(ge+=u[me>>12&15]+u[me>>8&15]),ue>2&&(ge+=u[me>>20&15]+u[me>>16&15])),ge},E.prototype.arrayBuffer=function(){this.finalize();var j=this.blockCount,X=this.s,ie=this.outputBlocks,ue=this.extraBytes,he=0,ke=0,ge=this.outputBits>>3,me;ue?me=new ArrayBuffer(ie+1<<2):me=new ArrayBuffer(ge);for(var Ke=new Uint32Array(me);ke>8&255,ge[me+2]=Ke>>16&255,ge[me+3]=Ke>>24&255;ke%j===0&&ee(X)}return ue&&(me=ke<<2,Ke=X[he],ge[me]=Ke&255,ue>1&&(ge[me+1]=Ke>>8&255),ue>2&&(ge[me+2]=Ke>>16&255)),ge};function z(j,X,ie){E.call(this,j,X,ie)}z.prototype=new E,z.prototype.finalize=function(){return this.encode(this.outputBits,!0),E.prototype.finalize.call(this)};var ee=function(j){var X,ie,ue,he,ke,ge,me,Ke,ve,Ae,so,It,bt,ai,xt,st,ii,Nt,dt,oo,jt,Bt,sc,ot,pt,Dc,Et,Ct,Lc,Dt,kt,Oc,At,Lt,oc,Ot,qt,qc,Pt,Ft,Fc,St,Wt,cc,Qe,it,uc,Ut,Kt,il,Gt,Vt,sl,Yt,$t,Bu,on,cn,Wc,Uc,Hc,jc,zc;for(ue=0;ue<48;ue+=2)he=j[0]^j[10]^j[20]^j[30]^j[40],ke=j[1]^j[11]^j[21]^j[31]^j[41],ge=j[2]^j[12]^j[22]^j[32]^j[42],me=j[3]^j[13]^j[23]^j[33]^j[43],Ke=j[4]^j[14]^j[24]^j[34]^j[44],ve=j[5]^j[15]^j[25]^j[35]^j[45],Ae=j[6]^j[16]^j[26]^j[36]^j[46],so=j[7]^j[17]^j[27]^j[37]^j[47],It=j[8]^j[18]^j[28]^j[38]^j[48],bt=j[9]^j[19]^j[29]^j[39]^j[49],X=It^(ge<<1|me>>>31),ie=bt^(me<<1|ge>>>31),j[0]^=X,j[1]^=ie,j[10]^=X,j[11]^=ie,j[20]^=X,j[21]^=ie,j[30]^=X,j[31]^=ie,j[40]^=X,j[41]^=ie,X=he^(Ke<<1|ve>>>31),ie=ke^(ve<<1|Ke>>>31),j[2]^=X,j[3]^=ie,j[12]^=X,j[13]^=ie,j[22]^=X,j[23]^=ie,j[32]^=X,j[33]^=ie,j[42]^=X,j[43]^=ie,X=ge^(Ae<<1|so>>>31),ie=me^(so<<1|Ae>>>31),j[4]^=X,j[5]^=ie,j[14]^=X,j[15]^=ie,j[24]^=X,j[25]^=ie,j[34]^=X,j[35]^=ie,j[44]^=X,j[45]^=ie,X=Ke^(It<<1|bt>>>31),ie=ve^(bt<<1|It>>>31),j[6]^=X,j[7]^=ie,j[16]^=X,j[17]^=ie,j[26]^=X,j[27]^=ie,j[36]^=X,j[37]^=ie,j[46]^=X,j[47]^=ie,X=Ae^(he<<1|ke>>>31),ie=so^(ke<<1|he>>>31),j[8]^=X,j[9]^=ie,j[18]^=X,j[19]^=ie,j[28]^=X,j[29]^=ie,j[38]^=X,j[39]^=ie,j[48]^=X,j[49]^=ie,ai=j[0],xt=j[1],it=j[11]<<4|j[10]>>>28,uc=j[10]<<4|j[11]>>>28,Ct=j[20]<<3|j[21]>>>29,Lc=j[21]<<3|j[20]>>>29,Uc=j[31]<<9|j[30]>>>23,Hc=j[30]<<9|j[31]>>>23,St=j[40]<<18|j[41]>>>14,Wt=j[41]<<18|j[40]>>>14,Lt=j[2]<<1|j[3]>>>31,oc=j[3]<<1|j[2]>>>31,st=j[13]<<12|j[12]>>>20,ii=j[12]<<12|j[13]>>>20,Ut=j[22]<<10|j[23]>>>22,Kt=j[23]<<10|j[22]>>>22,Dt=j[33]<<13|j[32]>>>19,kt=j[32]<<13|j[33]>>>19,jc=j[42]<<2|j[43]>>>30,zc=j[43]<<2|j[42]>>>30,Yt=j[5]<<30|j[4]>>>2,$t=j[4]<<30|j[5]>>>2,Ot=j[14]<<6|j[15]>>>26,qt=j[15]<<6|j[14]>>>26,Nt=j[25]<<11|j[24]>>>21,dt=j[24]<<11|j[25]>>>21,il=j[34]<<15|j[35]>>>17,Gt=j[35]<<15|j[34]>>>17,Oc=j[45]<<29|j[44]>>>3,At=j[44]<<29|j[45]>>>3,ot=j[6]<<28|j[7]>>>4,pt=j[7]<<28|j[6]>>>4,Bu=j[17]<<23|j[16]>>>9,on=j[16]<<23|j[17]>>>9,qc=j[26]<<25|j[27]>>>7,Pt=j[27]<<25|j[26]>>>7,oo=j[36]<<21|j[37]>>>11,jt=j[37]<<21|j[36]>>>11,Vt=j[47]<<24|j[46]>>>8,sl=j[46]<<24|j[47]>>>8,cc=j[8]<<27|j[9]>>>5,Qe=j[9]<<27|j[8]>>>5,Dc=j[18]<<20|j[19]>>>12,Et=j[19]<<20|j[18]>>>12,cn=j[29]<<7|j[28]>>>25,Wc=j[28]<<7|j[29]>>>25,Ft=j[38]<<8|j[39]>>>24,Fc=j[39]<<8|j[38]>>>24,Bt=j[48]<<14|j[49]>>>18,sc=j[49]<<14|j[48]>>>18,j[0]=ai^~st&Nt,j[1]=xt^~ii&dt,j[10]=ot^~Dc&Ct,j[11]=pt^~Et&Lc,j[20]=Lt^~Ot&qc,j[21]=oc^~qt&Pt,j[30]=cc^~it&Ut,j[31]=Qe^~uc&Kt,j[40]=Yt^~Bu&cn,j[41]=$t^~on&Wc,j[2]=st^~Nt&oo,j[3]=ii^~dt&jt,j[12]=Dc^~Ct&Dt,j[13]=Et^~Lc&kt,j[22]=Ot^~qc&Ft,j[23]=qt^~Pt&Fc,j[32]=it^~Ut&il,j[33]=uc^~Kt&Gt,j[42]=Bu^~cn&Uc,j[43]=on^~Wc&Hc,j[4]=Nt^~oo&Bt,j[5]=dt^~jt&sc,j[14]=Ct^~Dt&Oc,j[15]=Lc^~kt&At,j[24]=qc^~Ft&St,j[25]=Pt^~Fc&Wt,j[34]=Ut^~il&Vt,j[35]=Kt^~Gt&sl,j[44]=cn^~Uc&jc,j[45]=Wc^~Hc&zc,j[6]=oo^~Bt&ai,j[7]=jt^~sc&xt,j[16]=Dt^~Oc&ot,j[17]=kt^~At&pt,j[26]=Ft^~St&Lt,j[27]=Fc^~Wt&oc,j[36]=il^~Vt&cc,j[37]=Gt^~sl&Qe,j[46]=Uc^~jc&Yt,j[47]=Hc^~zc&$t,j[8]=Bt^~ai&st,j[9]=sc^~xt&ii,j[18]=Oc^~ot&Dc,j[19]=At^~pt&Et,j[28]=St^~Lt&Ot,j[29]=Wt^~oc&qt,j[38]=Vt^~cc&it,j[39]=sl^~Qe&uc,j[48]=jc^~Yt&Bu,j[49]=zc^~$t&on,j[0]^=I[ue],j[1]^=I[ue+1]};if(s)rse.exports=v;else{for(O=0;O{"use strict";d();p();var f9t=j5&&j5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(j5,"__esModule",{value:!0});j5.keccak256=void 0;var m9t=f9t(m2e()),y9t=wr();function g9t(r){return"0x"+m9t.default.keccak_256((0,y9t.arrayify)(r))}j5.keccak256=g9t});var rFe=_(nse=>{"use strict";d();p();Object.defineProperty(nse,"__esModule",{value:!0});nse.version=void 0;nse.version="rlp/5.7.0"});var ase=_(z5=>{"use strict";d();p();Object.defineProperty(z5,"__esModule",{value:!0});z5.decode=z5.encode=void 0;var nb=wr(),Vm=Zt(),b9t=rFe(),bf=new Vm.Logger(b9t.version);function nFe(r){for(var e=[];r;)e.unshift(r&255),r>>=8;return e}function aFe(r,e,t){for(var n=0,a=0;ae+1+n&&bf.throwError("child data too short",Vm.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function oFe(r,e){if(r.length===0&&bf.throwError("data too short",Vm.Logger.errors.BUFFER_OVERRUN,{}),r[e]>=248){var t=r[e]-247;e+1+t>r.length&&bf.throwError("data short segment too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var n=aFe(r,e+1,t);return e+1+t+n>r.length&&bf.throwError("data long segment too short",Vm.Logger.errors.BUFFER_OVERRUN,{}),iFe(r,e,e+1+t,t+n)}else if(r[e]>=192){var a=r[e]-192;return e+1+a>r.length&&bf.throwError("data array too short",Vm.Logger.errors.BUFFER_OVERRUN,{}),iFe(r,e,e+1,a)}else if(r[e]>=184){var t=r[e]-183;e+1+t>r.length&&bf.throwError("data array too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var i=aFe(r,e+1,t);e+1+t+i>r.length&&bf.throwError("data array too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var s=(0,nb.hexlify)(r.slice(e+1+t,e+1+t+i));return{consumed:1+t+i,result:s}}else if(r[e]>=128){var o=r[e]-128;e+1+o>r.length&&bf.throwError("data too short",Vm.Logger.errors.BUFFER_OVERRUN,{});var s=(0,nb.hexlify)(r.slice(e+1,e+1+o));return{consumed:1+o,result:s}}return{consumed:1,result:(0,nb.hexlify)(r[e])}}function w9t(r){var e=(0,nb.arrayify)(r),t=oFe(e,0);return t.consumed!==e.length&&bf.throwArgumentError("invalid rlp data","data",r),t.result}z5.decode=w9t});var cFe=_(ise=>{"use strict";d();p();Object.defineProperty(ise,"__esModule",{value:!0});ise.version=void 0;ise.version="address/5.7.0"});var Sd=_(Pd=>{"use strict";d();p();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.getCreate2Address=Pd.getContractAddress=Pd.getIcapAddress=Pd.isAddress=Pd.getAddress=void 0;var Ym=wr(),y2e=Ls(),g2e=jl(),x9t=ase(),_9t=Zt(),T9t=cFe(),Ty=new _9t.Logger(T9t.version);function uFe(r){(0,Ym.isHexString)(r,20)||Ty.throwArgumentError("invalid address","address",r),r=r.toLowerCase();for(var e=r.substring(2).split(""),t=new Uint8Array(40),n=0;n<40;n++)t[n]=e[n].charCodeAt(0);for(var a=(0,Ym.arrayify)((0,g2e.keccak256)(t)),n=0;n<40;n+=2)a[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(a[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var I9t=9007199254740991;function E9t(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}var b2e={};for(eh=0;eh<10;eh++)b2e[String(eh)]=String(eh);var eh;for(eh=0;eh<26;eh++)b2e[String.fromCharCode(65+eh)]=String(10+eh);var eh,lFe=Math.floor(E9t(I9t));function dFe(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";for(var e=r.split("").map(function(a){return b2e[a]}).join("");e.length>=lFe;){var t=e.substring(0,lFe);e=parseInt(t,10)%97+e.substring(t.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function ab(r){var e=null;if(typeof r!="string"&&Ty.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=uFe(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&Ty.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==dFe(r)&&Ty.throwArgumentError("bad icap checksum","address",r),e=(0,y2e._base36To16)(r.substring(4));e.length<40;)e="0"+e;e=uFe("0x"+e)}else Ty.throwArgumentError("invalid address","address",r);return e}Pd.getAddress=ab;function C9t(r){try{return ab(r),!0}catch{}return!1}Pd.isAddress=C9t;function k9t(r){for(var e=(0,y2e._base16To36)(ab(r).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+dFe("XE00"+e)+e}Pd.getIcapAddress=k9t;function A9t(r){var e=null;try{e=ab(r.from)}catch{Ty.throwArgumentError("missing from address","transaction",r)}var t=(0,Ym.stripZeros)((0,Ym.arrayify)(y2e.BigNumber.from(r.nonce).toHexString()));return ab((0,Ym.hexDataSlice)((0,g2e.keccak256)((0,x9t.encode)([e,t])),12))}Pd.getContractAddress=A9t;function P9t(r,e,t){return(0,Ym.hexDataLength)(e)!==32&&Ty.throwArgumentError("salt must be 32 bytes","salt",e),(0,Ym.hexDataLength)(t)!==32&&Ty.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",t),ab((0,Ym.hexDataSlice)((0,g2e.keccak256)((0,Ym.concat)(["0xff",ab(r),e,t])),12))}Pd.getCreate2Address=P9t});var hFe=_(K5=>{"use strict";d();p();var S9t=K5&&K5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K5,"__esModule",{value:!0});K5.AddressCoder=void 0;var pFe=Sd(),R9t=wr(),M9t=Ad(),N9t=function(r){S9t(e,r);function e(t){return r.call(this,"address","address",t,!1)||this}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},e.prototype.encode=function(t,n){try{n=(0,pFe.getAddress)(n)}catch(a){this._throwError(a.message,n)}return t.writeValue(n)},e.prototype.decode=function(t){return(0,pFe.getAddress)((0,R9t.hexZeroPad)(t.readValue().toHexString(),20))},e}(M9t.Coder);K5.AddressCoder=N9t});var fFe=_(G5=>{"use strict";d();p();var B9t=G5&&G5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(G5,"__esModule",{value:!0});G5.AnonymousCoder=void 0;var D9t=Ad(),L9t=function(r){B9t(e,r);function e(t){var n=r.call(this,t.name,t.type,void 0,t.dynamic)||this;return n.coder=t,n}return e.prototype.defaultValue=function(){return this.coder.defaultValue()},e.prototype.encode=function(t,n){return this.coder.encode(t,n)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(D9t.Coder);G5.AnonymousCoder=L9t});var w2e=_(vf=>{"use strict";d();p();var O9t=vf&&vf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vf,"__esModule",{value:!0});vf.ArrayCoder=vf.unpack=vf.pack=void 0;var Y5=Zt(),q9t=U5(),V5=new Y5.Logger(q9t.version),v2e=Ad(),F9t=fFe();function mFe(r,e,t){var n=null;if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){var a={};n=e.map(function(u){var l=u.localName;return l||V5.throwError("cannot encode object for signature with missing names",Y5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]&&V5.throwError("cannot encode object for signature with duplicate names",Y5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]=!0,t[l]})}else V5.throwArgumentError("invalid tuple value","tuple",t);e.length!==n.length&&V5.throwArgumentError("types/value length mismatch","tuple",t);var i=new v2e.Writer(r.wordSize),s=new v2e.Writer(r.wordSize),o=[];e.forEach(function(u,l){var h=n[l];if(u.dynamic){var f=s.length;u.encode(s,h);var m=i.writeUpdatableValue();o.push(function(y){m(y+f)})}else u.encode(i,h)}),o.forEach(function(u){u(i.length)});var c=r.appendWriter(i);return c+=r.appendWriter(s),c}vf.pack=mFe;function yFe(r,e){var t=[],n=r.subReader(0);e.forEach(function(o){var c=null;if(o.dynamic){var u=r.readValue(),l=n.subReader(u.toNumber());try{c=o.decode(l)}catch(h){if(h.code===Y5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}}else try{c=o.decode(r)}catch(h){if(h.code===Y5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}c!=null&&t.push(c)});var a=e.reduce(function(o,c){var u=c.localName;return u&&(o[u]||(o[u]=0),o[u]++),o},{});e.forEach(function(o,c){var u=o.localName;if(!(!u||a[u]!==1)&&(u==="length"&&(u="_length"),t[u]==null)){var l=t[c];l instanceof Error?Object.defineProperty(t,u,{enumerable:!0,get:function(){throw l}}):t[u]=l}});for(var i=function(o){var c=t[o];c instanceof Error&&Object.defineProperty(t,o,{enumerable:!0,get:function(){throw c}})},s=0;s=0?n:"")+"]",o=n===-1||t.dynamic;return i=r.call(this,"array",s,a,o)||this,i.coder=t,i.length=n,i}return e.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],a=0;at._data.length&&V5.throwError("insufficient data length",Y5.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n}));for(var a=[],i=0;i{"use strict";d();p();var U9t=$5&&$5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($5,"__esModule",{value:!0});$5.BooleanCoder=void 0;var H9t=Ad(),j9t=function(r){U9t(e,r);function e(t){return r.call(this,"bool","bool",t,!1)||this}return e.prototype.defaultValue=function(){return!1},e.prototype.encode=function(t,n){return t.writeValue(n?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(H9t.Coder);$5.BooleanCoder=j9t});var x2e=_(Iy=>{"use strict";d();p();var bFe=Iy&&Iy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Iy,"__esModule",{value:!0});Iy.BytesCoder=Iy.DynamicBytesCoder=void 0;var vFe=wr(),z9t=Ad(),wFe=function(r){bFe(e,r);function e(t,n){return r.call(this,t,t,n,!0)||this}return e.prototype.defaultValue=function(){return"0x"},e.prototype.encode=function(t,n){n=(0,vFe.arrayify)(n);var a=t.writeValue(n.length);return a+=t.writeBytes(n),a},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(z9t.Coder);Iy.DynamicBytesCoder=wFe;var K9t=function(r){bFe(e,r);function e(t){return r.call(this,"bytes",t)||this}return e.prototype.decode=function(t){return t.coerce(this.name,(0,vFe.hexlify)(r.prototype.decode.call(this,t)))},e}(wFe);Iy.BytesCoder=K9t});var _Fe=_(Q5=>{"use strict";d();p();var G9t=Q5&&Q5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Q5,"__esModule",{value:!0});Q5.FixedBytesCoder=void 0;var xFe=wr(),V9t=Ad(),Y9t=function(r){G9t(e,r);function e(t,n){var a=this,i="bytes"+String(t);return a=r.call(this,i,i,n,!1)||this,a.size=t,a}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},e.prototype.encode=function(t,n){var a=(0,xFe.arrayify)(n);return a.length!==this.size&&this._throwError("incorrect data length",n),t.writeBytes(a)},e.prototype.decode=function(t){return t.coerce(this.name,(0,xFe.hexlify)(t.readBytes(this.size)))},e}(V9t.Coder);Q5.FixedBytesCoder=Y9t});var TFe=_(J5=>{"use strict";d();p();var $9t=J5&&J5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J5,"__esModule",{value:!0});J5.NullCoder=void 0;var Q9t=Ad(),J9t=function(r){$9t(e,r);function e(t){return r.call(this,"null","",t,!1)||this}return e.prototype.defaultValue=function(){return null},e.prototype.encode=function(t,n){return n!=null&&this._throwError("not null",n),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(Q9t.Coder);J5.NullCoder=J9t});var IFe=_(sse=>{"use strict";d();p();Object.defineProperty(sse,"__esModule",{value:!0});sse.AddressZero=void 0;sse.AddressZero="0x0000000000000000000000000000000000000000"});var EFe=_(Po=>{"use strict";d();p();Object.defineProperty(Po,"__esModule",{value:!0});Po.MaxInt256=Po.MinInt256=Po.MaxUint256=Po.WeiPerEther=Po.Two=Po.One=Po.Zero=Po.NegativeOne=void 0;var Ey=Ls(),Z9t=Ey.BigNumber.from(-1);Po.NegativeOne=Z9t;var X9t=Ey.BigNumber.from(0);Po.Zero=X9t;var eMt=Ey.BigNumber.from(1);Po.One=eMt;var tMt=Ey.BigNumber.from(2);Po.Two=tMt;var rMt=Ey.BigNumber.from("1000000000000000000");Po.WeiPerEther=rMt;var nMt=Ey.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Po.MaxUint256=nMt;var aMt=Ey.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");Po.MinInt256=aMt;var iMt=Ey.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");Po.MaxInt256=iMt});var CFe=_(ose=>{"use strict";d();p();Object.defineProperty(ose,"__esModule",{value:!0});ose.HashZero=void 0;ose.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var kFe=_(cse=>{"use strict";d();p();Object.defineProperty(cse,"__esModule",{value:!0});cse.EtherSymbol=void 0;cse.EtherSymbol="\u039E"});var ib=_(yi=>{"use strict";d();p();Object.defineProperty(yi,"__esModule",{value:!0});yi.EtherSymbol=yi.HashZero=yi.MaxInt256=yi.MinInt256=yi.MaxUint256=yi.WeiPerEther=yi.Two=yi.One=yi.Zero=yi.NegativeOne=yi.AddressZero=void 0;var sMt=IFe();Object.defineProperty(yi,"AddressZero",{enumerable:!0,get:function(){return sMt.AddressZero}});var Cy=EFe();Object.defineProperty(yi,"NegativeOne",{enumerable:!0,get:function(){return Cy.NegativeOne}});Object.defineProperty(yi,"Zero",{enumerable:!0,get:function(){return Cy.Zero}});Object.defineProperty(yi,"One",{enumerable:!0,get:function(){return Cy.One}});Object.defineProperty(yi,"Two",{enumerable:!0,get:function(){return Cy.Two}});Object.defineProperty(yi,"WeiPerEther",{enumerable:!0,get:function(){return Cy.WeiPerEther}});Object.defineProperty(yi,"MaxUint256",{enumerable:!0,get:function(){return Cy.MaxUint256}});Object.defineProperty(yi,"MinInt256",{enumerable:!0,get:function(){return Cy.MinInt256}});Object.defineProperty(yi,"MaxInt256",{enumerable:!0,get:function(){return Cy.MaxInt256}});var oMt=CFe();Object.defineProperty(yi,"HashZero",{enumerable:!0,get:function(){return oMt.HashZero}});var cMt=kFe();Object.defineProperty(yi,"EtherSymbol",{enumerable:!0,get:function(){return cMt.EtherSymbol}})});var AFe=_(Z5=>{"use strict";d();p();var uMt=Z5&&Z5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z5,"__esModule",{value:!0});Z5.NumberCoder=void 0;var lMt=Ls(),use=ib(),dMt=Ad(),pMt=function(r){uMt(e,r);function e(t,n,a){var i=this,s=(n?"int":"uint")+t*8;return i=r.call(this,s,s,a,!1)||this,i.size=t,i.signed=n,i}return e.prototype.defaultValue=function(){return 0},e.prototype.encode=function(t,n){var a=lMt.BigNumber.from(n),i=use.MaxUint256.mask(t.wordSize*8);if(this.signed){var s=i.mask(this.size*8-1);(a.gt(s)||a.lt(s.add(use.One).mul(use.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(a.lt(use.Zero)||a.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*t.wordSize)),t.writeValue(a)},e.prototype.decode=function(t){var n=t.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),t.coerce(this.name,n)},e}(dMt.Coder);Z5.NumberCoder=pMt});var PFe=_(lse=>{"use strict";d();p();Object.defineProperty(lse,"__esModule",{value:!0});lse.version=void 0;lse.version="strings/5.7.0"});var pse=_(bs=>{"use strict";d();p();Object.defineProperty(bs,"__esModule",{value:!0});bs.toUtf8CodePoints=bs.toUtf8String=bs._toUtf8String=bs._toEscapedUtf8String=bs.toUtf8Bytes=bs.Utf8ErrorFuncs=bs.Utf8ErrorReason=bs.UnicodeNormalizationForm=void 0;var SFe=wr(),hMt=Zt(),fMt=PFe(),RFe=new hMt.Logger(fMt.version),dse;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(dse=bs.UnicodeNormalizationForm||(bs.UnicodeNormalizationForm={}));var Rd;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(Rd=bs.Utf8ErrorReason||(bs.Utf8ErrorReason={}));function mMt(r,e,t,n,a){return RFe.throwArgumentError("invalid codepoint at offset "+e+"; "+r,"bytes",t)}function MFe(r,e,t,n,a){if(r===Rd.BAD_PREFIX||r===Rd.UNEXPECTED_CONTINUE){for(var i=0,s=e+1;s>6===2;s++)i++;return i}return r===Rd.OVERRUN?t.length-e-1:0}function yMt(r,e,t,n,a){return r===Rd.OVERLONG?(n.push(a),0):(n.push(65533),MFe(r,e,t,n,a))}bs.Utf8ErrorFuncs=Object.freeze({error:mMt,ignore:MFe,replace:yMt});function T2e(r,e){e==null&&(e=bs.Utf8ErrorFuncs.error),r=(0,SFe.arrayify)(r);for(var t=[],n=0;n>7===0){t.push(a);continue}var i=null,s=null;if((a&224)===192)i=1,s=127;else if((a&240)===224)i=2,s=2047;else if((a&248)===240)i=3,s=65535;else{(a&192)===128?n+=e(Rd.UNEXPECTED_CONTINUE,n-1,r,t):n+=e(Rd.BAD_PREFIX,n-1,r,t);continue}if(n-1+i>=r.length){n+=e(Rd.OVERRUN,n-1,r,t);continue}for(var o=a&(1<<8-i-1)-1,c=0;c1114111){n+=e(Rd.OUT_OF_RANGE,n-1-i,r,t,o);continue}if(o>=55296&&o<=57343){n+=e(Rd.UTF16_SURROGATE,n-1-i,r,t,o);continue}if(o<=s){n+=e(Rd.OVERLONG,n-1-i,r,t,o);continue}t.push(o)}}return t}function NFe(r,e){e===void 0&&(e=dse.current),e!=dse.current&&(RFe.checkNormalize(),r=r.normalize(e));for(var t=[],n=0;n>6|192),t.push(a&63|128);else if((a&64512)==55296){n++;var i=r.charCodeAt(n);if(n>=r.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");var s=65536+((a&1023)<<10)+(i&1023);t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)}else t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)}return(0,SFe.arrayify)(t)}bs.toUtf8Bytes=NFe;function _2e(r){var e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function gMt(r,e){return'"'+T2e(r,e).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?_2e(t):(t-=65536,_2e((t>>10&1023)+55296)+_2e((t&1023)+56320))}).join("")+'"'}bs._toEscapedUtf8String=gMt;function BFe(r){return r.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}bs._toUtf8String=BFe;function bMt(r,e){return BFe(T2e(r,e))}bs.toUtf8String=bMt;function vMt(r,e){return e===void 0&&(e=dse.current),T2e(NFe(r,e))}bs.toUtf8CodePoints=vMt});var LFe=_(X5=>{"use strict";d();p();Object.defineProperty(X5,"__esModule",{value:!0});X5.parseBytes32String=X5.formatBytes32String=void 0;var wMt=ib(),I2e=wr(),DFe=pse();function xMt(r){var e=(0,DFe.toUtf8Bytes)(r);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,I2e.hexlify)((0,I2e.concat)([e,wMt.HashZero]).slice(0,32))}X5.formatBytes32String=xMt;function _Mt(r){var e=(0,I2e.arrayify)(r);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var t=31;e[t-1]===0;)t--;return(0,DFe.toUtf8String)(e.slice(0,t))}X5.parseBytes32String=_Mt});var UFe=_(wf=>{"use strict";d();p();Object.defineProperty(wf,"__esModule",{value:!0});wf.nameprep=wf._nameprepTableC=wf._nameprepTableB2=wf._nameprepTableA1=void 0;var nJ=pse();function TMt(r){if(r.length%4!==0)throw new Error("bad data");for(var e=[],t=0;t=t&&r<=t+a.h&&(r-t)%(a.d||1)===0){if(a.e&&a.e.indexOf(r-t)!==-1)continue;return a}}return null}var IMt=OFe("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),EMt="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(r){return parseInt(r,16)}),CMt=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],kMt=E2e("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),AMt=E2e("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),PMt=E2e("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",TMt),SMt=OFe("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function RMt(r){return r.reduce(function(e,t){return t.forEach(function(n){e.push(n)}),e},[])}function qFe(r){return!!C2e(r,IMt)}wf._nameprepTableA1=qFe;function FFe(r){var e=C2e(r,CMt);if(e)return[r+e.s];var t=kMt[r];if(t)return t;var n=AMt[r];if(n)return[r+n[0]];var a=PMt[r];return a||null}wf._nameprepTableB2=FFe;function WFe(r){return!!C2e(r,SMt)}wf._nameprepTableC=WFe;function MMt(r){if(r.match(/^[a-z0-9-]*$/i)&&r.length<=59)return r.toLowerCase();var e=(0,nJ.toUtf8CodePoints)(r);e=RMt(e.map(function(n){if(EMt.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var a=FFe(n);return a||[n]})),e=(0,nJ.toUtf8CodePoints)((0,nJ._toUtf8String)(e),nJ.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(WFe(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(qFe(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var t=(0,nJ._toUtf8String)(e);if(t.substring(0,1)==="-"||t.substring(2,4)==="--"||t.substring(t.length-1)==="-")throw new Error("invalid hyphen");return t}wf.nameprep=MMt});var qs=_(rs=>{"use strict";d();p();Object.defineProperty(rs,"__esModule",{value:!0});rs.nameprep=rs.parseBytes32String=rs.formatBytes32String=rs.UnicodeNormalizationForm=rs.Utf8ErrorReason=rs.Utf8ErrorFuncs=rs.toUtf8String=rs.toUtf8CodePoints=rs.toUtf8Bytes=rs._toEscapedUtf8String=void 0;var HFe=LFe();Object.defineProperty(rs,"formatBytes32String",{enumerable:!0,get:function(){return HFe.formatBytes32String}});Object.defineProperty(rs,"parseBytes32String",{enumerable:!0,get:function(){return HFe.parseBytes32String}});var NMt=UFe();Object.defineProperty(rs,"nameprep",{enumerable:!0,get:function(){return NMt.nameprep}});var sb=pse();Object.defineProperty(rs,"_toEscapedUtf8String",{enumerable:!0,get:function(){return sb._toEscapedUtf8String}});Object.defineProperty(rs,"toUtf8Bytes",{enumerable:!0,get:function(){return sb.toUtf8Bytes}});Object.defineProperty(rs,"toUtf8CodePoints",{enumerable:!0,get:function(){return sb.toUtf8CodePoints}});Object.defineProperty(rs,"toUtf8String",{enumerable:!0,get:function(){return sb.toUtf8String}});Object.defineProperty(rs,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return sb.UnicodeNormalizationForm}});Object.defineProperty(rs,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return sb.Utf8ErrorFuncs}});Object.defineProperty(rs,"Utf8ErrorReason",{enumerable:!0,get:function(){return sb.Utf8ErrorReason}})});var zFe=_(e3=>{"use strict";d();p();var BMt=e3&&e3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(e3,"__esModule",{value:!0});e3.StringCoder=void 0;var jFe=qs(),DMt=x2e(),LMt=function(r){BMt(e,r);function e(t){return r.call(this,"string",t)||this}return e.prototype.defaultValue=function(){return""},e.prototype.encode=function(t,n){return r.prototype.encode.call(this,t,(0,jFe.toUtf8Bytes)(n))},e.prototype.decode=function(t){return(0,jFe.toUtf8String)(r.prototype.decode.call(this,t))},e}(DMt.DynamicBytesCoder);e3.StringCoder=LMt});var GFe=_(t3=>{"use strict";d();p();var OMt=t3&&t3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(t3,"__esModule",{value:!0});t3.TupleCoder=void 0;var qMt=Ad(),KFe=w2e(),FMt=function(r){OMt(e,r);function e(t,n){var a=this,i=!1,s=[];t.forEach(function(c){c.dynamic&&(i=!0),s.push(c.type)});var o="tuple("+s.join(",")+")";return a=r.call(this,"tuple",o,n,i)||this,a.coders=t,a}return e.prototype.defaultValue=function(){var t=[];this.coders.forEach(function(a){t.push(a.defaultValue())});var n=this.coders.reduce(function(a,i){var s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach(function(a,i){var s=a.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)},e.prototype.encode=function(t,n){return(0,KFe.pack)(t,this.coders,n)},e.prototype.decode=function(t){return t.coerce(this.name,(0,KFe.unpack)(t,this.coders))},e}(qMt.Coder);t3.TupleCoder=FMt});var A2e=_(r3=>{"use strict";d();p();Object.defineProperty(r3,"__esModule",{value:!0});r3.defaultAbiCoder=r3.AbiCoder=void 0;var WMt=wr(),UMt=Aa(),YFe=Zt(),HMt=U5(),hse=new YFe.Logger(HMt.version),VFe=Ad(),jMt=hFe(),zMt=w2e(),KMt=gFe(),GMt=x2e(),VMt=_Fe(),YMt=TFe(),$Mt=AFe(),QMt=zFe(),fse=GFe(),k2e=tse(),JMt=new RegExp(/^bytes([0-9]*)$/),ZMt=new RegExp(/^(u?int)([0-9]*)$/),$Fe=function(){function r(e){(0,UMt.defineReadOnly)(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new jMt.AddressCoder(e.name);case"bool":return new KMt.BooleanCoder(e.name);case"string":return new QMt.StringCoder(e.name);case"bytes":return new GMt.BytesCoder(e.name);case"array":return new zMt.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new fse.TupleCoder((e.components||[]).map(function(i){return t._getCoder(i)}),e.name);case"":return new YMt.NullCoder(e.name)}var n=e.type.match(ZMt);if(n){var a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&hse.throwArgumentError("invalid "+n[1]+" bit length","param",e),new $Mt.NumberCoder(a/8,n[1]==="int",e.name)}if(n=e.type.match(JMt),n){var a=parseInt(n[1]);return(a===0||a>32)&&hse.throwArgumentError("invalid bytes length","param",e),new VMt.FixedBytesCoder(a,e.name)}return hse.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e,t){return new VFe.Reader(e,this._getWordSize(),this.coerceFunc,t)},r.prototype._getWriter=function(){return new VFe.Writer(this._getWordSize())},r.prototype.getDefaultValue=function(e){var t=this,n=e.map(function(i){return t._getCoder(k2e.ParamType.from(i))}),a=new fse.TupleCoder(n,"_");return a.defaultValue()},r.prototype.encode=function(e,t){var n=this;e.length!==t.length&&hse.throwError("types/values length mismatch",YFe.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var a=e.map(function(o){return n._getCoder(k2e.ParamType.from(o))}),i=new fse.TupleCoder(a,"_"),s=this._getWriter();return i.encode(s,t),s.data},r.prototype.decode=function(e,t,n){var a=this,i=e.map(function(o){return a._getCoder(k2e.ParamType.from(o))}),s=new fse.TupleCoder(i,"_");return s.decode(this._getReader((0,WMt.arrayify)(t),n))},r}();r3.AbiCoder=$Fe;r3.defaultAbiCoder=new $Fe});var P2e=_(mse=>{"use strict";d();p();Object.defineProperty(mse,"__esModule",{value:!0});mse.id=void 0;var XMt=jl(),eNt=qs();function tNt(r){return(0,XMt.keccak256)((0,eNt.toUtf8Bytes)(r))}mse.id=tNt});var S2e=_(yse=>{"use strict";d();p();Object.defineProperty(yse,"__esModule",{value:!0});yse.version=void 0;yse.version="hash/5.7.0"});var JFe=_(n3=>{"use strict";d();p();Object.defineProperty(n3,"__esModule",{value:!0});n3.encode=n3.decode=void 0;var QFe=wr();function rNt(r){r=atob(r);for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(a3,"__esModule",{value:!0});a3.encode=a3.decode=void 0;var ZFe=JFe();Object.defineProperty(a3,"decode",{enumerable:!0,get:function(){return ZFe.decode}});Object.defineProperty(a3,"encode",{enumerable:!0,get:function(){return ZFe.encode}})});var M2e=_(So=>{"use strict";d();p();Object.defineProperty(So,"__esModule",{value:!0});So.read_emoji_trie=So.read_zero_terminated_array=So.read_mapped_map=So.read_member_array=So.signed=So.read_compressed_payload=So.read_payload=So.decode_arithmetic=void 0;function eWe(r,e){e==null&&(e=1);var t=[],n=t.forEach,a=function(i,s){n.call(i,function(o){s>0&&Array.isArray(o)?a(o,s-1):t.push(o)})};return a(r,e),t}function aNt(r){for(var e={},t=0;t>--u&1}for(var f=31,m=Math.pow(2,f),y=m>>>1,I=y>>1,C=m-1,R=0,s=0;s1;){var G=K+H>>>1;V>>1|h(),Q=Q<<1^y,q=(q^y)<<1|y|1;F=Q,W=1+q-Q}var T=n-4;return L.map(function(M){switch(M-T){case 3:return T+65792+(r[c++]<<16|r[c++]<<8|r[c++]);case 2:return T+256+(r[c++]<<8|r[c++]);case 1:return T+r[c++];default:return M-1}})}So.decode_arithmetic=tWe;function rWe(r){var e=0;return function(){return r[e++]}}So.read_payload=rWe;function iNt(r){return rWe(tWe(r))}So.read_compressed_payload=iNt;function nWe(r){return r&1?~r>>1:r>>1}So.signed=nWe;function sNt(r,e){for(var t=Array(r),n=0;n>=1;var c=i==1,u=i==2;return{branches:n,valid:s,fe0f:o,save:c,check:u}}}So.read_emoji_trie=dNt});var sWe=_(gse=>{"use strict";d();p();Object.defineProperty(gse,"__esModule",{value:!0});gse.getData=void 0;var pNt=aJ(),hNt=M2e();function fNt(){return(0,hNt.read_compressed_payload)((0,pNt.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}gse.getData=fNt});var lWe=_(i3=>{"use strict";d();p();Object.defineProperty(i3,"__esModule",{value:!0});i3.ens_normalize=i3.ens_normalize_post_check=void 0;var mNt=qs(),yNt=sWe(),bse=(0,yNt.getData)(),vse=M2e(),gNt=new Set((0,vse.read_member_array)(bse)),bNt=new Set((0,vse.read_member_array)(bse)),vNt=(0,vse.read_mapped_map)(bse),wNt=(0,vse.read_emoji_trie)(bse),oWe=45,cWe=95;function uWe(r){return(0,mNt.toUtf8CodePoints)(r)}function xNt(r){return r.filter(function(e){return e!=65039})}function N2e(r){for(var e=0,t=r.split(".");e=0;i--)if(a[i]!==cWe)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every(function(s){return s<128})&&a[2]===oWe&&a[3]===oWe)throw new Error("invalid label extension")}catch(s){throw new Error('Invalid label "'+n+'": '+s.message)}}return r}i3.ens_normalize_post_check=N2e;function _Nt(r){return N2e(TNt(r,xNt))}i3.ens_normalize=_Nt;function TNt(r,e){for(var t=uWe(r).reverse(),n=[];t.length;){var a=ENt(t);if(a){n.push.apply(n,e(a));continue}var i=t.pop();if(gNt.has(i)){n.push(i);continue}if(!bNt.has(i)){var s=vNt[i];if(s){n.push.apply(n,s);continue}throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase())}}return N2e(INt(String.fromCodePoint.apply(String,n)))}function INt(r){return r.normalize("NFC")}function ENt(r,e){var t,n=wNt,a,i,s=[],o=r.length;e&&(e.length=0);for(var c=function(){var l=r[--o];if(n=(t=n.branches.find(function(h){return h.set.has(l)}))===null||t===void 0?void 0:t.node,!n)return"break";if(n.save)i=l;else if(n.check&&l===i)return"break";s.push(l),n.fe0f&&(s.push(65039),o>0&&r[o-1]==65039&&o--),n.valid&&(a=s.slice(),n.valid==2&&a.splice(1,1),e&&e.push.apply(e,r.slice(o).reverse()),r.length=o)};o;){var u=c();if(u==="break")break}return a}});var B2e=_(xf=>{"use strict";d();p();Object.defineProperty(xf,"__esModule",{value:!0});xf.dnsEncode=xf.namehash=xf.isValidName=xf.ensNormalize=void 0;var wse=wr(),hWe=qs(),dWe=jl(),CNt=Zt(),kNt=S2e(),ANt=new CNt.Logger(kNt.version),PNt=lWe(),fWe=new Uint8Array(32);fWe.fill(0);function pWe(r){if(r.length===0)throw new Error("invalid ENS name; empty component");return r}function xse(r){var e=(0,hWe.toUtf8Bytes)((0,PNt.ens_normalize)(r)),t=[];if(r.length===0)return t;for(var n=0,a=0;a=e.length)throw new Error("invalid ENS name; empty component");return t.push(pWe(e.slice(n))),t}function SNt(r){return xse(r).map(function(e){return(0,hWe.toUtf8String)(e)}).join(".")}xf.ensNormalize=SNt;function RNt(r){try{return xse(r).length!==0}catch{}return!1}xf.isValidName=RNt;function MNt(r){typeof r!="string"&&ANt.throwArgumentError("invalid ENS name; not a string","name",r);for(var e=fWe,t=xse(r);t.length;)e=(0,dWe.keccak256)((0,wse.concat)([e,(0,dWe.keccak256)(t.pop())]));return(0,wse.hexlify)(e)}xf.namehash=MNt;function NNt(r){return(0,wse.hexlify)((0,wse.concat)(xse(r).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}xf.dnsEncode=NNt});var mWe=_(ob=>{"use strict";d();p();Object.defineProperty(ob,"__esModule",{value:!0});ob.hashMessage=ob.messagePrefix=void 0;var BNt=wr(),DNt=jl(),D2e=qs();ob.messagePrefix=`Ethereum Signed Message: -`;function LNt(r){return typeof r=="string"&&(r=(0,D2e.toUtf8Bytes)(r)),(0,DNt.keccak256)((0,BNt.concat)([(0,D2e.toUtf8Bytes)(ob.messagePrefix),(0,D2e.toUtf8Bytes)(String(r.length)),r]))}ob.hashMessage=LNt});var IWe=_(ky=>{"use strict";d();p();var ONt=ky&&ky.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},qNt=ky&&ky.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]256||e[2]&&e[2]!==String(n))&&Ui.throwArgumentError("invalid numeric width","type",r);var a=HNt.mask(t?n-1:n),i=t?a.add(TWe).mul(UNt):_We;return function(o){var c=ub.BigNumber.from(o);return(c.lt(i)||c.gt(a))&&Ui.throwArgumentError("value out-of-bounds for "+r,"value",o),(0,dc.hexZeroPad)(c.toTwos(256).toHexString(),32)}}}{var e=r.match(/^bytes(\d+)$/);if(e){var s=parseInt(e[1]);return(s===0||s>32||e[1]!==String(s))&&Ui.throwArgumentError("invalid bytes width","type",r),function(c){var u=(0,dc.arrayify)(c);return u.length!==s&&Ui.throwArgumentError("invalid length for "+r,"value",c),jNt(c)}}}switch(r){case"address":return function(o){return(0,dc.hexZeroPad)((0,vWe.getAddress)(o),32)};case"bool":return function(o){return o?zNt:KNt};case"bytes":return function(o){return(0,s3.keccak256)(o)};case"string":return function(o){return(0,wWe.id)(o)}}return null}function bWe(r,e){return r+"("+e.map(function(t){var n=t.name,a=t.type;return a+" "+n}).join(",")+")"}var VNt=function(){function r(e){(0,cb.defineReadOnly)(this,"types",Object.freeze((0,cb.deepCopy)(e))),(0,cb.defineReadOnly)(this,"_encoderCache",{}),(0,cb.defineReadOnly)(this,"_types",{});var t={},n={},a={};Object.keys(e).forEach(function(h){t[h]={},n[h]=[],a[h]={}});var i=function(h){var f={};e[h].forEach(function(m){f[m.name]&&Ui.throwArgumentError("duplicate variable name "+JSON.stringify(m.name)+" in "+JSON.stringify(h),"types",e),f[m.name]=!0;var y=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];y===h&&Ui.throwArgumentError("circular type reference to "+JSON.stringify(y),"types",e);var I=O2e(y);I||(n[y]||Ui.throwArgumentError("unknown type "+JSON.stringify(y),"types",e),n[y].push(h),t[h][y]=!0)})};for(var s in e)i(s);var o=Object.keys(n).filter(function(h){return n[h].length===0});o.length===0?Ui.throwArgumentError("missing primary type","types",e):o.length>1&&Ui.throwArgumentError("ambiguous primary types or unused types: "+o.map(function(h){return JSON.stringify(h)}).join(", "),"types",e),(0,cb.defineReadOnly)(this,"primaryType",o[0]);function c(h,f){f[h]&&Ui.throwArgumentError("circular type reference to "+JSON.stringify(h),"types",e),f[h]=!0,Object.keys(t[h]).forEach(function(m){!n[m]||(c(m,f),Object.keys(f).forEach(function(y){a[y][m]=!0}))}),delete f[h]}c(this.primaryType,{});for(var u in a){var l=Object.keys(a[u]);l.sort(),this._types[u]=bWe(u,e[u])+l.map(function(h){return bWe(h,e[h])}).join("")}}return r.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},r.prototype._getEncoder=function(e){var t=this;{var n=O2e(e);if(n)return n}var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],s=this.getEncoder(i),o=parseInt(a[3]);return function(l){o>=0&&l.length!==o&&Ui.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);var h=l.map(s);return t._types[i]&&(h=h.map(s3.keccak256)),(0,s3.keccak256)((0,dc.hexConcat)(h))}}var c=this.types[e];if(c){var u=(0,wWe.id)(this._types[e]);return function(l){var h=c.map(function(f){var m=f.name,y=f.type,I=t.getEncoder(y)(l[m]);return t._types[y]?(0,s3.keccak256)(I):I});return h.unshift(u),(0,dc.hexConcat)(h)}}return Ui.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.encodeType=function(e){var t=this._types[e];return t||Ui.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},r.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},r.prototype.hashStruct=function(e,t){return(0,s3.keccak256)(this.encodeData(e,t))},r.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},r.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},r.prototype._visit=function(e,t,n){var a=this;{var i=O2e(e);if(i)return n(e,t)}var s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var o=s[1],c=parseInt(s[3]);return c>=0&&t.length!==c&&Ui.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(l){return a._visit(o,l,n)})}var u=this.types[e];return u?u.reduce(function(l,h){var f=h.name,m=h.type;return l[f]=a._visit(m,t[f],n),l},{}):Ui.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},r.from=function(e){return new r(e)},r.getPrimaryType=function(e){return r.from(e).primaryType},r.hashStruct=function(e,t,n){return r.from(t).hashStruct(e,n)},r.hashDomain=function(e){var t=[];for(var n in e){var a=yWe[n];a||Ui.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:a})}return t.sort(function(i,s){return L2e.indexOf(i.name)-L2e.indexOf(s.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:t},e)},r.encode=function(e,t,n){return(0,dc.hexConcat)(["0x1901",r.hashDomain(e),r.from(t).hash(n)])},r.hash=function(e,t,n){return(0,s3.keccak256)(r.encode(e,t,n))},r.resolveNames=function(e,t,n,a){return ONt(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f;return qNt(this,function(m){switch(m.label){case 0:e=(0,cb.shallowCopy)(e),i={},e.verifyingContract&&!(0,dc.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x"),s=r.from(t),s.visit(n,function(y,I){return y==="address"&&!(0,dc.isHexString)(I,20)&&(i[I]="0x"),I}),o=[];for(c in i)o.push(c);u=0,m.label=1;case 1:return u{"use strict";d();p();Object.defineProperty(Ro,"__esModule",{value:!0});Ro._TypedDataEncoder=Ro.hashMessage=Ro.messagePrefix=Ro.ensNormalize=Ro.isValidName=Ro.namehash=Ro.dnsEncode=Ro.id=void 0;var YNt=P2e();Object.defineProperty(Ro,"id",{enumerable:!0,get:function(){return YNt.id}});var q2e=B2e();Object.defineProperty(Ro,"dnsEncode",{enumerable:!0,get:function(){return q2e.dnsEncode}});Object.defineProperty(Ro,"isValidName",{enumerable:!0,get:function(){return q2e.isValidName}});Object.defineProperty(Ro,"namehash",{enumerable:!0,get:function(){return q2e.namehash}});var EWe=mWe();Object.defineProperty(Ro,"hashMessage",{enumerable:!0,get:function(){return EWe.hashMessage}});Object.defineProperty(Ro,"messagePrefix",{enumerable:!0,get:function(){return EWe.messagePrefix}});var $Nt=B2e();Object.defineProperty(Ro,"ensNormalize",{enumerable:!0,get:function(){return $Nt.ensNormalize}});var QNt=IWe();Object.defineProperty(Ro,"_TypedDataEncoder",{enumerable:!0,get:function(){return QNt.TypedDataEncoder}})});var MWe=_(Vc=>{"use strict";d();p();var Ise=Vc&&Vc.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Interface=Vc.Indexed=Vc.ErrorDescription=Vc.TransactionDescription=Vc.LogDescription=Vc.checkResultErrors=void 0;var JNt=Sd(),CWe=Ls(),gi=wr(),_se=lb(),kWe=jl(),pc=Aa(),ZNt=A2e(),XNt=Ad();Object.defineProperty(Vc,"checkResultErrors",{enumerable:!0,get:function(){return XNt.checkResultErrors}});var $m=tse(),Tse=Zt(),eBt=U5(),Hi=new Tse.Logger(eBt.version),PWe=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.LogDescription=PWe;var SWe=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.TransactionDescription=SWe;var RWe=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(pc.Description);Vc.ErrorDescription=RWe;var F2e=function(r){Ise(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.isIndexed=function(t){return!!(t&&t._isIndexed)},e}(pc.Description);Vc.Indexed=F2e;var tBt={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function AWe(r,e){var t=new Error("deferred error during ABI decoding triggered accessing "+r);return t.error=e,t}var rBt=function(){function r(e){var t=this.constructor,n=this,a=[];typeof e=="string"?a=JSON.parse(e):a=e,(0,pc.defineReadOnly)(this,"fragments",a.map(function(i){return $m.Fragment.from(i)}).filter(function(i){return i!=null})),(0,pc.defineReadOnly)(this,"_abiCoder",(0,pc.getStatic)(t,"getAbiCoder")()),(0,pc.defineReadOnly)(this,"functions",{}),(0,pc.defineReadOnly)(this,"errors",{}),(0,pc.defineReadOnly)(this,"events",{}),(0,pc.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(i){var s=null;switch(i.type){case"constructor":if(n.deploy){Hi.warn("duplicate definition - constructor");return}(0,pc.defineReadOnly)(n,"deploy",i);return;case"function":s=n.functions;break;case"event":s=n.events;break;case"error":s=n.errors;break;default:return}var o=i.format();if(s[o]){Hi.warn("duplicate definition - "+o);return}s[o]=i}),this.deploy||(0,pc.defineReadOnly)(this,"deploy",$m.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,pc.defineReadOnly)(this,"_isInterface",!0)}return r.prototype.format=function(e){e||(e=$m.FormatTypes.full),e===$m.FormatTypes.sighash&&Hi.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map(function(n){return n.format(e)});return e===$m.FormatTypes.json?JSON.stringify(t.map(function(n){return JSON.parse(n)})):t},r.getAbiCoder=function(){return ZNt.defaultAbiCoder},r.getAddress=function(e){return(0,JNt.getAddress)(e)},r.getSighash=function(e){return(0,gi.hexDataSlice)((0,_se.id)(e.format()),0,4)},r.getEventTopic=function(e){return(0,_se.id)(e.format())},r.prototype.getFunction=function(e){if((0,gi.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];Hi.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.functions).filter(function(s){return s.split("(")[0]===n});return a.length===0?Hi.throwArgumentError("no matching function","name",n):a.length>1&&Hi.throwArgumentError("multiple matching functions","name",n),this.functions[a[0]]}var i=this.functions[$m.FunctionFragment.fromString(e).format()];return i||Hi.throwArgumentError("no matching function","signature",e),i},r.prototype.getEvent=function(e){if((0,gi.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];Hi.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.events).filter(function(o){return o.split("(")[0]===a});return i.length===0?Hi.throwArgumentError("no matching event","name",a):i.length>1&&Hi.throwArgumentError("multiple matching events","name",a),this.events[i[0]]}var s=this.events[$m.EventFragment.fromString(e).format()];return s||Hi.throwArgumentError("no matching event","signature",e),s},r.prototype.getError=function(e){if((0,gi.isHexString)(e)){var t=(0,pc.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var a=this.errors[n];if(e===t(a))return this.errors[n]}Hi.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var i=e.trim(),s=Object.keys(this.errors).filter(function(c){return c.split("(")[0]===i});return s.length===0?Hi.throwArgumentError("no matching error","name",i):s.length>1&&Hi.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}var o=this.errors[$m.FunctionFragment.fromString(e).format()];return o||Hi.throwArgumentError("no matching error","signature",e),o},r.prototype.getSighash=function(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch{throw t}}return(0,pc.getStatic)(this.constructor,"getSighash")(e)},r.prototype.getEventTopic=function(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,pc.getStatic)(this.constructor,"getEventTopic")(e)},r.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},r.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},r.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},r.prototype.decodeErrorResult=function(e,t){typeof e=="string"&&(e=this.getError(e));var n=(0,gi.arrayify)(t);return(0,gi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Hi.throwArgumentError("data signature does not match error "+e.name+".","data",(0,gi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeErrorResult=function(e,t){return typeof e=="string"&&(e=this.getError(e)),(0,gi.hexlify)((0,gi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionData=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,gi.arrayify)(t);return(0,gi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Hi.throwArgumentError("data signature does not match function "+e.name+".","data",(0,gi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeFunctionData=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,gi.hexlify)((0,gi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionResult=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,gi.arrayify)(t),a=null,i="",s=null,o=null,c=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{var u=(0,gi.hexlify)(n.slice(0,4)),l=tBt[u];if(l)s=this._abiCoder.decode(l.inputs,n.slice(4)),o=l.name,c=l.signature,l.reason&&(a=s[0]),o==="Error"?i="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(s[0]):o==="Panic"&&(i="; VM Exception while processing transaction: reverted with panic code "+s[0]);else try{var h=this.getError(u);s=this._abiCoder.decode(h.inputs,n.slice(4)),o=h.name,c=h.format()}catch{}break}}return Hi.throwError("call revert exception"+i,Tse.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,gi.hexlify)(t),errorArgs:s,errorName:o,errorSignature:c,reason:a})},r.prototype.encodeFunctionResult=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,gi.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},r.prototype.encodeFilterTopics=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e)),t.length>e.inputs.length&&Hi.throwError("too many arguments for "+e.format(),Tse.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var i=function(s,o){return s.type==="string"?(0,_se.id)(o):s.type==="bytes"?(0,kWe.keccak256)((0,gi.hexlify)(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=CWe.BigNumber.from(o).toHexString()),s.type==="address"&&n._abiCoder.encode(["address"],[o]),(0,gi.hexZeroPad)((0,gi.hexlify)(o),32))};for(t.forEach(function(s,o){var c=e.inputs[o];if(!c.indexed){s!=null&&Hi.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,s);return}s==null?a.push(null):c.baseType==="array"||c.baseType==="tuple"?Hi.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,s):Array.isArray(s)?a.push(s.map(function(u){return i(c,u)})):a.push(i(c,s))});a.length&&a[a.length-1]===null;)a.pop();return a},r.prototype.encodeEventLog=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e));var a=[],i=[],s=[];return e.anonymous||a.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Hi.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(o,c){var u=t[c];if(o.indexed)if(o.type==="string")a.push((0,_se.id)(u));else if(o.type==="bytes")a.push((0,kWe.keccak256)(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");a.push(n._abiCoder.encode([o.type],[u]))}else i.push(o),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:a}},r.prototype.decodeEventLog=function(e,t,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){var a=this.getEventTopic(e);(!(0,gi.isHexString)(n[0],32)||n[0].toLowerCase()!==a)&&Hi.throwError("fragment/topic mismatch",Tse.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],o=[];e.inputs.forEach(function(I,C){I.indexed?I.type==="string"||I.type==="bytes"||I.baseType==="tuple"||I.baseType==="array"?(i.push($m.ParamType.fromObject({type:"bytes32",name:I.name})),o.push(!0)):(i.push(I),o.push(!1)):(s.push(I),o.push(!1))});var c=n!=null?this._abiCoder.decode(i,(0,gi.concat)(n)):null,u=this._abiCoder.decode(s,t,!0),l=[],h=0,f=0;e.inputs.forEach(function(I,C){if(I.indexed)if(c==null)l[C]=new F2e({_isIndexed:!0,hash:null});else if(o[C])l[C]=new F2e({_isIndexed:!0,hash:c[f++]});else try{l[C]=c[f++]}catch(L){l[C]=L}else try{l[C]=u[h++]}catch(L){l[C]=L}if(I.name&&l[I.name]==null){var R=l[C];R instanceof Error?Object.defineProperty(l,I.name,{enumerable:!0,get:function(){throw AWe("property "+JSON.stringify(I.name),R)}}):l[I.name]=R}});for(var m=function(I){var C=l[I];C instanceof Error&&Object.defineProperty(l,I,{enumerable:!0,get:function(){throw AWe("index "+I,C)}})},y=0;y{"use strict";d();p();Object.defineProperty(Pa,"__esModule",{value:!0});Pa.TransactionDescription=Pa.LogDescription=Pa.checkResultErrors=Pa.Indexed=Pa.Interface=Pa.defaultAbiCoder=Pa.AbiCoder=Pa.FormatTypes=Pa.ParamType=Pa.FunctionFragment=Pa.Fragment=Pa.EventFragment=Pa.ErrorFragment=Pa.ConstructorFragment=void 0;var db=tse();Object.defineProperty(Pa,"ConstructorFragment",{enumerable:!0,get:function(){return db.ConstructorFragment}});Object.defineProperty(Pa,"ErrorFragment",{enumerable:!0,get:function(){return db.ErrorFragment}});Object.defineProperty(Pa,"EventFragment",{enumerable:!0,get:function(){return db.EventFragment}});Object.defineProperty(Pa,"FormatTypes",{enumerable:!0,get:function(){return db.FormatTypes}});Object.defineProperty(Pa,"Fragment",{enumerable:!0,get:function(){return db.Fragment}});Object.defineProperty(Pa,"FunctionFragment",{enumerable:!0,get:function(){return db.FunctionFragment}});Object.defineProperty(Pa,"ParamType",{enumerable:!0,get:function(){return db.ParamType}});var NWe=A2e();Object.defineProperty(Pa,"AbiCoder",{enumerable:!0,get:function(){return NWe.AbiCoder}});Object.defineProperty(Pa,"defaultAbiCoder",{enumerable:!0,get:function(){return NWe.defaultAbiCoder}});var iJ=MWe();Object.defineProperty(Pa,"checkResultErrors",{enumerable:!0,get:function(){return iJ.checkResultErrors}});Object.defineProperty(Pa,"Indexed",{enumerable:!0,get:function(){return iJ.Indexed}});Object.defineProperty(Pa,"Interface",{enumerable:!0,get:function(){return iJ.Interface}});Object.defineProperty(Pa,"LogDescription",{enumerable:!0,get:function(){return iJ.LogDescription}});Object.defineProperty(Pa,"TransactionDescription",{enumerable:!0,get:function(){return iJ.TransactionDescription}})});var BWe=_(Ese=>{"use strict";d();p();Object.defineProperty(Ese,"__esModule",{value:!0});Ese.version=void 0;Ese.version="abstract-provider/5.7.0"});var o3=_(Mo=>{"use strict";d();p();var kse=Mo&&Mo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),nBt=Mo&&Mo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},aBt=Mo&&Mo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Pse,"__esModule",{value:!0});Pse.version=void 0;Pse.version="abstract-signer/5.7.0"});var oJ=_(Nd=>{"use strict";d();p();var pBt=Nd&&Nd.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),th=Nd&&Nd.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},rh=Nd&&Nd.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0)throw c;return Md.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Qm.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:c,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(c){return c[1]!==0&&c[0]!==c[1]&&Md.throwArgumentError("chainId address mismatch","transaction",e),c[0]}),[4,(0,Ay.resolveProperties)(t)];case 6:return[2,o.sent()]}})})},r.prototype._checkProvider=function(e){this.provider||Md.throwError("missing provider",Qm.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},r.isSigner=function(e){return!!(e&&e._isSigner)},r}();Nd.Signer=LWe;var yBt=function(r){pBt(e,r);function e(t,n){var a=r.call(this)||this;return(0,Ay.defineReadOnly)(a,"address",t),(0,Ay.defineReadOnly)(a,"provider",n||null),a}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,n){return Promise.resolve().then(function(){Md.throwError(t,Qm.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(LWe);Nd.VoidSigner=yBt});var OWe=_((cEn,gBt)=>{gBt.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var co=_((qWe,H2e)=>{d();p();(function(r,e){"use strict";function t(q,T){if(!q)throw new Error(T||"Assertion failed")}function n(q,T){q.super_=T;var M=function(){};M.prototype=T.prototype,q.prototype=new M,q.prototype.constructor=q}function a(q,T,M){if(a.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((T==="le"||T==="be")&&(M=T,T=10),this._init(q||0,T||10,M||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=lc().Buffer}catch{}a.isBN=function(T){return T instanceof a?!0:T!==null&&typeof T=="object"&&T.constructor.wordSize===a.wordSize&&Array.isArray(T.words)},a.max=function(T,M){return T.cmp(M)>0?T:M},a.min=function(T,M){return T.cmp(M)<0?T:M},a.prototype._init=function(T,M,A){if(typeof T=="number")return this._initNumber(T,M,A);if(typeof T=="object")return this._initArray(T,M,A);M==="hex"&&(M=16),t(M===(M|0)&&M>=2&&M<=36),T=T.toString().replace(/\s+/g,"");var v=0;T[0]==="-"&&(v++,this.negative=1),v=0;v-=3)O=T[v]|T[v-1]<<8|T[v-2]<<16,this.words[k]|=O<>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);else if(A==="le")for(v=0,k=0;v>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);return this.strip()};function s(q,T){var M=q.charCodeAt(T);return M>=65&&M<=70?M-55:M>=97&&M<=102?M-87:M-48&15}function o(q,T,M){var A=s(q,M);return M-1>=T&&(A|=s(q,M-1)<<4),A}a.prototype._parseHex=function(T,M,A){this.length=Math.ceil((T.length-M)/6),this.words=new Array(this.length);for(var v=0;v=M;v-=2)D=o(T,M,v)<=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8;else{var B=T.length-M;for(v=B%2===0?M+1:M;v=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8}this.strip()};function c(q,T,M,A){for(var v=0,k=Math.min(q.length,M),O=T;O=49?v+=D-49+10:D>=17?v+=D-17+10:v+=D}return v}a.prototype._parseBase=function(T,M,A){this.words=[0],this.length=1;for(var v=0,k=1;k<=67108863;k*=M)v++;v--,k=k/M|0;for(var O=T.length-A,D=O%v,B=Math.min(O,O-D)+A,x=0,N=A;N1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var 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"],l=[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,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(T,M){T=T||10,M=M|0||1;var A;if(T===16||T==="hex"){A="";for(var v=0,k=0,O=0;O>>24-v&16777215,k!==0||O!==this.length-1?A=u[6-B.length]+B+A:A=B+A,v+=2,v>=26&&(v-=26,O--)}for(k!==0&&(A=k.toString(16)+A);A.length%M!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(T===(T|0)&&T>=2&&T<=36){var x=l[T],N=h[T];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var E=U.modn(N).toString(T);U=U.idivn(N),U.isZero()?A=E+A:A=u[x-E.length]+E+A}for(this.isZero()&&(A="0"+A);A.length%M!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=this.words[1]*67108864:this.length===3&&this.words[2]===1?T+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(T,M){return t(typeof i<"u"),this.toArrayLike(i,T,M)},a.prototype.toArray=function(T,M){return this.toArrayLike(Array,T,M)},a.prototype.toArrayLike=function(T,M,A){var v=this.byteLength(),k=A||Math.max(1,v);t(v<=k,"byte array longer than desired length"),t(k>0,"Requested array length <= 0"),this.strip();var O=M==="le",D=new T(k),B,x,N=this.clone();if(O){for(x=0;!N.isZero();x++)B=N.andln(255),N.iushrn(8),D[x]=B;for(;x=4096&&(A+=13,M>>>=13),M>=64&&(A+=7,M>>>=7),M>=8&&(A+=4,M>>>=4),M>=2&&(A+=2,M>>>=2),A+M},a.prototype._zeroBits=function(T){if(T===0)return 26;var M=T,A=0;return(M&8191)===0&&(A+=13,M>>>=13),(M&127)===0&&(A+=7,M>>>=7),(M&15)===0&&(A+=4,M>>>=4),(M&3)===0&&(A+=2,M>>>=2),(M&1)===0&&A++,A},a.prototype.bitLength=function(){var T=this.words[this.length-1],M=this._countBits(T);return(this.length-1)*26+M};function f(q){for(var T=new Array(q.bitLength()),M=0;M>>v}return T}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,M=0;MT.length?this.clone().ior(T):T.clone().ior(this)},a.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},a.prototype.iuand=function(T){var M;this.length>T.length?M=T:M=this;for(var A=0;AT.length?this.clone().iand(T):T.clone().iand(this)},a.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},a.prototype.iuxor=function(T){var M,A;this.length>T.length?(M=this,A=T):(M=T,A=this);for(var v=0;vT.length?this.clone().ixor(T):T.clone().ixor(this)},a.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},a.prototype.inotn=function(T){t(typeof T=="number"&&T>=0);var M=Math.ceil(T/26)|0,A=T%26;this._expand(M),A>0&&M--;for(var v=0;v0&&(this.words[v]=~this.words[v]&67108863>>26-A),this.strip()},a.prototype.notn=function(T){return this.clone().inotn(T)},a.prototype.setn=function(T,M){t(typeof T=="number"&&T>=0);var A=T/26|0,v=T%26;return this._expand(A+1),M?this.words[A]=this.words[A]|1<T.length?(A=this,v=T):(A=T,v=this);for(var k=0,O=0;O>>26;for(;k!==0&&O>>26;if(this.length=A.length,k!==0)this.words[this.length]=k,this.length++;else if(A!==this)for(;OT.length?this.clone().iadd(T):T.clone().iadd(this)},a.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var M=this.iadd(T);return T.negative=1,M._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var A=this.cmp(T);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,k;A>0?(v=this,k=T):(v=T,k=this);for(var O=0,D=0;D>26,this.words[D]=M&67108863;for(;O!==0&&D>26,this.words[D]=M&67108863;if(O===0&&D>>26,U=B&67108863,E=Math.min(x,T.length-1),z=Math.max(0,x-q.length+1);z<=E;z++){var ee=x-z|0;v=q.words[ee]|0,k=T.words[z]|0,O=v*k+U,N+=O/67108864|0,U=O&67108863}M.words[x]=U|0,B=N|0}return B!==0?M.words[x]=B|0:M.length--,M.strip()}var y=function(T,M,A){var v=T.words,k=M.words,O=A.words,D=0,B,x,N,U=v[0]|0,E=U&8191,z=U>>>13,ee=v[1]|0,j=ee&8191,X=ee>>>13,ie=v[2]|0,ue=ie&8191,he=ie>>>13,ke=v[3]|0,ge=ke&8191,me=ke>>>13,Ke=v[4]|0,ve=Ke&8191,Ae=Ke>>>13,so=v[5]|0,It=so&8191,bt=so>>>13,ai=v[6]|0,xt=ai&8191,st=ai>>>13,ii=v[7]|0,Nt=ii&8191,dt=ii>>>13,oo=v[8]|0,jt=oo&8191,Bt=oo>>>13,sc=v[9]|0,ot=sc&8191,pt=sc>>>13,Dc=k[0]|0,Et=Dc&8191,Ct=Dc>>>13,Lc=k[1]|0,Dt=Lc&8191,kt=Lc>>>13,Oc=k[2]|0,At=Oc&8191,Lt=Oc>>>13,oc=k[3]|0,Ot=oc&8191,qt=oc>>>13,qc=k[4]|0,Pt=qc&8191,Ft=qc>>>13,Fc=k[5]|0,St=Fc&8191,Wt=Fc>>>13,cc=k[6]|0,Qe=cc&8191,it=cc>>>13,uc=k[7]|0,Ut=uc&8191,Kt=uc>>>13,il=k[8]|0,Gt=il&8191,Vt=il>>>13,sl=k[9]|0,Yt=sl&8191,$t=sl>>>13;A.negative=T.negative^M.negative,A.length=19,B=Math.imul(E,Et),x=Math.imul(E,Ct),x=x+Math.imul(z,Et)|0,N=Math.imul(z,Ct);var Bu=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Bu>>>26)|0,Bu&=67108863,B=Math.imul(j,Et),x=Math.imul(j,Ct),x=x+Math.imul(X,Et)|0,N=Math.imul(X,Ct),B=B+Math.imul(E,Dt)|0,x=x+Math.imul(E,kt)|0,x=x+Math.imul(z,Dt)|0,N=N+Math.imul(z,kt)|0;var on=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(on>>>26)|0,on&=67108863,B=Math.imul(ue,Et),x=Math.imul(ue,Ct),x=x+Math.imul(he,Et)|0,N=Math.imul(he,Ct),B=B+Math.imul(j,Dt)|0,x=x+Math.imul(j,kt)|0,x=x+Math.imul(X,Dt)|0,N=N+Math.imul(X,kt)|0,B=B+Math.imul(E,At)|0,x=x+Math.imul(E,Lt)|0,x=x+Math.imul(z,At)|0,N=N+Math.imul(z,Lt)|0;var cn=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(cn>>>26)|0,cn&=67108863,B=Math.imul(ge,Et),x=Math.imul(ge,Ct),x=x+Math.imul(me,Et)|0,N=Math.imul(me,Ct),B=B+Math.imul(ue,Dt)|0,x=x+Math.imul(ue,kt)|0,x=x+Math.imul(he,Dt)|0,N=N+Math.imul(he,kt)|0,B=B+Math.imul(j,At)|0,x=x+Math.imul(j,Lt)|0,x=x+Math.imul(X,At)|0,N=N+Math.imul(X,Lt)|0,B=B+Math.imul(E,Ot)|0,x=x+Math.imul(E,qt)|0,x=x+Math.imul(z,Ot)|0,N=N+Math.imul(z,qt)|0;var Wc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,B=Math.imul(ve,Et),x=Math.imul(ve,Ct),x=x+Math.imul(Ae,Et)|0,N=Math.imul(Ae,Ct),B=B+Math.imul(ge,Dt)|0,x=x+Math.imul(ge,kt)|0,x=x+Math.imul(me,Dt)|0,N=N+Math.imul(me,kt)|0,B=B+Math.imul(ue,At)|0,x=x+Math.imul(ue,Lt)|0,x=x+Math.imul(he,At)|0,N=N+Math.imul(he,Lt)|0,B=B+Math.imul(j,Ot)|0,x=x+Math.imul(j,qt)|0,x=x+Math.imul(X,Ot)|0,N=N+Math.imul(X,qt)|0,B=B+Math.imul(E,Pt)|0,x=x+Math.imul(E,Ft)|0,x=x+Math.imul(z,Pt)|0,N=N+Math.imul(z,Ft)|0;var Uc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,B=Math.imul(It,Et),x=Math.imul(It,Ct),x=x+Math.imul(bt,Et)|0,N=Math.imul(bt,Ct),B=B+Math.imul(ve,Dt)|0,x=x+Math.imul(ve,kt)|0,x=x+Math.imul(Ae,Dt)|0,N=N+Math.imul(Ae,kt)|0,B=B+Math.imul(ge,At)|0,x=x+Math.imul(ge,Lt)|0,x=x+Math.imul(me,At)|0,N=N+Math.imul(me,Lt)|0,B=B+Math.imul(ue,Ot)|0,x=x+Math.imul(ue,qt)|0,x=x+Math.imul(he,Ot)|0,N=N+Math.imul(he,qt)|0,B=B+Math.imul(j,Pt)|0,x=x+Math.imul(j,Ft)|0,x=x+Math.imul(X,Pt)|0,N=N+Math.imul(X,Ft)|0,B=B+Math.imul(E,St)|0,x=x+Math.imul(E,Wt)|0,x=x+Math.imul(z,St)|0,N=N+Math.imul(z,Wt)|0;var Hc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,B=Math.imul(xt,Et),x=Math.imul(xt,Ct),x=x+Math.imul(st,Et)|0,N=Math.imul(st,Ct),B=B+Math.imul(It,Dt)|0,x=x+Math.imul(It,kt)|0,x=x+Math.imul(bt,Dt)|0,N=N+Math.imul(bt,kt)|0,B=B+Math.imul(ve,At)|0,x=x+Math.imul(ve,Lt)|0,x=x+Math.imul(Ae,At)|0,N=N+Math.imul(Ae,Lt)|0,B=B+Math.imul(ge,Ot)|0,x=x+Math.imul(ge,qt)|0,x=x+Math.imul(me,Ot)|0,N=N+Math.imul(me,qt)|0,B=B+Math.imul(ue,Pt)|0,x=x+Math.imul(ue,Ft)|0,x=x+Math.imul(he,Pt)|0,N=N+Math.imul(he,Ft)|0,B=B+Math.imul(j,St)|0,x=x+Math.imul(j,Wt)|0,x=x+Math.imul(X,St)|0,N=N+Math.imul(X,Wt)|0,B=B+Math.imul(E,Qe)|0,x=x+Math.imul(E,it)|0,x=x+Math.imul(z,Qe)|0,N=N+Math.imul(z,it)|0;var jc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(jc>>>26)|0,jc&=67108863,B=Math.imul(Nt,Et),x=Math.imul(Nt,Ct),x=x+Math.imul(dt,Et)|0,N=Math.imul(dt,Ct),B=B+Math.imul(xt,Dt)|0,x=x+Math.imul(xt,kt)|0,x=x+Math.imul(st,Dt)|0,N=N+Math.imul(st,kt)|0,B=B+Math.imul(It,At)|0,x=x+Math.imul(It,Lt)|0,x=x+Math.imul(bt,At)|0,N=N+Math.imul(bt,Lt)|0,B=B+Math.imul(ve,Ot)|0,x=x+Math.imul(ve,qt)|0,x=x+Math.imul(Ae,Ot)|0,N=N+Math.imul(Ae,qt)|0,B=B+Math.imul(ge,Pt)|0,x=x+Math.imul(ge,Ft)|0,x=x+Math.imul(me,Pt)|0,N=N+Math.imul(me,Ft)|0,B=B+Math.imul(ue,St)|0,x=x+Math.imul(ue,Wt)|0,x=x+Math.imul(he,St)|0,N=N+Math.imul(he,Wt)|0,B=B+Math.imul(j,Qe)|0,x=x+Math.imul(j,it)|0,x=x+Math.imul(X,Qe)|0,N=N+Math.imul(X,it)|0,B=B+Math.imul(E,Ut)|0,x=x+Math.imul(E,Kt)|0,x=x+Math.imul(z,Ut)|0,N=N+Math.imul(z,Kt)|0;var zc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(zc>>>26)|0,zc&=67108863,B=Math.imul(jt,Et),x=Math.imul(jt,Ct),x=x+Math.imul(Bt,Et)|0,N=Math.imul(Bt,Ct),B=B+Math.imul(Nt,Dt)|0,x=x+Math.imul(Nt,kt)|0,x=x+Math.imul(dt,Dt)|0,N=N+Math.imul(dt,kt)|0,B=B+Math.imul(xt,At)|0,x=x+Math.imul(xt,Lt)|0,x=x+Math.imul(st,At)|0,N=N+Math.imul(st,Lt)|0,B=B+Math.imul(It,Ot)|0,x=x+Math.imul(It,qt)|0,x=x+Math.imul(bt,Ot)|0,N=N+Math.imul(bt,qt)|0,B=B+Math.imul(ve,Pt)|0,x=x+Math.imul(ve,Ft)|0,x=x+Math.imul(Ae,Pt)|0,N=N+Math.imul(Ae,Ft)|0,B=B+Math.imul(ge,St)|0,x=x+Math.imul(ge,Wt)|0,x=x+Math.imul(me,St)|0,N=N+Math.imul(me,Wt)|0,B=B+Math.imul(ue,Qe)|0,x=x+Math.imul(ue,it)|0,x=x+Math.imul(he,Qe)|0,N=N+Math.imul(he,it)|0,B=B+Math.imul(j,Ut)|0,x=x+Math.imul(j,Kt)|0,x=x+Math.imul(X,Ut)|0,N=N+Math.imul(X,Kt)|0,B=B+Math.imul(E,Gt)|0,x=x+Math.imul(E,Vt)|0,x=x+Math.imul(z,Gt)|0,N=N+Math.imul(z,Vt)|0;var zp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(zp>>>26)|0,zp&=67108863,B=Math.imul(ot,Et),x=Math.imul(ot,Ct),x=x+Math.imul(pt,Et)|0,N=Math.imul(pt,Ct),B=B+Math.imul(jt,Dt)|0,x=x+Math.imul(jt,kt)|0,x=x+Math.imul(Bt,Dt)|0,N=N+Math.imul(Bt,kt)|0,B=B+Math.imul(Nt,At)|0,x=x+Math.imul(Nt,Lt)|0,x=x+Math.imul(dt,At)|0,N=N+Math.imul(dt,Lt)|0,B=B+Math.imul(xt,Ot)|0,x=x+Math.imul(xt,qt)|0,x=x+Math.imul(st,Ot)|0,N=N+Math.imul(st,qt)|0,B=B+Math.imul(It,Pt)|0,x=x+Math.imul(It,Ft)|0,x=x+Math.imul(bt,Pt)|0,N=N+Math.imul(bt,Ft)|0,B=B+Math.imul(ve,St)|0,x=x+Math.imul(ve,Wt)|0,x=x+Math.imul(Ae,St)|0,N=N+Math.imul(Ae,Wt)|0,B=B+Math.imul(ge,Qe)|0,x=x+Math.imul(ge,it)|0,x=x+Math.imul(me,Qe)|0,N=N+Math.imul(me,it)|0,B=B+Math.imul(ue,Ut)|0,x=x+Math.imul(ue,Kt)|0,x=x+Math.imul(he,Ut)|0,N=N+Math.imul(he,Kt)|0,B=B+Math.imul(j,Gt)|0,x=x+Math.imul(j,Vt)|0,x=x+Math.imul(X,Gt)|0,N=N+Math.imul(X,Vt)|0,B=B+Math.imul(E,Yt)|0,x=x+Math.imul(E,$t)|0,x=x+Math.imul(z,Yt)|0,N=N+Math.imul(z,$t)|0;var Kp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,B=Math.imul(ot,Dt),x=Math.imul(ot,kt),x=x+Math.imul(pt,Dt)|0,N=Math.imul(pt,kt),B=B+Math.imul(jt,At)|0,x=x+Math.imul(jt,Lt)|0,x=x+Math.imul(Bt,At)|0,N=N+Math.imul(Bt,Lt)|0,B=B+Math.imul(Nt,Ot)|0,x=x+Math.imul(Nt,qt)|0,x=x+Math.imul(dt,Ot)|0,N=N+Math.imul(dt,qt)|0,B=B+Math.imul(xt,Pt)|0,x=x+Math.imul(xt,Ft)|0,x=x+Math.imul(st,Pt)|0,N=N+Math.imul(st,Ft)|0,B=B+Math.imul(It,St)|0,x=x+Math.imul(It,Wt)|0,x=x+Math.imul(bt,St)|0,N=N+Math.imul(bt,Wt)|0,B=B+Math.imul(ve,Qe)|0,x=x+Math.imul(ve,it)|0,x=x+Math.imul(Ae,Qe)|0,N=N+Math.imul(Ae,it)|0,B=B+Math.imul(ge,Ut)|0,x=x+Math.imul(ge,Kt)|0,x=x+Math.imul(me,Ut)|0,N=N+Math.imul(me,Kt)|0,B=B+Math.imul(ue,Gt)|0,x=x+Math.imul(ue,Vt)|0,x=x+Math.imul(he,Gt)|0,N=N+Math.imul(he,Vt)|0,B=B+Math.imul(j,Yt)|0,x=x+Math.imul(j,$t)|0,x=x+Math.imul(X,Yt)|0,N=N+Math.imul(X,$t)|0;var Gp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,B=Math.imul(ot,At),x=Math.imul(ot,Lt),x=x+Math.imul(pt,At)|0,N=Math.imul(pt,Lt),B=B+Math.imul(jt,Ot)|0,x=x+Math.imul(jt,qt)|0,x=x+Math.imul(Bt,Ot)|0,N=N+Math.imul(Bt,qt)|0,B=B+Math.imul(Nt,Pt)|0,x=x+Math.imul(Nt,Ft)|0,x=x+Math.imul(dt,Pt)|0,N=N+Math.imul(dt,Ft)|0,B=B+Math.imul(xt,St)|0,x=x+Math.imul(xt,Wt)|0,x=x+Math.imul(st,St)|0,N=N+Math.imul(st,Wt)|0,B=B+Math.imul(It,Qe)|0,x=x+Math.imul(It,it)|0,x=x+Math.imul(bt,Qe)|0,N=N+Math.imul(bt,it)|0,B=B+Math.imul(ve,Ut)|0,x=x+Math.imul(ve,Kt)|0,x=x+Math.imul(Ae,Ut)|0,N=N+Math.imul(Ae,Kt)|0,B=B+Math.imul(ge,Gt)|0,x=x+Math.imul(ge,Vt)|0,x=x+Math.imul(me,Gt)|0,N=N+Math.imul(me,Vt)|0,B=B+Math.imul(ue,Yt)|0,x=x+Math.imul(ue,$t)|0,x=x+Math.imul(he,Yt)|0,N=N+Math.imul(he,$t)|0;var Vp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,B=Math.imul(ot,Ot),x=Math.imul(ot,qt),x=x+Math.imul(pt,Ot)|0,N=Math.imul(pt,qt),B=B+Math.imul(jt,Pt)|0,x=x+Math.imul(jt,Ft)|0,x=x+Math.imul(Bt,Pt)|0,N=N+Math.imul(Bt,Ft)|0,B=B+Math.imul(Nt,St)|0,x=x+Math.imul(Nt,Wt)|0,x=x+Math.imul(dt,St)|0,N=N+Math.imul(dt,Wt)|0,B=B+Math.imul(xt,Qe)|0,x=x+Math.imul(xt,it)|0,x=x+Math.imul(st,Qe)|0,N=N+Math.imul(st,it)|0,B=B+Math.imul(It,Ut)|0,x=x+Math.imul(It,Kt)|0,x=x+Math.imul(bt,Ut)|0,N=N+Math.imul(bt,Kt)|0,B=B+Math.imul(ve,Gt)|0,x=x+Math.imul(ve,Vt)|0,x=x+Math.imul(Ae,Gt)|0,N=N+Math.imul(Ae,Vt)|0,B=B+Math.imul(ge,Yt)|0,x=x+Math.imul(ge,$t)|0,x=x+Math.imul(me,Yt)|0,N=N+Math.imul(me,$t)|0;var Yp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,B=Math.imul(ot,Pt),x=Math.imul(ot,Ft),x=x+Math.imul(pt,Pt)|0,N=Math.imul(pt,Ft),B=B+Math.imul(jt,St)|0,x=x+Math.imul(jt,Wt)|0,x=x+Math.imul(Bt,St)|0,N=N+Math.imul(Bt,Wt)|0,B=B+Math.imul(Nt,Qe)|0,x=x+Math.imul(Nt,it)|0,x=x+Math.imul(dt,Qe)|0,N=N+Math.imul(dt,it)|0,B=B+Math.imul(xt,Ut)|0,x=x+Math.imul(xt,Kt)|0,x=x+Math.imul(st,Ut)|0,N=N+Math.imul(st,Kt)|0,B=B+Math.imul(It,Gt)|0,x=x+Math.imul(It,Vt)|0,x=x+Math.imul(bt,Gt)|0,N=N+Math.imul(bt,Vt)|0,B=B+Math.imul(ve,Yt)|0,x=x+Math.imul(ve,$t)|0,x=x+Math.imul(Ae,Yt)|0,N=N+Math.imul(Ae,$t)|0;var $p=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+($p>>>26)|0,$p&=67108863,B=Math.imul(ot,St),x=Math.imul(ot,Wt),x=x+Math.imul(pt,St)|0,N=Math.imul(pt,Wt),B=B+Math.imul(jt,Qe)|0,x=x+Math.imul(jt,it)|0,x=x+Math.imul(Bt,Qe)|0,N=N+Math.imul(Bt,it)|0,B=B+Math.imul(Nt,Ut)|0,x=x+Math.imul(Nt,Kt)|0,x=x+Math.imul(dt,Ut)|0,N=N+Math.imul(dt,Kt)|0,B=B+Math.imul(xt,Gt)|0,x=x+Math.imul(xt,Vt)|0,x=x+Math.imul(st,Gt)|0,N=N+Math.imul(st,Vt)|0,B=B+Math.imul(It,Yt)|0,x=x+Math.imul(It,$t)|0,x=x+Math.imul(bt,Yt)|0,N=N+Math.imul(bt,$t)|0;var Qp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,B=Math.imul(ot,Qe),x=Math.imul(ot,it),x=x+Math.imul(pt,Qe)|0,N=Math.imul(pt,it),B=B+Math.imul(jt,Ut)|0,x=x+Math.imul(jt,Kt)|0,x=x+Math.imul(Bt,Ut)|0,N=N+Math.imul(Bt,Kt)|0,B=B+Math.imul(Nt,Gt)|0,x=x+Math.imul(Nt,Vt)|0,x=x+Math.imul(dt,Gt)|0,N=N+Math.imul(dt,Vt)|0,B=B+Math.imul(xt,Yt)|0,x=x+Math.imul(xt,$t)|0,x=x+Math.imul(st,Yt)|0,N=N+Math.imul(st,$t)|0;var Jp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,B=Math.imul(ot,Ut),x=Math.imul(ot,Kt),x=x+Math.imul(pt,Ut)|0,N=Math.imul(pt,Kt),B=B+Math.imul(jt,Gt)|0,x=x+Math.imul(jt,Vt)|0,x=x+Math.imul(Bt,Gt)|0,N=N+Math.imul(Bt,Vt)|0,B=B+Math.imul(Nt,Yt)|0,x=x+Math.imul(Nt,$t)|0,x=x+Math.imul(dt,Yt)|0,N=N+Math.imul(dt,$t)|0;var Zp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,B=Math.imul(ot,Gt),x=Math.imul(ot,Vt),x=x+Math.imul(pt,Gt)|0,N=Math.imul(pt,Vt),B=B+Math.imul(jt,Yt)|0,x=x+Math.imul(jt,$t)|0,x=x+Math.imul(Bt,Yt)|0,N=N+Math.imul(Bt,$t)|0;var $1=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+($1>>>26)|0,$1&=67108863,B=Math.imul(ot,Yt),x=Math.imul(ot,$t),x=x+Math.imul(pt,Yt)|0,N=Math.imul(pt,$t);var Q1=(D+B|0)+((x&8191)<<13)|0;return D=(N+(x>>>13)|0)+(Q1>>>26)|0,Q1&=67108863,O[0]=Bu,O[1]=on,O[2]=cn,O[3]=Wc,O[4]=Uc,O[5]=Hc,O[6]=jc,O[7]=zc,O[8]=zp,O[9]=Kp,O[10]=Gp,O[11]=Vp,O[12]=Yp,O[13]=$p,O[14]=Qp,O[15]=Jp,O[16]=Zp,O[17]=$1,O[18]=Q1,D!==0&&(O[19]=D,A.length++),A};Math.imul||(y=m);function I(q,T,M){M.negative=T.negative^q.negative,M.length=q.length+T.length;for(var A=0,v=0,k=0;k>>26)|0,v+=O>>>26,O&=67108863}M.words[k]=D,A=O,O=v}return A!==0?M.words[k]=A:M.length--,M.strip()}function C(q,T,M){var A=new R;return A.mulp(q,T,M)}a.prototype.mulTo=function(T,M){var A,v=this.length+T.length;return this.length===10&&T.length===10?A=y(this,T,M):v<63?A=m(this,T,M):v<1024?A=I(this,T,M):A=C(this,T,M),A};function R(q,T){this.x=q,this.y=T}R.prototype.makeRBT=function(T){for(var M=new Array(T),A=a.prototype._countBits(T)-1,v=0;v>=1;return v},R.prototype.permute=function(T,M,A,v,k,O){for(var D=0;D>>1)k++;return 1<>>13,A[2*O+1]=k&8191,k=k>>>13;for(O=2*M;O>=26,M+=v/67108864|0,M+=k>>>26,this.words[A]=k&67108863}return M!==0&&(this.words[A]=M,this.length++),this},a.prototype.muln=function(T){return this.clone().imuln(T)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(T){var M=f(T);if(M.length===0)return new a(1);for(var A=this,v=0;v=0);var M=T%26,A=(T-M)/26,v=67108863>>>26-M<<26-M,k;if(M!==0){var O=0;for(k=0;k>>26-M}O&&(this.words[k]=O,this.length++)}if(A!==0){for(k=this.length-1;k>=0;k--)this.words[k+A]=this.words[k];for(k=0;k=0);var v;M?v=(M-M%26)/26:v=0;var k=T%26,O=Math.min((T-k)/26,this.length),D=67108863^67108863>>>k<O)for(this.length-=O,x=0;x=0&&(N!==0||x>=v);x--){var U=this.words[x]|0;this.words[x]=N<<26-k|U>>>k,N=U&D}return B&&N!==0&&(B.words[B.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(T,M,A){return t(this.negative===0),this.iushrn(T,M,A)},a.prototype.shln=function(T){return this.clone().ishln(T)},a.prototype.ushln=function(T){return this.clone().iushln(T)},a.prototype.shrn=function(T){return this.clone().ishrn(T)},a.prototype.ushrn=function(T){return this.clone().iushrn(T)},a.prototype.testn=function(T){t(typeof T=="number"&&T>=0);var M=T%26,A=(T-M)/26,v=1<=0);var M=T%26,A=(T-M)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(M!==0&&A++,this.length=Math.min(A,this.length),M!==0){var v=67108863^67108863>>>M<=67108864;M++)this.words[M]-=67108864,M===this.length-1?this.words[M+1]=1:this.words[M+1]++;return this.length=Math.max(this.length,M+1),this},a.prototype.isubn=function(T){if(t(typeof T=="number"),t(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var M=0;M>26)-(B/67108864|0),this.words[k+A]=O&67108863}for(;k>26,this.words[k+A]=O&67108863;if(D===0)return this.strip();for(t(D===-1),D=0,k=0;k>26,this.words[k]=O&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(T,M){var A=this.length-T.length,v=this.clone(),k=T,O=k.words[k.length-1]|0,D=this._countBits(O);A=26-D,A!==0&&(k=k.ushln(A),v.iushln(A),O=k.words[k.length-1]|0);var B=v.length-k.length,x;if(M!=="mod"){x=new a(null),x.length=B+1,x.words=new Array(x.length);for(var N=0;N=0;E--){var z=(v.words[k.length+E]|0)*67108864+(v.words[k.length+E-1]|0);for(z=Math.min(z/O|0,67108863),v._ishlnsubmul(k,z,E);v.negative!==0;)z--,v.negative=0,v._ishlnsubmul(k,1,E),v.isZero()||(v.negative^=1);x&&(x.words[E]=z)}return x&&x.strip(),v.strip(),M!=="div"&&A!==0&&v.iushrn(A),{div:x||null,mod:v}},a.prototype.divmod=function(T,M,A){if(t(!T.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var v,k,O;return this.negative!==0&&T.negative===0?(O=this.neg().divmod(T,M),M!=="mod"&&(v=O.div.neg()),M!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.iadd(T)),{div:v,mod:k}):this.negative===0&&T.negative!==0?(O=this.divmod(T.neg(),M),M!=="mod"&&(v=O.div.neg()),{div:v,mod:O.mod}):(this.negative&T.negative)!==0?(O=this.neg().divmod(T.neg(),M),M!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.isub(T)),{div:O.div,mod:k}):T.length>this.length||this.cmp(T)<0?{div:new a(0),mod:this}:T.length===1?M==="div"?{div:this.divn(T.words[0]),mod:null}:M==="mod"?{div:null,mod:new a(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new a(this.modn(T.words[0]))}:this._wordDiv(T,M)},a.prototype.div=function(T){return this.divmod(T,"div",!1).div},a.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},a.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},a.prototype.divRound=function(T){var M=this.divmod(T);if(M.mod.isZero())return M.div;var A=M.div.negative!==0?M.mod.isub(T):M.mod,v=T.ushrn(1),k=T.andln(1),O=A.cmp(v);return O<0||k===1&&O===0?M.div:M.div.negative!==0?M.div.isubn(1):M.div.iaddn(1)},a.prototype.modn=function(T){t(T<=67108863);for(var M=(1<<26)%T,A=0,v=this.length-1;v>=0;v--)A=(M*A+(this.words[v]|0))%T;return A},a.prototype.idivn=function(T){t(T<=67108863);for(var M=0,A=this.length-1;A>=0;A--){var v=(this.words[A]|0)+M*67108864;this.words[A]=v/T|0,M=v%T}return this.strip()},a.prototype.divn=function(T){return this.clone().idivn(T)},a.prototype.egcd=function(T){t(T.negative===0),t(!T.isZero());var M=this,A=T.clone();M.negative!==0?M=M.umod(T):M=M.clone();for(var v=new a(1),k=new a(0),O=new a(0),D=new a(1),B=0;M.isEven()&&A.isEven();)M.iushrn(1),A.iushrn(1),++B;for(var x=A.clone(),N=M.clone();!M.isZero();){for(var U=0,E=1;(M.words[0]&E)===0&&U<26;++U,E<<=1);if(U>0)for(M.iushrn(U);U-- >0;)(v.isOdd()||k.isOdd())&&(v.iadd(x),k.isub(N)),v.iushrn(1),k.iushrn(1);for(var z=0,ee=1;(A.words[0]&ee)===0&&z<26;++z,ee<<=1);if(z>0)for(A.iushrn(z);z-- >0;)(O.isOdd()||D.isOdd())&&(O.iadd(x),D.isub(N)),O.iushrn(1),D.iushrn(1);M.cmp(A)>=0?(M.isub(A),v.isub(O),k.isub(D)):(A.isub(M),O.isub(v),D.isub(k))}return{a:O,b:D,gcd:A.iushln(B)}},a.prototype._invmp=function(T){t(T.negative===0),t(!T.isZero());var M=this,A=T.clone();M.negative!==0?M=M.umod(T):M=M.clone();for(var v=new a(1),k=new a(0),O=A.clone();M.cmpn(1)>0&&A.cmpn(1)>0;){for(var D=0,B=1;(M.words[0]&B)===0&&D<26;++D,B<<=1);if(D>0)for(M.iushrn(D);D-- >0;)v.isOdd()&&v.iadd(O),v.iushrn(1);for(var x=0,N=1;(A.words[0]&N)===0&&x<26;++x,N<<=1);if(x>0)for(A.iushrn(x);x-- >0;)k.isOdd()&&k.iadd(O),k.iushrn(1);M.cmp(A)>=0?(M.isub(A),v.isub(k)):(A.isub(M),k.isub(v))}var U;return M.cmpn(1)===0?U=v:U=k,U.cmpn(0)<0&&U.iadd(T),U},a.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var M=this.clone(),A=T.clone();M.negative=0,A.negative=0;for(var v=0;M.isEven()&&A.isEven();v++)M.iushrn(1),A.iushrn(1);do{for(;M.isEven();)M.iushrn(1);for(;A.isEven();)A.iushrn(1);var k=M.cmp(A);if(k<0){var O=M;M=A,A=O}else if(k===0||A.cmpn(1)===0)break;M.isub(A)}while(!0);return A.iushln(v)},a.prototype.invm=function(T){return this.egcd(T).a.umod(T)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(T){return this.words[0]&T},a.prototype.bincn=function(T){t(typeof T=="number");var M=T%26,A=(T-M)/26,v=1<>>26,D&=67108863,this.words[O]=D}return k!==0&&(this.words[O]=k,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(T){var M=T<0;if(this.negative!==0&&!M)return-1;if(this.negative===0&&M)return 1;this.strip();var A;if(this.length>1)A=1;else{M&&(T=-T),t(T<=67108863,"Number is too big");var v=this.words[0]|0;A=v===T?0:vT.length)return 1;if(this.length=0;A--){var v=this.words[A]|0,k=T.words[A]|0;if(v!==k){vk&&(M=1);break}}return M},a.prototype.gtn=function(T){return this.cmpn(T)===1},a.prototype.gt=function(T){return this.cmp(T)===1},a.prototype.gten=function(T){return this.cmpn(T)>=0},a.prototype.gte=function(T){return this.cmp(T)>=0},a.prototype.ltn=function(T){return this.cmpn(T)===-1},a.prototype.lt=function(T){return this.cmp(T)===-1},a.prototype.lten=function(T){return this.cmpn(T)<=0},a.prototype.lte=function(T){return this.cmp(T)<=0},a.prototype.eqn=function(T){return this.cmpn(T)===0},a.prototype.eq=function(T){return this.cmp(T)===0},a.red=function(T){return new G(T)},a.prototype.toRed=function(T){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(T){return this.red=T,this},a.prototype.forceRed=function(T){return t(!this.red,"Already a number in reduction context"),this._forceRed(T)},a.prototype.redAdd=function(T){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},a.prototype.redIAdd=function(T){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},a.prototype.redSub=function(T){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},a.prototype.redISub=function(T){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},a.prototype.redShl=function(T){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},a.prototype.redMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},a.prototype.redIMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(T){return t(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var L={k256:null,p224:null,p192:null,p25519:null};function F(q,T){this.name=q,this.p=new a(T,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var T=new a(null);return T.words=new Array(Math.ceil(this.n/13)),T},F.prototype.ireduce=function(T){var M=T,A;do this.split(M,this.tmp),M=this.imulK(M),M=M.iadd(this.tmp),A=M.bitLength();while(A>this.n);var v=A0?M.isub(this.p):M.strip!==void 0?M.strip():M._strip(),M},F.prototype.split=function(T,M){T.iushrn(this.n,0,M)},F.prototype.imulK=function(T){return T.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(W,F),W.prototype.split=function(T,M){for(var A=4194303,v=Math.min(T.length,9),k=0;k>>22,O=D}O>>>=22,T.words[k-10]=O,O===0&&T.length>10?T.length-=10:T.length-=9},W.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var M=0,A=0;A>>=26,T.words[A]=k,M=v}return M!==0&&(T.words[T.length++]=M),T},a._prime=function(T){if(L[T])return L[T];var M;if(T==="k256")M=new W;else if(T==="p224")M=new V;else if(T==="p192")M=new K;else if(T==="p25519")M=new H;else throw new Error("Unknown prime "+T);return L[T]=M,M};function G(q){if(typeof q=="string"){var T=a._prime(q);this.m=T.p,this.prime=T}else t(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}G.prototype._verify1=function(T){t(T.negative===0,"red works only with positives"),t(T.red,"red works only with red numbers")},G.prototype._verify2=function(T,M){t((T.negative|M.negative)===0,"red works only with positives"),t(T.red&&T.red===M.red,"red works only with red numbers")},G.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},G.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},G.prototype.add=function(T,M){this._verify2(T,M);var A=T.add(M);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},G.prototype.iadd=function(T,M){this._verify2(T,M);var A=T.iadd(M);return A.cmp(this.m)>=0&&A.isub(this.m),A},G.prototype.sub=function(T,M){this._verify2(T,M);var A=T.sub(M);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},G.prototype.isub=function(T,M){this._verify2(T,M);var A=T.isub(M);return A.cmpn(0)<0&&A.iadd(this.m),A},G.prototype.shl=function(T,M){return this._verify1(T),this.imod(T.ushln(M))},G.prototype.imul=function(T,M){return this._verify2(T,M),this.imod(T.imul(M))},G.prototype.mul=function(T,M){return this._verify2(T,M),this.imod(T.mul(M))},G.prototype.isqr=function(T){return this.imul(T,T.clone())},G.prototype.sqr=function(T){return this.mul(T,T)},G.prototype.sqrt=function(T){if(T.isZero())return T.clone();var M=this.m.andln(3);if(t(M%2===1),M===3){var A=this.m.add(new a(1)).iushrn(2);return this.pow(T,A)}for(var v=this.m.subn(1),k=0;!v.isZero()&&v.andln(1)===0;)k++,v.iushrn(1);t(!v.isZero());var O=new a(1).toRed(this),D=O.redNeg(),B=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new a(2*x*x).toRed(this);this.pow(x,B).cmp(D)!==0;)x.redIAdd(D);for(var N=this.pow(x,v),U=this.pow(T,v.addn(1).iushrn(1)),E=this.pow(T,v),z=k;E.cmp(O)!==0;){for(var ee=E,j=0;ee.cmp(O)!==0;j++)ee=ee.redSqr();t(j=0;k--){for(var N=M.words[k],U=x-1;U>=0;U--){var E=N>>U&1;if(O!==v[0]&&(O=this.sqr(O)),E===0&&D===0){B=0;continue}D<<=1,D|=E,B++,!(B!==A&&(k!==0||U!==0))&&(O=this.mul(O,v[D]),B=0,D=0)}x=26}return O},G.prototype.convertTo=function(T){var M=T.umod(this.m);return M===T?M.clone():M},G.prototype.convertFrom=function(T){var M=T.clone();return M.red=null,M},a.mont=function(T){return new Q(T)};function Q(q){G.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(Q,G),Q.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},Q.prototype.convertFrom=function(T){var M=this.imod(T.mul(this.rinv));return M.red=null,M},Q.prototype.imul=function(T,M){if(T.isZero()||M.isZero())return T.words[0]=0,T.length=1,T;var A=T.imul(M),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},Q.prototype.mul=function(T,M){if(T.isZero()||M.isZero())return new a(0)._forceRed(this);var A=T.mul(M),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},Q.prototype.invm=function(T){var M=this.imod(T._invmp(this.m).mul(this.r2));return M._forceRed(this)}})(typeof H2e>"u"||H2e,qWe)});var zl=_((dEn,WWe)=>{d();p();WWe.exports=FWe;function FWe(r,e){if(!r)throw new Error(e||"Assertion failed")}FWe.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}});var j2e=_(jWe=>{"use strict";d();p();var Sse=jWe;function bBt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var n=0;n>8,s=a&255;i?t.push(i,s):t.push(s)}return t}Sse.toArray=bBt;function UWe(r){return r.length===1?"0"+r:r}Sse.zero2=UWe;function HWe(r){for(var e="",t=0;t{"use strict";d();p();var nh=zWe,vBt=co(),wBt=zl(),Rse=j2e();nh.assert=wBt;nh.toArray=Rse.toArray;nh.zero2=Rse.zero2;nh.toHex=Rse.toHex;nh.encode=Rse.encode;function xBt(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1);n.fill(0);for(var a=1<(a>>1)-1?o=(a>>1)-c:o=c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n}nh.getNAF=xBt;function _Bt(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,a=0,i;r.cmpn(-n)>0||e.cmpn(-a)>0;){var s=r.andln(3)+n&3,o=e.andln(3)+a&3;s===3&&(s=-1),o===3&&(o=-1);var c;(s&1)===0?c=0:(i=r.andln(7)+n&7,(i===3||i===5)&&o===2?c=-s:c=s),t[0].push(c);var u;(o&1)===0?u=0:(i=e.andln(7)+a&7,(i===3||i===5)&&s===2?u=-o:u=o),t[1].push(u),2*n===c+1&&(n=1-n),2*a===u+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}nh.getJSF=_Bt;function TBt(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}nh.cachedProperty=TBt;function IBt(r){return typeof r=="string"?nh.toArray(r,"hex"):r}nh.parseBytes=IBt;function EBt(r){return new vBt(r,"hex","le")}nh.intFromLE=EBt});var Ir=_((z2e,GWe)=>{d();p();var Mse=lc(),_f=Mse.Buffer;function KWe(r,e){for(var t in r)e[t]=r[t]}_f.from&&_f.alloc&&_f.allocUnsafe&&_f.allocUnsafeSlow?GWe.exports=Mse:(KWe(Mse,z2e),z2e.Buffer=pb);function pb(r,e,t){return _f(r,e,t)}pb.prototype=Object.create(_f.prototype);KWe(_f,pb);pb.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return _f(r,e,t)};pb.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=_f(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};pb.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return _f(r)};pb.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Mse.SlowBuffer(r)}});var hb=_((_En,G2e)=>{"use strict";d();p();var K2e=65536,CBt=4294967295;function kBt(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var ABt=Ir().Buffer,Nse=global.crypto||global.msCrypto;Nse&&Nse.getRandomValues?G2e.exports=PBt:G2e.exports=kBt;function PBt(r,e){if(r>CBt)throw new RangeError("requested too many random bytes");var t=ABt.allocUnsafe(r);if(r>0)if(r>K2e)for(var n=0;n{d();p();typeof Object.create=="function"?V2e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:V2e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Lu=_((AEn,Y2e)=>{"use strict";d();p();var c3=typeof Reflect=="object"?Reflect:null,VWe=c3&&typeof c3.apply=="function"?c3.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},Bse;c3&&typeof c3.ownKeys=="function"?Bse=c3.ownKeys:Object.getOwnPropertySymbols?Bse=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Bse=function(e){return Object.getOwnPropertyNames(e)};function SBt(r){console&&console.warn&&console.warn(r)}var $We=Number.isNaN||function(e){return e!==e};function qa(){qa.init.call(this)}Y2e.exports=qa;Y2e.exports.once=BBt;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var YWe=10;function Dse(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return YWe},set:function(r){if(typeof r!="number"||r<0||$We(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");YWe=r}});qa.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};qa.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||$We(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function QWe(r){return r._maxListeners===void 0?qa.defaultMaxListeners:r._maxListeners}qa.prototype.getMaxListeners=function(){return QWe(this)};qa.prototype.emit=function(e){for(var t=[],n=1;n0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(c===void 0)return!1;if(typeof c=="function")VWe(c,this,t);else for(var u=c.length,l=tUe(c,u),n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=r,o.type=e,o.count=s.length,SBt(o)}return r}qa.prototype.addListener=function(e,t){return JWe(this,e,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(e,t){return JWe(this,e,t,!0)};function RBt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ZWe(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},a=RBt.bind(n);return a.listener=t,n.wrapFn=a,a}qa.prototype.once=function(e,t){return Dse(t),this.on(e,ZWe(this,e,t)),this};qa.prototype.prependOnceListener=function(e,t){return Dse(t),this.prependListener(e,ZWe(this,e,t)),this};qa.prototype.removeListener=function(e,t){var n,a,i,s,o;if(Dse(t),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():MBt(n,i),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.prototype.removeAllListeners=function(e){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(a=0;a=0;a--)this.removeListener(e,t[a]);return this};function XWe(r,e,t){var n=r._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?NBt(a):tUe(a,a.length)}qa.prototype.listeners=function(e){return XWe(this,e,!0)};qa.prototype.rawListeners=function(e){return XWe(this,e,!1)};qa.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):eUe.call(r,e)};qa.prototype.listenerCount=eUe;function eUe(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qa.prototype.eventNames=function(){return this._eventsCount>0?Bse(this._events):[]};function tUe(r,e){for(var t=new Array(e),n=0;n{d();p();nUe.exports=Lu().EventEmitter});var Q2e=_((BEn,aUe)=>{"use strict";d();p();aUe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==a||s.enumerable!==!0)return!1}return!0}});var cJ=_((OEn,iUe)=>{"use strict";d();p();var LBt=Q2e();iUe.exports=function(){return LBt()&&!!Symbol.toStringTag}});var cUe=_((WEn,oUe)=>{"use strict";d();p();var sUe=typeof Symbol<"u"&&Symbol,OBt=Q2e();oUe.exports=function(){return typeof sUe!="function"||typeof Symbol!="function"||typeof sUe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:OBt()}});var lUe=_((jEn,uUe)=>{"use strict";d();p();var qBt="Function.prototype.bind called on incompatible ",J2e=Array.prototype.slice,FBt=Object.prototype.toString,WBt="[object Function]";uUe.exports=function(e){var t=this;if(typeof t!="function"||FBt.call(t)!==WBt)throw new TypeError(qBt+t);for(var n=J2e.call(arguments,1),a,i=function(){if(this instanceof a){var l=t.apply(this,n.concat(J2e.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(J2e.call(arguments)))},s=Math.max(0,t.length-n.length),o=[],c=0;c{"use strict";d();p();var UBt=lUe();dUe.exports=Function.prototype.bind||UBt});var hUe=_(($En,pUe)=>{"use strict";d();p();var HBt=Lse();pUe.exports=HBt.call(Function.call,Object.prototype.hasOwnProperty)});var lJ=_((ZEn,bUe)=>{"use strict";d();p();var Ur,p3=SyntaxError,gUe=Function,d3=TypeError,Z2e=function(r){try{return gUe('"use strict"; return ('+r+").constructor;")()}catch{}},fb=Object.getOwnPropertyDescriptor;if(fb)try{fb({},"")}catch{fb=null}var X2e=function(){throw new d3},jBt=fb?function(){try{return arguments.callee,X2e}catch{try{return fb(arguments,"callee").get}catch{return X2e}}}():X2e,u3=cUe()(),Tf=Object.getPrototypeOf||function(r){return r.__proto__},l3={},zBt=typeof Uint8Array>"u"?Ur:Tf(Uint8Array),mb={"%AggregateError%":typeof AggregateError>"u"?Ur:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ur:ArrayBuffer,"%ArrayIteratorPrototype%":u3?Tf([][Symbol.iterator]()):Ur,"%AsyncFromSyncIteratorPrototype%":Ur,"%AsyncFunction%":l3,"%AsyncGenerator%":l3,"%AsyncGeneratorFunction%":l3,"%AsyncIteratorPrototype%":l3,"%Atomics%":typeof Atomics>"u"?Ur:Atomics,"%BigInt%":typeof BigInt>"u"?Ur:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ur:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ur:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ur:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ur:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ur:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ur:FinalizationRegistry,"%Function%":gUe,"%GeneratorFunction%":l3,"%Int8Array%":typeof Int8Array>"u"?Ur:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ur:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ur:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u3?Tf(Tf([][Symbol.iterator]())):Ur,"%JSON%":typeof JSON=="object"?JSON:Ur,"%Map%":typeof Map>"u"?Ur:Map,"%MapIteratorPrototype%":typeof Map>"u"||!u3?Ur:Tf(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ur:Promise,"%Proxy%":typeof Proxy>"u"?Ur:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ur:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ur:Set,"%SetIteratorPrototype%":typeof Set>"u"||!u3?Ur:Tf(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ur:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u3?Tf(""[Symbol.iterator]()):Ur,"%Symbol%":u3?Symbol:Ur,"%SyntaxError%":p3,"%ThrowTypeError%":jBt,"%TypedArray%":zBt,"%TypeError%":d3,"%Uint8Array%":typeof Uint8Array>"u"?Ur:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ur:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ur:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ur:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ur:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ur:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ur:WeakSet};try{null.error}catch(r){fUe=Tf(Tf(r)),mb["%Error.prototype%"]=fUe}var fUe,KBt=function r(e){var t;if(e==="%AsyncFunction%")t=Z2e("async function () {}");else if(e==="%GeneratorFunction%")t=Z2e("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Z2e("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=Tf(a.prototype))}return mb[e]=t,t},mUe={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},uJ=Lse(),Ose=hUe(),GBt=uJ.call(Function.call,Array.prototype.concat),VBt=uJ.call(Function.apply,Array.prototype.splice),yUe=uJ.call(Function.call,String.prototype.replace),qse=uJ.call(Function.call,String.prototype.slice),YBt=uJ.call(Function.call,RegExp.prototype.exec),$Bt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QBt=/\\(\\)?/g,JBt=function(e){var t=qse(e,0,1),n=qse(e,-1);if(t==="%"&&n!=="%")throw new p3("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new p3("invalid intrinsic syntax, expected opening `%`");var a=[];return yUe(e,$Bt,function(i,s,o,c){a[a.length]=o?yUe(c,QBt,"$1"):s||i}),a},ZBt=function(e,t){var n=e,a;if(Ose(mUe,n)&&(a=mUe[n],n="%"+a[0]+"%"),Ose(mb,n)){var i=mb[n];if(i===l3&&(i=KBt(n)),typeof i>"u"&&!t)throw new d3("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new p3("intrinsic "+e+" does not exist!")};bUe.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new d3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new d3('"allowMissing" argument must be a boolean');if(YBt(/^%?[^%]*%?$/,e)===null)throw new p3("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=JBt(e),a=n.length>0?n[0]:"",i=ZBt("%"+a+"%",t),s=i.name,o=i.value,c=!1,u=i.alias;u&&(a=u[0],VBt(n,GBt([0,1],u)));for(var l=1,h=!0;l=n.length){var I=fb(o,f);h=!!I,h&&"get"in I&&!("originalValue"in I.get)?o=I.get:o=o[f]}else h=Ose(o,f),o=o[f];h&&!c&&(mb[s]=o)}}return o}});var IUe=_((tCn,Fse)=>{"use strict";d();p();var ewe=Lse(),h3=lJ(),xUe=h3("%Function.prototype.apply%"),_Ue=h3("%Function.prototype.call%"),TUe=h3("%Reflect.apply%",!0)||ewe.call(_Ue,xUe),vUe=h3("%Object.getOwnPropertyDescriptor%",!0),yb=h3("%Object.defineProperty%",!0),XBt=h3("%Math.max%");if(yb)try{yb({},"a",{value:1})}catch{yb=null}Fse.exports=function(e){var t=TUe(ewe,_Ue,arguments);if(vUe&&yb){var n=vUe(t,"length");n.configurable&&yb(t,"length",{value:1+XBt(0,e.length-(arguments.length-1))})}return t};var wUe=function(){return TUe(ewe,xUe,arguments)};yb?yb(Fse.exports,"apply",{value:wUe}):Fse.exports.apply=wUe});var dJ=_((aCn,kUe)=>{"use strict";d();p();var EUe=lJ(),CUe=IUe(),eDt=CUe(EUe("String.prototype.indexOf"));kUe.exports=function(e,t){var n=EUe(e,!!t);return typeof n=="function"&&eDt(e,".prototype.")>-1?CUe(n):n}});var SUe=_((oCn,PUe)=>{"use strict";d();p();var tDt=cJ()(),rDt=dJ(),twe=rDt("Object.prototype.toString"),Wse=function(e){return tDt&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:twe(e)==="[object Arguments]"},AUe=function(e){return Wse(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&twe(e)!=="[object Array]"&&twe(e.callee)==="[object Function]"},nDt=function(){return Wse(arguments)}();Wse.isLegacyArguments=AUe;PUe.exports=nDt?Wse:AUe});var NUe=_((lCn,MUe)=>{"use strict";d();p();var aDt=Object.prototype.toString,iDt=Function.prototype.toString,sDt=/^\s*(?:function)?\*/,RUe=cJ()(),rwe=Object.getPrototypeOf,oDt=function(){if(!RUe)return!1;try{return Function("return function*() {}")()}catch{}},nwe;MUe.exports=function(e){if(typeof e!="function")return!1;if(sDt.test(iDt.call(e)))return!0;if(!RUe){var t=aDt.call(e);return t==="[object GeneratorFunction]"}if(!rwe)return!1;if(typeof nwe>"u"){var n=oDt();nwe=n?rwe(n):!1}return rwe(e)===nwe}});var OUe=_((hCn,LUe)=>{"use strict";d();p();var DUe=Function.prototype.toString,f3=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,iwe,Use;if(typeof f3=="function"&&typeof Object.defineProperty=="function")try{iwe=Object.defineProperty({},"length",{get:function(){throw Use}}),Use={},f3(function(){throw 42},null,iwe)}catch(r){r!==Use&&(f3=null)}else f3=null;var cDt=/^\s*class\b/,swe=function(e){try{var t=DUe.call(e);return cDt.test(t)}catch{return!1}},awe=function(e){try{return swe(e)?!1:(DUe.call(e),!0)}catch{return!1}},Hse=Object.prototype.toString,uDt="[object Object]",lDt="[object Function]",dDt="[object GeneratorFunction]",pDt="[object HTMLAllCollection]",hDt="[object HTML document.all class]",fDt="[object HTMLCollection]",mDt=typeof Symbol=="function"&&!!Symbol.toStringTag,yDt=!(0 in[,]),owe=function(){return!1};typeof document=="object"&&(BUe=document.all,Hse.call(BUe)===Hse.call(document.all)&&(owe=function(e){if((yDt||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=Hse.call(e);return(t===pDt||t===hDt||t===fDt||t===uDt)&&e("")==null}catch{}return!1}));var BUe;LUe.exports=f3?function(e){if(owe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{f3(e,null,iwe)}catch(t){if(t!==Use)return!1}return!swe(e)&&awe(e)}:function(e){if(owe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(mDt)return awe(e);if(swe(e))return!1;var t=Hse.call(e);return t!==lDt&&t!==dDt&&!/^\[object HTML/.test(t)?!1:awe(e)}});var cwe=_((yCn,FUe)=>{"use strict";d();p();var gDt=OUe(),bDt=Object.prototype.toString,qUe=Object.prototype.hasOwnProperty,vDt=function(e,t,n){for(var a=0,i=e.length;a=3&&(a=n),bDt.call(e)==="[object Array]"?vDt(e,t,a):typeof e=="string"?wDt(e,t,a):xDt(e,t,a)};FUe.exports=_Dt});var lwe=_((vCn,WUe)=>{"use strict";d();p();var uwe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],TDt=typeof globalThis>"u"?global:globalThis;WUe.exports=function(){for(var e=[],t=0;t{"use strict";d();p();var IDt=lJ(),jse=IDt("%Object.getOwnPropertyDescriptor%",!0);if(jse)try{jse([],"length")}catch{jse=null}UUe.exports=jse});var fwe=_((ECn,GUe)=>{"use strict";d();p();var HUe=cwe(),EDt=lwe(),hwe=dJ(),CDt=hwe("Object.prototype.toString"),jUe=cJ()(),zse=dwe(),kDt=typeof globalThis>"u"?global:globalThis,zUe=EDt(),ADt=hwe("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return zse?SDt(e):!1}});var XUe=_((ACn,ZUe)=>{"use strict";d();p();var YUe=cwe(),RDt=lwe(),$Ue=dJ(),mwe=dwe(),MDt=$Ue("Object.prototype.toString"),QUe=cJ()(),VUe=typeof globalThis>"u"?global:globalThis,NDt=RDt(),BDt=$Ue("String.prototype.slice"),JUe={},ywe=Object.getPrototypeOf;QUe&&mwe&&ywe&&YUe(NDt,function(r){if(typeof VUe[r]=="function"){var e=new VUe[r];if(Symbol.toStringTag in e){var t=ywe(e),n=mwe(t,Symbol.toStringTag);if(!n){var a=ywe(t);n=mwe(a,Symbol.toStringTag)}JUe[r]=n.get}}});var DDt=function(e){var t=!1;return YUe(JUe,function(n,a){if(!t)try{var i=n.call(e);i===a&&(t=i)}catch{}}),t},LDt=fwe();ZUe.exports=function(e){return LDt(e)?!QUe||!(Symbol.toStringTag in e)?BDt(MDt(e),8,-1):DDt(e):!1}});var hHe=_(Lr=>{"use strict";d();p();var ODt=SUe(),qDt=NUe(),ah=XUe(),eHe=fwe();function m3(r){return r.call.bind(r)}var tHe=typeof BigInt<"u",rHe=typeof Symbol<"u",Bd=m3(Object.prototype.toString),FDt=m3(Number.prototype.valueOf),WDt=m3(String.prototype.valueOf),UDt=m3(Boolean.prototype.valueOf);tHe&&(nHe=m3(BigInt.prototype.valueOf));var nHe;rHe&&(aHe=m3(Symbol.prototype.valueOf));var aHe;function hJ(r,e){if(typeof r!="object")return!1;try{return e(r),!0}catch{return!1}}Lr.isArgumentsObject=ODt;Lr.isGeneratorFunction=qDt;Lr.isTypedArray=eHe;function HDt(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}Lr.isPromise=HDt;function jDt(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):eHe(r)||sHe(r)}Lr.isArrayBufferView=jDt;function zDt(r){return ah(r)==="Uint8Array"}Lr.isUint8Array=zDt;function KDt(r){return ah(r)==="Uint8ClampedArray"}Lr.isUint8ClampedArray=KDt;function GDt(r){return ah(r)==="Uint16Array"}Lr.isUint16Array=GDt;function VDt(r){return ah(r)==="Uint32Array"}Lr.isUint32Array=VDt;function YDt(r){return ah(r)==="Int8Array"}Lr.isInt8Array=YDt;function $Dt(r){return ah(r)==="Int16Array"}Lr.isInt16Array=$Dt;function QDt(r){return ah(r)==="Int32Array"}Lr.isInt32Array=QDt;function JDt(r){return ah(r)==="Float32Array"}Lr.isFloat32Array=JDt;function ZDt(r){return ah(r)==="Float64Array"}Lr.isFloat64Array=ZDt;function XDt(r){return ah(r)==="BigInt64Array"}Lr.isBigInt64Array=XDt;function eLt(r){return ah(r)==="BigUint64Array"}Lr.isBigUint64Array=eLt;function Kse(r){return Bd(r)==="[object Map]"}Kse.working=typeof Map<"u"&&Kse(new Map);function tLt(r){return typeof Map>"u"?!1:Kse.working?Kse(r):r instanceof Map}Lr.isMap=tLt;function Gse(r){return Bd(r)==="[object Set]"}Gse.working=typeof Set<"u"&&Gse(new Set);function rLt(r){return typeof Set>"u"?!1:Gse.working?Gse(r):r instanceof Set}Lr.isSet=rLt;function Vse(r){return Bd(r)==="[object WeakMap]"}Vse.working=typeof WeakMap<"u"&&Vse(new WeakMap);function nLt(r){return typeof WeakMap>"u"?!1:Vse.working?Vse(r):r instanceof WeakMap}Lr.isWeakMap=nLt;function bwe(r){return Bd(r)==="[object WeakSet]"}bwe.working=typeof WeakSet<"u"&&bwe(new WeakSet);function aLt(r){return bwe(r)}Lr.isWeakSet=aLt;function Yse(r){return Bd(r)==="[object ArrayBuffer]"}Yse.working=typeof ArrayBuffer<"u"&&Yse(new ArrayBuffer);function iHe(r){return typeof ArrayBuffer>"u"?!1:Yse.working?Yse(r):r instanceof ArrayBuffer}Lr.isArrayBuffer=iHe;function $se(r){return Bd(r)==="[object DataView]"}$se.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$se(new DataView(new ArrayBuffer(1),0,1));function sHe(r){return typeof DataView>"u"?!1:$se.working?$se(r):r instanceof DataView}Lr.isDataView=sHe;var gwe=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pJ(r){return Bd(r)==="[object SharedArrayBuffer]"}function oHe(r){return typeof gwe>"u"?!1:(typeof pJ.working>"u"&&(pJ.working=pJ(new gwe)),pJ.working?pJ(r):r instanceof gwe)}Lr.isSharedArrayBuffer=oHe;function iLt(r){return Bd(r)==="[object AsyncFunction]"}Lr.isAsyncFunction=iLt;function sLt(r){return Bd(r)==="[object Map Iterator]"}Lr.isMapIterator=sLt;function oLt(r){return Bd(r)==="[object Set Iterator]"}Lr.isSetIterator=oLt;function cLt(r){return Bd(r)==="[object Generator]"}Lr.isGeneratorObject=cLt;function uLt(r){return Bd(r)==="[object WebAssembly.Module]"}Lr.isWebAssemblyCompiledModule=uLt;function cHe(r){return hJ(r,FDt)}Lr.isNumberObject=cHe;function uHe(r){return hJ(r,WDt)}Lr.isStringObject=uHe;function lHe(r){return hJ(r,UDt)}Lr.isBooleanObject=lHe;function dHe(r){return tHe&&hJ(r,nHe)}Lr.isBigIntObject=dHe;function pHe(r){return rHe&&hJ(r,aHe)}Lr.isSymbolObject=pHe;function lLt(r){return cHe(r)||uHe(r)||lHe(r)||dHe(r)||pHe(r)}Lr.isBoxedPrimitive=lLt;function dLt(r){return typeof Uint8Array<"u"&&(iHe(r)||oHe(r))}Lr.isAnyArrayBuffer=dLt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(Lr,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})});var mHe=_((BCn,fHe)=>{d();p();fHe.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var noe=_(Or=>{d();p();var yHe=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},a=0;a=a)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return o}}),s=n[t];t"u")return function(){return Or.deprecate(r,e).apply(this,arguments)};var t=!1;function n(){if(!t){if(g.throwDeprecation)throw new Error(e);g.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n};var Qse={},gHe=/^$/;g.env.NODE_DEBUG&&(Jse=g.env.NODE_DEBUG,Jse=Jse.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),gHe=new RegExp("^"+Jse+"$","i"));var Jse;Or.debuglog=function(r){if(r=r.toUpperCase(),!Qse[r])if(gHe.test(r)){var e=g.pid;Qse[r]=function(){var t=Or.format.apply(Or,arguments);console.error("%s %d: %s",r,e,t)}}else Qse[r]=function(){};return Qse[r]};function Py(r,e){var t={seen:[],stylize:fLt};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),_we(e)?t.showHidden=e:e&&Or._extend(t,e),bb(t.showHidden)&&(t.showHidden=!1),bb(t.depth)&&(t.depth=2),bb(t.colors)&&(t.colors=!1),bb(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=hLt),Xse(t,r,t.depth)}Or.inspect=Py;Py.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Py.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function hLt(r,e){var t=Py.styles[e];return t?"\x1B["+Py.colors[t][0]+"m"+r+"\x1B["+Py.colors[t][1]+"m":r}function fLt(r,e){return r}function mLt(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function Xse(r,e,t){if(r.customInspect&&e&&Zse(e.inspect)&&e.inspect!==Or.inspect&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return roe(n)||(n=Xse(r,n,t)),n}var a=yLt(r,e);if(a)return a;var i=Object.keys(e),s=mLt(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),mJ(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return vwe(e);if(i.length===0){if(Zse(e)){var o=e.name?": "+e.name:"";return r.stylize("[Function"+o+"]","special")}if(fJ(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(eoe(e))return r.stylize(Date.prototype.toString.call(e),"date");if(mJ(e))return vwe(e)}var c="",u=!1,l=["{","}"];if(bHe(e)&&(u=!0,l=["[","]"]),Zse(e)){var h=e.name?": "+e.name:"";c=" [Function"+h+"]"}if(fJ(e)&&(c=" "+RegExp.prototype.toString.call(e)),eoe(e)&&(c=" "+Date.prototype.toUTCString.call(e)),mJ(e)&&(c=" "+vwe(e)),i.length===0&&(!u||e.length==0))return l[0]+c+l[1];if(t<0)return fJ(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var f;return u?f=gLt(r,e,t,s,i):f=i.map(function(m){return xwe(r,e,t,s,m,u)}),r.seen.pop(),bLt(f,c,l)}function yLt(r,e){if(bb(e))return r.stylize("undefined","undefined");if(roe(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(vHe(e))return r.stylize(""+e,"number");if(_we(e))return r.stylize(""+e,"boolean");if(toe(e))return r.stylize("null","null")}function vwe(r){return"["+Error.prototype.toString.call(r)+"]"}function gLt(r,e,t,n,a){for(var i=[],s=0,o=e.length;s{var Ecr=Object.create;var Qpe=Object.defineProperty;var Icr=Object.getOwnPropertyDescriptor;var Ccr=Object.getOwnPropertyNames;var Acr=Object.getPrototypeOf,kcr=Object.prototype.hasOwnProperty;var My=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var de=(r,e)=>()=>(r&&(e=r(r=0)),e);var E=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Rr=(r,e)=>{for(var t in e)Qpe(r,t,{get:e[t],enumerable:!0})},Ype=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Ccr(e))!kcr.call(r,a)&&a!==t&&Qpe(r,a,{get:()=>e[a],enumerable:!(n=Icr(e,a))||n.enumerable});return r},Yr=(r,e,t)=>(Ype(r,e,"default"),t&&Ype(t,e,"default")),ea=(r,e,t)=>(t=r!=null?Ecr(Acr(r)):{},Ype(e||!r||!r.__esModule?Qpe(t,"default",{value:r,enumerable:!0}):t,r)),Ht=r=>Ype(Qpe({},"__esModule",{value:!0}),r);var g,f=de(()=>{g={env:"production"}});var Cnt=E(Jpe=>{"use strict";f();d();Jpe.byteLength=Rcr;Jpe.toByteArray=Bcr;Jpe.fromByteArray=Ocr;var Om=[],Ld=[],Pcr=typeof Uint8Array<"u"?Uint8Array:Array,uIe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(F5=0,Ent=uIe.length;F50)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function Rcr(r){var e=Int(r),t=e[0],n=e[1];return(t+n)*3/4-n}function Mcr(r,e,t){return(e+t)*3/4-t}function Bcr(r){var e,t=Int(r),n=t[0],a=t[1],i=new Pcr(Mcr(r,n,a)),s=0,o=a>0?n-4:n,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=Ld[r.charCodeAt(c)]<<2|Ld[r.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=Ld[r.charCodeAt(c)]<<10|Ld[r.charCodeAt(c+1)]<<4|Ld[r.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function Dcr(r){return Om[r>>18&63]+Om[r>>12&63]+Om[r>>6&63]+Om[r&63]}function Ncr(r,e,t){for(var n,a=[],i=e;io?o:s+i));return n===1?(e=r[t-1],a.push(Om[e>>2]+Om[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],a.push(Om[e>>10]+Om[e>>4&63]+Om[e<<2&63]+"=")),a.join("")}});var Ant=E(lIe=>{f();d();lIe.read=function(r,e,t,n,a){var i,s,o=a*8-n-1,c=(1<>1,l=-7,p=t?a-1:0,h=t?-1:1,m=r[e+p];for(p+=h,i=m&(1<<-l)-1,m>>=-l,l+=o;l>0;i=i*256+r[e+p],p+=h,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[e+p],p+=h,l-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(m?-1:1)*s*Math.pow(2,i-n)};lIe.write=function(r,e,t,n,a,i){var s,o,c,u=i*8-a-1,l=(1<>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,C=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+p>=1?e+=h/c:e+=h*Math.pow(2,1-p),e*c>=2&&(s++,c/=2),s+p>=l?(o=0,s=l):s+p>=1?(o=(e*c-1)*Math.pow(2,a),s=s+p):(o=e*Math.pow(2,p-1)*Math.pow(2,a),s=0));a>=8;r[t+m]=o&255,m+=y,o/=256,a-=8);for(s=s<0;r[t+m]=s&255,m+=y,s/=256,u-=8);r[t+m-y]|=C*128}});var Uo=E(_x=>{"use strict";f();d();var fIe=Cnt(),xx=Ant(),knt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;_x.Buffer=Me;_x.SlowBuffer=Hcr;_x.INSPECT_MAX_BYTES=50;var Zpe=2147483647;_x.kMaxLength=Zpe;Me.TYPED_ARRAY_SUPPORT=Fcr();!Me.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&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.");function Fcr(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(Me.prototype,"parent",{enumerable:!0,get:function(){if(!!Me.isBuffer(this))return this.buffer}});Object.defineProperty(Me.prototype,"offset",{enumerable:!0,get:function(){if(!!Me.isBuffer(this))return this.byteOffset}});function By(r){if(r>Zpe)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,Me.prototype),e}function Me(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return mIe(r)}return Rnt(r,e,t)}Me.poolSize=8192;function Rnt(r,e,t){if(typeof r=="string")return qcr(r,e);if(ArrayBuffer.isView(r))return Wcr(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Fm(r,ArrayBuffer)||r&&Fm(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Fm(r,SharedArrayBuffer)||r&&Fm(r.buffer,SharedArrayBuffer)))return pIe(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return Me.from(n,e,t);var a=Ucr(r);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return Me.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}Me.from=function(r,e,t){return Rnt(r,e,t)};Object.setPrototypeOf(Me.prototype,Uint8Array.prototype);Object.setPrototypeOf(Me,Uint8Array);function Mnt(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Lcr(r,e,t){return Mnt(r),r<=0?By(r):e!==void 0?typeof t=="string"?By(r).fill(e,t):By(r).fill(e):By(r)}Me.alloc=function(r,e,t){return Lcr(r,e,t)};function mIe(r){return Mnt(r),By(r<0?0:yIe(r)|0)}Me.allocUnsafe=function(r){return mIe(r)};Me.allocUnsafeSlow=function(r){return mIe(r)};function qcr(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!Me.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=Bnt(r,e)|0,n=By(t),a=n.write(r,e);return a!==t&&(n=n.slice(0,a)),n}function dIe(r){for(var e=r.length<0?0:yIe(r.length)|0,t=By(e),n=0;n=Zpe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Zpe.toString(16)+" bytes");return r|0}function Hcr(r){return+r!=r&&(r=0),Me.alloc(+r)}Me.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Me.prototype};Me.compare=function(e,t){if(Fm(e,Uint8Array)&&(e=Me.from(e,e.offset,e.byteLength)),Fm(t,Uint8Array)&&(t=Me.from(t,t.offset,t.byteLength)),!Me.isBuffer(e)||!Me.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,a=t.length,i=0,s=Math.min(n,a);ia.length?Me.from(s).copy(a,i):Uint8Array.prototype.set.call(a,s,i);else if(Me.isBuffer(s))s.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return a};function Bnt(r,e){if(Me.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Fm(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return hIe(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return qnt(r).length;default:if(a)return n?-1:hIe(r).length;e=(""+e).toLowerCase(),a=!0}}Me.byteLength=Bnt;function jcr(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Xcr(this,e,t);case"utf8":case"utf-8":return Nnt(this,e,t);case"ascii":return Jcr(this,e,t);case"latin1":case"binary":return Zcr(this,e,t);case"base64":return Ycr(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e0r(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}Me.prototype._isBuffer=!0;function L5(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}Me.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""};knt&&(Me.prototype[knt]=Me.prototype.inspect);Me.prototype.compare=function(e,t,n,a,i){if(Fm(e,Uint8Array)&&(e=Me.from(e,e.offset,e.byteLength)),!Me.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,o=n-t,c=Math.min(s,o),u=this.slice(a,i),l=e.slice(t,n),p=0;p2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,bIe(t)&&(t=a?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(a)return-1;t=r.length-1}else if(t<0)if(a)t=0;else return-1;if(typeof e=="string"&&(e=Me.from(e,n)),Me.isBuffer(e))return e.length===0?-1:Snt(r,e,t,n,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):Snt(r,[e],t,n,a);throw new TypeError("val must be string, number or Buffer")}function Snt(r,e,t,n,a){var i=1,s=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function c(m,y){return i===1?m[y]:m.readUInt16BE(y*i)}var u;if(a){var l=-1;for(u=t;us&&(t=s-o),u=t;u>=0;u--){for(var p=!0,h=0;ha&&(n=a)):n=a;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return zcr(this,e,t,n);case"utf8":case"utf-8":return Kcr(this,e,t,n);case"ascii":case"latin1":case"binary":return Gcr(this,e,t,n);case"base64":return Vcr(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $cr(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};Me.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ycr(r,e,t){return e===0&&t===r.length?fIe.fromByteArray(r):fIe.fromByteArray(r.slice(e,t))}function Nnt(r,e,t){t=Math.min(r.length,t);for(var n=[],a=e;a239?4:i>223?3:i>191?2:1;if(a+o<=t){var c,u,l,p;switch(o){case 1:i<128&&(s=i);break;case 2:c=r[a+1],(c&192)===128&&(p=(i&31)<<6|c&63,p>127&&(s=p));break;case 3:c=r[a+1],u=r[a+2],(c&192)===128&&(u&192)===128&&(p=(i&15)<<12|(c&63)<<6|u&63,p>2047&&(p<55296||p>57343)&&(s=p));break;case 4:c=r[a+1],u=r[a+2],l=r[a+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(p=(i&15)<<18|(c&63)<<12|(u&63)<<6|l&63,p>65535&&p<1114112&&(s=p))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=o}return Qcr(n)}var Pnt=4096;function Qcr(r){var e=r.length;if(e<=Pnt)return String.fromCharCode.apply(String,r);for(var t="",n=0;nn)&&(t=n);for(var a="",i=e;in&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}Me.prototype.readUintLE=Me.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||n0(e,t,this.length);for(var a=this[e],i=1,s=0;++s>>0,t=t>>>0,n||n0(e,t,this.length);for(var a=this[e+--t],i=1;t>0&&(i*=256);)a+=this[e+--t]*i;return a};Me.prototype.readUint8=Me.prototype.readUInt8=function(e,t){return e=e>>>0,t||n0(e,1,this.length),this[e]};Me.prototype.readUint16LE=Me.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||n0(e,2,this.length),this[e]|this[e+1]<<8};Me.prototype.readUint16BE=Me.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||n0(e,2,this.length),this[e]<<8|this[e+1]};Me.prototype.readUint32LE=Me.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||n0(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};Me.prototype.readUint32BE=Me.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||n0(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};Me.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||n0(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a};Me.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||n0(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};Me.prototype.readInt8=function(e,t){return e=e>>>0,t||n0(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};Me.prototype.readInt16LE=function(e,t){e=e>>>0,t||n0(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};Me.prototype.readInt16BE=function(e,t){e=e>>>0,t||n0(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};Me.prototype.readInt32LE=function(e,t){return e=e>>>0,t||n0(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};Me.prototype.readInt32BE=function(e,t){return e=e>>>0,t||n0(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};Me.prototype.readFloatLE=function(e,t){return e=e>>>0,t||n0(e,4,this.length),xx.read(this,e,!0,23,4)};Me.prototype.readFloatBE=function(e,t){return e=e>>>0,t||n0(e,4,this.length),xx.read(this,e,!1,23,4)};Me.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||n0(e,8,this.length),xx.read(this,e,!0,52,8)};Me.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||n0(e,8,this.length),xx.read(this,e,!1,52,8)};function zl(r,e,t,n,a,i){if(!Me.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||er.length)throw new RangeError("Index out of range")}Me.prototype.writeUintLE=Me.prototype.writeUIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;zl(this,e,t,n,i,0)}var s=1,o=0;for(this[t]=e&255;++o>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;zl(this,e,t,n,i,0)}var s=n-1,o=1;for(this[t+s]=e&255;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n};Me.prototype.writeUint8=Me.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,1,255,0),this[t]=e&255,t+1};Me.prototype.writeUint16LE=Me.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};Me.prototype.writeUint16BE=Me.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};Me.prototype.writeUint32LE=Me.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};Me.prototype.writeUint32BE=Me.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};Me.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);zl(this,e,t,n,i-1,-i)}var s=0,o=1,c=0;for(this[t]=e&255;++s>0)-c&255;return t+n};Me.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);zl(this,e,t,n,i-1,-i)}var s=n-1,o=1,c=0;for(this[t+s]=e&255;--s>=0&&(o*=256);)e<0&&c===0&&this[t+s+1]!==0&&(c=1),this[t+s]=(e/o>>0)-c&255;return t+n};Me.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};Me.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};Me.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};Me.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||zl(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};Me.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||zl(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]=e&255,t+4};function Ont(r,e,t,n,a,i){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Fnt(r,e,t,n,a){return e=+e,t=t>>>0,a||Ont(r,e,t,4,34028234663852886e22,-34028234663852886e22),xx.write(r,e,t,n,23,4),t+4}Me.prototype.writeFloatLE=function(e,t,n){return Fnt(this,e,t,!0,n)};Me.prototype.writeFloatBE=function(e,t,n){return Fnt(this,e,t,!1,n)};function Lnt(r,e,t,n,a){return e=+e,t=t>>>0,a||Ont(r,e,t,8,17976931348623157e292,-17976931348623157e292),xx.write(r,e,t,n,52,8),t+8}Me.prototype.writeDoubleLE=function(e,t,n){return Lnt(this,e,t,!0,n)};Me.prototype.writeDoubleBE=function(e,t,n){return Lnt(this,e,t,!1,n)};Me.prototype.copy=function(e,t,n,a){if(!Me.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s55295&&t<57344){if(!a){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),a=t;continue}t=(a-55296<<10|t-56320)+65536}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function n0r(r){for(var e=[],t=0;t>8,a=t%256,i.push(a),i.push(n);return i}function qnt(r){return fIe.toByteArray(r0r(r))}function Xpe(r,e,t,n){for(var a=0;a=e.length||a>=r.length);++a)e[a+t]=r[a];return a}function Fm(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function bIe(r){return r!==r}var i0r=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,a=0;a<16;++a)e[n+a]=r[t]+r[a];return e}()});var znt=E((l1a,jnt)=>{f();d();var Ho=jnt.exports={},Lm,qm;function gIe(){throw new Error("setTimeout has not been defined")}function vIe(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Lm=setTimeout:Lm=gIe}catch{Lm=gIe}try{typeof clearTimeout=="function"?qm=clearTimeout:qm=vIe}catch{qm=vIe}})();function Wnt(r){if(Lm===setTimeout)return setTimeout(r,0);if((Lm===gIe||!Lm)&&setTimeout)return Lm=setTimeout,setTimeout(r,0);try{return Lm(r,0)}catch{try{return Lm.call(null,r,0)}catch{return Lm.call(this,r,0)}}}function s0r(r){if(qm===clearTimeout)return clearTimeout(r);if((qm===vIe||!qm)&&clearTimeout)return qm=clearTimeout,clearTimeout(r);try{return qm(r)}catch{try{return qm.call(null,r)}catch{return qm.call(this,r)}}}var Dy=[],Tx=!1,q5,ehe=-1;function o0r(){!Tx||!q5||(Tx=!1,q5.length?Dy=q5.concat(Dy):ehe=-1,Dy.length&&Unt())}function Unt(){if(!Tx){var r=Wnt(o0r);Tx=!0;for(var e=Dy.length;e;){for(q5=Dy,Dy=[];++ehe1)for(var t=1;t{v=ea(Uo()),_=ea(znt()),c0r=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),global=c0r});var Fr=E((Knt,wIe)=>{f();d();(function(r,e){"use strict";function t(S,w){if(!S)throw new Error(w||"Assertion failed")}function n(S,w){S.super_=w;var R=function(){};R.prototype=w.prototype,S.prototype=new R,S.prototype.constructor=S}function a(S,w,R){if(a.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&((w==="le"||w==="be")&&(R=w,w=10),this._init(S||0,w||10,R||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=Uo().Buffer}catch{}a.isBN=function(w){return w instanceof a?!0:w!==null&&typeof w=="object"&&w.constructor.wordSize===a.wordSize&&Array.isArray(w.words)},a.max=function(w,R){return w.cmp(R)>0?w:R},a.min=function(w,R){return w.cmp(R)<0?w:R},a.prototype._init=function(w,R,O){if(typeof w=="number")return this._initNumber(w,R,O);if(typeof w=="object")return this._initArray(w,R,O);R==="hex"&&(R=16),t(R===(R|0)&&R>=2&&R<=36),w=w.toString().replace(/\s+/g,"");var D=0;w[0]==="-"&&(D++,this.negative=1),D=0;D-=3)x=w[D]|w[D-1]<<8|w[D-2]<<16,this.words[T]|=x<>>26-N&67108863,N+=24,N>=26&&(N-=26,T++);else if(O==="le")for(D=0,T=0;D>>26-N&67108863,N+=24,N>=26&&(N-=26,T++);return this._strip()};function s(S,w){var R=S.charCodeAt(w);if(R>=48&&R<=57)return R-48;if(R>=65&&R<=70)return R-55;if(R>=97&&R<=102)return R-87;t(!1,"Invalid character in "+S)}function o(S,w,R){var O=s(S,R);return R-1>=w&&(O|=s(S,R-1)<<4),O}a.prototype._parseHex=function(w,R,O){this.length=Math.ceil((w.length-R)/6),this.words=new Array(this.length);for(var D=0;D=R;D-=2)N=o(w,R,D)<=18?(T-=18,x+=1,this.words[x]|=N>>>26):T+=8;else{var U=w.length-R;for(D=U%2===0?R+1:R;D=18?(T-=18,x+=1,this.words[x]|=N>>>26):T+=8}this._strip()};function c(S,w,R,O){for(var D=0,T=0,x=Math.min(S.length,R),N=w;N=49?T=U-49+10:U>=17?T=U-17+10:T=U,t(U>=0&&T1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch{a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var p=["","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"],h=[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],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(w,R){w=w||10,R=R|0||1;var O;if(w===16||w==="hex"){O="";for(var D=0,T=0,x=0;x>>24-D&16777215,D+=2,D>=26&&(D-=26,x--),T!==0||x!==this.length-1?O=p[6-U.length]+U+O:O=U+O}for(T!==0&&(O=T.toString(16)+O);O.length%R!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(w===(w|0)&&w>=2&&w<=36){var M=h[w],V=m[w];O="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var $=ee.modrn(V).toString(w);ee=ee.idivn(V),ee.isZero()?O=$+O:O=p[M-$.length]+$+O}for(this.isZero()&&(O="0"+O);O.length%R!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var w=this.words[0];return this.length===2?w+=this.words[1]*67108864:this.length===3&&this.words[2]===1?w+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-w:w},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(w,R){return this.toArrayLike(i,w,R)}),a.prototype.toArray=function(w,R){return this.toArrayLike(Array,w,R)};var y=function(w,R){return w.allocUnsafe?w.allocUnsafe(R):new w(R)};a.prototype.toArrayLike=function(w,R,O){this._strip();var D=this.byteLength(),T=O||Math.max(1,D);t(D<=T,"byte array longer than desired length"),t(T>0,"Requested array length <= 0");var x=y(w,T),N=R==="le"?"LE":"BE";return this["_toArrayLike"+N](x,D),x},a.prototype._toArrayLikeLE=function(w,R){for(var O=0,D=0,T=0,x=0;T>8&255),O>16&255),x===6?(O>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O=0&&(w[O--]=N>>8&255),O>=0&&(w[O--]=N>>16&255),x===6?(O>=0&&(w[O--]=N>>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O>=0)for(w[O--]=D;O>=0;)w[O--]=0},Math.clz32?a.prototype._countBits=function(w){return 32-Math.clz32(w)}:a.prototype._countBits=function(w){var R=w,O=0;return R>=4096&&(O+=13,R>>>=13),R>=64&&(O+=7,R>>>=7),R>=8&&(O+=4,R>>>=4),R>=2&&(O+=2,R>>>=2),O+R},a.prototype._zeroBits=function(w){if(w===0)return 26;var R=w,O=0;return(R&8191)===0&&(O+=13,R>>>=13),(R&127)===0&&(O+=7,R>>>=7),(R&15)===0&&(O+=4,R>>>=4),(R&3)===0&&(O+=2,R>>>=2),(R&1)===0&&O++,O},a.prototype.bitLength=function(){var w=this.words[this.length-1],R=this._countBits(w);return(this.length-1)*26+R};function C(S){for(var w=new Array(S.bitLength()),R=0;R>>D&1}return w}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var w=0,R=0;Rw.length?this.clone().ior(w):w.clone().ior(this)},a.prototype.uor=function(w){return this.length>w.length?this.clone().iuor(w):w.clone().iuor(this)},a.prototype.iuand=function(w){var R;this.length>w.length?R=w:R=this;for(var O=0;Ow.length?this.clone().iand(w):w.clone().iand(this)},a.prototype.uand=function(w){return this.length>w.length?this.clone().iuand(w):w.clone().iuand(this)},a.prototype.iuxor=function(w){var R,O;this.length>w.length?(R=this,O=w):(R=w,O=this);for(var D=0;Dw.length?this.clone().ixor(w):w.clone().ixor(this)},a.prototype.uxor=function(w){return this.length>w.length?this.clone().iuxor(w):w.clone().iuxor(this)},a.prototype.inotn=function(w){t(typeof w=="number"&&w>=0);var R=Math.ceil(w/26)|0,O=w%26;this._expand(R),O>0&&R--;for(var D=0;D0&&(this.words[D]=~this.words[D]&67108863>>26-O),this._strip()},a.prototype.notn=function(w){return this.clone().inotn(w)},a.prototype.setn=function(w,R){t(typeof w=="number"&&w>=0);var O=w/26|0,D=w%26;return this._expand(O+1),R?this.words[O]=this.words[O]|1<w.length?(O=this,D=w):(O=w,D=this);for(var T=0,x=0;x>>26;for(;T!==0&&x>>26;if(this.length=O.length,T!==0)this.words[this.length]=T,this.length++;else if(O!==this)for(;xw.length?this.clone().iadd(w):w.clone().iadd(this)},a.prototype.isub=function(w){if(w.negative!==0){w.negative=0;var R=this.iadd(w);return w.negative=1,R._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(w),this.negative=1,this._normSign();var O=this.cmp(w);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,T;O>0?(D=this,T=w):(D=w,T=this);for(var x=0,N=0;N>26,this.words[N]=R&67108863;for(;x!==0&&N>26,this.words[N]=R&67108863;if(x===0&&N>>26,ee=U&67108863,$=Math.min(M,w.length-1),X=Math.max(0,M-S.length+1);X<=$;X++){var se=M-X|0;D=S.words[se]|0,T=w.words[X]|0,x=D*T+ee,V+=x/67108864|0,ee=x&67108863}R.words[M]=ee|0,U=V|0}return U!==0?R.words[M]=U|0:R.length--,R._strip()}var A=function(w,R,O){var D=w.words,T=R.words,x=O.words,N=0,U,M,V,ee=D[0]|0,$=ee&8191,X=ee>>>13,se=D[1]|0,ue=se&8191,ye=se>>>13,Ie=D[2]|0,ge=Ie&8191,xe=Ie>>>13,Ue=D[3]|0,Te=Ue&8191,Be=Ue>>>13,Tr=D[4]|0,et=Tr&8191,mt=Tr>>>13,jt=D[5]|0,je=jt&8191,ht=jt>>>13,ir=D[6]|0,tt=ir&8191,It=ir>>>13,br=D[7]|0,lt=br&8191,Ut=br>>>13,Or=D[8]|0,Ve=Or&8191,At=Or>>>13,Gr=D[9]|0,rt=Gr&8191,Ft=Gr>>>13,Vr=T[0]|0,st=Vr&8191,Lt=Vr>>>13,Hr=T[1]|0,nt=Hr&8191,Kt=Hr>>>13,Pr=T[2]|0,ot=Pr&8191,Gt=Pr>>>13,Er=T[3]|0,at=Er&8191,Vt=Er>>>13,$r=T[4]|0,it=$r&8191,$t=$r>>>13,jr=T[5]|0,Le=jr&8191,yt=jr>>>13,zr=T[6]|0,ft=zr&8191,sr=zr>>>13,wn=T[7]|0,bt=wn&8191,Zt=wn>>>13,xn=T[8]|0,gt=xn&8191,Xt=xn>>>13,qo=T[9]|0,un=qo&8191,ln=qo>>>13;O.negative=w.negative^R.negative,O.length=19,U=Math.imul($,st),M=Math.imul($,Lt),M=M+Math.imul(X,st)|0,V=Math.imul(X,Lt);var ho=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(ho>>>26)|0,ho&=67108863,U=Math.imul(ue,st),M=Math.imul(ue,Lt),M=M+Math.imul(ye,st)|0,V=Math.imul(ye,Lt),U=U+Math.imul($,nt)|0,M=M+Math.imul($,Kt)|0,M=M+Math.imul(X,nt)|0,V=V+Math.imul(X,Kt)|0;var mo=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(mo>>>26)|0,mo&=67108863,U=Math.imul(ge,st),M=Math.imul(ge,Lt),M=M+Math.imul(xe,st)|0,V=Math.imul(xe,Lt),U=U+Math.imul(ue,nt)|0,M=M+Math.imul(ue,Kt)|0,M=M+Math.imul(ye,nt)|0,V=V+Math.imul(ye,Kt)|0,U=U+Math.imul($,ot)|0,M=M+Math.imul($,Gt)|0,M=M+Math.imul(X,ot)|0,V=V+Math.imul(X,Gt)|0;var yo=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(yo>>>26)|0,yo&=67108863,U=Math.imul(Te,st),M=Math.imul(Te,Lt),M=M+Math.imul(Be,st)|0,V=Math.imul(Be,Lt),U=U+Math.imul(ge,nt)|0,M=M+Math.imul(ge,Kt)|0,M=M+Math.imul(xe,nt)|0,V=V+Math.imul(xe,Kt)|0,U=U+Math.imul(ue,ot)|0,M=M+Math.imul(ue,Gt)|0,M=M+Math.imul(ye,ot)|0,V=V+Math.imul(ye,Gt)|0,U=U+Math.imul($,at)|0,M=M+Math.imul($,Vt)|0,M=M+Math.imul(X,at)|0,V=V+Math.imul(X,Vt)|0;var bo=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(bo>>>26)|0,bo&=67108863,U=Math.imul(et,st),M=Math.imul(et,Lt),M=M+Math.imul(mt,st)|0,V=Math.imul(mt,Lt),U=U+Math.imul(Te,nt)|0,M=M+Math.imul(Te,Kt)|0,M=M+Math.imul(Be,nt)|0,V=V+Math.imul(Be,Kt)|0,U=U+Math.imul(ge,ot)|0,M=M+Math.imul(ge,Gt)|0,M=M+Math.imul(xe,ot)|0,V=V+Math.imul(xe,Gt)|0,U=U+Math.imul(ue,at)|0,M=M+Math.imul(ue,Vt)|0,M=M+Math.imul(ye,at)|0,V=V+Math.imul(ye,Vt)|0,U=U+Math.imul($,it)|0,M=M+Math.imul($,$t)|0,M=M+Math.imul(X,it)|0,V=V+Math.imul(X,$t)|0;var go=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(go>>>26)|0,go&=67108863,U=Math.imul(je,st),M=Math.imul(je,Lt),M=M+Math.imul(ht,st)|0,V=Math.imul(ht,Lt),U=U+Math.imul(et,nt)|0,M=M+Math.imul(et,Kt)|0,M=M+Math.imul(mt,nt)|0,V=V+Math.imul(mt,Kt)|0,U=U+Math.imul(Te,ot)|0,M=M+Math.imul(Te,Gt)|0,M=M+Math.imul(Be,ot)|0,V=V+Math.imul(Be,Gt)|0,U=U+Math.imul(ge,at)|0,M=M+Math.imul(ge,Vt)|0,M=M+Math.imul(xe,at)|0,V=V+Math.imul(xe,Vt)|0,U=U+Math.imul(ue,it)|0,M=M+Math.imul(ue,$t)|0,M=M+Math.imul(ye,it)|0,V=V+Math.imul(ye,$t)|0,U=U+Math.imul($,Le)|0,M=M+Math.imul($,yt)|0,M=M+Math.imul(X,Le)|0,V=V+Math.imul(X,yt)|0;var q0=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(q0>>>26)|0,q0&=67108863,U=Math.imul(tt,st),M=Math.imul(tt,Lt),M=M+Math.imul(It,st)|0,V=Math.imul(It,Lt),U=U+Math.imul(je,nt)|0,M=M+Math.imul(je,Kt)|0,M=M+Math.imul(ht,nt)|0,V=V+Math.imul(ht,Kt)|0,U=U+Math.imul(et,ot)|0,M=M+Math.imul(et,Gt)|0,M=M+Math.imul(mt,ot)|0,V=V+Math.imul(mt,Gt)|0,U=U+Math.imul(Te,at)|0,M=M+Math.imul(Te,Vt)|0,M=M+Math.imul(Be,at)|0,V=V+Math.imul(Be,Vt)|0,U=U+Math.imul(ge,it)|0,M=M+Math.imul(ge,$t)|0,M=M+Math.imul(xe,it)|0,V=V+Math.imul(xe,$t)|0,U=U+Math.imul(ue,Le)|0,M=M+Math.imul(ue,yt)|0,M=M+Math.imul(ye,Le)|0,V=V+Math.imul(ye,yt)|0,U=U+Math.imul($,ft)|0,M=M+Math.imul($,sr)|0,M=M+Math.imul(X,ft)|0,V=V+Math.imul(X,sr)|0;var W0=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(W0>>>26)|0,W0&=67108863,U=Math.imul(lt,st),M=Math.imul(lt,Lt),M=M+Math.imul(Ut,st)|0,V=Math.imul(Ut,Lt),U=U+Math.imul(tt,nt)|0,M=M+Math.imul(tt,Kt)|0,M=M+Math.imul(It,nt)|0,V=V+Math.imul(It,Kt)|0,U=U+Math.imul(je,ot)|0,M=M+Math.imul(je,Gt)|0,M=M+Math.imul(ht,ot)|0,V=V+Math.imul(ht,Gt)|0,U=U+Math.imul(et,at)|0,M=M+Math.imul(et,Vt)|0,M=M+Math.imul(mt,at)|0,V=V+Math.imul(mt,Vt)|0,U=U+Math.imul(Te,it)|0,M=M+Math.imul(Te,$t)|0,M=M+Math.imul(Be,it)|0,V=V+Math.imul(Be,$t)|0,U=U+Math.imul(ge,Le)|0,M=M+Math.imul(ge,yt)|0,M=M+Math.imul(xe,Le)|0,V=V+Math.imul(xe,yt)|0,U=U+Math.imul(ue,ft)|0,M=M+Math.imul(ue,sr)|0,M=M+Math.imul(ye,ft)|0,V=V+Math.imul(ye,sr)|0,U=U+Math.imul($,bt)|0,M=M+Math.imul($,Zt)|0,M=M+Math.imul(X,bt)|0,V=V+Math.imul(X,Zt)|0;var U0=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(U0>>>26)|0,U0&=67108863,U=Math.imul(Ve,st),M=Math.imul(Ve,Lt),M=M+Math.imul(At,st)|0,V=Math.imul(At,Lt),U=U+Math.imul(lt,nt)|0,M=M+Math.imul(lt,Kt)|0,M=M+Math.imul(Ut,nt)|0,V=V+Math.imul(Ut,Kt)|0,U=U+Math.imul(tt,ot)|0,M=M+Math.imul(tt,Gt)|0,M=M+Math.imul(It,ot)|0,V=V+Math.imul(It,Gt)|0,U=U+Math.imul(je,at)|0,M=M+Math.imul(je,Vt)|0,M=M+Math.imul(ht,at)|0,V=V+Math.imul(ht,Vt)|0,U=U+Math.imul(et,it)|0,M=M+Math.imul(et,$t)|0,M=M+Math.imul(mt,it)|0,V=V+Math.imul(mt,$t)|0,U=U+Math.imul(Te,Le)|0,M=M+Math.imul(Te,yt)|0,M=M+Math.imul(Be,Le)|0,V=V+Math.imul(Be,yt)|0,U=U+Math.imul(ge,ft)|0,M=M+Math.imul(ge,sr)|0,M=M+Math.imul(xe,ft)|0,V=V+Math.imul(xe,sr)|0,U=U+Math.imul(ue,bt)|0,M=M+Math.imul(ue,Zt)|0,M=M+Math.imul(ye,bt)|0,V=V+Math.imul(ye,Zt)|0,U=U+Math.imul($,gt)|0,M=M+Math.imul($,Xt)|0,M=M+Math.imul(X,gt)|0,V=V+Math.imul(X,Xt)|0;var H0=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(H0>>>26)|0,H0&=67108863,U=Math.imul(rt,st),M=Math.imul(rt,Lt),M=M+Math.imul(Ft,st)|0,V=Math.imul(Ft,Lt),U=U+Math.imul(Ve,nt)|0,M=M+Math.imul(Ve,Kt)|0,M=M+Math.imul(At,nt)|0,V=V+Math.imul(At,Kt)|0,U=U+Math.imul(lt,ot)|0,M=M+Math.imul(lt,Gt)|0,M=M+Math.imul(Ut,ot)|0,V=V+Math.imul(Ut,Gt)|0,U=U+Math.imul(tt,at)|0,M=M+Math.imul(tt,Vt)|0,M=M+Math.imul(It,at)|0,V=V+Math.imul(It,Vt)|0,U=U+Math.imul(je,it)|0,M=M+Math.imul(je,$t)|0,M=M+Math.imul(ht,it)|0,V=V+Math.imul(ht,$t)|0,U=U+Math.imul(et,Le)|0,M=M+Math.imul(et,yt)|0,M=M+Math.imul(mt,Le)|0,V=V+Math.imul(mt,yt)|0,U=U+Math.imul(Te,ft)|0,M=M+Math.imul(Te,sr)|0,M=M+Math.imul(Be,ft)|0,V=V+Math.imul(Be,sr)|0,U=U+Math.imul(ge,bt)|0,M=M+Math.imul(ge,Zt)|0,M=M+Math.imul(xe,bt)|0,V=V+Math.imul(xe,Zt)|0,U=U+Math.imul(ue,gt)|0,M=M+Math.imul(ue,Xt)|0,M=M+Math.imul(ye,gt)|0,V=V+Math.imul(ye,Xt)|0,U=U+Math.imul($,un)|0,M=M+Math.imul($,ln)|0,M=M+Math.imul(X,un)|0,V=V+Math.imul(X,ln)|0;var t0=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(t0>>>26)|0,t0&=67108863,U=Math.imul(rt,nt),M=Math.imul(rt,Kt),M=M+Math.imul(Ft,nt)|0,V=Math.imul(Ft,Kt),U=U+Math.imul(Ve,ot)|0,M=M+Math.imul(Ve,Gt)|0,M=M+Math.imul(At,ot)|0,V=V+Math.imul(At,Gt)|0,U=U+Math.imul(lt,at)|0,M=M+Math.imul(lt,Vt)|0,M=M+Math.imul(Ut,at)|0,V=V+Math.imul(Ut,Vt)|0,U=U+Math.imul(tt,it)|0,M=M+Math.imul(tt,$t)|0,M=M+Math.imul(It,it)|0,V=V+Math.imul(It,$t)|0,U=U+Math.imul(je,Le)|0,M=M+Math.imul(je,yt)|0,M=M+Math.imul(ht,Le)|0,V=V+Math.imul(ht,yt)|0,U=U+Math.imul(et,ft)|0,M=M+Math.imul(et,sr)|0,M=M+Math.imul(mt,ft)|0,V=V+Math.imul(mt,sr)|0,U=U+Math.imul(Te,bt)|0,M=M+Math.imul(Te,Zt)|0,M=M+Math.imul(Be,bt)|0,V=V+Math.imul(Be,Zt)|0,U=U+Math.imul(ge,gt)|0,M=M+Math.imul(ge,Xt)|0,M=M+Math.imul(xe,gt)|0,V=V+Math.imul(xe,Xt)|0,U=U+Math.imul(ue,un)|0,M=M+Math.imul(ue,ln)|0,M=M+Math.imul(ye,un)|0,V=V+Math.imul(ye,ln)|0;var Wo=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,U=Math.imul(rt,ot),M=Math.imul(rt,Gt),M=M+Math.imul(Ft,ot)|0,V=Math.imul(Ft,Gt),U=U+Math.imul(Ve,at)|0,M=M+Math.imul(Ve,Vt)|0,M=M+Math.imul(At,at)|0,V=V+Math.imul(At,Vt)|0,U=U+Math.imul(lt,it)|0,M=M+Math.imul(lt,$t)|0,M=M+Math.imul(Ut,it)|0,V=V+Math.imul(Ut,$t)|0,U=U+Math.imul(tt,Le)|0,M=M+Math.imul(tt,yt)|0,M=M+Math.imul(It,Le)|0,V=V+Math.imul(It,yt)|0,U=U+Math.imul(je,ft)|0,M=M+Math.imul(je,sr)|0,M=M+Math.imul(ht,ft)|0,V=V+Math.imul(ht,sr)|0,U=U+Math.imul(et,bt)|0,M=M+Math.imul(et,Zt)|0,M=M+Math.imul(mt,bt)|0,V=V+Math.imul(mt,Zt)|0,U=U+Math.imul(Te,gt)|0,M=M+Math.imul(Te,Xt)|0,M=M+Math.imul(Be,gt)|0,V=V+Math.imul(Be,Xt)|0,U=U+Math.imul(ge,un)|0,M=M+Math.imul(ge,ln)|0,M=M+Math.imul(xe,un)|0,V=V+Math.imul(xe,ln)|0;var r0=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(r0>>>26)|0,r0&=67108863,U=Math.imul(rt,at),M=Math.imul(rt,Vt),M=M+Math.imul(Ft,at)|0,V=Math.imul(Ft,Vt),U=U+Math.imul(Ve,it)|0,M=M+Math.imul(Ve,$t)|0,M=M+Math.imul(At,it)|0,V=V+Math.imul(At,$t)|0,U=U+Math.imul(lt,Le)|0,M=M+Math.imul(lt,yt)|0,M=M+Math.imul(Ut,Le)|0,V=V+Math.imul(Ut,yt)|0,U=U+Math.imul(tt,ft)|0,M=M+Math.imul(tt,sr)|0,M=M+Math.imul(It,ft)|0,V=V+Math.imul(It,sr)|0,U=U+Math.imul(je,bt)|0,M=M+Math.imul(je,Zt)|0,M=M+Math.imul(ht,bt)|0,V=V+Math.imul(ht,Zt)|0,U=U+Math.imul(et,gt)|0,M=M+Math.imul(et,Xt)|0,M=M+Math.imul(mt,gt)|0,V=V+Math.imul(mt,Xt)|0,U=U+Math.imul(Te,un)|0,M=M+Math.imul(Te,ln)|0,M=M+Math.imul(Be,un)|0,V=V+Math.imul(Be,ln)|0;var vo=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(vo>>>26)|0,vo&=67108863,U=Math.imul(rt,it),M=Math.imul(rt,$t),M=M+Math.imul(Ft,it)|0,V=Math.imul(Ft,$t),U=U+Math.imul(Ve,Le)|0,M=M+Math.imul(Ve,yt)|0,M=M+Math.imul(At,Le)|0,V=V+Math.imul(At,yt)|0,U=U+Math.imul(lt,ft)|0,M=M+Math.imul(lt,sr)|0,M=M+Math.imul(Ut,ft)|0,V=V+Math.imul(Ut,sr)|0,U=U+Math.imul(tt,bt)|0,M=M+Math.imul(tt,Zt)|0,M=M+Math.imul(It,bt)|0,V=V+Math.imul(It,Zt)|0,U=U+Math.imul(je,gt)|0,M=M+Math.imul(je,Xt)|0,M=M+Math.imul(ht,gt)|0,V=V+Math.imul(ht,Xt)|0,U=U+Math.imul(et,un)|0,M=M+Math.imul(et,ln)|0,M=M+Math.imul(mt,un)|0,V=V+Math.imul(mt,ln)|0;var j0=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(j0>>>26)|0,j0&=67108863,U=Math.imul(rt,Le),M=Math.imul(rt,yt),M=M+Math.imul(Ft,Le)|0,V=Math.imul(Ft,yt),U=U+Math.imul(Ve,ft)|0,M=M+Math.imul(Ve,sr)|0,M=M+Math.imul(At,ft)|0,V=V+Math.imul(At,sr)|0,U=U+Math.imul(lt,bt)|0,M=M+Math.imul(lt,Zt)|0,M=M+Math.imul(Ut,bt)|0,V=V+Math.imul(Ut,Zt)|0,U=U+Math.imul(tt,gt)|0,M=M+Math.imul(tt,Xt)|0,M=M+Math.imul(It,gt)|0,V=V+Math.imul(It,Xt)|0,U=U+Math.imul(je,un)|0,M=M+Math.imul(je,ln)|0,M=M+Math.imul(ht,un)|0,V=V+Math.imul(ht,ln)|0;var wu=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(wu>>>26)|0,wu&=67108863,U=Math.imul(rt,ft),M=Math.imul(rt,sr),M=M+Math.imul(Ft,ft)|0,V=Math.imul(Ft,sr),U=U+Math.imul(Ve,bt)|0,M=M+Math.imul(Ve,Zt)|0,M=M+Math.imul(At,bt)|0,V=V+Math.imul(At,Zt)|0,U=U+Math.imul(lt,gt)|0,M=M+Math.imul(lt,Xt)|0,M=M+Math.imul(Ut,gt)|0,V=V+Math.imul(Ut,Xt)|0,U=U+Math.imul(tt,un)|0,M=M+Math.imul(tt,ln)|0,M=M+Math.imul(It,un)|0,V=V+Math.imul(It,ln)|0;var ch=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(ch>>>26)|0,ch&=67108863,U=Math.imul(rt,bt),M=Math.imul(rt,Zt),M=M+Math.imul(Ft,bt)|0,V=Math.imul(Ft,Zt),U=U+Math.imul(Ve,gt)|0,M=M+Math.imul(Ve,Xt)|0,M=M+Math.imul(At,gt)|0,V=V+Math.imul(At,Xt)|0,U=U+Math.imul(lt,un)|0,M=M+Math.imul(lt,ln)|0,M=M+Math.imul(Ut,un)|0,V=V+Math.imul(Ut,ln)|0;var mae=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(mae>>>26)|0,mae&=67108863,U=Math.imul(rt,gt),M=Math.imul(rt,Xt),M=M+Math.imul(Ft,gt)|0,V=Math.imul(Ft,Xt),U=U+Math.imul(Ve,un)|0,M=M+Math.imul(Ve,ln)|0,M=M+Math.imul(At,un)|0,V=V+Math.imul(At,ln)|0;var yae=(N+U|0)+((M&8191)<<13)|0;N=(V+(M>>>13)|0)+(yae>>>26)|0,yae&=67108863,U=Math.imul(rt,un),M=Math.imul(rt,ln),M=M+Math.imul(Ft,un)|0,V=Math.imul(Ft,ln);var O5=(N+U|0)+((M&8191)<<13)|0;return N=(V+(M>>>13)|0)+(O5>>>26)|0,O5&=67108863,x[0]=ho,x[1]=mo,x[2]=yo,x[3]=bo,x[4]=go,x[5]=q0,x[6]=W0,x[7]=U0,x[8]=H0,x[9]=t0,x[10]=Wo,x[11]=r0,x[12]=vo,x[13]=j0,x[14]=wu,x[15]=ch,x[16]=mae,x[17]=yae,x[18]=O5,N!==0&&(x[19]=N,O.length++),O};Math.imul||(A=P);function B(S,w,R){R.negative=w.negative^S.negative,R.length=S.length+w.length;for(var O=0,D=0,T=0;T>>26)|0,D+=x>>>26,x&=67108863}R.words[T]=N,O=x,x=D}return O!==0?R.words[T]=O:R.length--,R._strip()}function F(S,w,R){return B(S,w,R)}a.prototype.mulTo=function(w,R){var O,D=this.length+w.length;return this.length===10&&w.length===10?O=A(this,w,R):D<63?O=P(this,w,R):D<1024?O=B(this,w,R):O=F(this,w,R),O};function W(S,w){this.x=S,this.y=w}W.prototype.makeRBT=function(w){for(var R=new Array(w),O=a.prototype._countBits(w)-1,D=0;D>=1;return D},W.prototype.permute=function(w,R,O,D,T,x){for(var N=0;N>>1)T++;return 1<>>13,O[2*x+1]=T&8191,T=T>>>13;for(x=2*R;x>=26,O+=T/67108864|0,O+=x>>>26,this.words[D]=x&67108863}return O!==0&&(this.words[D]=O,this.length++),R?this.ineg():this},a.prototype.muln=function(w){return this.clone().imuln(w)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(w){var R=C(w);if(R.length===0)return new a(1);for(var O=this,D=0;D=0);var R=w%26,O=(w-R)/26,D=67108863>>>26-R<<26-R,T;if(R!==0){var x=0;for(T=0;T>>26-R}x&&(this.words[T]=x,this.length++)}if(O!==0){for(T=this.length-1;T>=0;T--)this.words[T+O]=this.words[T];for(T=0;T=0);var D;R?D=(R-R%26)/26:D=0;var T=w%26,x=Math.min((w-T)/26,this.length),N=67108863^67108863>>>T<x)for(this.length-=x,M=0;M=0&&(V!==0||M>=D);M--){var ee=this.words[M]|0;this.words[M]=V<<26-T|ee>>>T,V=ee&N}return U&&V!==0&&(U.words[U.length++]=V),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(w,R,O){return t(this.negative===0),this.iushrn(w,R,O)},a.prototype.shln=function(w){return this.clone().ishln(w)},a.prototype.ushln=function(w){return this.clone().iushln(w)},a.prototype.shrn=function(w){return this.clone().ishrn(w)},a.prototype.ushrn=function(w){return this.clone().iushrn(w)},a.prototype.testn=function(w){t(typeof w=="number"&&w>=0);var R=w%26,O=(w-R)/26,D=1<=0);var R=w%26,O=(w-R)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(R!==0&&O++,this.length=Math.min(O,this.length),R!==0){var D=67108863^67108863>>>R<=67108864;R++)this.words[R]-=67108864,R===this.length-1?this.words[R+1]=1:this.words[R+1]++;return this.length=Math.max(this.length,R+1),this},a.prototype.isubn=function(w){if(t(typeof w=="number"),t(w<67108864),w<0)return this.iaddn(-w);if(this.negative!==0)return this.negative=0,this.iaddn(w),this.negative=1,this;if(this.words[0]-=w,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var R=0;R>26)-(U/67108864|0),this.words[T+O]=x&67108863}for(;T>26,this.words[T+O]=x&67108863;if(N===0)return this._strip();for(t(N===-1),N=0,T=0;T>26,this.words[T]=x&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(w,R){var O=this.length-w.length,D=this.clone(),T=w,x=T.words[T.length-1]|0,N=this._countBits(x);O=26-N,O!==0&&(T=T.ushln(O),D.iushln(O),x=T.words[T.length-1]|0);var U=D.length-T.length,M;if(R!=="mod"){M=new a(null),M.length=U+1,M.words=new Array(M.length);for(var V=0;V=0;$--){var X=(D.words[T.length+$]|0)*67108864+(D.words[T.length+$-1]|0);for(X=Math.min(X/x|0,67108863),D._ishlnsubmul(T,X,$);D.negative!==0;)X--,D.negative=0,D._ishlnsubmul(T,1,$),D.isZero()||(D.negative^=1);M&&(M.words[$]=X)}return M&&M._strip(),D._strip(),R!=="div"&&O!==0&&D.iushrn(O),{div:M||null,mod:D}},a.prototype.divmod=function(w,R,O){if(t(!w.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var D,T,x;return this.negative!==0&&w.negative===0?(x=this.neg().divmod(w,R),R!=="mod"&&(D=x.div.neg()),R!=="div"&&(T=x.mod.neg(),O&&T.negative!==0&&T.iadd(w)),{div:D,mod:T}):this.negative===0&&w.negative!==0?(x=this.divmod(w.neg(),R),R!=="mod"&&(D=x.div.neg()),{div:D,mod:x.mod}):(this.negative&w.negative)!==0?(x=this.neg().divmod(w.neg(),R),R!=="div"&&(T=x.mod.neg(),O&&T.negative!==0&&T.isub(w)),{div:x.div,mod:T}):w.length>this.length||this.cmp(w)<0?{div:new a(0),mod:this}:w.length===1?R==="div"?{div:this.divn(w.words[0]),mod:null}:R==="mod"?{div:null,mod:new a(this.modrn(w.words[0]))}:{div:this.divn(w.words[0]),mod:new a(this.modrn(w.words[0]))}:this._wordDiv(w,R)},a.prototype.div=function(w){return this.divmod(w,"div",!1).div},a.prototype.mod=function(w){return this.divmod(w,"mod",!1).mod},a.prototype.umod=function(w){return this.divmod(w,"mod",!0).mod},a.prototype.divRound=function(w){var R=this.divmod(w);if(R.mod.isZero())return R.div;var O=R.div.negative!==0?R.mod.isub(w):R.mod,D=w.ushrn(1),T=w.andln(1),x=O.cmp(D);return x<0||T===1&&x===0?R.div:R.div.negative!==0?R.div.isubn(1):R.div.iaddn(1)},a.prototype.modrn=function(w){var R=w<0;R&&(w=-w),t(w<=67108863);for(var O=(1<<26)%w,D=0,T=this.length-1;T>=0;T--)D=(O*D+(this.words[T]|0))%w;return R?-D:D},a.prototype.modn=function(w){return this.modrn(w)},a.prototype.idivn=function(w){var R=w<0;R&&(w=-w),t(w<=67108863);for(var O=0,D=this.length-1;D>=0;D--){var T=(this.words[D]|0)+O*67108864;this.words[D]=T/w|0,O=T%w}return this._strip(),R?this.ineg():this},a.prototype.divn=function(w){return this.clone().idivn(w)},a.prototype.egcd=function(w){t(w.negative===0),t(!w.isZero());var R=this,O=w.clone();R.negative!==0?R=R.umod(w):R=R.clone();for(var D=new a(1),T=new a(0),x=new a(0),N=new a(1),U=0;R.isEven()&&O.isEven();)R.iushrn(1),O.iushrn(1),++U;for(var M=O.clone(),V=R.clone();!R.isZero();){for(var ee=0,$=1;(R.words[0]&$)===0&&ee<26;++ee,$<<=1);if(ee>0)for(R.iushrn(ee);ee-- >0;)(D.isOdd()||T.isOdd())&&(D.iadd(M),T.isub(V)),D.iushrn(1),T.iushrn(1);for(var X=0,se=1;(O.words[0]&se)===0&&X<26;++X,se<<=1);if(X>0)for(O.iushrn(X);X-- >0;)(x.isOdd()||N.isOdd())&&(x.iadd(M),N.isub(V)),x.iushrn(1),N.iushrn(1);R.cmp(O)>=0?(R.isub(O),D.isub(x),T.isub(N)):(O.isub(R),x.isub(D),N.isub(T))}return{a:x,b:N,gcd:O.iushln(U)}},a.prototype._invmp=function(w){t(w.negative===0),t(!w.isZero());var R=this,O=w.clone();R.negative!==0?R=R.umod(w):R=R.clone();for(var D=new a(1),T=new a(0),x=O.clone();R.cmpn(1)>0&&O.cmpn(1)>0;){for(var N=0,U=1;(R.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(R.iushrn(N);N-- >0;)D.isOdd()&&D.iadd(x),D.iushrn(1);for(var M=0,V=1;(O.words[0]&V)===0&&M<26;++M,V<<=1);if(M>0)for(O.iushrn(M);M-- >0;)T.isOdd()&&T.iadd(x),T.iushrn(1);R.cmp(O)>=0?(R.isub(O),D.isub(T)):(O.isub(R),T.isub(D))}var ee;return R.cmpn(1)===0?ee=D:ee=T,ee.cmpn(0)<0&&ee.iadd(w),ee},a.prototype.gcd=function(w){if(this.isZero())return w.abs();if(w.isZero())return this.abs();var R=this.clone(),O=w.clone();R.negative=0,O.negative=0;for(var D=0;R.isEven()&&O.isEven();D++)R.iushrn(1),O.iushrn(1);do{for(;R.isEven();)R.iushrn(1);for(;O.isEven();)O.iushrn(1);var T=R.cmp(O);if(T<0){var x=R;R=O,O=x}else if(T===0||O.cmpn(1)===0)break;R.isub(O)}while(!0);return O.iushln(D)},a.prototype.invm=function(w){return this.egcd(w).a.umod(w)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(w){return this.words[0]&w},a.prototype.bincn=function(w){t(typeof w=="number");var R=w%26,O=(w-R)/26,D=1<>>26,N&=67108863,this.words[x]=N}return T!==0&&(this.words[x]=T,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(w){var R=w<0;if(this.negative!==0&&!R)return-1;if(this.negative===0&&R)return 1;this._strip();var O;if(this.length>1)O=1;else{R&&(w=-w),t(w<=67108863,"Number is too big");var D=this.words[0]|0;O=D===w?0:Dw.length)return 1;if(this.length=0;O--){var D=this.words[O]|0,T=w.words[O]|0;if(D!==T){DT&&(R=1);break}}return R},a.prototype.gtn=function(w){return this.cmpn(w)===1},a.prototype.gt=function(w){return this.cmp(w)===1},a.prototype.gten=function(w){return this.cmpn(w)>=0},a.prototype.gte=function(w){return this.cmp(w)>=0},a.prototype.ltn=function(w){return this.cmpn(w)===-1},a.prototype.lt=function(w){return this.cmp(w)===-1},a.prototype.lten=function(w){return this.cmpn(w)<=0},a.prototype.lte=function(w){return this.cmp(w)<=0},a.prototype.eqn=function(w){return this.cmpn(w)===0},a.prototype.eq=function(w){return this.cmp(w)===0},a.red=function(w){return new b(w)},a.prototype.toRed=function(w){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),w.convertTo(this)._forceRed(w)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(w){return this.red=w,this},a.prototype.forceRed=function(w){return t(!this.red,"Already a number in reduction context"),this._forceRed(w)},a.prototype.redAdd=function(w){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,w)},a.prototype.redIAdd=function(w){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,w)},a.prototype.redSub=function(w){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,w)},a.prototype.redISub=function(w){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,w)},a.prototype.redShl=function(w){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,w)},a.prototype.redMul=function(w){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.mul(this,w)},a.prototype.redIMul=function(w){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.imul(this,w)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(w){return t(this.red&&!w.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,w)};var K={k256:null,p224:null,p192:null,p25519:null};function z(S,w){this.name=S,this.p=new a(w,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var w=new a(null);return w.words=new Array(Math.ceil(this.n/13)),w},z.prototype.ireduce=function(w){var R=w,O;do this.split(R,this.tmp),R=this.imulK(R),R=R.iadd(this.tmp),O=R.bitLength();while(O>this.n);var D=O0?R.isub(this.p):R.strip!==void 0?R.strip():R._strip(),R},z.prototype.split=function(w,R){w.iushrn(this.n,0,R)},z.prototype.imulK=function(w){return w.imul(this.k)};function G(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(G,z),G.prototype.split=function(w,R){for(var O=4194303,D=Math.min(w.length,9),T=0;T>>22,x=N}x>>>=22,w.words[T-10]=x,x===0&&w.length>10?w.length-=10:w.length-=9},G.prototype.imulK=function(w){w.words[w.length]=0,w.words[w.length+1]=0,w.length+=2;for(var R=0,O=0;O>>=26,w.words[O]=T,R=D}return R!==0&&(w.words[w.length++]=R),w},a._prime=function(w){if(K[w])return K[w];var R;if(w==="k256")R=new G;else if(w==="p224")R=new j;else if(w==="p192")R=new H;else if(w==="p25519")R=new I;else throw new Error("Unknown prime "+w);return K[w]=R,R};function b(S){if(typeof S=="string"){var w=a._prime(S);this.m=w.p,this.prime=w}else t(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}b.prototype._verify1=function(w){t(w.negative===0,"red works only with positives"),t(w.red,"red works only with red numbers")},b.prototype._verify2=function(w,R){t((w.negative|R.negative)===0,"red works only with positives"),t(w.red&&w.red===R.red,"red works only with red numbers")},b.prototype.imod=function(w){return this.prime?this.prime.ireduce(w)._forceRed(this):(u(w,w.umod(this.m)._forceRed(this)),w)},b.prototype.neg=function(w){return w.isZero()?w.clone():this.m.sub(w)._forceRed(this)},b.prototype.add=function(w,R){this._verify2(w,R);var O=w.add(R);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},b.prototype.iadd=function(w,R){this._verify2(w,R);var O=w.iadd(R);return O.cmp(this.m)>=0&&O.isub(this.m),O},b.prototype.sub=function(w,R){this._verify2(w,R);var O=w.sub(R);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},b.prototype.isub=function(w,R){this._verify2(w,R);var O=w.isub(R);return O.cmpn(0)<0&&O.iadd(this.m),O},b.prototype.shl=function(w,R){return this._verify1(w),this.imod(w.ushln(R))},b.prototype.imul=function(w,R){return this._verify2(w,R),this.imod(w.imul(R))},b.prototype.mul=function(w,R){return this._verify2(w,R),this.imod(w.mul(R))},b.prototype.isqr=function(w){return this.imul(w,w.clone())},b.prototype.sqr=function(w){return this.mul(w,w)},b.prototype.sqrt=function(w){if(w.isZero())return w.clone();var R=this.m.andln(3);if(t(R%2===1),R===3){var O=this.m.add(new a(1)).iushrn(2);return this.pow(w,O)}for(var D=this.m.subn(1),T=0;!D.isZero()&&D.andln(1)===0;)T++,D.iushrn(1);t(!D.isZero());var x=new a(1).toRed(this),N=x.redNeg(),U=this.m.subn(1).iushrn(1),M=this.m.bitLength();for(M=new a(2*M*M).toRed(this);this.pow(M,U).cmp(N)!==0;)M.redIAdd(N);for(var V=this.pow(M,D),ee=this.pow(w,D.addn(1).iushrn(1)),$=this.pow(w,D),X=T;$.cmp(x)!==0;){for(var se=$,ue=0;se.cmp(x)!==0;ue++)se=se.redSqr();t(ue=0;T--){for(var V=R.words[T],ee=M-1;ee>=0;ee--){var $=V>>ee&1;if(x!==D[0]&&(x=this.sqr(x)),$===0&&N===0){U=0;continue}N<<=1,N|=$,U++,!(U!==O&&(T!==0||ee!==0))&&(x=this.mul(x,D[N]),U=0,N=0)}M=26}return x},b.prototype.convertTo=function(w){var R=w.umod(this.m);return R===w?R.clone():R},b.prototype.convertFrom=function(w){var R=w.clone();return R.red=null,R},a.mont=function(w){return new k(w)};function k(S){b.call(this,S),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(k,b),k.prototype.convertTo=function(w){return this.imod(w.ushln(this.shift))},k.prototype.convertFrom=function(w){var R=this.imod(w.mul(this.rinv));return R.red=null,R},k.prototype.imul=function(w,R){if(w.isZero()||R.isZero())return w.words[0]=0,w.length=1,w;var O=w.imul(R),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=O.isub(D).iushrn(this.shift),x=T;return T.cmp(this.m)>=0?x=T.isub(this.m):T.cmpn(0)<0&&(x=T.iadd(this.m)),x._forceRed(this)},k.prototype.mul=function(w,R){if(w.isZero()||R.isZero())return new a(0)._forceRed(this);var O=w.mul(R),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),T=O.isub(D).iushrn(this.shift),x=T;return T.cmp(this.m)>=0?x=T.isub(this.m):T.cmpn(0)<0&&(x=T.iadd(this.m)),x._forceRed(this)},k.prototype.invm=function(w){var R=this.imod(w._invmp(this.m).mul(this.r2));return R._forceRed(this)}})(typeof wIe>"u"||wIe,Knt)});var Gnt=E(the=>{"use strict";f();d();Object.defineProperty(the,"__esModule",{value:!0});the.version=void 0;the.version="logger/5.7.0"});var gr=E(Um=>{"use strict";f();d();Object.defineProperty(Um,"__esModule",{value:!0});Um.Logger=Um.ErrorCode=Um.LogLevel=void 0;var Vnt=!1,$nt=!1,rhe={debug:1,default:2,info:2,warning:3,error:4,off:5},Ynt=rhe.default,u0r=Gnt(),xIe=null;function l0r(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var Qnt=l0r(),Znt;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(Znt=Um.LogLevel||(Um.LogLevel={}));var Wm;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(Wm=Um.ErrorCode||(Um.ErrorCode={}));var Jnt="0123456789abcdef",f0r=function(){function r(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return r.prototype._log=function(e,t){var n=e.toLowerCase();rhe[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(Ynt>rhe[n])&&console.log.apply(console,t)},r.prototype.debug=function(){for(var e=[],t=0;t>4],p+=Jnt[l[h]&15];a.push(u+"=Uint8Array(0x"+p+")")}else a.push(u+"="+JSON.stringify(l))}catch{a.push(u+"="+JSON.stringify(n[u].toString()))}}),a.push("code="+t),a.push("version="+this.version);var i=e,s="";switch(t){case Wm.NUMERIC_FAULT:{s="NUMERIC_FAULT";var o=e;switch(o){case"overflow":case"underflow":case"division-by-zero":s+="-"+o;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case Wm.CALL_EXCEPTION:case Wm.INSUFFICIENT_FUNDS:case Wm.MISSING_NEW:case Wm.NONCE_EXPIRED:case Wm.REPLACEMENT_UNDERPRICED:case Wm.TRANSACTION_REPLACED:case Wm.UNPREDICTABLE_GAS_LIMIT:s=t;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");var c=new Error(e);return c.reason=i,c.code=t,Object.keys(n).forEach(function(u){c[u]=n[u]}),c},r.prototype.throwError=function(e,t,n){throw this.makeError(e,t,n)},r.prototype.throwArgumentError=function(e,t,n){return this.throwError(e,r.errors.INVALID_ARGUMENT,{argument:t,value:n})},r.prototype.assert=function(e,t,n,a){e||this.throwError(t,n,a)},r.prototype.assertArgument=function(e,t,n,a){e||this.throwArgumentError(t,n,a)},r.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),Qnt&&this.throwError("platform missing String.prototype.normalize",r.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Qnt})},r.prototype.checkSafeUint53=function(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},r.prototype.checkArgumentCount=function(e,t,n){n?n=": "+n:n="",et&&this.throwError("too many arguments"+n,r.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},r.prototype.checkNew=function(e,t){(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",r.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.globalLogger=function(){return xIe||(xIe=new r(u0r.version)),xIe},r.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Vnt){if(!e)return;this.globalLogger().throwError("error censorship permanent",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}$nt=!!e,Vnt=!!t},r.setLogLevel=function(e){var t=rhe[e.toLowerCase()];if(t==null){r.globalLogger().warn("invalid log level - "+e);return}Ynt=t},r.from=function(e){return new r(e)},r.errors=Wm,r.levels=Znt,r}();Um.Logger=f0r});var Xnt=E(nhe=>{"use strict";f();d();Object.defineProperty(nhe,"__esModule",{value:!0});nhe.version=void 0;nhe.version="bytes/5.7.0"});var Qr=E(Kn=>{"use strict";f();d();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.joinSignature=Kn.splitSignature=Kn.hexZeroPad=Kn.hexStripZeros=Kn.hexValue=Kn.hexConcat=Kn.hexDataSlice=Kn.hexDataLength=Kn.hexlify=Kn.isHexString=Kn.zeroPad=Kn.stripZeros=Kn.concat=Kn.arrayify=Kn.isBytes=Kn.isBytesLike=void 0;var d0r=gr(),p0r=Xnt(),xo=new d0r.Logger(p0r.version);function tat(r){return!!r.toHexString}function Ex(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return Ex(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function rat(r){return uh(r)&&!(r.length%2)||ihe(r)}Kn.isBytesLike=rat;function eat(r){return typeof r=="number"&&r==r&&r%1===0}function ihe(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!eat(r.length)||r.length<0)return!1;for(var e=0;e=256)return!1}return!0}Kn.isBytes=ihe;function W5(r,e){if(e||(e={}),typeof r=="number"){xo.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),Ex(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),tat(r)&&(r=r.toHexString()),uh(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":xo.throwArgumentError("hex data is odd-length","value",r));for(var t=[],a=0;ae&&xo.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),Ex(t)}Kn.zeroPad=aat;function uh(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}Kn.isHexString=uh;var _Ie="0123456789abcdef";function xu(r,e){if(e||(e={}),typeof r=="number"){xo.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=_Ie[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),tat(r))return r.toHexString();if(uh(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":xo.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(ihe(r)){for(var n="0x",a=0;a>4]+_Ie[i&15]}return n}return xo.throwArgumentError("invalid hexlify value","value",r)}Kn.hexlify=xu;function m0r(r){if(typeof r!="string")r=xu(r);else if(!uh(r)||r.length%2)return null;return(r.length-2)/2}Kn.hexDataLength=m0r;function y0r(r,e,t){return typeof r!="string"?r=xu(r):(!uh(r)||r.length%2)&&xo.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}Kn.hexDataSlice=y0r;function b0r(r){var e="0x";return r.forEach(function(t){e+=xu(t).substring(2)}),e}Kn.hexConcat=b0r;function g0r(r){var e=iat(xu(r,{hexPad:"left"}));return e==="0x"?"0x0":e}Kn.hexValue=g0r;function iat(r){typeof r!="string"&&(r=xu(r)),uh(r)||xo.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e2*e+2&&xo.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}Kn.hexZeroPad=ahe;function sat(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(rat(r)){var t=W5(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=xu(t.slice(0,32)),e.s=xu(t.slice(32,64))):t.length===65?(e.r=xu(t.slice(0,32)),e.s=xu(t.slice(32,64)),e.v=t[64]):xo.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:xo.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=xu(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=aat(W5(e._vs),32);e._vs=xu(n);var a=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&xo.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var i=xu(n);e.s==null?e.s=i:e.s!==i&&xo.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?xo.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&xo.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!uh(e.r)?xo.throwArgumentError("signature missing or invalid r","signature",r):e.r=ahe(e.r,32),e.s==null||!uh(e.s)?xo.throwArgumentError("signature missing or invalid s","signature",r):e.s=ahe(e.s,32);var o=W5(e.s);o[0]>=128&&xo.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(o[0]|=128);var c=xu(o);e._vs&&(uh(e._vs)||xo.throwArgumentError("signature invalid _vs","signature",r),e._vs=ahe(e._vs,32)),e._vs==null?e._vs=c:e._vs!==c&&xo.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Kn.splitSignature=sat;function v0r(r){return r=sat(r),xu(nat([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}Kn.joinSignature=v0r});var TIe=E(she=>{"use strict";f();d();Object.defineProperty(she,"__esModule",{value:!0});she.version=void 0;she.version="bignumber/5.7.0"});var che=E(Wd=>{"use strict";f();d();var w0r=Wd&&Wd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Wd,"__esModule",{value:!0});Wd._base16To36=Wd._base36To16=Wd.BigNumber=Wd.isBigNumberish=void 0;var x0r=w0r(Fr()),bae=x0r.default.BN,Ix=Qr(),Cx=gr(),_0r=TIe(),Oy=new Cx.Logger(_0r.version),EIe={},oat=9007199254740991;function T0r(r){return r!=null&&(ohe.isBigNumber(r)||typeof r=="number"&&r%1===0||typeof r=="string"&&!!r.match(/^-?[0-9]+$/)||(0,Ix.isHexString)(r)||typeof r=="bigint"||(0,Ix.isBytes)(r))}Wd.isBigNumberish=T0r;var cat=!1,ohe=function(){function r(e,t){e!==EIe&&Oy.throwError("cannot call constructor directly; use BigNumber.from",Cx.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return r.prototype.fromTwos=function(e){return Kl(kn(this).fromTwos(e))},r.prototype.toTwos=function(e){return Kl(kn(this).toTwos(e))},r.prototype.abs=function(){return this._hex[0]==="-"?r.from(this._hex.substring(1)):this},r.prototype.add=function(e){return Kl(kn(this).add(kn(e)))},r.prototype.sub=function(e){return Kl(kn(this).sub(kn(e)))},r.prototype.div=function(e){var t=r.from(e);return t.isZero()&&qd("division-by-zero","div"),Kl(kn(this).div(kn(e)))},r.prototype.mul=function(e){return Kl(kn(this).mul(kn(e)))},r.prototype.mod=function(e){var t=kn(e);return t.isNeg()&&qd("division-by-zero","mod"),Kl(kn(this).umod(t))},r.prototype.pow=function(e){var t=kn(e);return t.isNeg()&&qd("negative-power","pow"),Kl(kn(this).pow(t))},r.prototype.and=function(e){var t=kn(e);return(this.isNegative()||t.isNeg())&&qd("unbound-bitwise-result","and"),Kl(kn(this).and(t))},r.prototype.or=function(e){var t=kn(e);return(this.isNegative()||t.isNeg())&&qd("unbound-bitwise-result","or"),Kl(kn(this).or(t))},r.prototype.xor=function(e){var t=kn(e);return(this.isNegative()||t.isNeg())&&qd("unbound-bitwise-result","xor"),Kl(kn(this).xor(t))},r.prototype.mask=function(e){return(this.isNegative()||e<0)&&qd("negative-width","mask"),Kl(kn(this).maskn(e))},r.prototype.shl=function(e){return(this.isNegative()||e<0)&&qd("negative-width","shl"),Kl(kn(this).shln(e))},r.prototype.shr=function(e){return(this.isNegative()||e<0)&&qd("negative-width","shr"),Kl(kn(this).shrn(e))},r.prototype.eq=function(e){return kn(this).eq(kn(e))},r.prototype.lt=function(e){return kn(this).lt(kn(e))},r.prototype.lte=function(e){return kn(this).lte(kn(e))},r.prototype.gt=function(e){return kn(this).gt(kn(e))},r.prototype.gte=function(e){return kn(this).gte(kn(e))},r.prototype.isNegative=function(){return this._hex[0]==="-"},r.prototype.isZero=function(){return kn(this).isZero()},r.prototype.toNumber=function(){try{return kn(this).toNumber()}catch{qd("overflow","toNumber",this.toString())}return null},r.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return Oy.throwError("this platform does not support BigInt",Cx.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},r.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?cat||(cat=!0,Oy.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Oy.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Cx.Logger.errors.UNEXPECTED_ARGUMENT,{}):Oy.throwError("BigNumber.toString does not accept parameters",Cx.Logger.errors.UNEXPECTED_ARGUMENT,{})),kn(this).toString(10)},r.prototype.toHexString=function(){return this._hex},r.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},r.from=function(e){if(e instanceof r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new r(EIe,gae(e)):e.match(/^-?[0-9]+$/)?new r(EIe,gae(new bae(e))):Oy.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&qd("underflow","BigNumber.from",e),(e>=oat||e<=-oat)&&qd("overflow","BigNumber.from",e),r.from(String(e));var t=e;if(typeof t=="bigint")return r.from(t.toString());if((0,Ix.isBytes)(t))return r.from((0,Ix.hexlify)(t));if(t)if(t.toHexString){var n=t.toHexString();if(typeof n=="string")return r.from(n)}else{var n=t._hex;if(n==null&&t.type==="BigNumber"&&(n=t.hex),typeof n=="string"&&((0,Ix.isHexString)(n)||n[0]==="-"&&(0,Ix.isHexString)(n.substring(1))))return r.from(n)}return Oy.throwArgumentError("invalid BigNumber value","value",e)},r.isBigNumber=function(e){return!!(e&&e._isBigNumber)},r}();Wd.BigNumber=ohe;function gae(r){if(typeof r!="string")return gae(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&Oy.throwArgumentError("invalid hex","value",r),r=gae(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function Kl(r){return ohe.from(gae(r))}function kn(r){var e=ohe.from(r).toHexString();return e[0]==="-"?new bae("-"+e.substring(3),16):new bae(e.substring(2),16)}function qd(r,e,t){var n={fault:r,operation:e};return t!=null&&(n.value=t),Oy.throwError(r,Cx.Logger.errors.NUMERIC_FAULT,n)}function E0r(r){return new bae(r,36).toString(16)}Wd._base36To16=E0r;function I0r(r){return new bae(r,16).toString(36)}Wd._base16To36=I0r});var pat=E(jm=>{"use strict";f();d();Object.defineProperty(jm,"__esModule",{value:!0});jm.FixedNumber=jm.FixedFormat=jm.parseFixed=jm.formatFixed=void 0;var uhe=Qr(),xae=gr(),C0r=TIe(),hl=new xae.Logger(C0r.version),Fy=che(),vae={},lat=Fy.BigNumber.from(0),fat=Fy.BigNumber.from(-1);function dat(r,e,t,n){var a={fault:e,operation:t};return n!==void 0&&(a.value=n),hl.throwError(r,xae.Logger.errors.NUMERIC_FAULT,a)}var wae="0";for(;wae.length<256;)wae+=wae;function IIe(r){if(typeof r!="number")try{r=Fy.BigNumber.from(r).toNumber()}catch{}return typeof r=="number"&&r>=0&&r<=256&&!(r%1)?"1"+wae.substring(0,r):hl.throwArgumentError("invalid decimal size","decimals",r)}function lhe(r,e){e==null&&(e=0);var t=IIe(e);r=Fy.BigNumber.from(r);var n=r.lt(lat);n&&(r=r.mul(fat));for(var a=r.mod(t).toString();a.length2&&hl.throwArgumentError("too many decimal points","value",r);var i=a[0],s=a[1];for(i||(i="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>t.length-1&&dat("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length80&&hl.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new r(vae,t,n,a)},r}();jm.FixedFormat=fhe;var CIe=function(){function r(e,t,n,a){e!==vae&&hl.throwError("cannot use FixedNumber constructor; use FixedNumber.from",xae.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return r.prototype._checkFormat=function(e){this.format.name!==e.format.name&&hl.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},r.prototype.addUnsafe=function(e){this._checkFormat(e);var t=Hm(this._value,this.format.decimals),n=Hm(e._value,e.format.decimals);return r.fromValue(t.add(n),this.format.decimals,this.format)},r.prototype.subUnsafe=function(e){this._checkFormat(e);var t=Hm(this._value,this.format.decimals),n=Hm(e._value,e.format.decimals);return r.fromValue(t.sub(n),this.format.decimals,this.format)},r.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=Hm(this._value,this.format.decimals),n=Hm(e._value,e.format.decimals);return r.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},r.prototype.divUnsafe=function(e){this._checkFormat(e);var t=Hm(this._value,this.format.decimals),n=Hm(e._value,e.format.decimals);return r.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},r.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(uat.toFormat(t.format))),t},r.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(uat.toFormat(t.format))),t},r.prototype.round=function(e){e==null&&(e=0);var t=this.toString().split(".");if(t.length===1&&t.push("0"),(e<0||e>80||e%1)&&hl.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;var n=r.from("1"+wae.substring(0,e),this.format),a=A0r.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)},r.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},r.prototype.isNegative=function(){return this._value[0]==="-"},r.prototype.toString=function(){return this._value},r.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&hl.throwArgumentError("invalid byte width","width",e);var t=Fy.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,uhe.hexZeroPad)(t,e/8)},r.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},r.prototype.toFormat=function(e){return r.fromString(this._value,e)},r.fromValue=function(e,t,n){return n==null&&t!=null&&!(0,Fy.isBigNumberish)(t)&&(n=t,t=null),t==null&&(t=0),n==null&&(n="fixed"),r.fromString(lhe(e,t),fhe.from(n))},r.fromString=function(e,t){t==null&&(t="fixed");var n=fhe.from(t),a=Hm(e,n.decimals);!n.signed&&a.lt(lat)&&dat("unsigned value cannot be negative","overflow","value",e);var i=null;n.signed?i=a.toTwos(n.width).toHexString():(i=a.toHexString(),i=(0,uhe.hexZeroPad)(i,n.width/8));var s=lhe(a,n.decimals);return new r(vae,i,s,n)},r.fromBytes=function(e,t){t==null&&(t="fixed");var n=fhe.from(t);if((0,uhe.arrayify)(e).length>n.width/8)throw new Error("overflow");var a=Fy.BigNumber.from(e);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),s=lhe(a,n.decimals);return new r(vae,i,s,n)},r.from=function(e,t){if(typeof e=="string")return r.fromString(e,t);if((0,uhe.isBytes)(e))return r.fromBytes(e,t);try{return r.fromValue(e,0,t)}catch(n){if(n.code!==xae.Logger.errors.INVALID_ARGUMENT)throw n}return hl.throwArgumentError("invalid FixedNumber value","value",e)},r.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},r}();jm.FixedNumber=CIe;var uat=CIe.from(1),A0r=CIe.from("0.5")});var Yi=E(_u=>{"use strict";f();d();Object.defineProperty(_u,"__esModule",{value:!0});_u._base36To16=_u._base16To36=_u.parseFixed=_u.FixedNumber=_u.FixedFormat=_u.formatFixed=_u.BigNumber=void 0;var k0r=che();Object.defineProperty(_u,"BigNumber",{enumerable:!0,get:function(){return k0r.BigNumber}});var dhe=pat();Object.defineProperty(_u,"formatFixed",{enumerable:!0,get:function(){return dhe.formatFixed}});Object.defineProperty(_u,"FixedFormat",{enumerable:!0,get:function(){return dhe.FixedFormat}});Object.defineProperty(_u,"FixedNumber",{enumerable:!0,get:function(){return dhe.FixedNumber}});Object.defineProperty(_u,"parseFixed",{enumerable:!0,get:function(){return dhe.parseFixed}});var hat=che();Object.defineProperty(_u,"_base16To36",{enumerable:!0,get:function(){return hat._base16To36}});Object.defineProperty(_u,"_base36To16",{enumerable:!0,get:function(){return hat._base36To16}})});var mat=E(phe=>{"use strict";f();d();Object.defineProperty(phe,"__esModule",{value:!0});phe.version=void 0;phe.version="properties/5.7.0"});var ca=E(oc=>{"use strict";f();d();var S0r=oc&&oc.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},P0r=oc&&oc.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();Object.defineProperty(yhe,"__esModule",{value:!0});yhe.version=void 0;yhe.version="abi/5.7.0"});var The=E(Ir=>{"use strict";f();d();var whe=Ir&&Ir.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ir,"__esModule",{value:!0});Ir.ErrorFragment=Ir.FunctionFragment=Ir.ConstructorFragment=Ir.EventFragment=Ir.Fragment=Ir.ParamType=Ir.FormatTypes=void 0;var PIe=Yi(),W0r=ca(),xhe=gr(),U0r=Ax(),Dn=new xhe.Logger(U0r.version),U5={},gat={calldata:!0,memory:!0,storage:!0},H0r={calldata:!0,memory:!0};function bhe(r,e){if(r==="bytes"||r==="string"){if(gat[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&H0r[e])return!0;return(gat[e]||e==="payable")&&Dn.throwArgumentError("invalid modifier","name",e),!1}function j0r(r,e){var t=r;function n(p){Dn.throwArgumentError("unexpected character at position "+p,"param",r)}r=r.replace(/\s/g," ");function a(p){var h={type:"",name:"",parent:p,state:{allowType:!0}};return e&&(h.indexed=!1),h}for(var i={type:"",name:"",state:{allowType:!0}},s=i,o=0;o2&&Dn.throwArgumentError("invalid human-readable ABI signature","value",r),t[1].match(/^[0-9]+$/)||Dn.throwArgumentError("invalid human-readable ABI signature gas","value",r),e.gas=PIe.BigNumber.from(t[1]),t[0]):r}function xat(r,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",r.split(" ").forEach(function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function _at(r){var e={constant:!1,payable:!0,stateMutability:"payable"};return r.stateMutability!=null?(e.stateMutability=r.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",r.constant!=null&&!!r.constant!==e.constant&&Dn.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",r),e.payable=e.stateMutability==="payable",r.payable!=null&&!!r.payable!==e.payable&&Dn.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",r)):r.payable!=null?(e.payable=!!r.payable,r.constant==null&&!e.payable&&r.type!=="constructor"&&Dn.throwArgumentError("unable to determine stateMutability","value",r),e.constant=!!r.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&Dn.throwArgumentError("cannot have constant payable function","value",r)):r.constant!=null?(e.constant=!!r.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):r.type!=="constructor"&&Dn.throwArgumentError("unable to determine stateMutability","value",r),e}var vhe=function(r){whe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=Ir.FormatTypes.sighash),Ir.FormatTypes[t]||Dn.throwArgumentError("invalid format type","format",t),t===Ir.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});t===Ir.FormatTypes.sighash&&Dn.throwError("cannot format a constructor for sighash",xhe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(a){return a.format(t)}).join(t===Ir.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isConstructorFragment(t))return t;t.type!=="constructor"&&Dn.throwArgumentError("invalid constructor object","value",t);var n=_at(t);n.constant&&Dn.throwArgumentError("constructor cannot be constant","value",t);var a={name:null,type:t.type,inputs:t.inputs?t.inputs.map(H5.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?PIe.BigNumber.from(t.gas):null};return new e(U5,a)},e.fromString=function(t){var n={type:"constructor"};t=wat(t,n);var a=t.match(Eae);return(!a||a[1].trim()!=="constructor")&&Dn.throwArgumentError("invalid constructor string","value",t),n.inputs=_ae(a[2].trim(),!1),xat(a[3].trim(),n),e.fromObject(n)},e.isConstructorFragment=function(t){return t&&t._isFragment&&t.type==="constructor"},e}(_he);Ir.ConstructorFragment=vhe;var kIe=function(r){whe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=Ir.FormatTypes.sighash),Ir.FormatTypes[t]||Dn.throwArgumentError("invalid format type","format",t),t===Ir.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))}),outputs:this.outputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==Ir.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===Ir.FormatTypes.full?", ":",")+") ",t!==Ir.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(a){return a.format(t)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFunctionFragment(t))return t;t.type!=="function"&&Dn.throwArgumentError("invalid function object","value",t);var n=_at(t),a={type:t.type,name:Tae(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(H5.fromObject):[],outputs:t.outputs?t.outputs.map(H5.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?PIe.BigNumber.from(t.gas):null};return new e(U5,a)},e.fromString=function(t){var n={type:"function"};t=wat(t,n);var a=t.split(" returns ");a.length>2&&Dn.throwArgumentError("invalid function string","value",t);var i=a[0].match(Eae);if(i||Dn.throwArgumentError("invalid function signature","value",t),n.name=i[1].trim(),n.name&&Tae(n.name),n.inputs=_ae(i[2],!1),xat(i[3].trim(),n),a.length>1){var s=a[1].match(Eae);(s[1].trim()!=""||s[3].trim()!="")&&Dn.throwArgumentError("unexpected tokens","value",t),n.outputs=_ae(s[2],!1)}else n.outputs=[];return e.fromObject(n)},e.isFunctionFragment=function(t){return t&&t._isFragment&&t.type==="function"},e}(vhe);Ir.FunctionFragment=kIe;function vat(r){var e=r.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Dn.throwArgumentError("cannot specify user defined "+e+" error","fragment",r),r}var SIe=function(r){whe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=Ir.FormatTypes.sighash),Ir.FormatTypes[t]||Dn.throwArgumentError("invalid format type","format",t),t===Ir.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==Ir.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===Ir.FormatTypes.full?", ":",")+") ",n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isErrorFragment(t))return t;t.type!=="error"&&Dn.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:Tae(t.name),inputs:t.inputs?t.inputs.map(H5.fromObject):[]};return vat(new e(U5,n))},e.fromString=function(t){var n={type:"error"},a=t.match(Eae);return a||Dn.throwArgumentError("invalid error signature","value",t),n.name=a[1].trim(),n.name&&Tae(n.name),n.inputs=_ae(a[2],!1),vat(e.fromObject(n))},e.isErrorFragment=function(t){return t&&t._isFragment&&t.type==="error"},e}(_he);Ir.ErrorFragment=SIe;function kx(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}var K0r=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Tae(r){return(!r||!r.match(K0r))&&Dn.throwArgumentError('invalid identifier "'+r+'"',"value",r),r}var Eae=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function G0r(r){r=r.trim();for(var e=[],t="",n=0,a=0;a{"use strict";f();d();Object.defineProperty(zm,"__esModule",{value:!0});zm.Reader=zm.Writer=zm.Coder=zm.checkResultErrors=void 0;var A2=Qr(),Tat=Yi(),Iae=ca(),RIe=gr(),V0r=Ax(),MIe=new RIe.Logger(V0r.version);function $0r(r){var e=[],t=function(n,a){if(!!Array.isArray(a))for(var i in a){var s=n.slice();s.push(i);try{t(s,a[i])}catch(o){e.push({path:s,error:o})}}};return t([],r),e}zm.checkResultErrors=$0r;var Y0r=function(){function r(e,t,n,a){this.name=e,this.type=t,this.localName=n,this.dynamic=a}return r.prototype._throwError=function(e,t){MIe.throwArgumentError(e,this.localName,t)},r}();zm.Coder=Y0r;var Q0r=function(){function r(e){(0,Iae.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,A2.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),r.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},r.prototype.appendWriter=function(e){return this._writeData((0,A2.concat)(e._data))},r.prototype.writeBytes=function(e){var t=(0,A2.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,A2.concat)([t,this._padding.slice(n)])),this._writeData(t)},r.prototype._getValue=function(e){var t=(0,A2.arrayify)(Tat.BigNumber.from(e));return t.length>this.wordSize&&MIe.throwError("value out-of-bounds",RIe.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,A2.concat)([this._padding.slice(t.length%this.wordSize),t])),t},r.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},r.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}},r}();zm.Writer=Q0r;var J0r=function(){function r(e,t,n,a){(0,Iae.defineReadOnly)(this,"_data",(0,A2.arrayify)(e)),(0,Iae.defineReadOnly)(this,"wordSize",t||32),(0,Iae.defineReadOnly)(this,"_coerceFunc",n),(0,Iae.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,A2.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),r.coerce=function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t,n){var a=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?a=t:MIe.throwError("data out-of-bounds",RIe.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},r.prototype.readBytes=function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)},r.prototype.readValue=function(){return Tat.BigNumber.from(this.readBytes(this.wordSize))},r}();zm.Reader=J0r});var Ihe=E((tya,Ehe)=>{f();d();(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof g=="object"&&g.versions&&g.versions.node;i?n=global:a&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof Ehe=="object"&&Ehe.exports,o=typeof define=="function"&&define.amd,c=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),l=[31,7936,2031616,520093696],p=[4,1024,262144,67108864],h=[1,256,65536,16777216],m=[6,1536,393216,100663296],y=[0,8,16,24],C=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],P=[224,256,384,512],A=[128,256],B=["hex","buffer","arrayBuffer","array","digest"],F={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),c&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});for(var W=function($,X,se){return function(ue){return new M($,X,$).update(ue)[se]()}},K=function($,X,se){return function(ue,ye){return new M($,X,ye).update(ue)[se]()}},z=function($,X,se){return function(ue,ye,Ie,ge){return w["cshake"+$].update(ue,ye,Ie,ge)[se]()}},G=function($,X,se){return function(ue,ye,Ie,ge){return w["kmac"+$].update(ue,ye,Ie,ge)[se]()}},j=function($,X,se,ue){for(var ye=0;ye>5,this.byteCount=this.blockCount<<2,this.outputBlocks=se>>5,this.extraBytes=(se&31)>>3;for(var ue=0;ue<50;++ue)this.s[ue]=0}M.prototype.update=function($){if(this.finalized)throw new Error(e);var X,se=typeof $;if(se!=="string"){if(se==="object"){if($===null)throw new Error(r);if(c&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!c||!ArrayBuffer.isView($)))throw new Error(r)}else throw new Error(r);X=!0}for(var ue=this.blocks,ye=this.byteCount,Ie=$.length,ge=this.blockCount,xe=0,Ue=this.s,Te,Be;xe>2]|=$[xe]<>2]|=Be<>2]|=(192|Be>>6)<>2]|=(128|Be&63)<=57344?(ue[Te>>2]|=(224|Be>>12)<>2]|=(128|Be>>6&63)<>2]|=(128|Be&63)<>2]|=(240|Be>>18)<>2]|=(128|Be>>12&63)<>2]|=(128|Be>>6&63)<>2]|=(128|Be&63)<=ye){for(this.start=Te-ye,this.block=ue[ge],Te=0;Te>8,se=$&255;se>0;)ye.unshift(se),$=$>>8,se=$&255,++ue;return X?ye.push(ue):ye.unshift(ue),this.update(ye),ye.length},M.prototype.encodeString=function($){var X,se=typeof $;if(se!=="string"){if(se==="object"){if($===null)throw new Error(r);if(c&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!c||!ArrayBuffer.isView($)))throw new Error(r)}else throw new Error(r);X=!0}var ue=0,ye=$.length;if(X)ue=ye;else for(var Ie=0;Ie<$.length;++Ie){var ge=$.charCodeAt(Ie);ge<128?ue+=1:ge<2048?ue+=2:ge<55296||ge>=57344?ue+=3:(ge=65536+((ge&1023)<<10|$.charCodeAt(++Ie)&1023),ue+=4)}return ue+=this.encode(ue*8),this.update($),ue},M.prototype.bytepad=function($,X){for(var se=this.encode(X),ue=0;ue<$.length;++ue)se+=this.encodeString($[ue]);var ye=X-se%X,Ie=[];return Ie.length=ye,this.update(Ie),this},M.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,X=this.lastByteIndex,se=this.blockCount,ue=this.s;if($[X>>2]|=this.padding[X&3],this.lastByteIndex===this.byteCount)for($[0]=$[se],X=1;X>4&15]+u[xe&15]+u[xe>>12&15]+u[xe>>8&15]+u[xe>>20&15]+u[xe>>16&15]+u[xe>>28&15]+u[xe>>24&15];Ie%$===0&&(ee(X),ye=0)}return ue&&(xe=X[ye],ge+=u[xe>>4&15]+u[xe&15],ue>1&&(ge+=u[xe>>12&15]+u[xe>>8&15]),ue>2&&(ge+=u[xe>>20&15]+u[xe>>16&15])),ge},M.prototype.arrayBuffer=function(){this.finalize();var $=this.blockCount,X=this.s,se=this.outputBlocks,ue=this.extraBytes,ye=0,Ie=0,ge=this.outputBits>>3,xe;ue?xe=new ArrayBuffer(se+1<<2):xe=new ArrayBuffer(ge);for(var Ue=new Uint32Array(xe);Ie>8&255,ge[xe+2]=Ue>>16&255,ge[xe+3]=Ue>>24&255;Ie%$===0&&ee(X)}return ue&&(xe=Ie<<2,Ue=X[ye],ge[xe]=Ue&255,ue>1&&(ge[xe+1]=Ue>>8&255),ue>2&&(ge[xe+2]=Ue>>16&255)),ge};function V($,X,se){M.call(this,$,X,se)}V.prototype=new M,V.prototype.finalize=function(){return this.encode(this.outputBits,!0),M.prototype.finalize.call(this)};var ee=function($){var X,se,ue,ye,Ie,ge,xe,Ue,Te,Be,Tr,et,mt,jt,je,ht,ir,tt,It,br,lt,Ut,Or,Ve,At,Gr,rt,Ft,Vr,st,Lt,Hr,nt,Kt,Pr,ot,Gt,Er,at,Vt,$r,it,$t,jr,Le,yt,zr,ft,sr,wn,bt,Zt,xn,gt,Xt,qo,un,ln,ho,mo,yo,bo,go;for(ue=0;ue<48;ue+=2)ye=$[0]^$[10]^$[20]^$[30]^$[40],Ie=$[1]^$[11]^$[21]^$[31]^$[41],ge=$[2]^$[12]^$[22]^$[32]^$[42],xe=$[3]^$[13]^$[23]^$[33]^$[43],Ue=$[4]^$[14]^$[24]^$[34]^$[44],Te=$[5]^$[15]^$[25]^$[35]^$[45],Be=$[6]^$[16]^$[26]^$[36]^$[46],Tr=$[7]^$[17]^$[27]^$[37]^$[47],et=$[8]^$[18]^$[28]^$[38]^$[48],mt=$[9]^$[19]^$[29]^$[39]^$[49],X=et^(ge<<1|xe>>>31),se=mt^(xe<<1|ge>>>31),$[0]^=X,$[1]^=se,$[10]^=X,$[11]^=se,$[20]^=X,$[21]^=se,$[30]^=X,$[31]^=se,$[40]^=X,$[41]^=se,X=ye^(Ue<<1|Te>>>31),se=Ie^(Te<<1|Ue>>>31),$[2]^=X,$[3]^=se,$[12]^=X,$[13]^=se,$[22]^=X,$[23]^=se,$[32]^=X,$[33]^=se,$[42]^=X,$[43]^=se,X=ge^(Be<<1|Tr>>>31),se=xe^(Tr<<1|Be>>>31),$[4]^=X,$[5]^=se,$[14]^=X,$[15]^=se,$[24]^=X,$[25]^=se,$[34]^=X,$[35]^=se,$[44]^=X,$[45]^=se,X=Ue^(et<<1|mt>>>31),se=Te^(mt<<1|et>>>31),$[6]^=X,$[7]^=se,$[16]^=X,$[17]^=se,$[26]^=X,$[27]^=se,$[36]^=X,$[37]^=se,$[46]^=X,$[47]^=se,X=Be^(ye<<1|Ie>>>31),se=Tr^(Ie<<1|ye>>>31),$[8]^=X,$[9]^=se,$[18]^=X,$[19]^=se,$[28]^=X,$[29]^=se,$[38]^=X,$[39]^=se,$[48]^=X,$[49]^=se,jt=$[0],je=$[1],yt=$[11]<<4|$[10]>>>28,zr=$[10]<<4|$[11]>>>28,Ft=$[20]<<3|$[21]>>>29,Vr=$[21]<<3|$[20]>>>29,mo=$[31]<<9|$[30]>>>23,yo=$[30]<<9|$[31]>>>23,it=$[40]<<18|$[41]>>>14,$t=$[41]<<18|$[40]>>>14,Kt=$[2]<<1|$[3]>>>31,Pr=$[3]<<1|$[2]>>>31,ht=$[13]<<12|$[12]>>>20,ir=$[12]<<12|$[13]>>>20,ft=$[22]<<10|$[23]>>>22,sr=$[23]<<10|$[22]>>>22,st=$[33]<<13|$[32]>>>19,Lt=$[32]<<13|$[33]>>>19,bo=$[42]<<2|$[43]>>>30,go=$[43]<<2|$[42]>>>30,gt=$[5]<<30|$[4]>>>2,Xt=$[4]<<30|$[5]>>>2,ot=$[14]<<6|$[15]>>>26,Gt=$[15]<<6|$[14]>>>26,tt=$[25]<<11|$[24]>>>21,It=$[24]<<11|$[25]>>>21,wn=$[34]<<15|$[35]>>>17,bt=$[35]<<15|$[34]>>>17,Hr=$[45]<<29|$[44]>>>3,nt=$[44]<<29|$[45]>>>3,Ve=$[6]<<28|$[7]>>>4,At=$[7]<<28|$[6]>>>4,qo=$[17]<<23|$[16]>>>9,un=$[16]<<23|$[17]>>>9,Er=$[26]<<25|$[27]>>>7,at=$[27]<<25|$[26]>>>7,br=$[36]<<21|$[37]>>>11,lt=$[37]<<21|$[36]>>>11,Zt=$[47]<<24|$[46]>>>8,xn=$[46]<<24|$[47]>>>8,jr=$[8]<<27|$[9]>>>5,Le=$[9]<<27|$[8]>>>5,Gr=$[18]<<20|$[19]>>>12,rt=$[19]<<20|$[18]>>>12,ln=$[29]<<7|$[28]>>>25,ho=$[28]<<7|$[29]>>>25,Vt=$[38]<<8|$[39]>>>24,$r=$[39]<<8|$[38]>>>24,Ut=$[48]<<14|$[49]>>>18,Or=$[49]<<14|$[48]>>>18,$[0]=jt^~ht&tt,$[1]=je^~ir&It,$[10]=Ve^~Gr&Ft,$[11]=At^~rt&Vr,$[20]=Kt^~ot&Er,$[21]=Pr^~Gt&at,$[30]=jr^~yt&ft,$[31]=Le^~zr&sr,$[40]=gt^~qo&ln,$[41]=Xt^~un&ho,$[2]=ht^~tt&br,$[3]=ir^~It<,$[12]=Gr^~Ft&st,$[13]=rt^~Vr&Lt,$[22]=ot^~Er&Vt,$[23]=Gt^~at&$r,$[32]=yt^~ft&wn,$[33]=zr^~sr&bt,$[42]=qo^~ln&mo,$[43]=un^~ho&yo,$[4]=tt^~br&Ut,$[5]=It^~lt&Or,$[14]=Ft^~st&Hr,$[15]=Vr^~Lt&nt,$[24]=Er^~Vt&it,$[25]=at^~$r&$t,$[34]=ft^~wn&Zt,$[35]=sr^~bt&xn,$[44]=ln^~mo&bo,$[45]=ho^~yo&go,$[6]=br^~Ut&jt,$[7]=lt^~Or&je,$[16]=st^~Hr&Ve,$[17]=Lt^~nt&At,$[26]=Vt^~it&Kt,$[27]=$r^~$t&Pr,$[36]=wn^~Zt&jr,$[37]=bt^~xn&Le,$[46]=mo^~bo>,$[47]=yo^~go&Xt,$[8]=Ut^~jt&ht,$[9]=Or^~je&ir,$[18]=Hr^~Ve&Gr,$[19]=nt^~At&rt,$[28]=it^~Kt&ot,$[29]=$t^~Pr&Gt,$[38]=Zt^~jr&yt,$[39]=xn^~Le&zr,$[48]=bo^~gt&qo,$[49]=go^~Xt&un,$[0]^=C[ue],$[1]^=C[ue+1]};if(s)Ehe.exports=w;else{for(O=0;O{"use strict";f();d();var Z0r=Sx&&Sx.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sx,"__esModule",{value:!0});Sx.keccak256=void 0;var X0r=Z0r(Ihe()),eur=Qr();function tur(r){return"0x"+X0r.default.keccak_256((0,eur.arrayify)(r))}Sx.keccak256=tur});var Eat=E(Che=>{"use strict";f();d();Object.defineProperty(Che,"__esModule",{value:!0});Che.version=void 0;Che.version="rlp/5.7.0"});var Ahe=E(Px=>{"use strict";f();d();Object.defineProperty(Px,"__esModule",{value:!0});Px.decode=Px.encode=void 0;var j5=Qr(),Ly=gr(),rur=Eat(),Km=new Ly.Logger(rur.version);function Iat(r){for(var e=[];r;)e.unshift(r&255),r>>=8;return e}function Cat(r,e,t){for(var n=0,a=0;ae+1+n&&Km.throwError("child data too short",Ly.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function Sat(r,e){if(r.length===0&&Km.throwError("data too short",Ly.Logger.errors.BUFFER_OVERRUN,{}),r[e]>=248){var t=r[e]-247;e+1+t>r.length&&Km.throwError("data short segment too short",Ly.Logger.errors.BUFFER_OVERRUN,{});var n=Cat(r,e+1,t);return e+1+t+n>r.length&&Km.throwError("data long segment too short",Ly.Logger.errors.BUFFER_OVERRUN,{}),Aat(r,e,e+1+t,t+n)}else if(r[e]>=192){var a=r[e]-192;return e+1+a>r.length&&Km.throwError("data array too short",Ly.Logger.errors.BUFFER_OVERRUN,{}),Aat(r,e,e+1,a)}else if(r[e]>=184){var t=r[e]-183;e+1+t>r.length&&Km.throwError("data array too short",Ly.Logger.errors.BUFFER_OVERRUN,{});var i=Cat(r,e+1,t);e+1+t+i>r.length&&Km.throwError("data array too short",Ly.Logger.errors.BUFFER_OVERRUN,{});var s=(0,j5.hexlify)(r.slice(e+1+t,e+1+t+i));return{consumed:1+t+i,result:s}}else if(r[e]>=128){var o=r[e]-128;e+1+o>r.length&&Km.throwError("data too short",Ly.Logger.errors.BUFFER_OVERRUN,{});var s=(0,j5.hexlify)(r.slice(e+1,e+1+o));return{consumed:1+o,result:s}}return{consumed:1,result:(0,j5.hexlify)(r[e])}}function aur(r){var e=(0,j5.arrayify)(r),t=Sat(e,0);return t.consumed!==e.length&&Km.throwArgumentError("invalid rlp data","data",r),t.result}Px.decode=aur});var Pat=E(khe=>{"use strict";f();d();Object.defineProperty(khe,"__esModule",{value:!0});khe.version=void 0;khe.version="address/5.7.0"});var Hf=E(Hd=>{"use strict";f();d();Object.defineProperty(Hd,"__esModule",{value:!0});Hd.getCreate2Address=Hd.getContractAddress=Hd.getIcapAddress=Hd.isAddress=Hd.getAddress=void 0;var qy=Qr(),BIe=Yi(),DIe=Uf(),iur=Ahe(),sur=gr(),our=Pat(),k2=new sur.Logger(our.version);function Rat(r){(0,qy.isHexString)(r,20)||k2.throwArgumentError("invalid address","address",r),r=r.toLowerCase();for(var e=r.substring(2).split(""),t=new Uint8Array(40),n=0;n<40;n++)t[n]=e[n].charCodeAt(0);for(var a=(0,qy.arrayify)((0,DIe.keccak256)(t)),n=0;n<40;n+=2)a[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(a[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var cur=9007199254740991;function uur(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}var NIe={};for(lh=0;lh<10;lh++)NIe[String(lh)]=String(lh);var lh;for(lh=0;lh<26;lh++)NIe[String.fromCharCode(65+lh)]=String(10+lh);var lh,Mat=Math.floor(uur(cur));function Bat(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";for(var e=r.split("").map(function(a){return NIe[a]}).join("");e.length>=Mat;){var t=e.substring(0,Mat);e=parseInt(t,10)%97+e.substring(t.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function z5(r){var e=null;if(typeof r!="string"&&k2.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=Rat(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&k2.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==Bat(r)&&k2.throwArgumentError("bad icap checksum","address",r),e=(0,BIe._base36To16)(r.substring(4));e.length<40;)e="0"+e;e=Rat("0x"+e)}else k2.throwArgumentError("invalid address","address",r);return e}Hd.getAddress=z5;function lur(r){try{return z5(r),!0}catch{}return!1}Hd.isAddress=lur;function fur(r){for(var e=(0,BIe._base16To36)(z5(r).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+Bat("XE00"+e)+e}Hd.getIcapAddress=fur;function dur(r){var e=null;try{e=z5(r.from)}catch{k2.throwArgumentError("missing from address","transaction",r)}var t=(0,qy.stripZeros)((0,qy.arrayify)(BIe.BigNumber.from(r.nonce).toHexString()));return z5((0,qy.hexDataSlice)((0,DIe.keccak256)((0,iur.encode)([e,t])),12))}Hd.getContractAddress=dur;function pur(r,e,t){return(0,qy.hexDataLength)(e)!==32&&k2.throwArgumentError("salt must be 32 bytes","salt",e),(0,qy.hexDataLength)(t)!==32&&k2.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",t),z5((0,qy.hexDataSlice)((0,DIe.keccak256)((0,qy.concat)(["0xff",z5(r),e,t])),12))}Hd.getCreate2Address=pur});var Nat=E(Rx=>{"use strict";f();d();var hur=Rx&&Rx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rx,"__esModule",{value:!0});Rx.AddressCoder=void 0;var Dat=Hf(),mur=Qr(),yur=Ud(),bur=function(r){hur(e,r);function e(t){return r.call(this,"address","address",t,!1)||this}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},e.prototype.encode=function(t,n){try{n=(0,Dat.getAddress)(n)}catch(a){this._throwError(a.message,n)}return t.writeValue(n)},e.prototype.decode=function(t){return(0,Dat.getAddress)((0,mur.hexZeroPad)(t.readValue().toHexString(),20))},e}(yur.Coder);Rx.AddressCoder=bur});var Oat=E(Mx=>{"use strict";f();d();var gur=Mx&&Mx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Mx,"__esModule",{value:!0});Mx.AnonymousCoder=void 0;var vur=Ud(),wur=function(r){gur(e,r);function e(t){var n=r.call(this,t.name,t.type,void 0,t.dynamic)||this;return n.coder=t,n}return e.prototype.defaultValue=function(){return this.coder.defaultValue()},e.prototype.encode=function(t,n){return this.coder.encode(t,n)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(vur.Coder);Mx.AnonymousCoder=wur});var FIe=E(Gm=>{"use strict";f();d();var xur=Gm&&Gm.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.ArrayCoder=Gm.unpack=Gm.pack=void 0;var Dx=gr(),_ur=Ax(),Bx=new Dx.Logger(_ur.version),OIe=Ud(),Tur=Oat();function Fat(r,e,t){var n=null;if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){var a={};n=e.map(function(u){var l=u.localName;return l||Bx.throwError("cannot encode object for signature with missing names",Dx.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]&&Bx.throwError("cannot encode object for signature with duplicate names",Dx.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]=!0,t[l]})}else Bx.throwArgumentError("invalid tuple value","tuple",t);e.length!==n.length&&Bx.throwArgumentError("types/value length mismatch","tuple",t);var i=new OIe.Writer(r.wordSize),s=new OIe.Writer(r.wordSize),o=[];e.forEach(function(u,l){var p=n[l];if(u.dynamic){var h=s.length;u.encode(s,p);var m=i.writeUpdatableValue();o.push(function(y){m(y+h)})}else u.encode(i,p)}),o.forEach(function(u){u(i.length)});var c=r.appendWriter(i);return c+=r.appendWriter(s),c}Gm.pack=Fat;function Lat(r,e){var t=[],n=r.subReader(0);e.forEach(function(o){var c=null;if(o.dynamic){var u=r.readValue(),l=n.subReader(u.toNumber());try{c=o.decode(l)}catch(p){if(p.code===Dx.Logger.errors.BUFFER_OVERRUN)throw p;c=p,c.baseType=o.name,c.name=o.localName,c.type=o.type}}else try{c=o.decode(r)}catch(p){if(p.code===Dx.Logger.errors.BUFFER_OVERRUN)throw p;c=p,c.baseType=o.name,c.name=o.localName,c.type=o.type}c!=null&&t.push(c)});var a=e.reduce(function(o,c){var u=c.localName;return u&&(o[u]||(o[u]=0),o[u]++),o},{});e.forEach(function(o,c){var u=o.localName;if(!(!u||a[u]!==1)&&(u==="length"&&(u="_length"),t[u]==null)){var l=t[c];l instanceof Error?Object.defineProperty(t,u,{enumerable:!0,get:function(){throw l}}):t[u]=l}});for(var i=function(o){var c=t[o];c instanceof Error&&Object.defineProperty(t,o,{enumerable:!0,get:function(){throw c}})},s=0;s=0?n:"")+"]",o=n===-1||t.dynamic;return i=r.call(this,"array",s,a,o)||this,i.coder=t,i.length=n,i}return e.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],a=0;at._data.length&&Bx.throwError("insufficient data length",Dx.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n}));for(var a=[],i=0;i{"use strict";f();d();var Iur=Nx&&Nx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nx,"__esModule",{value:!0});Nx.BooleanCoder=void 0;var Cur=Ud(),Aur=function(r){Iur(e,r);function e(t){return r.call(this,"bool","bool",t,!1)||this}return e.prototype.defaultValue=function(){return!1},e.prototype.encode=function(t,n){return t.writeValue(n?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(Cur.Coder);Nx.BooleanCoder=Aur});var LIe=E(S2=>{"use strict";f();d();var Wat=S2&&S2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(S2,"__esModule",{value:!0});S2.BytesCoder=S2.DynamicBytesCoder=void 0;var Uat=Qr(),kur=Ud(),Hat=function(r){Wat(e,r);function e(t,n){return r.call(this,t,t,n,!0)||this}return e.prototype.defaultValue=function(){return"0x"},e.prototype.encode=function(t,n){n=(0,Uat.arrayify)(n);var a=t.writeValue(n.length);return a+=t.writeBytes(n),a},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(kur.Coder);S2.DynamicBytesCoder=Hat;var Sur=function(r){Wat(e,r);function e(t){return r.call(this,"bytes",t)||this}return e.prototype.decode=function(t){return t.coerce(this.name,(0,Uat.hexlify)(r.prototype.decode.call(this,t)))},e}(Hat);S2.BytesCoder=Sur});var zat=E(Ox=>{"use strict";f();d();var Pur=Ox&&Ox.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ox,"__esModule",{value:!0});Ox.FixedBytesCoder=void 0;var jat=Qr(),Rur=Ud(),Mur=function(r){Pur(e,r);function e(t,n){var a=this,i="bytes"+String(t);return a=r.call(this,i,i,n,!1)||this,a.size=t,a}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},e.prototype.encode=function(t,n){var a=(0,jat.arrayify)(n);return a.length!==this.size&&this._throwError("incorrect data length",n),t.writeBytes(a)},e.prototype.decode=function(t){return t.coerce(this.name,(0,jat.hexlify)(t.readBytes(this.size)))},e}(Rur.Coder);Ox.FixedBytesCoder=Mur});var Kat=E(Fx=>{"use strict";f();d();var Bur=Fx&&Fx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Fx,"__esModule",{value:!0});Fx.NullCoder=void 0;var Dur=Ud(),Nur=function(r){Bur(e,r);function e(t){return r.call(this,"null","",t,!1)||this}return e.prototype.defaultValue=function(){return null},e.prototype.encode=function(t,n){return n!=null&&this._throwError("not null",n),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(Dur.Coder);Fx.NullCoder=Nur});var Gat=E(She=>{"use strict";f();d();Object.defineProperty(She,"__esModule",{value:!0});She.AddressZero=void 0;She.AddressZero="0x0000000000000000000000000000000000000000"});var Vat=E(a0=>{"use strict";f();d();Object.defineProperty(a0,"__esModule",{value:!0});a0.MaxInt256=a0.MinInt256=a0.MaxUint256=a0.WeiPerEther=a0.Two=a0.One=a0.Zero=a0.NegativeOne=void 0;var P2=Yi(),Our=P2.BigNumber.from(-1);a0.NegativeOne=Our;var Fur=P2.BigNumber.from(0);a0.Zero=Fur;var Lur=P2.BigNumber.from(1);a0.One=Lur;var qur=P2.BigNumber.from(2);a0.Two=qur;var Wur=P2.BigNumber.from("1000000000000000000");a0.WeiPerEther=Wur;var Uur=P2.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");a0.MaxUint256=Uur;var Hur=P2.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");a0.MinInt256=Hur;var jur=P2.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");a0.MaxInt256=jur});var $at=E(Phe=>{"use strict";f();d();Object.defineProperty(Phe,"__esModule",{value:!0});Phe.HashZero=void 0;Phe.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var Yat=E(Rhe=>{"use strict";f();d();Object.defineProperty(Rhe,"__esModule",{value:!0});Rhe.EtherSymbol=void 0;Rhe.EtherSymbol="\u039E"});var K5=E(_s=>{"use strict";f();d();Object.defineProperty(_s,"__esModule",{value:!0});_s.EtherSymbol=_s.HashZero=_s.MaxInt256=_s.MinInt256=_s.MaxUint256=_s.WeiPerEther=_s.Two=_s.One=_s.Zero=_s.NegativeOne=_s.AddressZero=void 0;var zur=Gat();Object.defineProperty(_s,"AddressZero",{enumerable:!0,get:function(){return zur.AddressZero}});var R2=Vat();Object.defineProperty(_s,"NegativeOne",{enumerable:!0,get:function(){return R2.NegativeOne}});Object.defineProperty(_s,"Zero",{enumerable:!0,get:function(){return R2.Zero}});Object.defineProperty(_s,"One",{enumerable:!0,get:function(){return R2.One}});Object.defineProperty(_s,"Two",{enumerable:!0,get:function(){return R2.Two}});Object.defineProperty(_s,"WeiPerEther",{enumerable:!0,get:function(){return R2.WeiPerEther}});Object.defineProperty(_s,"MaxUint256",{enumerable:!0,get:function(){return R2.MaxUint256}});Object.defineProperty(_s,"MinInt256",{enumerable:!0,get:function(){return R2.MinInt256}});Object.defineProperty(_s,"MaxInt256",{enumerable:!0,get:function(){return R2.MaxInt256}});var Kur=$at();Object.defineProperty(_s,"HashZero",{enumerable:!0,get:function(){return Kur.HashZero}});var Gur=Yat();Object.defineProperty(_s,"EtherSymbol",{enumerable:!0,get:function(){return Gur.EtherSymbol}})});var Qat=E(Lx=>{"use strict";f();d();var Vur=Lx&&Lx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lx,"__esModule",{value:!0});Lx.NumberCoder=void 0;var $ur=Yi(),Mhe=K5(),Yur=Ud(),Qur=function(r){Vur(e,r);function e(t,n,a){var i=this,s=(n?"int":"uint")+t*8;return i=r.call(this,s,s,a,!1)||this,i.size=t,i.signed=n,i}return e.prototype.defaultValue=function(){return 0},e.prototype.encode=function(t,n){var a=$ur.BigNumber.from(n),i=Mhe.MaxUint256.mask(t.wordSize*8);if(this.signed){var s=i.mask(this.size*8-1);(a.gt(s)||a.lt(s.add(Mhe.One).mul(Mhe.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(a.lt(Mhe.Zero)||a.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*t.wordSize)),t.writeValue(a)},e.prototype.decode=function(t){var n=t.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),t.coerce(this.name,n)},e}(Yur.Coder);Lx.NumberCoder=Qur});var Jat=E(Bhe=>{"use strict";f();d();Object.defineProperty(Bhe,"__esModule",{value:!0});Bhe.version=void 0;Bhe.version="strings/5.7.0"});var Nhe=E(jo=>{"use strict";f();d();Object.defineProperty(jo,"__esModule",{value:!0});jo.toUtf8CodePoints=jo.toUtf8String=jo._toUtf8String=jo._toEscapedUtf8String=jo.toUtf8Bytes=jo.Utf8ErrorFuncs=jo.Utf8ErrorReason=jo.UnicodeNormalizationForm=void 0;var Zat=Qr(),Jur=gr(),Zur=Jat(),Xat=new Jur.Logger(Zur.version),Dhe;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(Dhe=jo.UnicodeNormalizationForm||(jo.UnicodeNormalizationForm={}));var jd;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(jd=jo.Utf8ErrorReason||(jo.Utf8ErrorReason={}));function Xur(r,e,t,n,a){return Xat.throwArgumentError("invalid codepoint at offset "+e+"; "+r,"bytes",t)}function eit(r,e,t,n,a){if(r===jd.BAD_PREFIX||r===jd.UNEXPECTED_CONTINUE){for(var i=0,s=e+1;s>6===2;s++)i++;return i}return r===jd.OVERRUN?t.length-e-1:0}function elr(r,e,t,n,a){return r===jd.OVERLONG?(n.push(a),0):(n.push(65533),eit(r,e,t,n,a))}jo.Utf8ErrorFuncs=Object.freeze({error:Xur,ignore:eit,replace:elr});function WIe(r,e){e==null&&(e=jo.Utf8ErrorFuncs.error),r=(0,Zat.arrayify)(r);for(var t=[],n=0;n>7===0){t.push(a);continue}var i=null,s=null;if((a&224)===192)i=1,s=127;else if((a&240)===224)i=2,s=2047;else if((a&248)===240)i=3,s=65535;else{(a&192)===128?n+=e(jd.UNEXPECTED_CONTINUE,n-1,r,t):n+=e(jd.BAD_PREFIX,n-1,r,t);continue}if(n-1+i>=r.length){n+=e(jd.OVERRUN,n-1,r,t);continue}for(var o=a&(1<<8-i-1)-1,c=0;c1114111){n+=e(jd.OUT_OF_RANGE,n-1-i,r,t,o);continue}if(o>=55296&&o<=57343){n+=e(jd.UTF16_SURROGATE,n-1-i,r,t,o);continue}if(o<=s){n+=e(jd.OVERLONG,n-1-i,r,t,o);continue}t.push(o)}}return t}function tit(r,e){e===void 0&&(e=Dhe.current),e!=Dhe.current&&(Xat.checkNormalize(),r=r.normalize(e));for(var t=[],n=0;n>6|192),t.push(a&63|128);else if((a&64512)==55296){n++;var i=r.charCodeAt(n);if(n>=r.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");var s=65536+((a&1023)<<10)+(i&1023);t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)}else t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)}return(0,Zat.arrayify)(t)}jo.toUtf8Bytes=tit;function qIe(r){var e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function tlr(r,e){return'"'+WIe(r,e).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?qIe(t):(t-=65536,qIe((t>>10&1023)+55296)+qIe((t&1023)+56320))}).join("")+'"'}jo._toEscapedUtf8String=tlr;function rit(r){return r.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}jo._toUtf8String=rit;function rlr(r,e){return rit(WIe(r,e))}jo.toUtf8String=rlr;function nlr(r,e){return e===void 0&&(e=Dhe.current),WIe(tit(r,e))}jo.toUtf8CodePoints=nlr});var ait=E(qx=>{"use strict";f();d();Object.defineProperty(qx,"__esModule",{value:!0});qx.parseBytes32String=qx.formatBytes32String=void 0;var alr=K5(),UIe=Qr(),nit=Nhe();function ilr(r){var e=(0,nit.toUtf8Bytes)(r);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,UIe.hexlify)((0,UIe.concat)([e,alr.HashZero]).slice(0,32))}qx.formatBytes32String=ilr;function slr(r){var e=(0,UIe.arrayify)(r);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var t=31;e[t-1]===0;)t--;return(0,nit.toUtf8String)(e.slice(0,t))}qx.parseBytes32String=slr});var uit=E(Vm=>{"use strict";f();d();Object.defineProperty(Vm,"__esModule",{value:!0});Vm.nameprep=Vm._nameprepTableC=Vm._nameprepTableB2=Vm._nameprepTableA1=void 0;var Cae=Nhe();function olr(r){if(r.length%4!==0)throw new Error("bad data");for(var e=[],t=0;t=t&&r<=t+a.h&&(r-t)%(a.d||1)===0){if(a.e&&a.e.indexOf(r-t)!==-1)continue;return a}}return null}var clr=iit("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),ulr="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(r){return parseInt(r,16)}),llr=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],flr=HIe("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),dlr=HIe("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),plr=HIe("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",olr),hlr=iit("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function mlr(r){return r.reduce(function(e,t){return t.forEach(function(n){e.push(n)}),e},[])}function sit(r){return!!jIe(r,clr)}Vm._nameprepTableA1=sit;function oit(r){var e=jIe(r,llr);if(e)return[r+e.s];var t=flr[r];if(t)return t;var n=dlr[r];if(n)return[r+n[0]];var a=plr[r];return a||null}Vm._nameprepTableB2=oit;function cit(r){return!!jIe(r,hlr)}Vm._nameprepTableC=cit;function ylr(r){if(r.match(/^[a-z0-9-]*$/i)&&r.length<=59)return r.toLowerCase();var e=(0,Cae.toUtf8CodePoints)(r);e=mlr(e.map(function(n){if(ulr.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var a=oit(n);return a||[n]})),e=(0,Cae.toUtf8CodePoints)((0,Cae._toUtf8String)(e),Cae.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(cit(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(sit(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var t=(0,Cae._toUtf8String)(e);if(t.substring(0,1)==="-"||t.substring(2,4)==="--"||t.substring(t.length-1)==="-")throw new Error("invalid hyphen");return t}Vm.nameprep=ylr});var cc=E(_o=>{"use strict";f();d();Object.defineProperty(_o,"__esModule",{value:!0});_o.nameprep=_o.parseBytes32String=_o.formatBytes32String=_o.UnicodeNormalizationForm=_o.Utf8ErrorReason=_o.Utf8ErrorFuncs=_o.toUtf8String=_o.toUtf8CodePoints=_o.toUtf8Bytes=_o._toEscapedUtf8String=void 0;var lit=ait();Object.defineProperty(_o,"formatBytes32String",{enumerable:!0,get:function(){return lit.formatBytes32String}});Object.defineProperty(_o,"parseBytes32String",{enumerable:!0,get:function(){return lit.parseBytes32String}});var blr=uit();Object.defineProperty(_o,"nameprep",{enumerable:!0,get:function(){return blr.nameprep}});var G5=Nhe();Object.defineProperty(_o,"_toEscapedUtf8String",{enumerable:!0,get:function(){return G5._toEscapedUtf8String}});Object.defineProperty(_o,"toUtf8Bytes",{enumerable:!0,get:function(){return G5.toUtf8Bytes}});Object.defineProperty(_o,"toUtf8CodePoints",{enumerable:!0,get:function(){return G5.toUtf8CodePoints}});Object.defineProperty(_o,"toUtf8String",{enumerable:!0,get:function(){return G5.toUtf8String}});Object.defineProperty(_o,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return G5.UnicodeNormalizationForm}});Object.defineProperty(_o,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return G5.Utf8ErrorFuncs}});Object.defineProperty(_o,"Utf8ErrorReason",{enumerable:!0,get:function(){return G5.Utf8ErrorReason}})});var dit=E(Wx=>{"use strict";f();d();var glr=Wx&&Wx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wx,"__esModule",{value:!0});Wx.StringCoder=void 0;var fit=cc(),vlr=LIe(),wlr=function(r){glr(e,r);function e(t){return r.call(this,"string",t)||this}return e.prototype.defaultValue=function(){return""},e.prototype.encode=function(t,n){return r.prototype.encode.call(this,t,(0,fit.toUtf8Bytes)(n))},e.prototype.decode=function(t){return(0,fit.toUtf8String)(r.prototype.decode.call(this,t))},e}(vlr.DynamicBytesCoder);Wx.StringCoder=wlr});var hit=E(Ux=>{"use strict";f();d();var xlr=Ux&&Ux.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ux,"__esModule",{value:!0});Ux.TupleCoder=void 0;var _lr=Ud(),pit=FIe(),Tlr=function(r){xlr(e,r);function e(t,n){var a=this,i=!1,s=[];t.forEach(function(c){c.dynamic&&(i=!0),s.push(c.type)});var o="tuple("+s.join(",")+")";return a=r.call(this,"tuple",o,n,i)||this,a.coders=t,a}return e.prototype.defaultValue=function(){var t=[];this.coders.forEach(function(a){t.push(a.defaultValue())});var n=this.coders.reduce(function(a,i){var s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach(function(a,i){var s=a.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)},e.prototype.encode=function(t,n){return(0,pit.pack)(t,this.coders,n)},e.prototype.decode=function(t){return t.coerce(this.name,(0,pit.unpack)(t,this.coders))},e}(_lr.Coder);Ux.TupleCoder=Tlr});var KIe=E(Hx=>{"use strict";f();d();Object.defineProperty(Hx,"__esModule",{value:!0});Hx.defaultAbiCoder=Hx.AbiCoder=void 0;var Elr=Qr(),Ilr=ca(),yit=gr(),Clr=Ax(),Ohe=new yit.Logger(Clr.version),mit=Ud(),Alr=Nat(),klr=FIe(),Slr=qat(),Plr=LIe(),Rlr=zat(),Mlr=Kat(),Blr=Qat(),Dlr=dit(),Fhe=hit(),zIe=The(),Nlr=new RegExp(/^bytes([0-9]*)$/),Olr=new RegExp(/^(u?int)([0-9]*)$/),bit=function(){function r(e){(0,Ilr.defineReadOnly)(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new Alr.AddressCoder(e.name);case"bool":return new Slr.BooleanCoder(e.name);case"string":return new Dlr.StringCoder(e.name);case"bytes":return new Plr.BytesCoder(e.name);case"array":return new klr.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Fhe.TupleCoder((e.components||[]).map(function(i){return t._getCoder(i)}),e.name);case"":return new Mlr.NullCoder(e.name)}var n=e.type.match(Olr);if(n){var a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&Ohe.throwArgumentError("invalid "+n[1]+" bit length","param",e),new Blr.NumberCoder(a/8,n[1]==="int",e.name)}if(n=e.type.match(Nlr),n){var a=parseInt(n[1]);return(a===0||a>32)&&Ohe.throwArgumentError("invalid bytes length","param",e),new Rlr.FixedBytesCoder(a,e.name)}return Ohe.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e,t){return new mit.Reader(e,this._getWordSize(),this.coerceFunc,t)},r.prototype._getWriter=function(){return new mit.Writer(this._getWordSize())},r.prototype.getDefaultValue=function(e){var t=this,n=e.map(function(i){return t._getCoder(zIe.ParamType.from(i))}),a=new Fhe.TupleCoder(n,"_");return a.defaultValue()},r.prototype.encode=function(e,t){var n=this;e.length!==t.length&&Ohe.throwError("types/values length mismatch",yit.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var a=e.map(function(o){return n._getCoder(zIe.ParamType.from(o))}),i=new Fhe.TupleCoder(a,"_"),s=this._getWriter();return i.encode(s,t),s.data},r.prototype.decode=function(e,t,n){var a=this,i=e.map(function(o){return a._getCoder(zIe.ParamType.from(o))}),s=new Fhe.TupleCoder(i,"_");return s.decode(this._getReader((0,Elr.arrayify)(t),n))},r}();Hx.AbiCoder=bit;Hx.defaultAbiCoder=new bit});var GIe=E(Lhe=>{"use strict";f();d();Object.defineProperty(Lhe,"__esModule",{value:!0});Lhe.id=void 0;var Flr=Uf(),Llr=cc();function qlr(r){return(0,Flr.keccak256)((0,Llr.toUtf8Bytes)(r))}Lhe.id=qlr});var VIe=E(qhe=>{"use strict";f();d();Object.defineProperty(qhe,"__esModule",{value:!0});qhe.version=void 0;qhe.version="hash/5.7.0"});var vit=E(jx=>{"use strict";f();d();Object.defineProperty(jx,"__esModule",{value:!0});jx.encode=jx.decode=void 0;var git=Qr();function Wlr(r){r=atob(r);for(var e=[],t=0;t{"use strict";f();d();Object.defineProperty(zx,"__esModule",{value:!0});zx.encode=zx.decode=void 0;var wit=vit();Object.defineProperty(zx,"decode",{enumerable:!0,get:function(){return wit.decode}});Object.defineProperty(zx,"encode",{enumerable:!0,get:function(){return wit.encode}})});var YIe=E(i0=>{"use strict";f();d();Object.defineProperty(i0,"__esModule",{value:!0});i0.read_emoji_trie=i0.read_zero_terminated_array=i0.read_mapped_map=i0.read_member_array=i0.signed=i0.read_compressed_payload=i0.read_payload=i0.decode_arithmetic=void 0;function _it(r,e){e==null&&(e=1);var t=[],n=t.forEach,a=function(i,s){n.call(i,function(o){s>0&&Array.isArray(o)?a(o,s-1):t.push(o)})};return a(r,e),t}function Hlr(r){for(var e={},t=0;t>--u&1}for(var h=31,m=Math.pow(2,h),y=m>>>1,C=y>>1,P=m-1,A=0,s=0;s1;){var j=z+G>>>1;K>>1|p(),H=H<<1^y,I=(I^y)<<1|y|1;F=H,W=1+I-H}var b=n-4;return B.map(function(k){switch(k-b){case 3:return b+65792+(r[c++]<<16|r[c++]<<8|r[c++]);case 2:return b+256+(r[c++]<<8|r[c++]);case 1:return b+r[c++];default:return k-1}})}i0.decode_arithmetic=Tit;function Eit(r){var e=0;return function(){return r[e++]}}i0.read_payload=Eit;function jlr(r){return Eit(Tit(r))}i0.read_compressed_payload=jlr;function Iit(r){return r&1?~r>>1:r>>1}i0.signed=Iit;function zlr(r,e){for(var t=Array(r),n=0;n>=1;var c=i==1,u=i==2;return{branches:n,valid:s,fe0f:o,save:c,check:u}}}i0.read_emoji_trie=Ylr});var kit=E(Whe=>{"use strict";f();d();Object.defineProperty(Whe,"__esModule",{value:!0});Whe.getData=void 0;var Qlr=Aae(),Jlr=YIe();function Zlr(){return(0,Jlr.read_compressed_payload)((0,Qlr.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}Whe.getData=Zlr});var Mit=E(Kx=>{"use strict";f();d();Object.defineProperty(Kx,"__esModule",{value:!0});Kx.ens_normalize=Kx.ens_normalize_post_check=void 0;var Xlr=cc(),efr=kit(),Uhe=(0,efr.getData)(),Hhe=YIe(),tfr=new Set((0,Hhe.read_member_array)(Uhe)),rfr=new Set((0,Hhe.read_member_array)(Uhe)),nfr=(0,Hhe.read_mapped_map)(Uhe),afr=(0,Hhe.read_emoji_trie)(Uhe),Sit=45,Pit=95;function Rit(r){return(0,Xlr.toUtf8CodePoints)(r)}function ifr(r){return r.filter(function(e){return e!=65039})}function QIe(r){for(var e=0,t=r.split(".");e=0;i--)if(a[i]!==Pit)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every(function(s){return s<128})&&a[2]===Sit&&a[3]===Sit)throw new Error("invalid label extension")}catch(s){throw new Error('Invalid label "'+n+'": '+s.message)}}return r}Kx.ens_normalize_post_check=QIe;function sfr(r){return QIe(ofr(r,ifr))}Kx.ens_normalize=sfr;function ofr(r,e){for(var t=Rit(r).reverse(),n=[];t.length;){var a=ufr(t);if(a){n.push.apply(n,e(a));continue}var i=t.pop();if(tfr.has(i)){n.push(i);continue}if(!rfr.has(i)){var s=nfr[i];if(s){n.push.apply(n,s);continue}throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase())}}return QIe(cfr(String.fromCodePoint.apply(String,n)))}function cfr(r){return r.normalize("NFC")}function ufr(r,e){var t,n=afr,a,i,s=[],o=r.length;e&&(e.length=0);for(var c=function(){var l=r[--o];if(n=(t=n.branches.find(function(p){return p.set.has(l)}))===null||t===void 0?void 0:t.node,!n)return"break";if(n.save)i=l;else if(n.check&&l===i)return"break";s.push(l),n.fe0f&&(s.push(65039),o>0&&r[o-1]==65039&&o--),n.valid&&(a=s.slice(),n.valid==2&&a.splice(1,1),e&&e.push.apply(e,r.slice(o).reverse()),r.length=o)};o;){var u=c();if(u==="break")break}return a}});var JIe=E($m=>{"use strict";f();d();Object.defineProperty($m,"__esModule",{value:!0});$m.dnsEncode=$m.namehash=$m.isValidName=$m.ensNormalize=void 0;var jhe=Qr(),Nit=cc(),Bit=Uf(),lfr=gr(),ffr=VIe(),dfr=new lfr.Logger(ffr.version),pfr=Mit(),Oit=new Uint8Array(32);Oit.fill(0);function Dit(r){if(r.length===0)throw new Error("invalid ENS name; empty component");return r}function zhe(r){var e=(0,Nit.toUtf8Bytes)((0,pfr.ens_normalize)(r)),t=[];if(r.length===0)return t;for(var n=0,a=0;a=e.length)throw new Error("invalid ENS name; empty component");return t.push(Dit(e.slice(n))),t}function hfr(r){return zhe(r).map(function(e){return(0,Nit.toUtf8String)(e)}).join(".")}$m.ensNormalize=hfr;function mfr(r){try{return zhe(r).length!==0}catch{}return!1}$m.isValidName=mfr;function yfr(r){typeof r!="string"&&dfr.throwArgumentError("invalid ENS name; not a string","name",r);for(var e=Oit,t=zhe(r);t.length;)e=(0,Bit.keccak256)((0,jhe.concat)([e,(0,Bit.keccak256)(t.pop())]));return(0,jhe.hexlify)(e)}$m.namehash=yfr;function bfr(r){return(0,jhe.hexlify)((0,jhe.concat)(zhe(r).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}$m.dnsEncode=bfr});var Fit=E(V5=>{"use strict";f();d();Object.defineProperty(V5,"__esModule",{value:!0});V5.hashMessage=V5.messagePrefix=void 0;var gfr=Qr(),vfr=Uf(),ZIe=cc();V5.messagePrefix=`Ethereum Signed Message: +`;function wfr(r){return typeof r=="string"&&(r=(0,ZIe.toUtf8Bytes)(r)),(0,vfr.keccak256)((0,gfr.concat)([(0,ZIe.toUtf8Bytes)(V5.messagePrefix),(0,ZIe.toUtf8Bytes)(String(r.length)),r]))}V5.hashMessage=wfr});var Git=E(M2=>{"use strict";f();d();var xfr=M2&&M2.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},_fr=M2&&M2.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]256||e[2]&&e[2]!==String(n))&&Qs.throwArgumentError("invalid numeric width","type",r);var a=Cfr.mask(t?n-1:n),i=t?a.add(Kit).mul(Ifr):zit;return function(o){var c=Y5.BigNumber.from(o);return(c.lt(i)||c.gt(a))&&Qs.throwArgumentError("value out-of-bounds for "+r,"value",o),(0,z0.hexZeroPad)(c.toTwos(256).toHexString(),32)}}}{var e=r.match(/^bytes(\d+)$/);if(e){var s=parseInt(e[1]);return(s===0||s>32||e[1]!==String(s))&&Qs.throwArgumentError("invalid bytes width","type",r),function(c){var u=(0,z0.arrayify)(c);return u.length!==s&&Qs.throwArgumentError("invalid length for "+r,"value",c),Afr(c)}}}switch(r){case"address":return function(o){return(0,z0.hexZeroPad)((0,Uit.getAddress)(o),32)};case"bool":return function(o){return o?kfr:Sfr};case"bytes":return function(o){return(0,Gx.keccak256)(o)};case"string":return function(o){return(0,Hit.id)(o)}}return null}function Wit(r,e){return r+"("+e.map(function(t){var n=t.name,a=t.type;return a+" "+n}).join(",")+")"}var Rfr=function(){function r(e){(0,$5.defineReadOnly)(this,"types",Object.freeze((0,$5.deepCopy)(e))),(0,$5.defineReadOnly)(this,"_encoderCache",{}),(0,$5.defineReadOnly)(this,"_types",{});var t={},n={},a={};Object.keys(e).forEach(function(p){t[p]={},n[p]=[],a[p]={}});var i=function(p){var h={};e[p].forEach(function(m){h[m.name]&&Qs.throwArgumentError("duplicate variable name "+JSON.stringify(m.name)+" in "+JSON.stringify(p),"types",e),h[m.name]=!0;var y=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];y===p&&Qs.throwArgumentError("circular type reference to "+JSON.stringify(y),"types",e);var C=eCe(y);C||(n[y]||Qs.throwArgumentError("unknown type "+JSON.stringify(y),"types",e),n[y].push(p),t[p][y]=!0)})};for(var s in e)i(s);var o=Object.keys(n).filter(function(p){return n[p].length===0});o.length===0?Qs.throwArgumentError("missing primary type","types",e):o.length>1&&Qs.throwArgumentError("ambiguous primary types or unused types: "+o.map(function(p){return JSON.stringify(p)}).join(", "),"types",e),(0,$5.defineReadOnly)(this,"primaryType",o[0]);function c(p,h){h[p]&&Qs.throwArgumentError("circular type reference to "+JSON.stringify(p),"types",e),h[p]=!0,Object.keys(t[p]).forEach(function(m){!n[m]||(c(m,h),Object.keys(h).forEach(function(y){a[y][m]=!0}))}),delete h[p]}c(this.primaryType,{});for(var u in a){var l=Object.keys(a[u]);l.sort(),this._types[u]=Wit(u,e[u])+l.map(function(p){return Wit(p,e[p])}).join("")}}return r.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},r.prototype._getEncoder=function(e){var t=this;{var n=eCe(e);if(n)return n}var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],s=this.getEncoder(i),o=parseInt(a[3]);return function(l){o>=0&&l.length!==o&&Qs.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);var p=l.map(s);return t._types[i]&&(p=p.map(Gx.keccak256)),(0,Gx.keccak256)((0,z0.hexConcat)(p))}}var c=this.types[e];if(c){var u=(0,Hit.id)(this._types[e]);return function(l){var p=c.map(function(h){var m=h.name,y=h.type,C=t.getEncoder(y)(l[m]);return t._types[y]?(0,Gx.keccak256)(C):C});return p.unshift(u),(0,z0.hexConcat)(p)}}return Qs.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.encodeType=function(e){var t=this._types[e];return t||Qs.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},r.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},r.prototype.hashStruct=function(e,t){return(0,Gx.keccak256)(this.encodeData(e,t))},r.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},r.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},r.prototype._visit=function(e,t,n){var a=this;{var i=eCe(e);if(i)return n(e,t)}var s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var o=s[1],c=parseInt(s[3]);return c>=0&&t.length!==c&&Qs.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(l){return a._visit(o,l,n)})}var u=this.types[e];return u?u.reduce(function(l,p){var h=p.name,m=p.type;return l[h]=a._visit(m,t[h],n),l},{}):Qs.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},r.from=function(e){return new r(e)},r.getPrimaryType=function(e){return r.from(e).primaryType},r.hashStruct=function(e,t,n){return r.from(t).hashStruct(e,n)},r.hashDomain=function(e){var t=[];for(var n in e){var a=Lit[n];a||Qs.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:a})}return t.sort(function(i,s){return XIe.indexOf(i.name)-XIe.indexOf(s.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:t},e)},r.encode=function(e,t,n){return(0,z0.hexConcat)(["0x1901",r.hashDomain(e),r.from(t).hash(n)])},r.hash=function(e,t,n){return(0,Gx.keccak256)(r.encode(e,t,n))},r.resolveNames=function(e,t,n,a){return xfr(this,void 0,void 0,function(){var i,s,o,c,u,l,p,h;return _fr(this,function(m){switch(m.label){case 0:e=(0,$5.shallowCopy)(e),i={},e.verifyingContract&&!(0,z0.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x"),s=r.from(t),s.visit(n,function(y,C){return y==="address"&&!(0,z0.isHexString)(C,20)&&(i[C]="0x"),C}),o=[];for(c in i)o.push(c);u=0,m.label=1;case 1:return u{"use strict";f();d();Object.defineProperty(s0,"__esModule",{value:!0});s0._TypedDataEncoder=s0.hashMessage=s0.messagePrefix=s0.ensNormalize=s0.isValidName=s0.namehash=s0.dnsEncode=s0.id=void 0;var Mfr=GIe();Object.defineProperty(s0,"id",{enumerable:!0,get:function(){return Mfr.id}});var tCe=JIe();Object.defineProperty(s0,"dnsEncode",{enumerable:!0,get:function(){return tCe.dnsEncode}});Object.defineProperty(s0,"isValidName",{enumerable:!0,get:function(){return tCe.isValidName}});Object.defineProperty(s0,"namehash",{enumerable:!0,get:function(){return tCe.namehash}});var Vit=Fit();Object.defineProperty(s0,"hashMessage",{enumerable:!0,get:function(){return Vit.hashMessage}});Object.defineProperty(s0,"messagePrefix",{enumerable:!0,get:function(){return Vit.messagePrefix}});var Bfr=JIe();Object.defineProperty(s0,"ensNormalize",{enumerable:!0,get:function(){return Bfr.ensNormalize}});var Dfr=Git();Object.defineProperty(s0,"_TypedDataEncoder",{enumerable:!0,get:function(){return Dfr.TypedDataEncoder}})});var est=E(Tu=>{"use strict";f();d();var Vhe=Tu&&Tu.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.Interface=Tu.Indexed=Tu.ErrorDescription=Tu.TransactionDescription=Tu.LogDescription=Tu.checkResultErrors=void 0;var Nfr=Hf(),$it=Yi(),Ts=Qr(),Khe=Q5(),Yit=Uf(),K0=ca(),Ofr=KIe(),Ffr=Ud();Object.defineProperty(Tu,"checkResultErrors",{enumerable:!0,get:function(){return Ffr.checkResultErrors}});var Wy=The(),Ghe=gr(),Lfr=Ax(),Js=new Ghe.Logger(Lfr.version),Jit=function(r){Vhe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(K0.Description);Tu.LogDescription=Jit;var Zit=function(r){Vhe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(K0.Description);Tu.TransactionDescription=Zit;var Xit=function(r){Vhe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(K0.Description);Tu.ErrorDescription=Xit;var rCe=function(r){Vhe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.isIndexed=function(t){return!!(t&&t._isIndexed)},e}(K0.Description);Tu.Indexed=rCe;var qfr={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Qit(r,e){var t=new Error("deferred error during ABI decoding triggered accessing "+r);return t.error=e,t}var Wfr=function(){function r(e){var t=this.constructor,n=this,a=[];typeof e=="string"?a=JSON.parse(e):a=e,(0,K0.defineReadOnly)(this,"fragments",a.map(function(i){return Wy.Fragment.from(i)}).filter(function(i){return i!=null})),(0,K0.defineReadOnly)(this,"_abiCoder",(0,K0.getStatic)(t,"getAbiCoder")()),(0,K0.defineReadOnly)(this,"functions",{}),(0,K0.defineReadOnly)(this,"errors",{}),(0,K0.defineReadOnly)(this,"events",{}),(0,K0.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(i){var s=null;switch(i.type){case"constructor":if(n.deploy){Js.warn("duplicate definition - constructor");return}(0,K0.defineReadOnly)(n,"deploy",i);return;case"function":s=n.functions;break;case"event":s=n.events;break;case"error":s=n.errors;break;default:return}var o=i.format();if(s[o]){Js.warn("duplicate definition - "+o);return}s[o]=i}),this.deploy||(0,K0.defineReadOnly)(this,"deploy",Wy.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,K0.defineReadOnly)(this,"_isInterface",!0)}return r.prototype.format=function(e){e||(e=Wy.FormatTypes.full),e===Wy.FormatTypes.sighash&&Js.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map(function(n){return n.format(e)});return e===Wy.FormatTypes.json?JSON.stringify(t.map(function(n){return JSON.parse(n)})):t},r.getAbiCoder=function(){return Ofr.defaultAbiCoder},r.getAddress=function(e){return(0,Nfr.getAddress)(e)},r.getSighash=function(e){return(0,Ts.hexDataSlice)((0,Khe.id)(e.format()),0,4)},r.getEventTopic=function(e){return(0,Khe.id)(e.format())},r.prototype.getFunction=function(e){if((0,Ts.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];Js.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.functions).filter(function(s){return s.split("(")[0]===n});return a.length===0?Js.throwArgumentError("no matching function","name",n):a.length>1&&Js.throwArgumentError("multiple matching functions","name",n),this.functions[a[0]]}var i=this.functions[Wy.FunctionFragment.fromString(e).format()];return i||Js.throwArgumentError("no matching function","signature",e),i},r.prototype.getEvent=function(e){if((0,Ts.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];Js.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.events).filter(function(o){return o.split("(")[0]===a});return i.length===0?Js.throwArgumentError("no matching event","name",a):i.length>1&&Js.throwArgumentError("multiple matching events","name",a),this.events[i[0]]}var s=this.events[Wy.EventFragment.fromString(e).format()];return s||Js.throwArgumentError("no matching event","signature",e),s},r.prototype.getError=function(e){if((0,Ts.isHexString)(e)){var t=(0,K0.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var a=this.errors[n];if(e===t(a))return this.errors[n]}Js.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var i=e.trim(),s=Object.keys(this.errors).filter(function(c){return c.split("(")[0]===i});return s.length===0?Js.throwArgumentError("no matching error","name",i):s.length>1&&Js.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}var o=this.errors[Wy.FunctionFragment.fromString(e).format()];return o||Js.throwArgumentError("no matching error","signature",e),o},r.prototype.getSighash=function(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch{throw t}}return(0,K0.getStatic)(this.constructor,"getSighash")(e)},r.prototype.getEventTopic=function(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,K0.getStatic)(this.constructor,"getEventTopic")(e)},r.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},r.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},r.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},r.prototype.decodeErrorResult=function(e,t){typeof e=="string"&&(e=this.getError(e));var n=(0,Ts.arrayify)(t);return(0,Ts.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Js.throwArgumentError("data signature does not match error "+e.name+".","data",(0,Ts.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeErrorResult=function(e,t){return typeof e=="string"&&(e=this.getError(e)),(0,Ts.hexlify)((0,Ts.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionData=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,Ts.arrayify)(t);return(0,Ts.hexlify)(n.slice(0,4))!==this.getSighash(e)&&Js.throwArgumentError("data signature does not match function "+e.name+".","data",(0,Ts.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeFunctionData=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,Ts.hexlify)((0,Ts.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionResult=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,Ts.arrayify)(t),a=null,i="",s=null,o=null,c=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{var u=(0,Ts.hexlify)(n.slice(0,4)),l=qfr[u];if(l)s=this._abiCoder.decode(l.inputs,n.slice(4)),o=l.name,c=l.signature,l.reason&&(a=s[0]),o==="Error"?i="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(s[0]):o==="Panic"&&(i="; VM Exception while processing transaction: reverted with panic code "+s[0]);else try{var p=this.getError(u);s=this._abiCoder.decode(p.inputs,n.slice(4)),o=p.name,c=p.format()}catch{}break}}return Js.throwError("call revert exception"+i,Ghe.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,Ts.hexlify)(t),errorArgs:s,errorName:o,errorSignature:c,reason:a})},r.prototype.encodeFunctionResult=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,Ts.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},r.prototype.encodeFilterTopics=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e)),t.length>e.inputs.length&&Js.throwError("too many arguments for "+e.format(),Ghe.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var i=function(s,o){return s.type==="string"?(0,Khe.id)(o):s.type==="bytes"?(0,Yit.keccak256)((0,Ts.hexlify)(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=$it.BigNumber.from(o).toHexString()),s.type==="address"&&n._abiCoder.encode(["address"],[o]),(0,Ts.hexZeroPad)((0,Ts.hexlify)(o),32))};for(t.forEach(function(s,o){var c=e.inputs[o];if(!c.indexed){s!=null&&Js.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,s);return}s==null?a.push(null):c.baseType==="array"||c.baseType==="tuple"?Js.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,s):Array.isArray(s)?a.push(s.map(function(u){return i(c,u)})):a.push(i(c,s))});a.length&&a[a.length-1]===null;)a.pop();return a},r.prototype.encodeEventLog=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e));var a=[],i=[],s=[];return e.anonymous||a.push(this.getEventTopic(e)),t.length!==e.inputs.length&&Js.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(o,c){var u=t[c];if(o.indexed)if(o.type==="string")a.push((0,Khe.id)(u));else if(o.type==="bytes")a.push((0,Yit.keccak256)(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");a.push(n._abiCoder.encode([o.type],[u]))}else i.push(o),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:a}},r.prototype.decodeEventLog=function(e,t,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){var a=this.getEventTopic(e);(!(0,Ts.isHexString)(n[0],32)||n[0].toLowerCase()!==a)&&Js.throwError("fragment/topic mismatch",Ghe.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],o=[];e.inputs.forEach(function(C,P){C.indexed?C.type==="string"||C.type==="bytes"||C.baseType==="tuple"||C.baseType==="array"?(i.push(Wy.ParamType.fromObject({type:"bytes32",name:C.name})),o.push(!0)):(i.push(C),o.push(!1)):(s.push(C),o.push(!1))});var c=n!=null?this._abiCoder.decode(i,(0,Ts.concat)(n)):null,u=this._abiCoder.decode(s,t,!0),l=[],p=0,h=0;e.inputs.forEach(function(C,P){if(C.indexed)if(c==null)l[P]=new rCe({_isIndexed:!0,hash:null});else if(o[P])l[P]=new rCe({_isIndexed:!0,hash:c[h++]});else try{l[P]=c[h++]}catch(B){l[P]=B}else try{l[P]=u[p++]}catch(B){l[P]=B}if(C.name&&l[C.name]==null){var A=l[P];A instanceof Error?Object.defineProperty(l,C.name,{enumerable:!0,get:function(){throw Qit("property "+JSON.stringify(C.name),A)}}):l[C.name]=A}});for(var m=function(C){var P=l[C];P instanceof Error&&Object.defineProperty(l,C,{enumerable:!0,get:function(){throw Qit("index "+C,P)}})},y=0;y{"use strict";f();d();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.TransactionDescription=Ai.LogDescription=Ai.checkResultErrors=Ai.Indexed=Ai.Interface=Ai.defaultAbiCoder=Ai.AbiCoder=Ai.FormatTypes=Ai.ParamType=Ai.FunctionFragment=Ai.Fragment=Ai.EventFragment=Ai.ErrorFragment=Ai.ConstructorFragment=void 0;var J5=The();Object.defineProperty(Ai,"ConstructorFragment",{enumerable:!0,get:function(){return J5.ConstructorFragment}});Object.defineProperty(Ai,"ErrorFragment",{enumerable:!0,get:function(){return J5.ErrorFragment}});Object.defineProperty(Ai,"EventFragment",{enumerable:!0,get:function(){return J5.EventFragment}});Object.defineProperty(Ai,"FormatTypes",{enumerable:!0,get:function(){return J5.FormatTypes}});Object.defineProperty(Ai,"Fragment",{enumerable:!0,get:function(){return J5.Fragment}});Object.defineProperty(Ai,"FunctionFragment",{enumerable:!0,get:function(){return J5.FunctionFragment}});Object.defineProperty(Ai,"ParamType",{enumerable:!0,get:function(){return J5.ParamType}});var tst=KIe();Object.defineProperty(Ai,"AbiCoder",{enumerable:!0,get:function(){return tst.AbiCoder}});Object.defineProperty(Ai,"defaultAbiCoder",{enumerable:!0,get:function(){return tst.defaultAbiCoder}});var kae=est();Object.defineProperty(Ai,"checkResultErrors",{enumerable:!0,get:function(){return kae.checkResultErrors}});Object.defineProperty(Ai,"Indexed",{enumerable:!0,get:function(){return kae.Indexed}});Object.defineProperty(Ai,"Interface",{enumerable:!0,get:function(){return kae.Interface}});Object.defineProperty(Ai,"LogDescription",{enumerable:!0,get:function(){return kae.LogDescription}});Object.defineProperty(Ai,"TransactionDescription",{enumerable:!0,get:function(){return kae.TransactionDescription}})});var rst=E(Yhe=>{"use strict";f();d();Object.defineProperty(Yhe,"__esModule",{value:!0});Yhe.version=void 0;Yhe.version="abstract-provider/5.7.0"});var Vx=E(o0=>{"use strict";f();d();var Jhe=o0&&o0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ufr=o0&&o0.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Hfr=o0&&o0.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();Object.defineProperty(Xhe,"__esModule",{value:!0});Xhe.version=void 0;Xhe.version="abstract-signer/5.7.0"});var Hy=E(Kd=>{"use strict";f();d();var Qfr=Kd&&Kd.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fh=Kd&&Kd.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},dh=Kd&&Kd.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0)throw c;return zd.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Uy.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:c,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(c){return c[1]!==0&&c[0]!==c[1]&&zd.throwArgumentError("chainId address mismatch","transaction",e),c[0]}),[4,(0,B2.resolveProperties)(t)];case 6:return[2,o.sent()]}})})},r.prototype._checkProvider=function(e){this.provider||zd.throwError("missing provider",Uy.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},r.isSigner=function(e){return!!(e&&e._isSigner)},r}();Kd.Signer=ast;var edr=function(r){Qfr(e,r);function e(t,n){var a=r.call(this)||this;return(0,B2.defineReadOnly)(a,"address",t),(0,B2.defineReadOnly)(a,"provider",n||null),a}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,n){return Promise.resolve().then(function(){zd.throwError(t,Uy.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(ast);Kd.VoidSigner=edr});var ist=E((I2a,tdr)=>{tdr.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var Bc=E((sst,aCe)=>{f();d();(function(r,e){"use strict";function t(I,b){if(!I)throw new Error(b||"Assertion failed")}function n(I,b){I.super_=b;var k=function(){};k.prototype=b.prototype,I.prototype=new k,I.prototype.constructor=I}function a(I,b,k){if(a.isBN(I))return I;this.negative=0,this.words=null,this.length=0,this.red=null,I!==null&&((b==="le"||b==="be")&&(k=b,b=10),this._init(I||0,b||10,k||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=Uo().Buffer}catch{}a.isBN=function(b){return b instanceof a?!0:b!==null&&typeof b=="object"&&b.constructor.wordSize===a.wordSize&&Array.isArray(b.words)},a.max=function(b,k){return b.cmp(k)>0?b:k},a.min=function(b,k){return b.cmp(k)<0?b:k},a.prototype._init=function(b,k,S){if(typeof b=="number")return this._initNumber(b,k,S);if(typeof b=="object")return this._initArray(b,k,S);k==="hex"&&(k=16),t(k===(k|0)&&k>=2&&k<=36),b=b.toString().replace(/\s+/g,"");var w=0;b[0]==="-"&&(w++,this.negative=1),w=0;w-=3)O=b[w]|b[w-1]<<8|b[w-2]<<16,this.words[R]|=O<>>26-D&67108863,D+=24,D>=26&&(D-=26,R++);else if(S==="le")for(w=0,R=0;w>>26-D&67108863,D+=24,D>=26&&(D-=26,R++);return this.strip()};function s(I,b){var k=I.charCodeAt(b);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function o(I,b,k){var S=s(I,k);return k-1>=b&&(S|=s(I,k-1)<<4),S}a.prototype._parseHex=function(b,k,S){this.length=Math.ceil((b.length-k)/6),this.words=new Array(this.length);for(var w=0;w=k;w-=2)D=o(b,k,w)<=18?(R-=18,O+=1,this.words[O]|=D>>>26):R+=8;else{var T=b.length-k;for(w=T%2===0?k+1:k;w=18?(R-=18,O+=1,this.words[O]|=D>>>26):R+=8}this.strip()};function c(I,b,k,S){for(var w=0,R=Math.min(I.length,k),O=b;O=49?w+=D-49+10:D>=17?w+=D-17+10:w+=D}return w}a.prototype._parseBase=function(b,k,S){this.words=[0],this.length=1;for(var w=0,R=1;R<=67108863;R*=k)w++;w--,R=R/k|0;for(var O=b.length-S,D=O%w,T=Math.min(O,O-D)+S,x=0,N=S;N1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var 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"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(b,k){b=b||10,k=k|0||1;var S;if(b===16||b==="hex"){S="";for(var w=0,R=0,O=0;O>>24-w&16777215,R!==0||O!==this.length-1?S=u[6-T.length]+T+S:S=T+S,w+=2,w>=26&&(w-=26,O--)}for(R!==0&&(S=R.toString(16)+S);S.length%k!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(b===(b|0)&&b>=2&&b<=36){var x=l[b],N=p[b];S="";var U=this.clone();for(U.negative=0;!U.isZero();){var M=U.modn(N).toString(b);U=U.idivn(N),U.isZero()?S=M+S:S=u[x-M.length]+M+S}for(this.isZero()&&(S="0"+S);S.length%k!==0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var b=this.words[0];return this.length===2?b+=this.words[1]*67108864:this.length===3&&this.words[2]===1?b+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-b:b},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(b,k){return t(typeof i<"u"),this.toArrayLike(i,b,k)},a.prototype.toArray=function(b,k){return this.toArrayLike(Array,b,k)},a.prototype.toArrayLike=function(b,k,S){var w=this.byteLength(),R=S||Math.max(1,w);t(w<=R,"byte array longer than desired length"),t(R>0,"Requested array length <= 0"),this.strip();var O=k==="le",D=new b(R),T,x,N=this.clone();if(O){for(x=0;!N.isZero();x++)T=N.andln(255),N.iushrn(8),D[x]=T;for(;x=4096&&(S+=13,k>>>=13),k>=64&&(S+=7,k>>>=7),k>=8&&(S+=4,k>>>=4),k>=2&&(S+=2,k>>>=2),S+k},a.prototype._zeroBits=function(b){if(b===0)return 26;var k=b,S=0;return(k&8191)===0&&(S+=13,k>>>=13),(k&127)===0&&(S+=7,k>>>=7),(k&15)===0&&(S+=4,k>>>=4),(k&3)===0&&(S+=2,k>>>=2),(k&1)===0&&S++,S},a.prototype.bitLength=function(){var b=this.words[this.length-1],k=this._countBits(b);return(this.length-1)*26+k};function h(I){for(var b=new Array(I.bitLength()),k=0;k>>w}return b}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var b=0,k=0;kb.length?this.clone().ior(b):b.clone().ior(this)},a.prototype.uor=function(b){return this.length>b.length?this.clone().iuor(b):b.clone().iuor(this)},a.prototype.iuand=function(b){var k;this.length>b.length?k=b:k=this;for(var S=0;Sb.length?this.clone().iand(b):b.clone().iand(this)},a.prototype.uand=function(b){return this.length>b.length?this.clone().iuand(b):b.clone().iuand(this)},a.prototype.iuxor=function(b){var k,S;this.length>b.length?(k=this,S=b):(k=b,S=this);for(var w=0;wb.length?this.clone().ixor(b):b.clone().ixor(this)},a.prototype.uxor=function(b){return this.length>b.length?this.clone().iuxor(b):b.clone().iuxor(this)},a.prototype.inotn=function(b){t(typeof b=="number"&&b>=0);var k=Math.ceil(b/26)|0,S=b%26;this._expand(k),S>0&&k--;for(var w=0;w0&&(this.words[w]=~this.words[w]&67108863>>26-S),this.strip()},a.prototype.notn=function(b){return this.clone().inotn(b)},a.prototype.setn=function(b,k){t(typeof b=="number"&&b>=0);var S=b/26|0,w=b%26;return this._expand(S+1),k?this.words[S]=this.words[S]|1<b.length?(S=this,w=b):(S=b,w=this);for(var R=0,O=0;O>>26;for(;R!==0&&O>>26;if(this.length=S.length,R!==0)this.words[this.length]=R,this.length++;else if(S!==this)for(;Ob.length?this.clone().iadd(b):b.clone().iadd(this)},a.prototype.isub=function(b){if(b.negative!==0){b.negative=0;var k=this.iadd(b);return b.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(b),this.negative=1,this._normSign();var S=this.cmp(b);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,R;S>0?(w=this,R=b):(w=b,R=this);for(var O=0,D=0;D>26,this.words[D]=k&67108863;for(;O!==0&&D>26,this.words[D]=k&67108863;if(O===0&&D>>26,U=T&67108863,M=Math.min(x,b.length-1),V=Math.max(0,x-I.length+1);V<=M;V++){var ee=x-V|0;w=I.words[ee]|0,R=b.words[V]|0,O=w*R+U,N+=O/67108864|0,U=O&67108863}k.words[x]=U|0,T=N|0}return T!==0?k.words[x]=T|0:k.length--,k.strip()}var y=function(b,k,S){var w=b.words,R=k.words,O=S.words,D=0,T,x,N,U=w[0]|0,M=U&8191,V=U>>>13,ee=w[1]|0,$=ee&8191,X=ee>>>13,se=w[2]|0,ue=se&8191,ye=se>>>13,Ie=w[3]|0,ge=Ie&8191,xe=Ie>>>13,Ue=w[4]|0,Te=Ue&8191,Be=Ue>>>13,Tr=w[5]|0,et=Tr&8191,mt=Tr>>>13,jt=w[6]|0,je=jt&8191,ht=jt>>>13,ir=w[7]|0,tt=ir&8191,It=ir>>>13,br=w[8]|0,lt=br&8191,Ut=br>>>13,Or=w[9]|0,Ve=Or&8191,At=Or>>>13,Gr=R[0]|0,rt=Gr&8191,Ft=Gr>>>13,Vr=R[1]|0,st=Vr&8191,Lt=Vr>>>13,Hr=R[2]|0,nt=Hr&8191,Kt=Hr>>>13,Pr=R[3]|0,ot=Pr&8191,Gt=Pr>>>13,Er=R[4]|0,at=Er&8191,Vt=Er>>>13,$r=R[5]|0,it=$r&8191,$t=$r>>>13,jr=R[6]|0,Le=jr&8191,yt=jr>>>13,zr=R[7]|0,ft=zr&8191,sr=zr>>>13,wn=R[8]|0,bt=wn&8191,Zt=wn>>>13,xn=R[9]|0,gt=xn&8191,Xt=xn>>>13;S.negative=b.negative^k.negative,S.length=19,T=Math.imul(M,rt),x=Math.imul(M,Ft),x=x+Math.imul(V,rt)|0,N=Math.imul(V,Ft);var qo=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(qo>>>26)|0,qo&=67108863,T=Math.imul($,rt),x=Math.imul($,Ft),x=x+Math.imul(X,rt)|0,N=Math.imul(X,Ft),T=T+Math.imul(M,st)|0,x=x+Math.imul(M,Lt)|0,x=x+Math.imul(V,st)|0,N=N+Math.imul(V,Lt)|0;var un=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(un>>>26)|0,un&=67108863,T=Math.imul(ue,rt),x=Math.imul(ue,Ft),x=x+Math.imul(ye,rt)|0,N=Math.imul(ye,Ft),T=T+Math.imul($,st)|0,x=x+Math.imul($,Lt)|0,x=x+Math.imul(X,st)|0,N=N+Math.imul(X,Lt)|0,T=T+Math.imul(M,nt)|0,x=x+Math.imul(M,Kt)|0,x=x+Math.imul(V,nt)|0,N=N+Math.imul(V,Kt)|0;var ln=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(ln>>>26)|0,ln&=67108863,T=Math.imul(ge,rt),x=Math.imul(ge,Ft),x=x+Math.imul(xe,rt)|0,N=Math.imul(xe,Ft),T=T+Math.imul(ue,st)|0,x=x+Math.imul(ue,Lt)|0,x=x+Math.imul(ye,st)|0,N=N+Math.imul(ye,Lt)|0,T=T+Math.imul($,nt)|0,x=x+Math.imul($,Kt)|0,x=x+Math.imul(X,nt)|0,N=N+Math.imul(X,Kt)|0,T=T+Math.imul(M,ot)|0,x=x+Math.imul(M,Gt)|0,x=x+Math.imul(V,ot)|0,N=N+Math.imul(V,Gt)|0;var ho=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(ho>>>26)|0,ho&=67108863,T=Math.imul(Te,rt),x=Math.imul(Te,Ft),x=x+Math.imul(Be,rt)|0,N=Math.imul(Be,Ft),T=T+Math.imul(ge,st)|0,x=x+Math.imul(ge,Lt)|0,x=x+Math.imul(xe,st)|0,N=N+Math.imul(xe,Lt)|0,T=T+Math.imul(ue,nt)|0,x=x+Math.imul(ue,Kt)|0,x=x+Math.imul(ye,nt)|0,N=N+Math.imul(ye,Kt)|0,T=T+Math.imul($,ot)|0,x=x+Math.imul($,Gt)|0,x=x+Math.imul(X,ot)|0,N=N+Math.imul(X,Gt)|0,T=T+Math.imul(M,at)|0,x=x+Math.imul(M,Vt)|0,x=x+Math.imul(V,at)|0,N=N+Math.imul(V,Vt)|0;var mo=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(mo>>>26)|0,mo&=67108863,T=Math.imul(et,rt),x=Math.imul(et,Ft),x=x+Math.imul(mt,rt)|0,N=Math.imul(mt,Ft),T=T+Math.imul(Te,st)|0,x=x+Math.imul(Te,Lt)|0,x=x+Math.imul(Be,st)|0,N=N+Math.imul(Be,Lt)|0,T=T+Math.imul(ge,nt)|0,x=x+Math.imul(ge,Kt)|0,x=x+Math.imul(xe,nt)|0,N=N+Math.imul(xe,Kt)|0,T=T+Math.imul(ue,ot)|0,x=x+Math.imul(ue,Gt)|0,x=x+Math.imul(ye,ot)|0,N=N+Math.imul(ye,Gt)|0,T=T+Math.imul($,at)|0,x=x+Math.imul($,Vt)|0,x=x+Math.imul(X,at)|0,N=N+Math.imul(X,Vt)|0,T=T+Math.imul(M,it)|0,x=x+Math.imul(M,$t)|0,x=x+Math.imul(V,it)|0,N=N+Math.imul(V,$t)|0;var yo=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(yo>>>26)|0,yo&=67108863,T=Math.imul(je,rt),x=Math.imul(je,Ft),x=x+Math.imul(ht,rt)|0,N=Math.imul(ht,Ft),T=T+Math.imul(et,st)|0,x=x+Math.imul(et,Lt)|0,x=x+Math.imul(mt,st)|0,N=N+Math.imul(mt,Lt)|0,T=T+Math.imul(Te,nt)|0,x=x+Math.imul(Te,Kt)|0,x=x+Math.imul(Be,nt)|0,N=N+Math.imul(Be,Kt)|0,T=T+Math.imul(ge,ot)|0,x=x+Math.imul(ge,Gt)|0,x=x+Math.imul(xe,ot)|0,N=N+Math.imul(xe,Gt)|0,T=T+Math.imul(ue,at)|0,x=x+Math.imul(ue,Vt)|0,x=x+Math.imul(ye,at)|0,N=N+Math.imul(ye,Vt)|0,T=T+Math.imul($,it)|0,x=x+Math.imul($,$t)|0,x=x+Math.imul(X,it)|0,N=N+Math.imul(X,$t)|0,T=T+Math.imul(M,Le)|0,x=x+Math.imul(M,yt)|0,x=x+Math.imul(V,Le)|0,N=N+Math.imul(V,yt)|0;var bo=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(bo>>>26)|0,bo&=67108863,T=Math.imul(tt,rt),x=Math.imul(tt,Ft),x=x+Math.imul(It,rt)|0,N=Math.imul(It,Ft),T=T+Math.imul(je,st)|0,x=x+Math.imul(je,Lt)|0,x=x+Math.imul(ht,st)|0,N=N+Math.imul(ht,Lt)|0,T=T+Math.imul(et,nt)|0,x=x+Math.imul(et,Kt)|0,x=x+Math.imul(mt,nt)|0,N=N+Math.imul(mt,Kt)|0,T=T+Math.imul(Te,ot)|0,x=x+Math.imul(Te,Gt)|0,x=x+Math.imul(Be,ot)|0,N=N+Math.imul(Be,Gt)|0,T=T+Math.imul(ge,at)|0,x=x+Math.imul(ge,Vt)|0,x=x+Math.imul(xe,at)|0,N=N+Math.imul(xe,Vt)|0,T=T+Math.imul(ue,it)|0,x=x+Math.imul(ue,$t)|0,x=x+Math.imul(ye,it)|0,N=N+Math.imul(ye,$t)|0,T=T+Math.imul($,Le)|0,x=x+Math.imul($,yt)|0,x=x+Math.imul(X,Le)|0,N=N+Math.imul(X,yt)|0,T=T+Math.imul(M,ft)|0,x=x+Math.imul(M,sr)|0,x=x+Math.imul(V,ft)|0,N=N+Math.imul(V,sr)|0;var go=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(go>>>26)|0,go&=67108863,T=Math.imul(lt,rt),x=Math.imul(lt,Ft),x=x+Math.imul(Ut,rt)|0,N=Math.imul(Ut,Ft),T=T+Math.imul(tt,st)|0,x=x+Math.imul(tt,Lt)|0,x=x+Math.imul(It,st)|0,N=N+Math.imul(It,Lt)|0,T=T+Math.imul(je,nt)|0,x=x+Math.imul(je,Kt)|0,x=x+Math.imul(ht,nt)|0,N=N+Math.imul(ht,Kt)|0,T=T+Math.imul(et,ot)|0,x=x+Math.imul(et,Gt)|0,x=x+Math.imul(mt,ot)|0,N=N+Math.imul(mt,Gt)|0,T=T+Math.imul(Te,at)|0,x=x+Math.imul(Te,Vt)|0,x=x+Math.imul(Be,at)|0,N=N+Math.imul(Be,Vt)|0,T=T+Math.imul(ge,it)|0,x=x+Math.imul(ge,$t)|0,x=x+Math.imul(xe,it)|0,N=N+Math.imul(xe,$t)|0,T=T+Math.imul(ue,Le)|0,x=x+Math.imul(ue,yt)|0,x=x+Math.imul(ye,Le)|0,N=N+Math.imul(ye,yt)|0,T=T+Math.imul($,ft)|0,x=x+Math.imul($,sr)|0,x=x+Math.imul(X,ft)|0,N=N+Math.imul(X,sr)|0,T=T+Math.imul(M,bt)|0,x=x+Math.imul(M,Zt)|0,x=x+Math.imul(V,bt)|0,N=N+Math.imul(V,Zt)|0;var q0=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(q0>>>26)|0,q0&=67108863,T=Math.imul(Ve,rt),x=Math.imul(Ve,Ft),x=x+Math.imul(At,rt)|0,N=Math.imul(At,Ft),T=T+Math.imul(lt,st)|0,x=x+Math.imul(lt,Lt)|0,x=x+Math.imul(Ut,st)|0,N=N+Math.imul(Ut,Lt)|0,T=T+Math.imul(tt,nt)|0,x=x+Math.imul(tt,Kt)|0,x=x+Math.imul(It,nt)|0,N=N+Math.imul(It,Kt)|0,T=T+Math.imul(je,ot)|0,x=x+Math.imul(je,Gt)|0,x=x+Math.imul(ht,ot)|0,N=N+Math.imul(ht,Gt)|0,T=T+Math.imul(et,at)|0,x=x+Math.imul(et,Vt)|0,x=x+Math.imul(mt,at)|0,N=N+Math.imul(mt,Vt)|0,T=T+Math.imul(Te,it)|0,x=x+Math.imul(Te,$t)|0,x=x+Math.imul(Be,it)|0,N=N+Math.imul(Be,$t)|0,T=T+Math.imul(ge,Le)|0,x=x+Math.imul(ge,yt)|0,x=x+Math.imul(xe,Le)|0,N=N+Math.imul(xe,yt)|0,T=T+Math.imul(ue,ft)|0,x=x+Math.imul(ue,sr)|0,x=x+Math.imul(ye,ft)|0,N=N+Math.imul(ye,sr)|0,T=T+Math.imul($,bt)|0,x=x+Math.imul($,Zt)|0,x=x+Math.imul(X,bt)|0,N=N+Math.imul(X,Zt)|0,T=T+Math.imul(M,gt)|0,x=x+Math.imul(M,Xt)|0,x=x+Math.imul(V,gt)|0,N=N+Math.imul(V,Xt)|0;var W0=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(W0>>>26)|0,W0&=67108863,T=Math.imul(Ve,st),x=Math.imul(Ve,Lt),x=x+Math.imul(At,st)|0,N=Math.imul(At,Lt),T=T+Math.imul(lt,nt)|0,x=x+Math.imul(lt,Kt)|0,x=x+Math.imul(Ut,nt)|0,N=N+Math.imul(Ut,Kt)|0,T=T+Math.imul(tt,ot)|0,x=x+Math.imul(tt,Gt)|0,x=x+Math.imul(It,ot)|0,N=N+Math.imul(It,Gt)|0,T=T+Math.imul(je,at)|0,x=x+Math.imul(je,Vt)|0,x=x+Math.imul(ht,at)|0,N=N+Math.imul(ht,Vt)|0,T=T+Math.imul(et,it)|0,x=x+Math.imul(et,$t)|0,x=x+Math.imul(mt,it)|0,N=N+Math.imul(mt,$t)|0,T=T+Math.imul(Te,Le)|0,x=x+Math.imul(Te,yt)|0,x=x+Math.imul(Be,Le)|0,N=N+Math.imul(Be,yt)|0,T=T+Math.imul(ge,ft)|0,x=x+Math.imul(ge,sr)|0,x=x+Math.imul(xe,ft)|0,N=N+Math.imul(xe,sr)|0,T=T+Math.imul(ue,bt)|0,x=x+Math.imul(ue,Zt)|0,x=x+Math.imul(ye,bt)|0,N=N+Math.imul(ye,Zt)|0,T=T+Math.imul($,gt)|0,x=x+Math.imul($,Xt)|0,x=x+Math.imul(X,gt)|0,N=N+Math.imul(X,Xt)|0;var U0=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(U0>>>26)|0,U0&=67108863,T=Math.imul(Ve,nt),x=Math.imul(Ve,Kt),x=x+Math.imul(At,nt)|0,N=Math.imul(At,Kt),T=T+Math.imul(lt,ot)|0,x=x+Math.imul(lt,Gt)|0,x=x+Math.imul(Ut,ot)|0,N=N+Math.imul(Ut,Gt)|0,T=T+Math.imul(tt,at)|0,x=x+Math.imul(tt,Vt)|0,x=x+Math.imul(It,at)|0,N=N+Math.imul(It,Vt)|0,T=T+Math.imul(je,it)|0,x=x+Math.imul(je,$t)|0,x=x+Math.imul(ht,it)|0,N=N+Math.imul(ht,$t)|0,T=T+Math.imul(et,Le)|0,x=x+Math.imul(et,yt)|0,x=x+Math.imul(mt,Le)|0,N=N+Math.imul(mt,yt)|0,T=T+Math.imul(Te,ft)|0,x=x+Math.imul(Te,sr)|0,x=x+Math.imul(Be,ft)|0,N=N+Math.imul(Be,sr)|0,T=T+Math.imul(ge,bt)|0,x=x+Math.imul(ge,Zt)|0,x=x+Math.imul(xe,bt)|0,N=N+Math.imul(xe,Zt)|0,T=T+Math.imul(ue,gt)|0,x=x+Math.imul(ue,Xt)|0,x=x+Math.imul(ye,gt)|0,N=N+Math.imul(ye,Xt)|0;var H0=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(H0>>>26)|0,H0&=67108863,T=Math.imul(Ve,ot),x=Math.imul(Ve,Gt),x=x+Math.imul(At,ot)|0,N=Math.imul(At,Gt),T=T+Math.imul(lt,at)|0,x=x+Math.imul(lt,Vt)|0,x=x+Math.imul(Ut,at)|0,N=N+Math.imul(Ut,Vt)|0,T=T+Math.imul(tt,it)|0,x=x+Math.imul(tt,$t)|0,x=x+Math.imul(It,it)|0,N=N+Math.imul(It,$t)|0,T=T+Math.imul(je,Le)|0,x=x+Math.imul(je,yt)|0,x=x+Math.imul(ht,Le)|0,N=N+Math.imul(ht,yt)|0,T=T+Math.imul(et,ft)|0,x=x+Math.imul(et,sr)|0,x=x+Math.imul(mt,ft)|0,N=N+Math.imul(mt,sr)|0,T=T+Math.imul(Te,bt)|0,x=x+Math.imul(Te,Zt)|0,x=x+Math.imul(Be,bt)|0,N=N+Math.imul(Be,Zt)|0,T=T+Math.imul(ge,gt)|0,x=x+Math.imul(ge,Xt)|0,x=x+Math.imul(xe,gt)|0,N=N+Math.imul(xe,Xt)|0;var t0=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(t0>>>26)|0,t0&=67108863,T=Math.imul(Ve,at),x=Math.imul(Ve,Vt),x=x+Math.imul(At,at)|0,N=Math.imul(At,Vt),T=T+Math.imul(lt,it)|0,x=x+Math.imul(lt,$t)|0,x=x+Math.imul(Ut,it)|0,N=N+Math.imul(Ut,$t)|0,T=T+Math.imul(tt,Le)|0,x=x+Math.imul(tt,yt)|0,x=x+Math.imul(It,Le)|0,N=N+Math.imul(It,yt)|0,T=T+Math.imul(je,ft)|0,x=x+Math.imul(je,sr)|0,x=x+Math.imul(ht,ft)|0,N=N+Math.imul(ht,sr)|0,T=T+Math.imul(et,bt)|0,x=x+Math.imul(et,Zt)|0,x=x+Math.imul(mt,bt)|0,N=N+Math.imul(mt,Zt)|0,T=T+Math.imul(Te,gt)|0,x=x+Math.imul(Te,Xt)|0,x=x+Math.imul(Be,gt)|0,N=N+Math.imul(Be,Xt)|0;var Wo=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,T=Math.imul(Ve,it),x=Math.imul(Ve,$t),x=x+Math.imul(At,it)|0,N=Math.imul(At,$t),T=T+Math.imul(lt,Le)|0,x=x+Math.imul(lt,yt)|0,x=x+Math.imul(Ut,Le)|0,N=N+Math.imul(Ut,yt)|0,T=T+Math.imul(tt,ft)|0,x=x+Math.imul(tt,sr)|0,x=x+Math.imul(It,ft)|0,N=N+Math.imul(It,sr)|0,T=T+Math.imul(je,bt)|0,x=x+Math.imul(je,Zt)|0,x=x+Math.imul(ht,bt)|0,N=N+Math.imul(ht,Zt)|0,T=T+Math.imul(et,gt)|0,x=x+Math.imul(et,Xt)|0,x=x+Math.imul(mt,gt)|0,N=N+Math.imul(mt,Xt)|0;var r0=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(r0>>>26)|0,r0&=67108863,T=Math.imul(Ve,Le),x=Math.imul(Ve,yt),x=x+Math.imul(At,Le)|0,N=Math.imul(At,yt),T=T+Math.imul(lt,ft)|0,x=x+Math.imul(lt,sr)|0,x=x+Math.imul(Ut,ft)|0,N=N+Math.imul(Ut,sr)|0,T=T+Math.imul(tt,bt)|0,x=x+Math.imul(tt,Zt)|0,x=x+Math.imul(It,bt)|0,N=N+Math.imul(It,Zt)|0,T=T+Math.imul(je,gt)|0,x=x+Math.imul(je,Xt)|0,x=x+Math.imul(ht,gt)|0,N=N+Math.imul(ht,Xt)|0;var vo=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(vo>>>26)|0,vo&=67108863,T=Math.imul(Ve,ft),x=Math.imul(Ve,sr),x=x+Math.imul(At,ft)|0,N=Math.imul(At,sr),T=T+Math.imul(lt,bt)|0,x=x+Math.imul(lt,Zt)|0,x=x+Math.imul(Ut,bt)|0,N=N+Math.imul(Ut,Zt)|0,T=T+Math.imul(tt,gt)|0,x=x+Math.imul(tt,Xt)|0,x=x+Math.imul(It,gt)|0,N=N+Math.imul(It,Xt)|0;var j0=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(j0>>>26)|0,j0&=67108863,T=Math.imul(Ve,bt),x=Math.imul(Ve,Zt),x=x+Math.imul(At,bt)|0,N=Math.imul(At,Zt),T=T+Math.imul(lt,gt)|0,x=x+Math.imul(lt,Xt)|0,x=x+Math.imul(Ut,gt)|0,N=N+Math.imul(Ut,Xt)|0;var wu=(D+T|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(wu>>>26)|0,wu&=67108863,T=Math.imul(Ve,gt),x=Math.imul(Ve,Xt),x=x+Math.imul(At,gt)|0,N=Math.imul(At,Xt);var ch=(D+T|0)+((x&8191)<<13)|0;return D=(N+(x>>>13)|0)+(ch>>>26)|0,ch&=67108863,O[0]=qo,O[1]=un,O[2]=ln,O[3]=ho,O[4]=mo,O[5]=yo,O[6]=bo,O[7]=go,O[8]=q0,O[9]=W0,O[10]=U0,O[11]=H0,O[12]=t0,O[13]=Wo,O[14]=r0,O[15]=vo,O[16]=j0,O[17]=wu,O[18]=ch,D!==0&&(O[19]=D,S.length++),S};Math.imul||(y=m);function C(I,b,k){k.negative=b.negative^I.negative,k.length=I.length+b.length;for(var S=0,w=0,R=0;R>>26)|0,w+=O>>>26,O&=67108863}k.words[R]=D,S=O,O=w}return S!==0?k.words[R]=S:k.length--,k.strip()}function P(I,b,k){var S=new A;return S.mulp(I,b,k)}a.prototype.mulTo=function(b,k){var S,w=this.length+b.length;return this.length===10&&b.length===10?S=y(this,b,k):w<63?S=m(this,b,k):w<1024?S=C(this,b,k):S=P(this,b,k),S};function A(I,b){this.x=I,this.y=b}A.prototype.makeRBT=function(b){for(var k=new Array(b),S=a.prototype._countBits(b)-1,w=0;w>=1;return w},A.prototype.permute=function(b,k,S,w,R,O){for(var D=0;D>>1)R++;return 1<>>13,S[2*O+1]=R&8191,R=R>>>13;for(O=2*k;O>=26,k+=w/67108864|0,k+=R>>>26,this.words[S]=R&67108863}return k!==0&&(this.words[S]=k,this.length++),this},a.prototype.muln=function(b){return this.clone().imuln(b)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(b){var k=h(b);if(k.length===0)return new a(1);for(var S=this,w=0;w=0);var k=b%26,S=(b-k)/26,w=67108863>>>26-k<<26-k,R;if(k!==0){var O=0;for(R=0;R>>26-k}O&&(this.words[R]=O,this.length++)}if(S!==0){for(R=this.length-1;R>=0;R--)this.words[R+S]=this.words[R];for(R=0;R=0);var w;k?w=(k-k%26)/26:w=0;var R=b%26,O=Math.min((b-R)/26,this.length),D=67108863^67108863>>>R<O)for(this.length-=O,x=0;x=0&&(N!==0||x>=w);x--){var U=this.words[x]|0;this.words[x]=N<<26-R|U>>>R,N=U&D}return T&&N!==0&&(T.words[T.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(b,k,S){return t(this.negative===0),this.iushrn(b,k,S)},a.prototype.shln=function(b){return this.clone().ishln(b)},a.prototype.ushln=function(b){return this.clone().iushln(b)},a.prototype.shrn=function(b){return this.clone().ishrn(b)},a.prototype.ushrn=function(b){return this.clone().iushrn(b)},a.prototype.testn=function(b){t(typeof b=="number"&&b>=0);var k=b%26,S=(b-k)/26,w=1<=0);var k=b%26,S=(b-k)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(k!==0&&S++,this.length=Math.min(S,this.length),k!==0){var w=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},a.prototype.isubn=function(b){if(t(typeof b=="number"),t(b<67108864),b<0)return this.iaddn(-b);if(this.negative!==0)return this.negative=0,this.iaddn(b),this.negative=1,this;if(this.words[0]-=b,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(T/67108864|0),this.words[R+S]=O&67108863}for(;R>26,this.words[R+S]=O&67108863;if(D===0)return this.strip();for(t(D===-1),D=0,R=0;R>26,this.words[R]=O&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(b,k){var S=this.length-b.length,w=this.clone(),R=b,O=R.words[R.length-1]|0,D=this._countBits(O);S=26-D,S!==0&&(R=R.ushln(S),w.iushln(S),O=R.words[R.length-1]|0);var T=w.length-R.length,x;if(k!=="mod"){x=new a(null),x.length=T+1,x.words=new Array(x.length);for(var N=0;N=0;M--){var V=(w.words[R.length+M]|0)*67108864+(w.words[R.length+M-1]|0);for(V=Math.min(V/O|0,67108863),w._ishlnsubmul(R,V,M);w.negative!==0;)V--,w.negative=0,w._ishlnsubmul(R,1,M),w.isZero()||(w.negative^=1);x&&(x.words[M]=V)}return x&&x.strip(),w.strip(),k!=="div"&&S!==0&&w.iushrn(S),{div:x||null,mod:w}},a.prototype.divmod=function(b,k,S){if(t(!b.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var w,R,O;return this.negative!==0&&b.negative===0?(O=this.neg().divmod(b,k),k!=="mod"&&(w=O.div.neg()),k!=="div"&&(R=O.mod.neg(),S&&R.negative!==0&&R.iadd(b)),{div:w,mod:R}):this.negative===0&&b.negative!==0?(O=this.divmod(b.neg(),k),k!=="mod"&&(w=O.div.neg()),{div:w,mod:O.mod}):(this.negative&b.negative)!==0?(O=this.neg().divmod(b.neg(),k),k!=="div"&&(R=O.mod.neg(),S&&R.negative!==0&&R.isub(b)),{div:O.div,mod:R}):b.length>this.length||this.cmp(b)<0?{div:new a(0),mod:this}:b.length===1?k==="div"?{div:this.divn(b.words[0]),mod:null}:k==="mod"?{div:null,mod:new a(this.modn(b.words[0]))}:{div:this.divn(b.words[0]),mod:new a(this.modn(b.words[0]))}:this._wordDiv(b,k)},a.prototype.div=function(b){return this.divmod(b,"div",!1).div},a.prototype.mod=function(b){return this.divmod(b,"mod",!1).mod},a.prototype.umod=function(b){return this.divmod(b,"mod",!0).mod},a.prototype.divRound=function(b){var k=this.divmod(b);if(k.mod.isZero())return k.div;var S=k.div.negative!==0?k.mod.isub(b):k.mod,w=b.ushrn(1),R=b.andln(1),O=S.cmp(w);return O<0||R===1&&O===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},a.prototype.modn=function(b){t(b<=67108863);for(var k=(1<<26)%b,S=0,w=this.length-1;w>=0;w--)S=(k*S+(this.words[w]|0))%b;return S},a.prototype.idivn=function(b){t(b<=67108863);for(var k=0,S=this.length-1;S>=0;S--){var w=(this.words[S]|0)+k*67108864;this.words[S]=w/b|0,k=w%b}return this.strip()},a.prototype.divn=function(b){return this.clone().idivn(b)},a.prototype.egcd=function(b){t(b.negative===0),t(!b.isZero());var k=this,S=b.clone();k.negative!==0?k=k.umod(b):k=k.clone();for(var w=new a(1),R=new a(0),O=new a(0),D=new a(1),T=0;k.isEven()&&S.isEven();)k.iushrn(1),S.iushrn(1),++T;for(var x=S.clone(),N=k.clone();!k.isZero();){for(var U=0,M=1;(k.words[0]&M)===0&&U<26;++U,M<<=1);if(U>0)for(k.iushrn(U);U-- >0;)(w.isOdd()||R.isOdd())&&(w.iadd(x),R.isub(N)),w.iushrn(1),R.iushrn(1);for(var V=0,ee=1;(S.words[0]&ee)===0&&V<26;++V,ee<<=1);if(V>0)for(S.iushrn(V);V-- >0;)(O.isOdd()||D.isOdd())&&(O.iadd(x),D.isub(N)),O.iushrn(1),D.iushrn(1);k.cmp(S)>=0?(k.isub(S),w.isub(O),R.isub(D)):(S.isub(k),O.isub(w),D.isub(R))}return{a:O,b:D,gcd:S.iushln(T)}},a.prototype._invmp=function(b){t(b.negative===0),t(!b.isZero());var k=this,S=b.clone();k.negative!==0?k=k.umod(b):k=k.clone();for(var w=new a(1),R=new a(0),O=S.clone();k.cmpn(1)>0&&S.cmpn(1)>0;){for(var D=0,T=1;(k.words[0]&T)===0&&D<26;++D,T<<=1);if(D>0)for(k.iushrn(D);D-- >0;)w.isOdd()&&w.iadd(O),w.iushrn(1);for(var x=0,N=1;(S.words[0]&N)===0&&x<26;++x,N<<=1);if(x>0)for(S.iushrn(x);x-- >0;)R.isOdd()&&R.iadd(O),R.iushrn(1);k.cmp(S)>=0?(k.isub(S),w.isub(R)):(S.isub(k),R.isub(w))}var U;return k.cmpn(1)===0?U=w:U=R,U.cmpn(0)<0&&U.iadd(b),U},a.prototype.gcd=function(b){if(this.isZero())return b.abs();if(b.isZero())return this.abs();var k=this.clone(),S=b.clone();k.negative=0,S.negative=0;for(var w=0;k.isEven()&&S.isEven();w++)k.iushrn(1),S.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;S.isEven();)S.iushrn(1);var R=k.cmp(S);if(R<0){var O=k;k=S,S=O}else if(R===0||S.cmpn(1)===0)break;k.isub(S)}while(!0);return S.iushln(w)},a.prototype.invm=function(b){return this.egcd(b).a.umod(b)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(b){return this.words[0]&b},a.prototype.bincn=function(b){t(typeof b=="number");var k=b%26,S=(b-k)/26,w=1<>>26,D&=67108863,this.words[O]=D}return R!==0&&(this.words[O]=R,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(b){var k=b<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var S;if(this.length>1)S=1;else{k&&(b=-b),t(b<=67108863,"Number is too big");var w=this.words[0]|0;S=w===b?0:wb.length)return 1;if(this.length=0;S--){var w=this.words[S]|0,R=b.words[S]|0;if(w!==R){wR&&(k=1);break}}return k},a.prototype.gtn=function(b){return this.cmpn(b)===1},a.prototype.gt=function(b){return this.cmp(b)===1},a.prototype.gten=function(b){return this.cmpn(b)>=0},a.prototype.gte=function(b){return this.cmp(b)>=0},a.prototype.ltn=function(b){return this.cmpn(b)===-1},a.prototype.lt=function(b){return this.cmp(b)===-1},a.prototype.lten=function(b){return this.cmpn(b)<=0},a.prototype.lte=function(b){return this.cmp(b)<=0},a.prototype.eqn=function(b){return this.cmpn(b)===0},a.prototype.eq=function(b){return this.cmp(b)===0},a.red=function(b){return new j(b)},a.prototype.toRed=function(b){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),b.convertTo(this)._forceRed(b)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(b){return this.red=b,this},a.prototype.forceRed=function(b){return t(!this.red,"Already a number in reduction context"),this._forceRed(b)},a.prototype.redAdd=function(b){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,b)},a.prototype.redIAdd=function(b){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,b)},a.prototype.redSub=function(b){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,b)},a.prototype.redISub=function(b){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,b)},a.prototype.redShl=function(b){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,b)},a.prototype.redMul=function(b){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.mul(this,b)},a.prototype.redIMul=function(b){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,b),this.red.imul(this,b)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(b){return t(this.red&&!b.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,b)};var B={k256:null,p224:null,p192:null,p25519:null};function F(I,b){this.name=I,this.p=new a(b,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var b=new a(null);return b.words=new Array(Math.ceil(this.n/13)),b},F.prototype.ireduce=function(b){var k=b,S;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),S=k.bitLength();while(S>this.n);var w=S0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},F.prototype.split=function(b,k){b.iushrn(this.n,0,k)},F.prototype.imulK=function(b){return b.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(W,F),W.prototype.split=function(b,k){for(var S=4194303,w=Math.min(b.length,9),R=0;R>>22,O=D}O>>>=22,b.words[R-10]=O,O===0&&b.length>10?b.length-=10:b.length-=9},W.prototype.imulK=function(b){b.words[b.length]=0,b.words[b.length+1]=0,b.length+=2;for(var k=0,S=0;S>>=26,b.words[S]=R,k=w}return k!==0&&(b.words[b.length++]=k),b},a._prime=function(b){if(B[b])return B[b];var k;if(b==="k256")k=new W;else if(b==="p224")k=new K;else if(b==="p192")k=new z;else if(b==="p25519")k=new G;else throw new Error("Unknown prime "+b);return B[b]=k,k};function j(I){if(typeof I=="string"){var b=a._prime(I);this.m=b.p,this.prime=b}else t(I.gtn(1),"modulus must be greater than 1"),this.m=I,this.prime=null}j.prototype._verify1=function(b){t(b.negative===0,"red works only with positives"),t(b.red,"red works only with red numbers")},j.prototype._verify2=function(b,k){t((b.negative|k.negative)===0,"red works only with positives"),t(b.red&&b.red===k.red,"red works only with red numbers")},j.prototype.imod=function(b){return this.prime?this.prime.ireduce(b)._forceRed(this):b.umod(this.m)._forceRed(this)},j.prototype.neg=function(b){return b.isZero()?b.clone():this.m.sub(b)._forceRed(this)},j.prototype.add=function(b,k){this._verify2(b,k);var S=b.add(k);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},j.prototype.iadd=function(b,k){this._verify2(b,k);var S=b.iadd(k);return S.cmp(this.m)>=0&&S.isub(this.m),S},j.prototype.sub=function(b,k){this._verify2(b,k);var S=b.sub(k);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},j.prototype.isub=function(b,k){this._verify2(b,k);var S=b.isub(k);return S.cmpn(0)<0&&S.iadd(this.m),S},j.prototype.shl=function(b,k){return this._verify1(b),this.imod(b.ushln(k))},j.prototype.imul=function(b,k){return this._verify2(b,k),this.imod(b.imul(k))},j.prototype.mul=function(b,k){return this._verify2(b,k),this.imod(b.mul(k))},j.prototype.isqr=function(b){return this.imul(b,b.clone())},j.prototype.sqr=function(b){return this.mul(b,b)},j.prototype.sqrt=function(b){if(b.isZero())return b.clone();var k=this.m.andln(3);if(t(k%2===1),k===3){var S=this.m.add(new a(1)).iushrn(2);return this.pow(b,S)}for(var w=this.m.subn(1),R=0;!w.isZero()&&w.andln(1)===0;)R++,w.iushrn(1);t(!w.isZero());var O=new a(1).toRed(this),D=O.redNeg(),T=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new a(2*x*x).toRed(this);this.pow(x,T).cmp(D)!==0;)x.redIAdd(D);for(var N=this.pow(x,w),U=this.pow(b,w.addn(1).iushrn(1)),M=this.pow(b,w),V=R;M.cmp(O)!==0;){for(var ee=M,$=0;ee.cmp(O)!==0;$++)ee=ee.redSqr();t($=0;R--){for(var N=k.words[R],U=x-1;U>=0;U--){var M=N>>U&1;if(O!==w[0]&&(O=this.sqr(O)),M===0&&D===0){T=0;continue}D<<=1,D|=M,T++,!(T!==S&&(R!==0||U!==0))&&(O=this.mul(O,w[D]),T=0,D=0)}x=26}return O},j.prototype.convertTo=function(b){var k=b.umod(this.m);return k===b?k.clone():k},j.prototype.convertFrom=function(b){var k=b.clone();return k.red=null,k},a.mont=function(b){return new H(b)};function H(I){j.call(this,I),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(H,j),H.prototype.convertTo=function(b){return this.imod(b.ushln(this.shift))},H.prototype.convertFrom=function(b){var k=this.imod(b.mul(this.rinv));return k.red=null,k},H.prototype.imul=function(b,k){if(b.isZero()||k.isZero())return b.words[0]=0,b.length=1,b;var S=b.imul(k),w=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=S.isub(w).iushrn(this.shift),O=R;return R.cmp(this.m)>=0?O=R.isub(this.m):R.cmpn(0)<0&&(O=R.iadd(this.m)),O._forceRed(this)},H.prototype.mul=function(b,k){if(b.isZero()||k.isZero())return new a(0)._forceRed(this);var S=b.mul(k),w=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=S.isub(w).iushrn(this.shift),O=R;return R.cmp(this.m)>=0?O=R.isub(this.m):R.cmpn(0)<0&&(O=R.iadd(this.m)),O._forceRed(this)},H.prototype.invm=function(b){var k=this.imod(b._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof aCe>"u"||aCe,sst)});var jf=E((k2a,cst)=>{f();d();cst.exports=ost;function ost(r,e){if(!r)throw new Error(e||"Assertion failed")}ost.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}});var iCe=E(fst=>{"use strict";f();d();var eme=fst;function rdr(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var n=0;n>8,s=a&255;i?t.push(i,s):t.push(s)}return t}eme.toArray=rdr;function ust(r){return r.length===1?"0"+r:r}eme.zero2=ust;function lst(r){for(var e="",t=0;t{"use strict";f();d();var ph=dst,ndr=Bc(),adr=jf(),tme=iCe();ph.assert=adr;ph.toArray=tme.toArray;ph.zero2=tme.zero2;ph.toHex=tme.toHex;ph.encode=tme.encode;function idr(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1);n.fill(0);for(var a=1<(a>>1)-1?o=(a>>1)-c:o=c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n}ph.getNAF=idr;function sdr(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,a=0,i;r.cmpn(-n)>0||e.cmpn(-a)>0;){var s=r.andln(3)+n&3,o=e.andln(3)+a&3;s===3&&(s=-1),o===3&&(o=-1);var c;(s&1)===0?c=0:(i=r.andln(7)+n&7,(i===3||i===5)&&o===2?c=-s:c=s),t[0].push(c);var u;(o&1)===0?u=0:(i=e.andln(7)+a&7,(i===3||i===5)&&s===2?u=-o:u=o),t[1].push(u),2*n===c+1&&(n=1-n),2*a===u+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}ph.getJSF=sdr;function odr(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}ph.cachedProperty=odr;function cdr(r){return typeof r=="string"?ph.toArray(r,"hex"):r}ph.parseBytes=cdr;function udr(r){return new ndr(r,"hex","le")}ph.intFromLE=udr});var an=E((sCe,hst)=>{f();d();var rme=Uo(),Ym=rme.Buffer;function pst(r,e){for(var t in r)e[t]=r[t]}Ym.from&&Ym.alloc&&Ym.allocUnsafe&&Ym.allocUnsafeSlow?hst.exports=rme:(pst(rme,sCe),sCe.Buffer=Z5);function Z5(r,e,t){return Ym(r,e,t)}Z5.prototype=Object.create(Ym.prototype);pst(Ym,Z5);Z5.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return Ym(r,e,t)};Z5.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=Ym(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};Z5.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Ym(r)};Z5.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return rme.SlowBuffer(r)}});var jy=E((q2a,cCe)=>{"use strict";f();d();var oCe=65536,ldr=4294967295;function fdr(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var ddr=an().Buffer,nme=global.crypto||global.msCrypto;nme&&nme.getRandomValues?cCe.exports=pdr:cCe.exports=fdr;function pdr(r,e){if(r>ldr)throw new RangeError("requested too many random bytes");var t=ddr.allocUnsafe(r);if(r>0)if(r>oCe)for(var n=0;n{f();d();typeof Object.create=="function"?uCe.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:uCe.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var ml=E((K2a,lCe)=>{"use strict";f();d();var $x=typeof Reflect=="object"?Reflect:null,mst=$x&&typeof $x.apply=="function"?$x.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},ame;$x&&typeof $x.ownKeys=="function"?ame=$x.ownKeys:Object.getOwnPropertySymbols?ame=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:ame=function(e){return Object.getOwnPropertyNames(e)};function hdr(r){console&&console.warn&&console.warn(r)}var bst=Number.isNaN||function(e){return e!==e};function Ui(){Ui.init.call(this)}lCe.exports=Ui;lCe.exports.once=gdr;Ui.EventEmitter=Ui;Ui.prototype._events=void 0;Ui.prototype._eventsCount=0;Ui.prototype._maxListeners=void 0;var yst=10;function ime(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(Ui,"defaultMaxListeners",{enumerable:!0,get:function(){return yst},set:function(r){if(typeof r!="number"||r<0||bst(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");yst=r}});Ui.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Ui.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||bst(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function gst(r){return r._maxListeners===void 0?Ui.defaultMaxListeners:r._maxListeners}Ui.prototype.getMaxListeners=function(){return gst(this)};Ui.prototype.emit=function(e){for(var t=[],n=1;n0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(c===void 0)return!1;if(typeof c=="function")mst(c,this,t);else for(var u=c.length,l=Tst(c,u),n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=r,o.type=e,o.count=s.length,hdr(o)}return r}Ui.prototype.addListener=function(e,t){return vst(this,e,t,!1)};Ui.prototype.on=Ui.prototype.addListener;Ui.prototype.prependListener=function(e,t){return vst(this,e,t,!0)};function mdr(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function wst(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},a=mdr.bind(n);return a.listener=t,n.wrapFn=a,a}Ui.prototype.once=function(e,t){return ime(t),this.on(e,wst(this,e,t)),this};Ui.prototype.prependOnceListener=function(e,t){return ime(t),this.prependListener(e,wst(this,e,t)),this};Ui.prototype.removeListener=function(e,t){var n,a,i,s,o;if(ime(t),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():ydr(n,i),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};Ui.prototype.off=Ui.prototype.removeListener;Ui.prototype.removeAllListeners=function(e){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(a=0;a=0;a--)this.removeListener(e,t[a]);return this};function xst(r,e,t){var n=r._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?bdr(a):Tst(a,a.length)}Ui.prototype.listeners=function(e){return xst(this,e,!0)};Ui.prototype.rawListeners=function(e){return xst(this,e,!1)};Ui.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):_st.call(r,e)};Ui.prototype.listenerCount=_st;function _st(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}Ui.prototype.eventNames=function(){return this._eventsCount>0?ame(this._events):[]};function Tst(r,e){for(var t=new Array(e),n=0;n{f();d();Ist.exports=ml().EventEmitter});var dCe=E((J2a,Cst)=>{"use strict";f();d();Cst.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==a||s.enumerable!==!0)return!1}return!0}});var Pae=E((ega,Ast)=>{"use strict";f();d();var wdr=dCe();Ast.exports=function(){return wdr()&&!!Symbol.toStringTag}});var Pst=E((nga,Sst)=>{"use strict";f();d();var kst=typeof Symbol<"u"&&Symbol,xdr=dCe();Sst.exports=function(){return typeof kst!="function"||typeof Symbol!="function"||typeof kst("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:xdr()}});var Mst=E((sga,Rst)=>{"use strict";f();d();var _dr="Function.prototype.bind called on incompatible ",pCe=Array.prototype.slice,Tdr=Object.prototype.toString,Edr="[object Function]";Rst.exports=function(e){var t=this;if(typeof t!="function"||Tdr.call(t)!==Edr)throw new TypeError(_dr+t);for(var n=pCe.call(arguments,1),a,i=function(){if(this instanceof a){var l=t.apply(this,n.concat(pCe.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(pCe.call(arguments)))},s=Math.max(0,t.length-n.length),o=[],c=0;c{"use strict";f();d();var Idr=Mst();Bst.exports=Function.prototype.bind||Idr});var Nst=E((dga,Dst)=>{"use strict";f();d();var Cdr=sme();Dst.exports=Cdr.call(Function.call,Object.prototype.hasOwnProperty)});var Xx=E((mga,Wst)=>{"use strict";f();d();var Sn,Zx=SyntaxError,qst=Function,Jx=TypeError,hCe=function(r){try{return qst('"use strict"; return ('+r+").constructor;")()}catch{}},X5=Object.getOwnPropertyDescriptor;if(X5)try{X5({},"")}catch{X5=null}var mCe=function(){throw new Jx},Adr=X5?function(){try{return arguments.callee,mCe}catch{try{return X5(arguments,"callee").get}catch{return mCe}}}():mCe,Yx=Pst()(),Qm=Object.getPrototypeOf||function(r){return r.__proto__},Qx={},kdr=typeof Uint8Array>"u"?Sn:Qm(Uint8Array),ev={"%AggregateError%":typeof AggregateError>"u"?Sn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Sn:ArrayBuffer,"%ArrayIteratorPrototype%":Yx?Qm([][Symbol.iterator]()):Sn,"%AsyncFromSyncIteratorPrototype%":Sn,"%AsyncFunction%":Qx,"%AsyncGenerator%":Qx,"%AsyncGeneratorFunction%":Qx,"%AsyncIteratorPrototype%":Qx,"%Atomics%":typeof Atomics>"u"?Sn:Atomics,"%BigInt%":typeof BigInt>"u"?Sn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Sn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Sn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Sn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Sn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Sn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Sn:FinalizationRegistry,"%Function%":qst,"%GeneratorFunction%":Qx,"%Int8Array%":typeof Int8Array>"u"?Sn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Sn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Sn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Yx?Qm(Qm([][Symbol.iterator]())):Sn,"%JSON%":typeof JSON=="object"?JSON:Sn,"%Map%":typeof Map>"u"?Sn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Yx?Sn:Qm(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Sn:Promise,"%Proxy%":typeof Proxy>"u"?Sn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Sn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Sn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Yx?Sn:Qm(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Sn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Yx?Qm(""[Symbol.iterator]()):Sn,"%Symbol%":Yx?Symbol:Sn,"%SyntaxError%":Zx,"%ThrowTypeError%":Adr,"%TypedArray%":kdr,"%TypeError%":Jx,"%Uint8Array%":typeof Uint8Array>"u"?Sn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Sn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Sn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Sn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Sn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Sn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Sn:WeakSet};try{null.error}catch(r){Ost=Qm(Qm(r)),ev["%Error.prototype%"]=Ost}var Ost,Sdr=function r(e){var t;if(e==="%AsyncFunction%")t=hCe("async function () {}");else if(e==="%GeneratorFunction%")t=hCe("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=hCe("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=Qm(a.prototype))}return ev[e]=t,t},Fst={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Rae=sme(),ome=Nst(),Pdr=Rae.call(Function.call,Array.prototype.concat),Rdr=Rae.call(Function.apply,Array.prototype.splice),Lst=Rae.call(Function.call,String.prototype.replace),cme=Rae.call(Function.call,String.prototype.slice),Mdr=Rae.call(Function.call,RegExp.prototype.exec),Bdr=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ddr=/\\(\\)?/g,Ndr=function(e){var t=cme(e,0,1),n=cme(e,-1);if(t==="%"&&n!=="%")throw new Zx("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Zx("invalid intrinsic syntax, expected opening `%`");var a=[];return Lst(e,Bdr,function(i,s,o,c){a[a.length]=o?Lst(c,Ddr,"$1"):s||i}),a},Odr=function(e,t){var n=e,a;if(ome(Fst,n)&&(a=Fst[n],n="%"+a[0]+"%"),ome(ev,n)){var i=ev[n];if(i===Qx&&(i=Sdr(n)),typeof i>"u"&&!t)throw new Jx("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new Zx("intrinsic "+e+" does not exist!")};Wst.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new Jx("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Jx('"allowMissing" argument must be a boolean');if(Mdr(/^%?[^%]*%?$/,e)===null)throw new Zx("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ndr(e),a=n.length>0?n[0]:"",i=Odr("%"+a+"%",t),s=i.name,o=i.value,c=!1,u=i.alias;u&&(a=u[0],Rdr(n,Pdr([0,1],u)));for(var l=1,p=!0;l=n.length){var C=X5(o,h);p=!!C,p&&"get"in C&&!("originalValue"in C.get)?o=C.get:o=o[h]}else p=ome(o,h),o=o[h];p&&!c&&(ev[s]=o)}}return o}});var lme=E((gga,ume)=>{"use strict";f();d();var yCe=sme(),e_=Xx(),jst=e_("%Function.prototype.apply%"),zst=e_("%Function.prototype.call%"),Kst=e_("%Reflect.apply%",!0)||yCe.call(zst,jst),Ust=e_("%Object.getOwnPropertyDescriptor%",!0),tv=e_("%Object.defineProperty%",!0),Fdr=e_("%Math.max%");if(tv)try{tv({},"a",{value:1})}catch{tv=null}ume.exports=function(e){var t=Kst(yCe,zst,arguments);if(Ust&&tv){var n=Ust(t,"length");n.configurable&&tv(t,"length",{value:1+Fdr(0,e.length-(arguments.length-1))})}return t};var Hst=function(){return Kst(yCe,jst,arguments)};tv?tv(ume.exports,"apply",{value:Hst}):ume.exports.apply=Hst});var Mae=E((xga,$st)=>{"use strict";f();d();var Gst=Xx(),Vst=lme(),Ldr=Vst(Gst("String.prototype.indexOf"));$st.exports=function(e,t){var n=Gst(e,!!t);return typeof n=="function"&&Ldr(e,".prototype.")>-1?Vst(n):n}});var Jst=E((Ega,Qst)=>{"use strict";f();d();var qdr=Pae()(),Wdr=Mae(),bCe=Wdr("Object.prototype.toString"),fme=function(e){return qdr&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:bCe(e)==="[object Arguments]"},Yst=function(e){return fme(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&bCe(e)!=="[object Array]"&&bCe(e.callee)==="[object Function]"},Udr=function(){return fme(arguments)}();fme.isLegacyArguments=Yst;Qst.exports=Udr?fme:Yst});var eot=E((Aga,Xst)=>{"use strict";f();d();var Hdr=Object.prototype.toString,jdr=Function.prototype.toString,zdr=/^\s*(?:function)?\*/,Zst=Pae()(),gCe=Object.getPrototypeOf,Kdr=function(){if(!Zst)return!1;try{return Function("return function*() {}")()}catch{}},vCe;Xst.exports=function(e){if(typeof e!="function")return!1;if(zdr.test(jdr.call(e)))return!0;if(!Zst){var t=Hdr.call(e);return t==="[object GeneratorFunction]"}if(!gCe)return!1;if(typeof vCe>"u"){var n=Kdr();vCe=n?gCe(n):!1}return gCe(e)===vCe}});var aot=E((Pga,not)=>{"use strict";f();d();var rot=Function.prototype.toString,t_=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,xCe,dme;if(typeof t_=="function"&&typeof Object.defineProperty=="function")try{xCe=Object.defineProperty({},"length",{get:function(){throw dme}}),dme={},t_(function(){throw 42},null,xCe)}catch(r){r!==dme&&(t_=null)}else t_=null;var Gdr=/^\s*class\b/,_Ce=function(e){try{var t=rot.call(e);return Gdr.test(t)}catch{return!1}},wCe=function(e){try{return _Ce(e)?!1:(rot.call(e),!0)}catch{return!1}},pme=Object.prototype.toString,Vdr="[object Object]",$dr="[object Function]",Ydr="[object GeneratorFunction]",Qdr="[object HTMLAllCollection]",Jdr="[object HTML document.all class]",Zdr="[object HTMLCollection]",Xdr=typeof Symbol=="function"&&!!Symbol.toStringTag,epr=!(0 in[,]),TCe=function(){return!1};typeof document=="object"&&(tot=document.all,pme.call(tot)===pme.call(document.all)&&(TCe=function(e){if((epr||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=pme.call(e);return(t===Qdr||t===Jdr||t===Zdr||t===Vdr)&&e("")==null}catch{}return!1}));var tot;not.exports=t_?function(e){if(TCe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{t_(e,null,xCe)}catch(t){if(t!==dme)return!1}return!_Ce(e)&&wCe(e)}:function(e){if(TCe(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Xdr)return wCe(e);if(_Ce(e))return!1;var t=pme.call(e);return t!==$dr&&t!==Ydr&&!/^\[object HTML/.test(t)?!1:wCe(e)}});var ECe=E((Bga,sot)=>{"use strict";f();d();var tpr=aot(),rpr=Object.prototype.toString,iot=Object.prototype.hasOwnProperty,npr=function(e,t,n){for(var a=0,i=e.length;a=3&&(a=n),rpr.call(e)==="[object Array]"?npr(e,t,a):typeof e=="string"?apr(e,t,a):ipr(e,t,a)};sot.exports=spr});var CCe=E((Oga,oot)=>{"use strict";f();d();var ICe=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],opr=typeof globalThis>"u"?global:globalThis;oot.exports=function(){for(var e=[],t=0;t{"use strict";f();d();var cpr=Xx(),hme=cpr("%Object.getOwnPropertyDescriptor%",!0);if(hme)try{hme([],"length")}catch{hme=null}cot.exports=hme});var PCe=E((Hga,pot)=>{"use strict";f();d();var uot=ECe(),upr=CCe(),SCe=Mae(),lpr=SCe("Object.prototype.toString"),lot=Pae()(),mme=ACe(),fpr=typeof globalThis>"u"?global:globalThis,fot=upr(),dpr=SCe("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return mme?hpr(e):!1}});var wot=E((Kga,vot)=>{"use strict";f();d();var mot=ECe(),mpr=CCe(),yot=Mae(),RCe=ACe(),ypr=yot("Object.prototype.toString"),bot=Pae()(),hot=typeof globalThis>"u"?global:globalThis,bpr=mpr(),gpr=yot("String.prototype.slice"),got={},MCe=Object.getPrototypeOf;bot&&RCe&&MCe&&mot(bpr,function(r){if(typeof hot[r]=="function"){var e=new hot[r];if(Symbol.toStringTag in e){var t=MCe(e),n=RCe(t,Symbol.toStringTag);if(!n){var a=MCe(t);n=RCe(a,Symbol.toStringTag)}got[r]=n.get}}});var vpr=function(e){var t=!1;return mot(got,function(n,a){if(!t)try{var i=n.call(e);i===a&&(t=i)}catch{}}),t},wpr=PCe();vot.exports=function(e){return wpr(e)?!bot||!(Symbol.toStringTag in e)?gpr(ypr(e),8,-1):vpr(e):!1}});var Dot=E(Tn=>{"use strict";f();d();var xpr=Jst(),_pr=eot(),hh=wot(),xot=PCe();function r_(r){return r.call.bind(r)}var _ot=typeof BigInt<"u",Tot=typeof Symbol<"u",Gd=r_(Object.prototype.toString),Tpr=r_(Number.prototype.valueOf),Epr=r_(String.prototype.valueOf),Ipr=r_(Boolean.prototype.valueOf);_ot&&(Eot=r_(BigInt.prototype.valueOf));var Eot;Tot&&(Iot=r_(Symbol.prototype.valueOf));var Iot;function Dae(r,e){if(typeof r!="object")return!1;try{return e(r),!0}catch{return!1}}Tn.isArgumentsObject=xpr;Tn.isGeneratorFunction=_pr;Tn.isTypedArray=xot;function Cpr(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}Tn.isPromise=Cpr;function Apr(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):xot(r)||Aot(r)}Tn.isArrayBufferView=Apr;function kpr(r){return hh(r)==="Uint8Array"}Tn.isUint8Array=kpr;function Spr(r){return hh(r)==="Uint8ClampedArray"}Tn.isUint8ClampedArray=Spr;function Ppr(r){return hh(r)==="Uint16Array"}Tn.isUint16Array=Ppr;function Rpr(r){return hh(r)==="Uint32Array"}Tn.isUint32Array=Rpr;function Mpr(r){return hh(r)==="Int8Array"}Tn.isInt8Array=Mpr;function Bpr(r){return hh(r)==="Int16Array"}Tn.isInt16Array=Bpr;function Dpr(r){return hh(r)==="Int32Array"}Tn.isInt32Array=Dpr;function Npr(r){return hh(r)==="Float32Array"}Tn.isFloat32Array=Npr;function Opr(r){return hh(r)==="Float64Array"}Tn.isFloat64Array=Opr;function Fpr(r){return hh(r)==="BigInt64Array"}Tn.isBigInt64Array=Fpr;function Lpr(r){return hh(r)==="BigUint64Array"}Tn.isBigUint64Array=Lpr;function yme(r){return Gd(r)==="[object Map]"}yme.working=typeof Map<"u"&&yme(new Map);function qpr(r){return typeof Map>"u"?!1:yme.working?yme(r):r instanceof Map}Tn.isMap=qpr;function bme(r){return Gd(r)==="[object Set]"}bme.working=typeof Set<"u"&&bme(new Set);function Wpr(r){return typeof Set>"u"?!1:bme.working?bme(r):r instanceof Set}Tn.isSet=Wpr;function gme(r){return Gd(r)==="[object WeakMap]"}gme.working=typeof WeakMap<"u"&&gme(new WeakMap);function Upr(r){return typeof WeakMap>"u"?!1:gme.working?gme(r):r instanceof WeakMap}Tn.isWeakMap=Upr;function DCe(r){return Gd(r)==="[object WeakSet]"}DCe.working=typeof WeakSet<"u"&&DCe(new WeakSet);function Hpr(r){return DCe(r)}Tn.isWeakSet=Hpr;function vme(r){return Gd(r)==="[object ArrayBuffer]"}vme.working=typeof ArrayBuffer<"u"&&vme(new ArrayBuffer);function Cot(r){return typeof ArrayBuffer>"u"?!1:vme.working?vme(r):r instanceof ArrayBuffer}Tn.isArrayBuffer=Cot;function wme(r){return Gd(r)==="[object DataView]"}wme.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&wme(new DataView(new ArrayBuffer(1),0,1));function Aot(r){return typeof DataView>"u"?!1:wme.working?wme(r):r instanceof DataView}Tn.isDataView=Aot;var BCe=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Bae(r){return Gd(r)==="[object SharedArrayBuffer]"}function kot(r){return typeof BCe>"u"?!1:(typeof Bae.working>"u"&&(Bae.working=Bae(new BCe)),Bae.working?Bae(r):r instanceof BCe)}Tn.isSharedArrayBuffer=kot;function jpr(r){return Gd(r)==="[object AsyncFunction]"}Tn.isAsyncFunction=jpr;function zpr(r){return Gd(r)==="[object Map Iterator]"}Tn.isMapIterator=zpr;function Kpr(r){return Gd(r)==="[object Set Iterator]"}Tn.isSetIterator=Kpr;function Gpr(r){return Gd(r)==="[object Generator]"}Tn.isGeneratorObject=Gpr;function Vpr(r){return Gd(r)==="[object WebAssembly.Module]"}Tn.isWebAssemblyCompiledModule=Vpr;function Sot(r){return Dae(r,Tpr)}Tn.isNumberObject=Sot;function Pot(r){return Dae(r,Epr)}Tn.isStringObject=Pot;function Rot(r){return Dae(r,Ipr)}Tn.isBooleanObject=Rot;function Mot(r){return _ot&&Dae(r,Eot)}Tn.isBigIntObject=Mot;function Bot(r){return Tot&&Dae(r,Iot)}Tn.isSymbolObject=Bot;function $pr(r){return Sot(r)||Pot(r)||Rot(r)||Mot(r)||Bot(r)}Tn.isBoxedPrimitive=$pr;function Ypr(r){return typeof Uint8Array<"u"&&(Cot(r)||kot(r))}Tn.isAnyArrayBuffer=Ypr;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(Tn,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})});var Oot=E((Jga,Not)=>{f();d();Not.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var zy=E(En=>{f();d();var Fot=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},a=0;a=a)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return o}}),s=n[t];t"u")return function(){return En.deprecate(r,e).apply(this,arguments)};var t=!1;function n(){if(!t){if(g.throwDeprecation)throw new Error(e);g.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n};var xme={},Lot=/^$/;g.env.NODE_DEBUG&&(_me=g.env.NODE_DEBUG,_me=_me.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Lot=new RegExp("^"+_me+"$","i"));var _me;En.debuglog=function(r){if(r=r.toUpperCase(),!xme[r])if(Lot.test(r)){var e=g.pid;xme[r]=function(){var t=En.format.apply(En,arguments);console.error("%s %d: %s",r,e,t)}}else xme[r]=function(){};return xme[r]};function D2(r,e){var t={seen:[],stylize:Zpr};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),LCe(e)?t.showHidden=e:e&&En._extend(t,e),nv(t.showHidden)&&(t.showHidden=!1),nv(t.depth)&&(t.depth=2),nv(t.colors)&&(t.colors=!1),nv(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=Jpr),Eme(t,r,t.depth)}En.inspect=D2;D2.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};D2.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Jpr(r,e){var t=D2.styles[e];return t?"\x1B["+D2.colors[t][0]+"m"+r+"\x1B["+D2.colors[t][1]+"m":r}function Zpr(r,e){return r}function Xpr(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function Eme(r,e,t){if(r.customInspect&&e&&Tme(e.inspect)&&e.inspect!==En.inspect&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return Ame(n)||(n=Eme(r,n,t)),n}var a=ehr(r,e);if(a)return a;var i=Object.keys(e),s=Xpr(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),Oae(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return NCe(e);if(i.length===0){if(Tme(e)){var o=e.name?": "+e.name:"";return r.stylize("[Function"+o+"]","special")}if(Nae(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(Ime(e))return r.stylize(Date.prototype.toString.call(e),"date");if(Oae(e))return NCe(e)}var c="",u=!1,l=["{","}"];if(qot(e)&&(u=!0,l=["[","]"]),Tme(e)){var p=e.name?": "+e.name:"";c=" [Function"+p+"]"}if(Nae(e)&&(c=" "+RegExp.prototype.toString.call(e)),Ime(e)&&(c=" "+Date.prototype.toUTCString.call(e)),Oae(e)&&(c=" "+NCe(e)),i.length===0&&(!u||e.length==0))return l[0]+c+l[1];if(t<0)return Nae(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var h;return u?h=thr(r,e,t,s,i):h=i.map(function(m){return FCe(r,e,t,s,m,u)}),r.seen.pop(),rhr(h,c,l)}function ehr(r,e){if(nv(e))return r.stylize("undefined","undefined");if(Ame(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(Wot(e))return r.stylize(""+e,"number");if(LCe(e))return r.stylize(""+e,"boolean");if(Cme(e))return r.stylize("null","null")}function NCe(r){return"["+Error.prototype.toString.call(r)+"]"}function thr(r,e,t,n,a){for(var i=[],s=0,o=e.length;s-1&&(i?o=o.split(` `).map(function(u){return" "+u}).join(` `).slice(2):o=` `+o.split(` `).map(function(u){return" "+u}).join(` -`))):o=r.stylize("[Circular]","special")),bb(s)){if(i&&a.match(/^\d+$/))return o;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+o}function bLt(r,e,t){var n=0,a=r.reduce(function(i,s){return n++,s.indexOf(` +`))):o=r.stylize("[Circular]","special")),nv(s)){if(i&&a.match(/^\d+$/))return o;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+o}function rhr(r,e,t){var n=0,a=r.reduce(function(i,s){return n++,s.indexOf(` `)>=0&&n++,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return a>60?t[0]+(e===""?"":e+` `)+" "+r.join(`, - `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}Or.types=hHe();function bHe(r){return Array.isArray(r)}Or.isArray=bHe;function _we(r){return typeof r=="boolean"}Or.isBoolean=_we;function toe(r){return r===null}Or.isNull=toe;function vLt(r){return r==null}Or.isNullOrUndefined=vLt;function vHe(r){return typeof r=="number"}Or.isNumber=vHe;function roe(r){return typeof r=="string"}Or.isString=roe;function wLt(r){return typeof r=="symbol"}Or.isSymbol=wLt;function bb(r){return r===void 0}Or.isUndefined=bb;function fJ(r){return y3(r)&&Twe(r)==="[object RegExp]"}Or.isRegExp=fJ;Or.types.isRegExp=fJ;function y3(r){return typeof r=="object"&&r!==null}Or.isObject=y3;function eoe(r){return y3(r)&&Twe(r)==="[object Date]"}Or.isDate=eoe;Or.types.isDate=eoe;function mJ(r){return y3(r)&&(Twe(r)==="[object Error]"||r instanceof Error)}Or.isError=mJ;Or.types.isNativeError=mJ;function Zse(r){return typeof r=="function"}Or.isFunction=Zse;function xLt(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}Or.isPrimitive=xLt;Or.isBuffer=mHe();function Twe(r){return Object.prototype.toString.call(r)}function wwe(r){return r<10?"0"+r.toString(10):r.toString(10)}var _Lt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function TLt(){var r=new Date,e=[wwe(r.getHours()),wwe(r.getMinutes()),wwe(r.getSeconds())].join(":");return[r.getDate(),_Lt[r.getMonth()],e].join(" ")}Or.log=function(){console.log("%s - %s",TLt(),Or.format.apply(Or,arguments))};Or.inherits=xr();Or._extend=function(r,e){if(!e||!y3(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function wHe(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var gb=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Or.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(gb&&e[gb]){var t=e[gb];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,gb,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,a,i=new Promise(function(c,u){n=c,a=u}),s=[],o=0;o{"use strict";d();p();function xHe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function _He(r){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a}},{key:"concat",value:function(t){if(this.length===0)return aoe.alloc(0);for(var n=aoe.allocUnsafe(t>>>0),a=this.head,i=0;a;)NLt(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(t,n){var a;return ts.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(t){var n=aoe.allocUnsafe(t),a=this.head,i=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var s=a.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(o));break}++i}return this.length-=i,n}},{key:MLt,value:function(t,n){return Iwe(this,_He(_He({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var Cwe=_((jCn,AHe)=>{"use strict";d();p();function BLt(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(Ewe,this,r)):g.nextTick(Ewe,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!e&&i?t._writableState?t._writableState.errorEmitted?g.nextTick(ioe,t):(t._writableState.errorEmitted=!0,g.nextTick(kHe,t,i)):g.nextTick(kHe,t,i):e?(g.nextTick(ioe,t),e(i)):g.nextTick(ioe,t)}),this)}function kHe(r,e){Ewe(r,e),ioe(r)}function ioe(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function DLt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ewe(r,e){r.emit("error",e)}function LLt(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}AHe.exports={destroy:BLt,undestroy:DLt,errorOrDestroy:LLt}});var vb=_((GCn,RHe)=>{"use strict";d();p();function OLt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var SHe={};function Dd(r,e,t){t||(t=Error);function n(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){OLt(s,i);function s(o,c,u){return i.call(this,n(o,c,u))||this}return s}(t);a.prototype.name=t.name,a.prototype.code=r,SHe[r]=a}function PHe(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function qLt(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function FLt(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function WLt(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Dd("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Dd("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&qLt(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(FLt(r," argument"))a="The ".concat(r," ").concat(n," ").concat(PHe(e,"type"));else{var i=WLt(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(PHe(e,"type"))}return a+=". Received type ".concat(typeof t),a},TypeError);Dd("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Dd("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Dd("ERR_STREAM_PREMATURE_CLOSE","Premature close");Dd("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Dd("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Dd("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Dd("ERR_STREAM_WRITE_AFTER_END","write after end");Dd("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Dd("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Dd("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");RHe.exports.codes=SHe});var kwe=_(($Cn,MHe)=>{"use strict";d();p();var ULt=vb().codes.ERR_INVALID_OPT_VALUE;function HLt(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function jLt(r,e,t,n){var a=HLt(e,n,t);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?t:"highWaterMark";throw new ULt(i,a)}return Math.floor(a)}return r.objectMode?16:16*1024}MHe.exports={getHighWaterMark:jLt}});var BHe=_((ZCn,NHe)=>{d();p();NHe.exports=zLt;function zLt(r,e){if(Awe("noDeprecation"))return r;var t=!1;function n(){if(!t){if(Awe("throwDeprecation"))throw new Error(e);Awe("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function Awe(r){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var coe=_((t8n,WHe)=>{"use strict";d();p();WHe.exports=ns;function LHe(r){var e=this;this.next=null,this.entry=null,this.finish=function(){gOt(e,r)}}var g3;ns.WritableState=gJ;var KLt={deprecate:BHe()},OHe=$2e(),ooe=lc().Buffer,GLt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function VLt(r){return ooe.from(r)}function YLt(r){return ooe.isBuffer(r)||r instanceof GLt}var Swe=Cwe(),$Lt=kwe(),QLt=$Lt.getHighWaterMark,Sy=vb().codes,JLt=Sy.ERR_INVALID_ARG_TYPE,ZLt=Sy.ERR_METHOD_NOT_IMPLEMENTED,XLt=Sy.ERR_MULTIPLE_CALLBACK,eOt=Sy.ERR_STREAM_CANNOT_PIPE,tOt=Sy.ERR_STREAM_DESTROYED,rOt=Sy.ERR_STREAM_NULL_VALUES,nOt=Sy.ERR_STREAM_WRITE_AFTER_END,aOt=Sy.ERR_UNKNOWN_ENCODING,b3=Swe.errorOrDestroy;xr()(ns,OHe);function iOt(){}function gJ(r,e,t){g3=g3||Ry(),r=r||{},typeof t!="boolean"&&(t=e instanceof g3),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=QLt(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){pOt(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new LHe(this)}gJ.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(gJ.prototype,"buffer",{get:KLt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var soe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(soe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ns,Symbol.hasInstance,{value:function(e){return soe.call(this,e)?!0:this!==ns?!1:e&&e._writableState instanceof gJ}})):soe=function(e){return e instanceof this};function ns(r){g3=g3||Ry();var e=this instanceof g3;if(!e&&!soe.call(ns,this))return new ns(r);this._writableState=new gJ(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),OHe.call(this)}ns.prototype.pipe=function(){b3(this,new eOt)};function sOt(r,e){var t=new nOt;b3(r,t),g.nextTick(e,t)}function oOt(r,e,t,n){var a;return t===null?a=new rOt:typeof t!="string"&&!e.objectMode&&(a=new JLt("chunk",["string","Buffer"],t)),a?(b3(r,a),g.nextTick(n,a),!1):!0}ns.prototype.write=function(r,e,t){var n=this._writableState,a=!1,i=!n.objectMode&&YLt(r);return i&&!ooe.isBuffer(r)&&(r=VLt(r)),typeof e=="function"&&(t=e,e=null),i?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=iOt),n.ending?sOt(this,t):(i||oOt(this,n,r,t))&&(n.pendingcb++,a=uOt(this,n,i,r,e,t)),a};ns.prototype.cork=function(){this._writableState.corked++};ns.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&qHe(this,r))};ns.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new aOt(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ns.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function cOt(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=ooe.from(e,t)),e}Object.defineProperty(ns.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function uOt(r,e,t,n,a,i){if(!t){var s=cOt(e,n,a);n!==s&&(t=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var c=e.length{"use strict";d();p();var bOt=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};HHe.exports=If;var UHe=doe(),Mwe=coe();xr()(If,UHe);for(Rwe=bOt(Mwe.prototype),uoe=0;uoe{"use strict";d();p();var Bwe=Ir().Buffer,jHe=Bwe.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function xOt(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function _Ot(r){var e=xOt(r);if(typeof e!="string"&&(Bwe.isEncoding===jHe||!jHe(r)))throw new Error("Unknown encoding: "+r);return e||r}zHe.StringDecoder=bJ;function bJ(r){this.encoding=_Ot(r);var e;switch(this.encoding){case"utf16le":this.text=AOt,this.end=POt,e=4;break;case"utf8":this.fillLast=EOt,e=4;break;case"base64":this.text=SOt,this.end=ROt,e=3;break;default:this.write=MOt,this.end=NOt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Bwe.allocUnsafe(e)}bJ.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function TOt(r,e,t){var n=e.length-1;if(n=0?(a>0&&(r.lastNeed=a-1),a):--n=0?(a>0&&(r.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:r.lastNeed=a-3),a):0))}function IOt(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function EOt(r){var e=this.lastTotal-this.lastNeed,t=IOt(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function COt(r,e){var t=TOt(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function kOt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function AOt(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function POt(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function SOt(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function ROt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function MOt(r){return r.toString(this.encoding)}function NOt(r){return r&&r.length?this.write(r):""}});var vJ=_((l8n,VHe)=>{"use strict";d();p();var KHe=vb().codes.ERR_STREAM_PREMATURE_CLOSE;function BOt(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),a=0;a{"use strict";d();p();var hoe;function My(r,e,t){return e=OOt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function OOt(r){var e=qOt(r,"string");return typeof e=="symbol"?e:String(e)}function qOt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var FOt=vJ(),Ny=Symbol("lastResolve"),wb=Symbol("lastReject"),wJ=Symbol("error"),foe=Symbol("ended"),xb=Symbol("lastPromise"),Dwe=Symbol("handlePromise"),_b=Symbol("stream");function By(r,e){return{value:r,done:e}}function WOt(r){var e=r[Ny];if(e!==null){var t=r[_b].read();t!==null&&(r[xb]=null,r[Ny]=null,r[wb]=null,e(By(t,!1)))}}function UOt(r){g.nextTick(WOt,r)}function HOt(r,e){return function(t,n){r.then(function(){if(e[foe]){t(By(void 0,!0));return}e[Dwe](t,n)},n)}}var jOt=Object.getPrototypeOf(function(){}),zOt=Object.setPrototypeOf((hoe={get stream(){return this[_b]},next:function(){var e=this,t=this[wJ];if(t!==null)return Promise.reject(t);if(this[foe])return Promise.resolve(By(void 0,!0));if(this[_b].destroyed)return new Promise(function(s,o){g.nextTick(function(){e[wJ]?o(e[wJ]):s(By(void 0,!0))})});var n=this[xb],a;if(n)a=new Promise(HOt(n,this));else{var i=this[_b].read();if(i!==null)return Promise.resolve(By(i,!1));a=new Promise(this[Dwe])}return this[xb]=a,a}},My(hoe,Symbol.asyncIterator,function(){return this}),My(hoe,"return",function(){var e=this;return new Promise(function(t,n){e[_b].destroy(null,function(a){if(a){n(a);return}t(By(void 0,!0))})})}),hoe),jOt),KOt=function(e){var t,n=Object.create(zOt,(t={},My(t,_b,{value:e,writable:!0}),My(t,Ny,{value:null,writable:!0}),My(t,wb,{value:null,writable:!0}),My(t,wJ,{value:null,writable:!0}),My(t,foe,{value:e._readableState.endEmitted,writable:!0}),My(t,Dwe,{value:function(i,s){var o=n[_b].read();o?(n[xb]=null,n[Ny]=null,n[wb]=null,i(By(o,!1))):(n[Ny]=i,n[wb]=s)},writable:!0}),t));return n[xb]=null,FOt(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[wb];i!==null&&(n[xb]=null,n[Ny]=null,n[wb]=null,i(a)),n[wJ]=a;return}var s=n[Ny];s!==null&&(n[xb]=null,n[Ny]=null,n[wb]=null,s(By(void 0,!0))),n[foe]=!0}),e.on("readable",UOt.bind(null,n)),n};YHe.exports=KOt});var JHe=_((y8n,QHe)=>{d();p();QHe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var doe=_((w8n,oje)=>{"use strict";d();p();oje.exports=ln;var v3;ln.ReadableState=tje;var v8n=Lu().EventEmitter,eje=function(e,t){return e.listeners(t).length},_J=$2e(),moe=lc().Buffer,GOt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function VOt(r){return moe.from(r)}function YOt(r){return moe.isBuffer(r)||r instanceof GOt}var Lwe=noe(),Sr;Lwe&&Lwe.debuglog?Sr=Lwe.debuglog("stream"):Sr=function(){};var $Ot=CHe(),jwe=Cwe(),QOt=kwe(),JOt=QOt.getHighWaterMark,yoe=vb().codes,ZOt=yoe.ERR_INVALID_ARG_TYPE,XOt=yoe.ERR_STREAM_PUSH_AFTER_EOF,eqt=yoe.ERR_METHOD_NOT_IMPLEMENTED,tqt=yoe.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w3,Owe,qwe;xr()(ln,_J);var xJ=jwe.errorOrDestroy,Fwe=["error","close","destroy","pause","resume"];function rqt(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function tje(r,e,t){v3=v3||Ry(),r=r||{},typeof t!="boolean"&&(t=e instanceof v3),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=JOt(this,r,"readableHighWaterMark",t),this.buffer=new $Ot,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(w3||(w3=poe().StringDecoder),this.decoder=new w3(r.encoding),this.encoding=r.encoding)}function ln(r){if(v3=v3||Ry(),!(this instanceof ln))return new ln(r);var e=this instanceof v3;this._readableState=new tje(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),_J.call(this)}Object.defineProperty(ln.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ln.prototype.destroy=jwe.destroy;ln.prototype._undestroy=jwe.undestroy;ln.prototype._destroy=function(r,e){e(r)};ln.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=moe.from(r,e),e=""),n=!0),rje(this,r,e,!1,n)};ln.prototype.unshift=function(r){return rje(this,r,null,!0,!1)};function rje(r,e,t,n,a){Sr("readableAddChunk",e);var i=r._readableState;if(e===null)i.reading=!1,iqt(r,i);else{var s;if(a||(s=nqt(i,e)),s)xJ(r,s);else if(i.objectMode||e&&e.length>0)if(typeof e!="string"&&!i.objectMode&&Object.getPrototypeOf(e)!==moe.prototype&&(e=VOt(e)),n)i.endEmitted?xJ(r,new tqt):Wwe(r,i,e,!0);else if(i.ended)xJ(r,new XOt);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(e=i.decoder.write(e),i.objectMode||e.length!==0?Wwe(r,i,e,!1):Hwe(r,i)):Wwe(r,i,e,!1)}else n||(i.reading=!1,Hwe(r,i))}return!i.ended&&(i.length=ZHe?r=ZHe:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function XHe(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=aqt(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}ln.prototype.read=function(r){Sr("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Sr("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?Uwe(this):goe(this),null;if(r=XHe(r,e),r===0&&e.ended)return e.length===0&&Uwe(this),null;var n=e.needReadable;Sr("need readable",n),(e.length===0||e.length-r0?a=ije(r,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&Uwe(this)),a!==null&&this.emit("data",a),a};function iqt(r,e){if(Sr("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?goe(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,nje(r)))}}function goe(r){var e=r._readableState;Sr("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Sr("emitReadable",e.flowing),e.emittedReadable=!0,g.nextTick(nje,r))}function nje(r){var e=r._readableState;Sr("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,zwe(r)}function Hwe(r,e){e.readingMore||(e.readingMore=!0,g.nextTick(sqt,r,e))}function sqt(r,e){for(;!e.reading&&!e.ended&&(e.length1&&sje(n.pipes,r)!==-1)&&!u&&(Sr("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function f(C){Sr("onerror",C),I(),r.removeListener("error",f),eje(r,"error")===0&&xJ(r,C)}rqt(r,"error",f);function m(){r.removeListener("finish",y),I()}r.once("close",m);function y(){Sr("onfinish"),r.removeListener("close",m),I()}r.once("finish",y);function I(){Sr("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(Sr("pipe resume"),t.resume()),r};function oqt(r){return function(){var t=r._readableState;Sr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&eje(r,"data")&&(t.flowing=!0,zwe(r))}}ln.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Sr("on readable",n.length,n.reading),n.length?goe(this):n.reading||g.nextTick(cqt,this)),t};ln.prototype.addListener=ln.prototype.on;ln.prototype.removeListener=function(r,e){var t=_J.prototype.removeListener.call(this,r,e);return r==="readable"&&g.nextTick(aje,this),t};ln.prototype.removeAllListeners=function(r){var e=_J.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&g.nextTick(aje,this),e};function aje(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function cqt(r){Sr("readable nexttick read 0"),r.read(0)}ln.prototype.resume=function(){var r=this._readableState;return r.flowing||(Sr("resume"),r.flowing=!r.readableListening,uqt(this,r)),r.paused=!1,this};function uqt(r,e){e.resumeScheduled||(e.resumeScheduled=!0,g.nextTick(lqt,r,e))}function lqt(r,e){Sr("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),zwe(r),e.flowing&&!e.reading&&r.read(0)}ln.prototype.pause=function(){return Sr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Sr("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function zwe(r){var e=r._readableState;for(Sr("flow",e.flowing);e.flowing&&r.read()!==null;);}ln.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(Sr("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(Sr("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!0,r.pause())}});for(var a in r)this[a]===void 0&&typeof r[a]=="function"&&(this[a]=function(o){return function(){return r[o].apply(r,arguments)}}(a));for(var i=0;i=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function Uwe(r){var e=r._readableState;Sr("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,g.nextTick(dqt,e,r))}function dqt(r,e){if(Sr("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(ln.from=function(r,e){return qwe===void 0&&(qwe=JHe()),qwe(ln,r,e)});function sje(r,e){for(var t=0,n=r.length;t{"use strict";d();p();uje.exports=Jm;var boe=vb().codes,pqt=boe.ERR_METHOD_NOT_IMPLEMENTED,hqt=boe.ERR_MULTIPLE_CALLBACK,fqt=boe.ERR_TRANSFORM_ALREADY_TRANSFORMING,mqt=boe.ERR_TRANSFORM_WITH_LENGTH_0,voe=Ry();xr()(Jm,voe);function yqt(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new hqt);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";d();p();dje.exports=TJ;var lje=woe();xr()(TJ,lje);function TJ(r){if(!(this instanceof TJ))return new TJ(r);lje.call(this,r)}TJ.prototype._transform=function(r,e,t){t(null,r)}});var Vwe=_((P8n,mje)=>{"use strict";d();p();var Gwe;function bqt(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var fje=vb().codes,vqt=fje.ERR_MISSING_ARGS,wqt=fje.ERR_STREAM_DESTROYED;function pje(r){if(r)throw r}function xqt(r){return r.setHeader&&typeof r.abort=="function"}function _qt(r,e,t,n){n=bqt(n);var a=!1;r.on("close",function(){a=!0}),Gwe===void 0&&(Gwe=vJ()),Gwe(r,{readable:e,writable:t},function(s){if(s)return n(s);a=!0,n()});var i=!1;return function(s){if(!a&&!i){if(i=!0,xqt(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new wqt("pipe"))}}}function hje(r){r()}function Tqt(r,e){return r.pipe(e)}function Iqt(r){return!r.length||typeof r[r.length-1]!="function"?pje:r.pop()}function Eqt(){for(var r=arguments.length,e=new Array(r),t=0;t0;return _qt(s,c,u,function(l){a||(a=l),l&&i.forEach(hje),!c&&(i.forEach(hje),n(a))})});return e.reduce(Tqt)}mje.exports=Eqt});var IJ=_((Ld,yje)=>{d();p();Ld=yje.exports=doe();Ld.Stream=Ld;Ld.Readable=Ld;Ld.Writable=coe();Ld.Duplex=Ry();Ld.Transform=woe();Ld.PassThrough=Kwe();Ld.finished=vJ();Ld.pipeline=Vwe()});var Ywe=_((B8n,bje)=>{"use strict";d();p();var xoe=Ir().Buffer,gje=IJ().Transform,Cqt=xr();function kqt(r,e){if(!xoe.isBuffer(r)&&typeof r!="string")throw new TypeError(e+" must be a string or a buffer")}function Dy(r){gje.call(this),this._block=xoe.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Cqt(Dy,gje);Dy.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(a){n=a}t(n)};Dy.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Dy.prototype.update=function(r,e){if(kqt(r,"Data"),this._finalized)throw new Error("Digest already called");xoe.isBuffer(r)||(r=xoe.from(r,e));for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=s,s=this._length[i]/4294967296|0,s>0&&(this._length[i]-=4294967296*s);return this};Dy.prototype._update=function(){throw new Error("_update is not implemented")};Dy.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Dy.prototype._digest=function(){throw new Error("_digest is not implemented")};bje.exports=Dy});var Ioe=_((O8n,wje)=>{"use strict";d();p();var Aqt=xr(),vje=Ywe(),Pqt=Ir().Buffer,Sqt=new Array(16);function _oe(){vje.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Aqt(_oe,vje);_oe.prototype._update=function(){for(var r=Sqt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,a=this._c,i=this._d;t=Yc(t,n,a,i,r[0],3614090360,7),i=Yc(i,t,n,a,r[1],3905402710,12),a=Yc(a,i,t,n,r[2],606105819,17),n=Yc(n,a,i,t,r[3],3250441966,22),t=Yc(t,n,a,i,r[4],4118548399,7),i=Yc(i,t,n,a,r[5],1200080426,12),a=Yc(a,i,t,n,r[6],2821735955,17),n=Yc(n,a,i,t,r[7],4249261313,22),t=Yc(t,n,a,i,r[8],1770035416,7),i=Yc(i,t,n,a,r[9],2336552879,12),a=Yc(a,i,t,n,r[10],4294925233,17),n=Yc(n,a,i,t,r[11],2304563134,22),t=Yc(t,n,a,i,r[12],1804603682,7),i=Yc(i,t,n,a,r[13],4254626195,12),a=Yc(a,i,t,n,r[14],2792965006,17),n=Yc(n,a,i,t,r[15],1236535329,22),t=$c(t,n,a,i,r[1],4129170786,5),i=$c(i,t,n,a,r[6],3225465664,9),a=$c(a,i,t,n,r[11],643717713,14),n=$c(n,a,i,t,r[0],3921069994,20),t=$c(t,n,a,i,r[5],3593408605,5),i=$c(i,t,n,a,r[10],38016083,9),a=$c(a,i,t,n,r[15],3634488961,14),n=$c(n,a,i,t,r[4],3889429448,20),t=$c(t,n,a,i,r[9],568446438,5),i=$c(i,t,n,a,r[14],3275163606,9),a=$c(a,i,t,n,r[3],4107603335,14),n=$c(n,a,i,t,r[8],1163531501,20),t=$c(t,n,a,i,r[13],2850285829,5),i=$c(i,t,n,a,r[2],4243563512,9),a=$c(a,i,t,n,r[7],1735328473,14),n=$c(n,a,i,t,r[12],2368359562,20),t=Qc(t,n,a,i,r[5],4294588738,4),i=Qc(i,t,n,a,r[8],2272392833,11),a=Qc(a,i,t,n,r[11],1839030562,16),n=Qc(n,a,i,t,r[14],4259657740,23),t=Qc(t,n,a,i,r[1],2763975236,4),i=Qc(i,t,n,a,r[4],1272893353,11),a=Qc(a,i,t,n,r[7],4139469664,16),n=Qc(n,a,i,t,r[10],3200236656,23),t=Qc(t,n,a,i,r[13],681279174,4),i=Qc(i,t,n,a,r[0],3936430074,11),a=Qc(a,i,t,n,r[3],3572445317,16),n=Qc(n,a,i,t,r[6],76029189,23),t=Qc(t,n,a,i,r[9],3654602809,4),i=Qc(i,t,n,a,r[12],3873151461,11),a=Qc(a,i,t,n,r[15],530742520,16),n=Qc(n,a,i,t,r[2],3299628645,23),t=Jc(t,n,a,i,r[0],4096336452,6),i=Jc(i,t,n,a,r[7],1126891415,10),a=Jc(a,i,t,n,r[14],2878612391,15),n=Jc(n,a,i,t,r[5],4237533241,21),t=Jc(t,n,a,i,r[12],1700485571,6),i=Jc(i,t,n,a,r[3],2399980690,10),a=Jc(a,i,t,n,r[10],4293915773,15),n=Jc(n,a,i,t,r[1],2240044497,21),t=Jc(t,n,a,i,r[8],1873313359,6),i=Jc(i,t,n,a,r[15],4264355552,10),a=Jc(a,i,t,n,r[6],2734768916,15),n=Jc(n,a,i,t,r[13],1309151649,21),t=Jc(t,n,a,i,r[4],4149444226,6),i=Jc(i,t,n,a,r[11],3174756917,10),a=Jc(a,i,t,n,r[2],718787259,15),n=Jc(n,a,i,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};_oe.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=Pqt.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function Toe(r,e){return r<>>32-e}function Yc(r,e,t,n,a,i,s){return Toe(r+(e&t|~e&n)+a+i|0,s)+e|0}function $c(r,e,t,n,a,i,s){return Toe(r+(e&n|t&~n)+a+i|0,s)+e|0}function Qc(r,e,t,n,a,i,s){return Toe(r+(e^t^n)+a+i|0,s)+e|0}function Jc(r,e,t,n,a,i,s){return Toe(r+(t^(e|~n))+a+i|0,s)+e|0}wje.exports=_oe});var Coe=_((W8n,kje)=>{"use strict";d();p();var $we=lc().Buffer,Rqt=xr(),Cje=Ywe(),Mqt=new Array(16),EJ=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],CJ=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],kJ=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],AJ=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],PJ=[0,1518500249,1859775393,2400959708,2840853838],SJ=[1352829926,1548603684,1836072691,2053994217,0];function Eoe(){Cje.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Rqt(Eoe,Cje);Eoe.prototype._update=function(){for(var r=Mqt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,u=this._c|0,l=this._d|0,h=this._e|0,f=0;f<80;f+=1){var m,y;f<16?(m=xje(t,n,a,i,s,r[EJ[f]],PJ[0],kJ[f]),y=Eje(o,c,u,l,h,r[CJ[f]],SJ[0],AJ[f])):f<32?(m=_je(t,n,a,i,s,r[EJ[f]],PJ[1],kJ[f]),y=Ije(o,c,u,l,h,r[CJ[f]],SJ[1],AJ[f])):f<48?(m=Tje(t,n,a,i,s,r[EJ[f]],PJ[2],kJ[f]),y=Tje(o,c,u,l,h,r[CJ[f]],SJ[2],AJ[f])):f<64?(m=Ije(t,n,a,i,s,r[EJ[f]],PJ[3],kJ[f]),y=_je(o,c,u,l,h,r[CJ[f]],SJ[3],AJ[f])):(m=Eje(t,n,a,i,s,r[EJ[f]],PJ[4],kJ[f]),y=xje(o,c,u,l,h,r[CJ[f]],SJ[4],AJ[f])),t=s,s=i,i=Tb(a,10),a=n,n=m,o=h,h=l,l=Tb(u,10),u=c,c=y}var I=this._b+a+l|0;this._b=this._c+i+h|0,this._c=this._d+s+o|0,this._d=this._e+t+c|0,this._e=this._a+n+u|0,this._a=I};Eoe.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=$we.alloc?$we.alloc(20):new $we(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};function Tb(r,e){return r<>>32-e}function xje(r,e,t,n,a,i,s,o){return Tb(r+(e^t^n)+i+s|0,o)+a|0}function _je(r,e,t,n,a,i,s,o){return Tb(r+(e&t|~e&n)+i+s|0,o)+a|0}function Tje(r,e,t,n,a,i,s,o){return Tb(r+((e|~t)^n)+i+s|0,o)+a|0}function Ije(r,e,t,n,a,i,s,o){return Tb(r+(e&n|t&~n)+i+s|0,o)+a|0}function Eje(r,e,t,n,a,i,s,o){return Tb(r+(e^(t|~n))+i+s|0,o)+a|0}kje.exports=Eoe});var Ib=_((j8n,Pje)=>{d();p();var Aje=Ir().Buffer;function koe(r,e){this._block=Aje.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}koe.prototype.update=function(r,e){typeof r=="string"&&(e=e||"utf8",r=Aje.from(r,e));for(var t=this._block,n=this._blockSize,a=r.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,a=(t-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return r?i.toString(r):i};koe.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Pje.exports=koe});var Mje=_((G8n,Rje)=>{d();p();var Nqt=xr(),Sje=Ib(),Bqt=Ir().Buffer,Dqt=[1518500249,1859775393,-1894007588,-899497514],Lqt=new Array(80);function RJ(){this.init(),this._w=Lqt,Sje.call(this,64,56)}Nqt(RJ,Sje);RJ.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Oqt(r){return r<<5|r>>>27}function qqt(r){return r<<30|r>>>2}function Fqt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}RJ.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=e[o-3]^e[o-8]^e[o-14]^e[o-16];for(var c=0;c<80;++c){var u=~~(c/20),l=Oqt(t)+Fqt(u,n,a,i)+s+e[c]+Dqt[u]|0;s=i,i=a,a=qqt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};RJ.prototype._hash=function(){var r=Bqt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Rje.exports=RJ});var Dje=_(($8n,Bje)=>{d();p();var Wqt=xr(),Nje=Ib(),Uqt=Ir().Buffer,Hqt=[1518500249,1859775393,-1894007588,-899497514],jqt=new Array(80);function MJ(){this.init(),this._w=jqt,Nje.call(this,64,56)}Wqt(MJ,Nje);MJ.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function zqt(r){return r<<1|r>>>31}function Kqt(r){return r<<5|r>>>27}function Gqt(r){return r<<30|r>>>2}function Vqt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}MJ.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=zqt(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var u=~~(c/20),l=Kqt(t)+Vqt(u,n,a,i)+s+e[c]+Hqt[u]|0;s=i,i=a,a=Gqt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};MJ.prototype._hash=function(){var r=Uqt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Bje.exports=MJ});var Qwe=_((Z8n,Oje)=>{d();p();var Yqt=xr(),Lje=Ib(),$qt=Ir().Buffer,Qqt=[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],Jqt=new Array(64);function NJ(){this.init(),this._w=Jqt,Lje.call(this,64,56)}Yqt(NJ,Lje);NJ.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function Zqt(r,e,t){return t^r&(e^t)}function Xqt(r,e,t){return r&e|t&(r|e)}function eFt(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function tFt(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function rFt(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function nFt(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}NJ.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,u=this._h|0,l=0;l<16;++l)e[l]=r.readInt32BE(l*4);for(;l<64;++l)e[l]=nFt(e[l-2])+e[l-7]+rFt(e[l-15])+e[l-16]|0;for(var h=0;h<64;++h){var f=u+tFt(s)+Zqt(s,o,c)+Qqt[h]+e[h]|0,m=eFt(t)+Xqt(t,n,a)|0;u=c,c=o,o=s,s=i+f|0,i=a,a=n,n=t,t=f+m|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=o+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0};NJ.prototype._hash=function(){var r=$qt.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};Oje.exports=NJ});var Fje=_((t4n,qje)=>{d();p();var aFt=xr(),iFt=Qwe(),sFt=Ib(),oFt=Ir().Buffer,cFt=new Array(64);function Aoe(){this.init(),this._w=cFt,sFt.call(this,64,56)}aFt(Aoe,iFt);Aoe.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Aoe.prototype._hash=function(){var r=oFt.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};qje.exports=Aoe});var Jwe=_((a4n,Gje)=>{d();p();var uFt=xr(),Kje=Ib(),lFt=Ir().Buffer,Wje=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],dFt=new Array(160);function BJ(){this.init(),this._w=dFt,Kje.call(this,128,112)}uFt(BJ,Kje);BJ.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Uje(r,e,t){return t^r&(e^t)}function Hje(r,e,t){return r&e|t&(r|e)}function jje(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function zje(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function pFt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function hFt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function fFt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function mFt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function No(r,e){return r>>>0>>0?1:0}BJ.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,u=this._hh|0,l=this._al|0,h=this._bl|0,f=this._cl|0,m=this._dl|0,y=this._el|0,I=this._fl|0,C=this._gl|0,R=this._hl|0,L=0;L<32;L+=2)e[L]=r.readInt32BE(L*4),e[L+1]=r.readInt32BE(L*4+4);for(;L<160;L+=2){var F=e[L-30],W=e[L-15*2+1],V=pFt(F,W),K=hFt(W,F);F=e[L-2*2],W=e[L-2*2+1];var H=fFt(F,W),G=mFt(W,F),Q=e[L-7*2],q=e[L-7*2+1],T=e[L-16*2],M=e[L-16*2+1],A=K+q|0,v=V+Q+No(A,K)|0;A=A+G|0,v=v+H+No(A,G)|0,A=A+M|0,v=v+T+No(A,M)|0,e[L]=v,e[L+1]=A}for(var k=0;k<160;k+=2){v=e[k],A=e[k+1];var O=Hje(t,n,a),D=Hje(l,h,f),B=jje(t,l),x=jje(l,t),N=zje(s,y),U=zje(y,s),E=Wje[k],z=Wje[k+1],ee=Uje(s,o,c),j=Uje(y,I,C),X=R+U|0,ie=u+N+No(X,R)|0;X=X+j|0,ie=ie+ee+No(X,j)|0,X=X+z|0,ie=ie+E+No(X,z)|0,X=X+A|0,ie=ie+v+No(X,A)|0;var ue=x+D|0,he=B+O+No(ue,x)|0;u=c,R=C,c=o,C=I,o=s,I=y,y=m+X|0,s=i+ie+No(y,m)|0,i=a,m=f,a=n,f=h,n=t,h=l,l=X+ue|0,t=ie+he+No(l,X)|0}this._al=this._al+l|0,this._bl=this._bl+h|0,this._cl=this._cl+f|0,this._dl=this._dl+m|0,this._el=this._el+y|0,this._fl=this._fl+I|0,this._gl=this._gl+C|0,this._hl=this._hl+R|0,this._ah=this._ah+t+No(this._al,l)|0,this._bh=this._bh+n+No(this._bl,h)|0,this._ch=this._ch+a+No(this._cl,f)|0,this._dh=this._dh+i+No(this._dl,m)|0,this._eh=this._eh+s+No(this._el,y)|0,this._fh=this._fh+o+No(this._fl,I)|0,this._gh=this._gh+c+No(this._gl,C)|0,this._hh=this._hh+u+No(this._hl,R)|0};BJ.prototype._hash=function(){var r=lFt.allocUnsafe(64);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};Gje.exports=BJ});var Yje=_((o4n,Vje)=>{d();p();var yFt=xr(),gFt=Jwe(),bFt=Ib(),vFt=Ir().Buffer,wFt=new Array(160);function Poe(){this.init(),this._w=wFt,bFt.call(this,128,112)}yFt(Poe,gFt);Poe.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Poe.prototype._hash=function(){var r=vFt.allocUnsafe(48);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};Vje.exports=Poe});var DJ=_((Zm,$je)=>{d();p();var Zm=$je.exports=function(e){e=e.toLowerCase();var t=Zm[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};Zm.sha=Mje();Zm.sha1=Dje();Zm.sha224=Fje();Zm.sha256=Qwe();Zm.sha384=Yje();Zm.sha512=Jwe()});var Jje=_((p4n,Qje)=>{d();p();Qje.exports=Od;var Zwe=Lu().EventEmitter,xFt=xr();xFt(Od,Zwe);Od.Readable=doe();Od.Writable=coe();Od.Duplex=Ry();Od.Transform=woe();Od.PassThrough=Kwe();Od.finished=vJ();Od.pipeline=Vwe();Od.Stream=Od;function Od(){Zwe.call(this)}Od.prototype.pipe=function(r,e){var t=this;function n(l){r.writable&&r.write(l)===!1&&t.pause&&t.pause()}t.on("data",n);function a(){t.readable&&t.resume&&t.resume()}r.on("drain",a),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",o));var i=!1;function s(){i||(i=!0,r.end())}function o(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function c(l){if(u(),Zwe.listenerCount(this,"error")===0)throw l}t.on("error",c),r.on("error",c);function u(){t.removeListener("data",n),r.removeListener("drain",a),t.removeListener("end",s),t.removeListener("close",o),t.removeListener("error",c),r.removeListener("error",c),t.removeListener("end",u),t.removeListener("close",u),r.removeListener("close",u)}return t.on("end",u),t.on("close",u),r.on("close",u),r.emit("pipe",t),r}});var Xm=_((m4n,eze)=>{d();p();var Zje=Ir().Buffer,Xje=Jje().Transform,_Ft=poe().StringDecoder,TFt=xr();function ih(r){Xje.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}TFt(ih,Xje);ih.prototype.update=function(r,e,t){typeof r=="string"&&(r=Zje.from(r,e));var n=this._update(r);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)};ih.prototype.setAutoPadding=function(){};ih.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};ih.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};ih.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};ih.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){n=a}finally{t(n)}};ih.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};ih.prototype._finalOrDigest=function(r){var e=this.__final()||Zje.alloc(0);return r&&(e=this._toString(e,r,!0)),e};ih.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new _Ft(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};eze.exports=ih});var x3=_((b4n,rze)=>{"use strict";d();p();var IFt=xr(),EFt=Ioe(),CFt=Coe(),kFt=DJ(),tze=Xm();function Soe(r){tze.call(this,"digest"),this._hash=r}IFt(Soe,tze);Soe.prototype._update=function(r){this._hash.update(r)};Soe.prototype._final=function(){return this._hash.digest()};rze.exports=function(e){return e=e.toLowerCase(),e==="md5"?new EFt:e==="rmd160"||e==="ripemd160"?new CFt:new Soe(kFt(e))}});var ize=_((x4n,aze)=>{"use strict";d();p();var AFt=xr(),Eb=Ir().Buffer,nze=Xm(),PFt=Eb.alloc(128),_3=64;function Roe(r,e){nze.call(this,"digest"),typeof e=="string"&&(e=Eb.from(e)),this._alg=r,this._key=e,e.length>_3?e=r(e):e.length<_3&&(e=Eb.concat([e,PFt],_3));for(var t=this._ipad=Eb.allocUnsafe(_3),n=this._opad=Eb.allocUnsafe(_3),a=0;a<_3;a++)t[a]=e[a]^54,n[a]=e[a]^92;this._hash=[t]}AFt(Roe,nze);Roe.prototype._update=function(r){this._hash.push(r)};Roe.prototype._final=function(){var r=this._alg(Eb.concat(this._hash));return this._alg(Eb.concat([this._opad,r]))};aze.exports=Roe});var Xwe=_((I4n,sze)=>{d();p();var SFt=Ioe();sze.exports=function(r){return new SFt().update(r).digest()}});var r5e=_((k4n,cze)=>{"use strict";d();p();var RFt=xr(),MFt=ize(),oze=Xm(),LJ=Ir().Buffer,NFt=Xwe(),e5e=Coe(),t5e=DJ(),BFt=LJ.alloc(128);function OJ(r,e){oze.call(this,"digest"),typeof e=="string"&&(e=LJ.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new e5e:t5e(r);e=n.update(e).digest()}else e.length{DFt.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var lze=_((R4n,uze)=>{d();p();uze.exports=n5e()});var a5e=_((B4n,dze)=>{d();p();var LFt=Math.pow(2,30)-1;dze.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>LFt||e!==e)throw new TypeError("Bad key length")}});var i5e=_((O4n,hze)=>{d();p();var Moe;global.process&&global.process.browser?Moe="utf-8":global.process&&global.process.version?(pze=parseInt(g.version.split(".")[0].slice(1),10),Moe=pze>=6?"utf-8":"binary"):Moe="utf-8";var pze;hze.exports=Moe});var o5e=_((W4n,fze)=>{d();p();var s5e=Ir().Buffer;fze.exports=function(r,e,t){if(s5e.isBuffer(r))return r;if(typeof r=="string")return s5e.from(r,e);if(ArrayBuffer.isView(r))return s5e.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var c5e=_((j4n,bze)=>{d();p();var OFt=Xwe(),qFt=Coe(),FFt=DJ(),Cb=Ir().Buffer,WFt=a5e(),mze=i5e(),yze=o5e(),UFt=Cb.alloc(128),Noe={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function gze(r,e,t){var n=HFt(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=n(e):e.length{d();p();var _ze=Ir().Buffer,zFt=a5e(),vze=i5e(),wze=c5e(),xze=o5e(),Boe,qJ=global.crypto&&global.crypto.subtle,KFt={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},u5e=[];function GFt(r){if(global.process&&!global.process.browser||!qJ||!qJ.importKey||!qJ.deriveBits)return Promise.resolve(!1);if(u5e[r]!==void 0)return u5e[r];Boe=Boe||_ze.alloc(8);var e=Tze(Boe,Boe,10,128,r).then(function(){return!0}).catch(function(){return!1});return u5e[r]=e,e}var kb;function l5e(){return kb||(global.process&&global.process.nextTick?kb=global.process.nextTick:global.queueMicrotask?kb=global.queueMicrotask:global.setImmediate?kb=global.setImmediate:kb=global.setTimeout,kb)}function Tze(r,e,t,n,a){return qJ.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return qJ.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,n<<3)}).then(function(i){return _ze.from(i)})}function VFt(r,e){r.then(function(t){l5e()(function(){e(null,t)})},function(t){l5e()(function(){e(t)})})}Ize.exports=function(r,e,t,n,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var s=KFt[a.toLowerCase()];if(!s||typeof global.Promise!="function"){l5e()(function(){var o;try{o=wze(r,e,t,n,a)}catch(c){return i(c)}i(null,o)});return}if(zFt(t,n),r=xze(r,vze,"Password"),e=xze(e,vze,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");VFt(GFt(s).then(function(o){return o?Tze(r,e,t,n,s):wze(r,e,t,n,a)}),i)}});var p5e=_(d5e=>{d();p();d5e.pbkdf2=Eze();d5e.pbkdf2Sync=c5e()});var h5e=_(qd=>{"use strict";d();p();qd.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};qd.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};qd.ip=function(e,t,n,a){for(var i=0,s=0,o=6;o>=0;o-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>>c+o&1}for(var o=6;o>=0;o-=2){for(var c=1;c<=25;c+=8)s<<=1,s|=t>>>c+o&1;for(var c=1;c<=25;c+=8)s<<=1,s|=e>>>c+o&1}n[a+0]=i>>>0,n[a+1]=s>>>0};qd.rip=function(e,t,n,a){for(var i=0,s=0,o=0;o<4;o++)for(var c=24;c>=0;c-=8)i<<=1,i|=t>>>c+o&1,i<<=1,i|=e>>>c+o&1;for(var o=4;o<8;o++)for(var c=24;c>=0;c-=8)s<<=1,s|=t>>>c+o&1,s<<=1,s|=e>>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.pc1=function(e,t,n,a){for(var i=0,s=0,o=7;o>=5;o--){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1}for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var o=1;o<=3;o++){for(var c=0;c<=24;c+=8)s<<=1,s|=t>>c+o&1;for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1}for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.r28shl=function(e,t){return e<>>28-t};var Doe=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];qd.pc2=function(e,t,n,a){for(var i=0,s=0,o=Doe.length>>>1,c=0;c>>Doe[c]&1;for(var c=o;c>>Doe[c]&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.expand=function(e,t,n){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)a<<=6,a|=e>>>s&63;for(var s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=a>>>0,t[n+1]=i>>>0};var Cze=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];qd.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-a*6&63,s=Cze[a*64+i];n<<=4,n|=s}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,s=Cze[4*64+a*64+i];n<<=4,n|=s}return n>>>0};var kze=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];qd.permute=function(e){for(var t=0,n=0;n>>kze[n]&1;return t>>>0};qd.padSplit=function(e,t,n){for(var a=e.toString(2);a.length{"use strict";d();p();var YFt=zl();function Fd(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Aze.exports=Fd;Fd.prototype._init=function(){};Fd.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Fd.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a0;a--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i};Fd.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Fd.prototype._pad=function(e,t){if(t===0)return!1;for(;t{"use strict";d();p();var Pze=zl(),$Ft=xr(),uo=h5e(),Sze=Loe();function QFt(){this.tmp=new Array(2),this.keys=null}function Ef(r){Sze.call(this,r);var e=new QFt;this._desState=e,this.deriveKeys(e,r.key)}$Ft(Ef,Sze);Rze.exports=Ef;Ef.create=function(e){return new Ef(e)};var JFt=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Ef.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),Pze.equal(t.length,this.blockSize,"Invalid key length");var n=uo.readUInt32BE(t,0),a=uo.readUInt32BE(t,4);uo.pc1(n,a,e.tmp,0),n=e.tmp[0],a=e.tmp[1];for(var i=0;i>>1];n=uo.r28shl(n,s),a=uo.r28shl(a,s),uo.pc2(n,a,e.keys,i)}};Ef.prototype._update=function(e,t,n,a){var i=this._desState,s=uo.readUInt32BE(e,t),o=uo.readUInt32BE(e,t+4);uo.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],this.type==="encrypt"?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],uo.writeUInt32BE(n,s,a),uo.writeUInt32BE(n,o,a+4)};Ef.prototype._pad=function(e,t){for(var n=e.length-t,a=t;a>>0,s=m}uo.rip(o,s,a,i)};Ef.prototype._decrypt=function(e,t,n,a,i){for(var s=n,o=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];uo.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var h=uo.substitute(u,l),f=uo.permute(h),m=s;s=(o^f)>>>0,o=m}uo.rip(s,o,a,i)}});var Nze=_(Mze=>{"use strict";d();p();var ZFt=zl(),XFt=xr(),Ooe={};function eWt(r){ZFt.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";d();p();var rWt=zl(),nWt=xr(),Bze=Loe(),Ly=f5e();function aWt(r,e){rWt.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[Ly.create({type:"encrypt",key:t}),Ly.create({type:"decrypt",key:n}),Ly.create({type:"encrypt",key:a})]:this.ciphers=[Ly.create({type:"decrypt",key:a}),Ly.create({type:"encrypt",key:n}),Ly.create({type:"decrypt",key:t})]}function Ab(r){Bze.call(this,r);var e=new aWt(this.type,this.options.key);this._edeState=e}nWt(Ab,Bze);Dze.exports=Ab;Ab.create=function(e){return new Ab(e)};Ab.prototype._update=function(e,t,n,a){var i=this._edeState;i.ciphers[0]._update(e,t,n,a),i.ciphers[1]._update(n,a,n,a),i.ciphers[2]._update(n,a,n,a)};Ab.prototype._pad=Ly.prototype._pad;Ab.prototype._unpad=Ly.prototype._unpad});var Oze=_(T3=>{"use strict";d();p();T3.utils=h5e();T3.Cipher=Loe();T3.DES=f5e();T3.CBC=Nze();T3.EDE=Lze()});var Wze=_((ykn,Fze)=>{d();p();var qze=Xm(),e0=Oze(),iWt=xr(),Pb=Ir().Buffer,FJ={"des-ede3-cbc":e0.CBC.instantiate(e0.EDE),"des-ede3":e0.EDE,"des-ede-cbc":e0.CBC.instantiate(e0.EDE),"des-ede":e0.EDE,"des-cbc":e0.CBC.instantiate(e0.DES),"des-ecb":e0.DES};FJ.des=FJ["des-cbc"];FJ.des3=FJ["des-ede3-cbc"];Fze.exports=qoe;iWt(qoe,qze);function qoe(r){qze.call(this);var e=r.mode.toLowerCase(),t=FJ[e],n;r.decrypt?n="decrypt":n="encrypt";var a=r.key;Pb.isBuffer(a)||(a=Pb.from(a)),(e==="des-ede"||e==="des-ede-cbc")&&(a=Pb.concat([a,a.slice(0,8)]));var i=r.iv;Pb.isBuffer(i)||(i=Pb.from(i)),this._des=t.create({key:a,iv:i,type:n})}qoe.prototype._update=function(r){return Pb.from(this._des.update(r))};qoe.prototype._final=function(){return Pb.from(this._des.final())}});var Uze=_(m5e=>{d();p();m5e.encrypt=function(r,e){return r._cipher.encryptBlock(e)};m5e.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var I3=_((_kn,Hze)=>{d();p();Hze.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new b.Buffer(n),i=0;i{d();p();var jze=I3();y5e.encrypt=function(r,e){var t=jze(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};y5e.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return jze(n,t)}});var Vze=_(Gze=>{d();p();var WJ=Ir().Buffer,sWt=I3();function Kze(r,e,t){var n=e.length,a=sWt(e,r._cache);return r._cache=r._cache.slice(n),r._prev=WJ.concat([r._prev,t?e:a]),a}Gze.encrypt=function(r,e,t){for(var n=WJ.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=WJ.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,n=WJ.concat([n,Kze(r,e.slice(0,a),t)]),e=e.slice(a);else{n=WJ.concat([n,Kze(r,e,t)]);break}return n}});var $ze=_(Yze=>{d();p();var g5e=Ir().Buffer;function oWt(r,e,t){var n=r._cipher.encryptBlock(r._prev),a=n[0]^e;return r._prev=g5e.concat([r._prev.slice(1),g5e.from([t?e:a])]),a}Yze.encrypt=function(r,e,t){for(var n=e.length,a=g5e.allocUnsafe(n),i=-1;++i{d();p();var Foe=Ir().Buffer;function cWt(r,e,t){for(var n,a=-1,i=8,s=0,o,c;++a>a%8,r._prev=uWt(r._prev,t?o:c);return s}function uWt(r,e){var t=r.length,n=-1,a=Foe.allocUnsafe(r.length);for(r=Foe.concat([r,Foe.from([e])]);++n>7;return a}Qze.encrypt=function(r,e,t){for(var n=e.length,a=Foe.allocUnsafe(n),i=-1;++i{d();p();var lWt=I3();function dWt(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}Zze.encrypt=function(r,e){for(;r._cache.length{d();p();function pWt(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}eKe.exports=pWt});var w5e=_(rKe=>{d();p();var hWt=I3(),tKe=Ir().Buffer,fWt=b5e();function mWt(r){var e=r._cipher.encryptBlockRaw(r._prev);return fWt(r._prev),e}var v5e=16;rKe.encrypt=function(r,e){var t=Math.ceil(e.length/v5e),n=r._cache.length;r._cache=tKe.concat([r._cache,tKe.allocUnsafe(t*v5e)]);for(var a=0;a{yWt.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var Uoe=_((Vkn,nKe)=>{d();p();var gWt={ECB:Uze(),CBC:zze(),CFB:Vze(),CFB8:$ze(),CFB1:Jze(),OFB:Xze(),CTR:w5e(),GCM:w5e()},Woe=x5e();for(_5e in Woe)Woe[_5e].module=gWt[Woe[_5e].mode];var _5e;nKe.exports=Woe});var UJ=_((Qkn,iKe)=>{d();p();var Hoe=Ir().Buffer;function I5e(r){Hoe.isBuffer(r)||(r=Hoe.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n>>24]^s[l>>>16&255]^o[h>>>8&255]^c[f&255]^e[R++],y=i[l>>>24]^s[h>>>16&255]^o[f>>>8&255]^c[u&255]^e[R++],I=i[h>>>24]^s[f>>>16&255]^o[u>>>8&255]^c[l&255]^e[R++],C=i[f>>>24]^s[u>>>16&255]^o[l>>>8&255]^c[h&255]^e[R++],u=m,l=y,h=I,f=C;return m=(n[u>>>24]<<24|n[l>>>16&255]<<16|n[h>>>8&255]<<8|n[f&255])^e[R++],y=(n[l>>>24]<<24|n[h>>>16&255]<<16|n[f>>>8&255]<<8|n[u&255])^e[R++],I=(n[h>>>24]<<24|n[f>>>16&255]<<16|n[u>>>8&255]<<8|n[l&255])^e[R++],C=(n[f>>>24]<<24|n[u>>>16&255]<<16|n[l>>>8&255]<<8|n[h&255])^e[R++],m=m>>>0,y=y>>>0,I=I>>>0,C=C>>>0,[m,y,I,C]}var bWt=[0,1,2,4,8,16,32,64,128,27,54],Fs=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var u=o^o<<1^o<<2^o<<3^o<<4;u=u>>>8^u&255^99,t[s]=u,n[u]=s;var l=r[s],h=r[l],f=r[h],m=r[u]*257^u*16843008;a[0][s]=m<<24|m>>>8,a[1][s]=m<<16|m>>>16,a[2][s]=m<<8|m>>>24,a[3][s]=m,m=f*16843009^h*65537^l*257^s*16843008,i[0][u]=m<<24|m>>>8,i[1][u]=m<<16|m>>>16,i[2][u]=m<<8|m>>>24,i[3][u]=m,s===0?s=o=1:(s=l^r[r[r[f^l]]],o^=r[r[o]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function Wd(r){this._key=I5e(r),this._reset()}Wd.blockSize=4*4;Wd.keySize=256/8;Wd.prototype.blockSize=Wd.blockSize;Wd.prototype.keySize=Wd.keySize;Wd.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,a=[],i=0;i>>24,s=Fs.SBOX[s>>>24]<<24|Fs.SBOX[s>>>16&255]<<16|Fs.SBOX[s>>>8&255]<<8|Fs.SBOX[s&255],s^=bWt[i/e|0]<<24):e>6&&i%e===4&&(s=Fs.SBOX[s>>>24]<<24|Fs.SBOX[s>>>16&255]<<16|Fs.SBOX[s>>>8&255]<<8|Fs.SBOX[s&255]),a[i]=a[i-e]^s}for(var o=[],c=0;c>>24]]^Fs.INV_SUB_MIX[1][Fs.SBOX[l>>>16&255]]^Fs.INV_SUB_MIX[2][Fs.SBOX[l>>>8&255]]^Fs.INV_SUB_MIX[3][Fs.SBOX[l&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=o};Wd.prototype.encryptBlockRaw=function(r){return r=I5e(r),aKe(r,this._keySchedule,Fs.SUB_MIX,Fs.SBOX,this._nRounds)};Wd.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=Hoe.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Wd.prototype.decryptBlock=function(r){r=I5e(r);var e=r[1];r[1]=r[3],r[3]=e;var t=aKe(r,this._invKeySchedule,Fs.INV_SUB_MIX,Fs.INV_SBOX,this._nRounds),n=Hoe.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Wd.prototype.scrub=function(){T5e(this._keySchedule),T5e(this._invKeySchedule),T5e(this._key)};iKe.exports.AES=Wd});var cKe=_((Xkn,oKe)=>{d();p();var E3=Ir().Buffer,vWt=E3.alloc(16,0);function wWt(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function sKe(r){var e=E3.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function HJ(r){this.h=r,this.state=E3.alloc(16,0),this.cache=E3.allocUnsafe(0)}HJ.prototype.ghash=function(r){for(var e=-1;++e0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=sKe(e)};HJ.prototype.update=function(r){this.cache=E3.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};HJ.prototype.final=function(r,e){return this.cache.length&&this.ghash(E3.concat([this.cache,vWt],16)),this.ghash(sKe([0,r,0,e])),this.state};oKe.exports=HJ});var E5e=_((rAn,dKe)=>{d();p();var xWt=UJ(),ul=Ir().Buffer,uKe=Xm(),_Wt=xr(),lKe=cKe(),TWt=I3(),IWt=b5e();function EWt(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),a=0;a{d();p();var kWt=UJ(),C5e=Ir().Buffer,pKe=Xm(),AWt=xr();function joe(r,e,t,n){pKe.call(this),this._cipher=new kWt.AES(e),this._prev=C5e.from(t),this._cache=C5e.allocUnsafe(0),this._secCache=C5e.allocUnsafe(0),this._decrypt=n,this._mode=r}AWt(joe,pKe);joe.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};joe.prototype._final=function(){this._cipher.scrub()};hKe.exports=joe});var jJ=_((cAn,fKe)=>{d();p();var Rb=Ir().Buffer,PWt=Ioe();function SWt(r,e,t,n){if(Rb.isBuffer(r)||(r=Rb.from(r,"binary")),e&&(Rb.isBuffer(e)||(e=Rb.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=Rb.alloc(a),s=Rb.alloc(n||0),o=Rb.alloc(0);a>0||n>0;){var c=new PWt;c.update(o),c.update(r),e&&c.update(e),o=c.digest();var u=0;if(a>0){var l=i.length-a;u=Math.min(a,o.length),o.copy(i,l,0,u),a-=u}if(u0){var h=s.length-n,f=Math.min(n,o.length-u);o.copy(s,h,u,u+f),n-=f}}return o.fill(0),{key:i,iv:s}}fKe.exports=SWt});var bKe=_(A5e=>{d();p();var mKe=Uoe(),RWt=E5e(),t0=Ir().Buffer,MWt=k5e(),yKe=Xm(),NWt=UJ(),BWt=jJ(),DWt=xr();function zJ(r,e,t){yKe.call(this),this._cache=new zoe,this._cipher=new NWt.AES(e),this._prev=t0.from(t),this._mode=r,this._autopadding=!0}DWt(zJ,yKe);zJ.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return t0.concat(n)};var LWt=t0.alloc(16,16);zJ.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(LWt))throw this._cipher.scrub(),new Error("data not multiple of block length")};zJ.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function zoe(){this.cache=t0.allocUnsafe(0)}zoe.prototype.add=function(r){this.cache=t0.concat([this.cache,r])};zoe.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};zoe.prototype.flush=function(){for(var r=16-this.cache.length,e=t0.allocUnsafe(r),t=-1;++t{d();p();var qWt=E5e(),C3=Ir().Buffer,vKe=Uoe(),FWt=k5e(),wKe=Xm(),WWt=UJ(),UWt=jJ(),HWt=xr();function KJ(r,e,t){wKe.call(this),this._cache=new Koe,this._last=void 0,this._cipher=new WWt.AES(e),this._prev=C3.from(t),this._mode=r,this._autopadding=!0}HWt(KJ,wKe);KJ.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return C3.concat(n)};KJ.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return jWt(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};KJ.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function Koe(){this.cache=C3.allocUnsafe(0)}Koe.prototype.add=function(r){this.cache=C3.concat([this.cache,r])};Koe.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};Koe.prototype.flush=function(){if(this.cache.length)return this.cache};function jWt(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t{d();p();var TKe=bKe(),IKe=_Ke(),KWt=x5e();function GWt(){return Object.keys(KWt)}sh.createCipher=sh.Cipher=TKe.createCipher;sh.createCipheriv=sh.Cipheriv=TKe.createCipheriv;sh.createDecipher=sh.Decipher=IKe.createDecipher;sh.createDecipheriv=sh.Decipheriv=IKe.createDecipheriv;sh.listCiphers=sh.getCiphers=GWt});var EKe=_(r0=>{d();p();r0["des-ecb"]={key:8,iv:0};r0["des-cbc"]=r0.des={key:8,iv:8};r0["des-ede3-cbc"]=r0.des3={key:24,iv:8};r0["des-ede3"]={key:24,iv:0};r0["des-ede-cbc"]={key:16,iv:8};r0["des-ede"]={key:16,iv:0}});var SKe=_(oh=>{d();p();var CKe=Wze(),S5e=Goe(),Oy=Uoe(),n0=EKe(),kKe=jJ();function VWt(r,e){r=r.toLowerCase();var t,n;if(Oy[r])t=Oy[r].key,n=Oy[r].iv;else if(n0[r])t=n0[r].key*8,n=n0[r].iv;else throw new TypeError("invalid suite type");var a=kKe(e,!1,t,n);return AKe(r,a.key,a.iv)}function YWt(r,e){r=r.toLowerCase();var t,n;if(Oy[r])t=Oy[r].key,n=Oy[r].iv;else if(n0[r])t=n0[r].key*8,n=n0[r].iv;else throw new TypeError("invalid suite type");var a=kKe(e,!1,t,n);return PKe(r,a.key,a.iv)}function AKe(r,e,t){if(r=r.toLowerCase(),Oy[r])return S5e.createCipheriv(r,e,t);if(n0[r])return new CKe({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function PKe(r,e,t){if(r=r.toLowerCase(),Oy[r])return S5e.createDecipheriv(r,e,t);if(n0[r])return new CKe({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function $Wt(){return Object.keys(n0).concat(S5e.getCiphers())}oh.createCipher=oh.Cipher=VWt;oh.createCipheriv=oh.Cipheriv=AKe;oh.createDecipher=oh.Decipher=YWt;oh.createDecipheriv=oh.Decipheriv=PKe;oh.listCiphers=oh.getCiphers=$Wt});var R5e=_((CAn,RKe)=>{d();p();var Mb=co(),QWt=Voe();function Nb(r){this.rand=r||new QWt.Rand}RKe.exports=Nb;Nb.create=function(e){return new Nb(e)};Nb.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var a=new Mb(this.rand.generate(n));while(a.cmp(e)>=0);return a};Nb.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};Nb.prototype.test=function(e,t,n){var a=e.bitLength(),i=Mb.mont(e),s=new Mb(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var u=e.shrn(c),l=o.toRed(i),h=!0;t>0;t--){var f=this._randrange(new Mb(2),o);n&&n(f);var m=f.toRed(i).redPow(u);if(!(m.cmp(s)===0||m.cmp(l)===0)){for(var y=1;y0;t--){var l=this._randrange(new Mb(2),s),h=e.gcd(l);if(h.cmpn(1)!==0)return h;var f=l.toRed(a).redPow(c);if(!(f.cmp(i)===0||f.cmp(u)===0)){for(var m=1;m{d();p();var JWt=hb();BKe.exports=L5e;L5e.simpleSieve=B5e;L5e.fermatTest=D5e;var hc=co(),ZWt=new hc(24),XWt=R5e(),MKe=new XWt,eUt=new hc(1),N5e=new hc(2),tUt=new hc(5),PAn=new hc(16),SAn=new hc(8),rUt=new hc(10),nUt=new hc(3),RAn=new hc(7),aUt=new hc(11),NKe=new hc(4),MAn=new hc(12),M5e=null;function iUt(){if(M5e!==null)return M5e;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;nr;)t.ishrn(1);if(t.isEven()&&t.iadd(eUt),t.testn(1)||t.iadd(N5e),e.cmp(N5e)){if(!e.cmp(tUt))for(;t.mod(rUt).cmp(nUt);)t.iadd(NKe)}else for(;t.mod(ZWt).cmp(aUt);)t.iadd(NKe);if(n=t.shrn(1),B5e(n)&&B5e(t)&&D5e(n)&&D5e(t)&&MKe.test(n)&&MKe.test(t))return t}}});var DKe=_((LAn,sUt)=>{sUt.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var FKe=_((OAn,qKe)=>{d();p();var Ud=co(),oUt=R5e(),LKe=new oUt,cUt=new Ud(24),uUt=new Ud(11),lUt=new Ud(10),dUt=new Ud(3),pUt=new Ud(7),OKe=O5e(),hUt=hb();qKe.exports=a0;function fUt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._pub=new Ud(r),this}function mUt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._priv=new Ud(r),this}var Yoe={};function yUt(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in Yoe)return Yoe[n];var a=0;if(r.isEven()||!OKe.simpleSieve||!OKe.fermatTest(r)||!LKe.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,Yoe[n]=a,a;LKe.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(cUt).cmp(uUt)&&(a+=8);break;case"05":i=r.mod(lUt),i.cmp(dUt)&&i.cmp(pUt)&&(a+=8);break;default:a+=4}return Yoe[n]=a,a}function a0(r,e,t){this.setGenerator(e),this.__prime=new Ud(r),this._prime=Ud.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=fUt,this.setPrivateKey=mUt):this._primeCode=8}Object.defineProperty(a0.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=yUt(this.__prime,this.__gen)),this._primeCode}});a0.prototype.generateKeys=function(){return this._priv||(this._priv=new Ud(hUt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};a0.prototype.computeSecret=function(r){r=new Ud(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new b.Buffer(e.toArray()),n=this.getPrime();if(t.length{d();p();var gUt=O5e(),WKe=DKe(),q5e=FKe();function bUt(r){var e=new b.Buffer(WKe[r].prime,"hex"),t=new b.Buffer(WKe[r].gen,"hex");return new q5e(e,t)}var vUt={binary:!0,hex:!0,base64:!0};function UKe(r,e,t,n){return b.Buffer.isBuffer(e)||vUt[e]===void 0?UKe(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new b.Buffer([2]),b.Buffer.isBuffer(t)||(t=new b.Buffer(t,n)),typeof r=="number"?new q5e(gUt(r,t),t,!0):(b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),new q5e(r,t,!0)))}k3.DiffieHellmanGroup=k3.createDiffieHellmanGroup=k3.getDiffieHellman=bUt;k3.createDiffieHellman=k3.DiffieHellman=UKe});var Qoe=_((jAn,KKe)=>{d();p();var A3=Cr(),wUt=hb();function xUt(r){var e=jKe(r),t=e.toRed(A3.mont(r.modulus)).redPow(new A3(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function jKe(r){var e=r.modulus.byteLength(),t;do t=new A3(wUt(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function zKe(r,e){var t=xUt(e),n=e.modulus.byteLength(),a=new A3(r).mul(t.blinder).umod(e.modulus),i=a.toRed(A3.mont(e.prime1)),s=a.toRed(A3.mont(e.prime2)),o=e.coefficient,c=e.prime1,u=e.prime2,l=i.redPow(e.exponent1).fromRed(),h=s.redPow(e.exponent2).fromRed(),f=l.isub(h).imul(o).umod(c).imul(u);return h.iadd(f).imul(t.unblinder).umod(e.modulus).toArrayLike(b.Buffer,"be",n)}zKe.getr=jKe;KKe.exports=zKe});var Zoe=_((GAn,GKe)=>{"use strict";d();p();var Joe=lc(),P3=Joe.Buffer,Hd={},jd;for(jd in Joe)!Joe.hasOwnProperty(jd)||jd==="SlowBuffer"||jd==="Buffer"||(Hd[jd]=Joe[jd]);var S3=Hd.Buffer={};for(jd in P3)!P3.hasOwnProperty(jd)||jd==="allocUnsafe"||jd==="allocUnsafeSlow"||(S3[jd]=P3[jd]);Hd.Buffer.prototype=P3.prototype;(!S3.from||S3.from===Uint8Array.from)&&(S3.from=function(r,e,t){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return P3(r,e,t)});S3.alloc||(S3.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var n=P3(r);return!e||e.length===0?n.fill(0):typeof t=="string"?n.fill(e,t):n.fill(e),n});if(!Hd.kStringMaxLength)try{Hd.kStringMaxLength=g.binding("buffer").kStringMaxLength}catch{}Hd.constants||(Hd.constants={MAX_LENGTH:Hd.kMaxLength},Hd.kStringMaxLength&&(Hd.constants.MAX_STRING_LENGTH=Hd.kStringMaxLength));GKe.exports=Hd});var Xoe=_(VKe=>{"use strict";d();p();var _Ut=xr();function zd(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}VKe.Reporter=zd;zd.prototype.isError=function(e){return e instanceof R3};zd.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};zd.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};zd.prototype.enterKey=function(e){return this._reporterState.path.push(e)};zd.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)};zd.prototype.leaveKey=function(e,t,n){let a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=n)};zd.prototype.path=function(){return this._reporterState.path.join("/")};zd.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t};zd.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n};zd.prototype.error=function(e){let t,n=this._reporterState,a=e instanceof R3;if(a?t=e:t=new R3(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t};zd.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function R3(r,e){this.path=r,this.rethrow(e)}_Ut(R3,Error);R3.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,R3),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var B3=_(F5e=>{"use strict";d();p();var TUt=xr(),ece=Xoe().Reporter,M3=Zoe().Buffer;function Kd(r,e){if(ece.call(this,e),!M3.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}TUt(Kd,ece);F5e.DecoderBuffer=Kd;Kd.isDecoderBuffer=function(e){return e instanceof Kd?!0:typeof e=="object"&&M3.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};Kd.prototype.save=function(){return{offset:this.offset,reporter:ece.prototype.save.call(this)}};Kd.prototype.restore=function(e){let t=new Kd(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,ece.prototype.restore.call(this,e.reporter),t};Kd.prototype.isEmpty=function(){return this.offset===this.length};Kd.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Kd.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new Kd(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};Kd.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function N3(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return N3.isEncoderBuffer(t)||(t=new N3(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=M3.byteLength(r);else if(M3.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}F5e.EncoderBuffer=N3;N3.isEncoderBuffer=function(e){return e instanceof N3?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};N3.prototype.join=function(e,t){return e||(e=M3.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):M3.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var tce=_((tPn,$Ke)=>{"use strict";d();p();var IUt=Xoe().Reporter,EUt=B3().EncoderBuffer,CUt=B3().DecoderBuffer,Ou=zl(),YKe=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],kUt=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(YKe),AUt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Fa(r,e,t){let n={};this._baseState=n,n.name=t,n.enc=r,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}$Ke.exports=Fa;var PUt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Fa.prototype.clone=function(){let e=this._baseState,t={};PUt.forEach(function(a){t[a]=e[a]});let n=new this.constructor(t.parent);return n._baseState=t,n};Fa.prototype._wrap=function(){let e=this._baseState;kUt.forEach(function(t){this[t]=function(){let a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};Fa.prototype._init=function(e){let t=this._baseState;Ou(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),Ou.equal(t.children.length,1,"Root node can have only one child")};Fa.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(Ou(t.children===null),t.children=n,n.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&(Ou(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;let i={};return Object.keys(a).forEach(function(s){s==(s|0)&&(s|=0);let o=a[s];i[o]=s}),i}))};AUt.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});YKe.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return Ou(t.tag===null),t.tag=r,this._useArgs(n),this}});Fa.prototype.use=function(e){Ou(e);let t=this._baseState;return Ou(t.use===null),t.use=e,this};Fa.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};Fa.prototype.def=function(e){let t=this._baseState;return Ou(t.default===null),t.default=e,t.optional=!0,this};Fa.prototype.explicit=function(e){let t=this._baseState;return Ou(t.explicit===null&&t.implicit===null),t.explicit=e,this};Fa.prototype.implicit=function(e){let t=this._baseState;return Ou(t.explicit===null&&t.implicit===null),t.implicit=e,this};Fa.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};Fa.prototype.key=function(e){let t=this._baseState;return Ou(t.key===null),t.key=e,this};Fa.prototype.any=function(){let e=this._baseState;return e.any=!0,this};Fa.prototype.choice=function(e){let t=this._baseState;return Ou(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};Fa.prototype.contains=function(e){let t=this._baseState;return Ou(t.use===null),t.contains=e,this};Fa.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let a=n.default,i=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){let u=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(u)}else if(i=this._peekTag(e,c,n.any),e.isError(i))return i}let o;if(n.obj&&i&&(o=e.enterObject()),i){if(n.explicit!==null){let u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}let c=e.offset;if(n.use===null&&n.choice===null){let u;n.any&&(u=e.save());let l=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(l))return l;n.any?a=e.raw(u):e=l}if(t&&t.track&&n.tag!==null&&t.track(e.path(),c,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,e,t):a=this._decodeChoice(e,t)),e.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(l){l._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let u=new CUt(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(u,t)}}return n.obj&&i&&(a=e.leaveObject(o)),n.key!==null&&(a!==null||i===!0)?e.leaveKey(s,n.key,a):s!==null&&e.exitKey(s),a};Fa.prototype._decodeGeneric=function(e,t,n){let a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};Fa.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),Ou(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};Fa.prototype._decodeChoice=function(e,t){let n=this._baseState,a=null,i=!1;return Object.keys(n.choice).some(function(s){let o=e.save(),c=n.choice[s];try{let u=c._decode(e,t);if(e.isError(u))return!1;a={type:s,value:u},i=!0}catch{return e.restore(o),!1}return!0},this),i?a:e.error("Choice not matched")};Fa.prototype._createEncoderBuffer=function(e){return new EUt(e,this.reporter)};Fa.prototype._encode=function(e,t,n){let a=this._baseState;if(a.default!==null&&a.default===e)return;let i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i};Fa.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new IUt);let i=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;let s=null,o=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),o=!0;else if(a.children)s=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,t,e);if(c._baseState.key===null)return t.error("Child should have a key");let u=t.enterKey(c._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");let l=c._encode(e[c._baseState.key],t,e);return t.leaveKey(u),l},this).filter(function(c){return c}),s=this._createEncoderBuffer(s);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(u){let l=this._baseState;return this._getUse(l.args[0],e)._encode(u,t)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),o=!0);if(!a.any&&a.choice===null){let c=a.implicit!==null?a.implicit:a.tag,u=a.implicit===null?"universal":"context";c===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,o,u,s))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};Fa.prototype._encodeChoice=function(e,t){let n=this._baseState,a=n.choice[e.type];return a||Ou(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)};Fa.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};Fa.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Fa.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var rce=_(Bb=>{"use strict";d();p();function QKe(r){let e={};return Object.keys(r).forEach(function(t){(t|0)==t&&(t=t|0);let n=r[t];e[n]=t}),e}Bb.tagClass={0:"universal",1:"application",2:"context",3:"private"};Bb.tagClassByName=QKe(Bb.tagClass);Bb.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};Bb.tagByName=QKe(Bb.tag)});var U5e=_((oPn,XKe)=>{"use strict";d();p();var SUt=xr(),i0=Zoe().Buffer,JKe=tce(),W5e=rce();function ZKe(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new ch,this.tree._init(r.body)}XKe.exports=ZKe;ZKe.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function ch(r){JKe.call(this,"der",r)}SUt(ch,JKe);ch.prototype._encodeComposite=function(e,t,n,a){let i=RUt(e,t,n,this.reporter);if(a.length<128){let c=i0.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let s=1;for(let c=a.length;c>=256;c>>=8)s++;let o=i0.alloc(1+1+s);o[0]=i,o[1]=128|s;for(let c=1+s,u=a.length;u>0;c--,u>>=8)o[c]=u&255;return this._createEncoderBuffer([o,a])};ch.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){let n=i0.alloc(e.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let a=0;for(let o=0;o=128;c>>=7)a++}let i=i0.alloc(a),s=i.length-1;for(let o=e.length-1;o>=0;o--){let c=e[o];for(i[s--]=c&127;(c>>=7)>0;)i[s--]=128|c&127}return this._createEncoderBuffer(i)};function Gd(r){return r<10?"0"+r:r}ch.prototype._encodeTime=function(e,t){let n,a=new Date(e);return t==="gentime"?n=[Gd(a.getUTCFullYear()),Gd(a.getUTCMonth()+1),Gd(a.getUTCDate()),Gd(a.getUTCHours()),Gd(a.getUTCMinutes()),Gd(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[Gd(a.getUTCFullYear()%100),Gd(a.getUTCMonth()+1),Gd(a.getUTCDate()),Gd(a.getUTCHours()),Gd(a.getUTCMinutes()),Gd(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};ch.prototype._encodeNull=function(){return this._createEncoderBuffer("")};ch.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!i0.isBuffer(e)){let i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=i0.from(i)}if(i0.isBuffer(e)){let i=e.length;e.length===0&&i++;let s=i0.alloc(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;let a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(i0.from(a))};ch.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};ch.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};ch.prototype._skipDefault=function(e,t,n){let a=this._baseState,i;if(a.default===null)return!1;let s=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),s.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=W5e.tagClassByName[t||"universal"]<<6,a)}});var tGe=_((lPn,eGe)=>{"use strict";d();p();var MUt=xr(),H5e=U5e();function j5e(r){H5e.call(this,r),this.enc="pem"}MUt(j5e,H5e);eGe.exports=j5e;j5e.prototype.encode=function(e,t){let a=H5e.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let s=0;s{"use strict";d();p();var rGe=nGe;rGe.der=U5e();rGe.pem=tGe()});var G5e=_((yPn,uGe)=>{"use strict";d();p();var NUt=xr(),BUt=co(),aGe=B3().DecoderBuffer,sGe=tce(),iGe=rce();function oGe(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new Gl,this.tree._init(r.body)}uGe.exports=oGe;oGe.prototype.decode=function(e,t){return aGe.isDecoderBuffer(e)||(e=new aGe(e,t)),this.tree._decode(e,t)};function Gl(r){sGe.call(this,"der",r)}NUt(Gl,sGe);Gl.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let a=e.save(),i=K5e(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)};Gl.prototype._decodeTag=function(e,t,n){let a=K5e(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;let i=cGe(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');let s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))};Gl.prototype._skipUntilEnd=function(e,t){for(;;){let n=K5e(e,t);if(e.isError(n))return n;let a=cGe(e,n.primitive,t);if(e.isError(a))return a;let i;if(n.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr==="end")break}};Gl.prototype._decodeList=function(e,t,n,a){let i=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let o=n.decode(e,"der",a);if(e.isError(o)&&s)break;i.push(o)}return i};Gl.prototype._decodeStr=function(e,t){if(t==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let a="";for(let i=0;i>6],a=(t&32)===0;if((t&31)===31){let s=t;for(t=0;(s&128)===128;){if(s=r.readUInt8(e),r.isError(s))return s;t<<=7,t|=s&127}}else t&=31;let i=iGe.tag[t];return{cls:n,primitive:a,tag:t,tagStr:i}}function cGe(r,e,t){let n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;let a=n&127;if(a>4)return r.error("length octect is too long");n=0;for(let i=0;i{"use strict";d();p();var DUt=xr(),LUt=Zoe().Buffer,V5e=G5e();function Y5e(r){V5e.call(this,r),this.enc="pem"}DUt(Y5e,V5e);lGe.exports=Y5e;Y5e.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,o=-1;for(let l=0;l{"use strict";d();p();var pGe=hGe;pGe.der=G5e();pGe.pem=dGe()});var mGe=_(fGe=>{"use strict";d();p();var OUt=z5e(),qUt=$5e(),FUt=xr(),WUt=fGe;WUt.define=function(e,t){return new D3(e,t)};function D3(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}D3.prototype._createNamed=function(e){let t=this.name;function n(a){this._initNamed(a,t)}return FUt(n,e),n.prototype._initNamed=function(i,s){e.call(this,i,s)},new n(this)};D3.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(qUt[e])),this.decoders[e]};D3.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};D3.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(OUt[e])),this.encoders[e]};D3.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var gGe=_(yGe=>{"use strict";d();p();var nce=yGe;nce.Reporter=Xoe().Reporter;nce.DecoderBuffer=B3().DecoderBuffer;nce.EncoderBuffer=B3().EncoderBuffer;nce.Node=tce()});var wGe=_(vGe=>{"use strict";d();p();var bGe=vGe;bGe._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let a=e[n];t[a]=n}),t};bGe.der=rce()});var Q5e=_(xGe=>{"use strict";d();p();var L3=xGe;L3.bignum=co();L3.define=mGe().define;L3.base=gGe();L3.constants=wGe();L3.decoders=$5e();L3.encoders=z5e()});var EGe=_((OPn,IGe)=>{"use strict";d();p();var uh=Q5e(),_Ge=uh.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),UUt=uh.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),J5e=uh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),HUt=uh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(J5e),this.key("subjectPublicKey").bitstr())}),jUt=uh.define("RelativeDistinguishedName",function(){this.setof(UUt)}),zUt=uh.define("RDNSequence",function(){this.seqof(jUt)}),TGe=uh.define("Name",function(){this.choice({rdnSequence:this.use(zUt)})}),KUt=uh.define("Validity",function(){this.seq().obj(this.key("notBefore").use(_Ge),this.key("notAfter").use(_Ge))}),GUt=uh.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),VUt=uh.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(J5e),this.key("issuer").use(TGe),this.key("validity").use(KUt),this.key("subject").use(TGe),this.key("subjectPublicKeyInfo").use(HUt),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(GUt).optional())}),YUt=uh.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(VUt),this.key("signatureAlgorithm").use(J5e),this.key("signatureValue").bitstr())});IGe.exports=YUt});var kGe=_(dh=>{"use strict";d();p();var lh=Q5e();dh.certificate=EGe();var $Ut=lh.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});dh.RSAPrivateKey=$Ut;var QUt=lh.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});dh.RSAPublicKey=QUt;var JUt=lh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(CGe),this.key("subjectPublicKey").bitstr())});dh.PublicKey=JUt;var CGe=lh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),ZUt=lh.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(CGe),this.key("subjectPrivateKey").octstr())});dh.PrivateKey=ZUt;var XUt=lh.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});dh.EncryptedPrivateKey=XUt;var eHt=lh.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});dh.DSAPrivateKey=eHt;dh.DSAparam=lh.define("DSAparam",function(){this.int()});var tHt=lh.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(rHt),this.key("publicKey").optional().explicit(1).bitstr())});dh.ECPrivateKey=tHt;var rHt=lh.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});dh.signature=lh.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var AGe=_((jPn,nHt)=>{nHt.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var SGe=_((zPn,PGe)=>{d();p();var aHt=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,iHt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,sHt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,oHt=jJ(),cHt=Goe(),ace=Ir().Buffer;PGe.exports=function(r,e){var t=r.toString(),n=t.match(aHt),a;if(n){var s="aes"+n[1],o=ace.from(n[2],"hex"),c=ace.from(n[3].replace(/[\r\n]/g,""),"base64"),u=oHt(e,o.slice(0,8),parseInt(n[1],10)).key,l=[],h=cHt.createDecipheriv(s,u,o);l.push(h.update(c)),l.push(h.final()),a=ace.concat(l)}else{var i=t.match(sHt);a=ace.from(i[2].replace(/[\r\n]/g,""),"base64")}var f=t.match(iHt)[1];return{tag:f,data:a}}});var GJ=_((VPn,MGe)=>{d();p();var ll=kGe(),uHt=AGe(),lHt=SGe(),dHt=Goe(),pHt=p5e(),Z5e=Ir().Buffer;MGe.exports=RGe;function RGe(r){var e;typeof r=="object"&&!Z5e.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=Z5e.from(r));var t=lHt(r,e),n=t.tag,a=t.data,i,s;switch(n){case"CERTIFICATE":s=ll.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=ll.PublicKey.decode(a,"der")),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return ll.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=ll.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":a=ll.EncryptedPrivateKey.decode(a,"der"),a=hHt(a,e);case"PRIVATE KEY":switch(s=ll.PrivateKey.decode(a,"der"),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return ll.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:ll.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=ll.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return ll.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return ll.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:ll.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=ll.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+n)}}RGe.signature=ll.signature;function hHt(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=uHt[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,o=parseInt(a.split("-")[1],10)/8,c=pHt.pbkdf2Sync(e,t,n,o,"sha1"),u=dHt.createDecipheriv(a,c,i),l=[];return l.push(u.update(s)),l.push(u.final()),Z5e.concat(l)}});var X5e=_((QPn,fHt)=>{fHt.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var DGe=_((JPn,sce)=>{d();p();var Zc=Ir().Buffer,Db=r5e(),mHt=Qoe(),yHt=VJ().ec,ice=Cr(),gHt=GJ(),bHt=X5e();function vHt(r,e,t,n,a){var i=gHt(e);if(i.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return wHt(r,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return xHt(r,i,t)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");r=Zc.concat([a,r]);for(var s=i.modulus.byteLength(),o=[0,1];r.length+o.length+10&&t.ishrn(n),t}function THt(r,e){r=e3e(r,e),r=r.mod(e);var t=Zc.from(r.toArray());if(t.length{d();p();var t3e=Ir().Buffer,YJ=Cr(),EHt=VJ().ec,OGe=GJ(),CHt=X5e();function kHt(r,e,t,n,a){var i=OGe(t);if(i.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return AHt(r,e,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return PHt(r,e,i)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=t3e.concat([a,e]);for(var s=i.modulus.byteLength(),o=[1],c=0;e.length+o.length+2=e)throw new Error("invalid sig")}qGe.exports=kHt});var KGe=_((nSn,zGe)=>{d();p();var oce=Ir().Buffer,HGe=x3(),cce=IJ(),jGe=xr(),SHt=DGe(),RHt=FGe(),Lb=n5e();Object.keys(Lb).forEach(function(r){Lb[r].id=oce.from(Lb[r].id,"hex"),Lb[r.toLowerCase()]=Lb[r]});function $J(r){cce.Writable.call(this);var e=Lb[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=HGe(e.hash),this._tag=e.id,this._signType=e.sign}jGe($J,cce.Writable);$J.prototype._write=function(e,t,n){this._hash.update(e),n()};$J.prototype.update=function(e,t){return typeof e=="string"&&(e=oce.from(e,t)),this._hash.update(e),this};$J.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),a=SHt(n,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function QJ(r){cce.Writable.call(this);var e=Lb[r];if(!e)throw new Error("Unknown message digest");this._hash=HGe(e.hash),this._tag=e.id,this._signType=e.sign}jGe(QJ,cce.Writable);QJ.prototype._write=function(e,t,n){this._hash.update(e),n()};QJ.prototype.update=function(e,t){return typeof e=="string"&&(e=oce.from(e,t)),this._hash.update(e),this};QJ.prototype.verify=function(e,t,n){typeof t=="string"&&(t=oce.from(t,n)),this.end();var a=this._hash.digest();return RHt(t,a,e,this._signType,this._tag)};function WGe(r){return new $J(r)}function UGe(r){return new QJ(r)}zGe.exports={Sign:WGe,Verify:UGe,createSign:WGe,createVerify:UGe}});var VGe=_((sSn,GGe)=>{d();p();var MHt=VJ(),NHt=co();GGe.exports=function(e){return new Ob(e)};var Vl={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Vl.p224=Vl.secp224r1;Vl.p256=Vl.secp256r1=Vl.prime256v1;Vl.p192=Vl.secp192r1=Vl.prime192v1;Vl.p384=Vl.secp384r1;Vl.p521=Vl.secp521r1;function Ob(r){this.curveType=Vl[r],this.curveType||(this.curveType={name:r}),this.curve=new MHt.ec(this.curveType.name),this.keys=void 0}Ob.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Ob.prototype.computeSecret=function(r,e,t){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var n=this.curve.keyFromPublic(r).getPublic(),a=n.mul(this.keys.getPrivate()).getX();return r3e(a,t,this.curveType.byteLength)};Ob.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),r3e(t,r)};Ob.prototype.getPrivateKey=function(r){return r3e(this.keys.getPrivate(),r)};Ob.prototype.setPublicKey=function(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this.keys._importPublic(r),this};Ob.prototype.setPrivateKey=function(r,e){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var t=new NHt(r);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this};function r3e(r,e,t){Array.isArray(r)||(r=r.toArray());var n=new b.Buffer(r);if(t&&n.length{d();p();var BHt=x3(),n3e=Ir().Buffer;YGe.exports=function(r,e){for(var t=n3e.alloc(0),n=0,a;t.length{d();p();$Ge.exports=function(e,t){for(var n=e.length,a=-1;++a{d();p();var QGe=co(),LHt=Ir().Buffer;function OHt(r,e){return LHt.from(r.toRed(QGe.mont(e.modulus)).redPow(new QGe(e.publicExponent)).fromRed().toArray())}JGe.exports=OHt});var tVe=_((bSn,eVe)=>{d();p();var qHt=GJ(),o3e=hb(),FHt=x3(),ZGe=a3e(),XGe=i3e(),c3e=co(),WHt=s3e(),UHt=Qoe(),ph=Ir().Buffer;eVe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=qHt(e),s;if(a===4)s=HHt(i,t);else if(a===1)s=jHt(i,t,n);else if(a===3){if(s=new c3e(t),s.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?UHt(s,i):WHt(s,i)};function HHt(r,e){var t=r.modulus.byteLength(),n=e.length,a=FHt("sha1").update(ph.alloc(0)).digest(),i=a.length,s=2*i;if(n>t-s-2)throw new Error("message too long");var o=ph.alloc(t-n-s-2),c=t-i-1,u=o3e(i),l=XGe(ph.concat([a,o,ph.alloc(1,1),e],c),ZGe(u,c)),h=XGe(u,ZGe(l,i));return new c3e(ph.concat([ph.alloc(1),h,l],t))}function jHt(r,e,t){var n=e.length,a=r.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return t?i=ph.alloc(a-n-3,255):i=zHt(a-n-3),new c3e(ph.concat([ph.from([0,t?1:2]),i,ph.alloc(1),e],a))}function zHt(r){for(var e=ph.allocUnsafe(r),t=0,n=o3e(r*2),a=0,i;t{d();p();var KHt=GJ(),rVe=a3e(),nVe=i3e(),aVe=co(),GHt=Qoe(),VHt=x3(),YHt=s3e(),JJ=Ir().Buffer;iVe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=KHt(e),s=i.modulus.byteLength();if(t.length>s||new aVe(t).cmp(i.modulus)>=0)throw new Error("decryption error");var o;n?o=YHt(new aVe(t),i):o=GHt(t,i);var c=JJ.alloc(s-o.length);if(o=JJ.concat([c,o],s),a===4)return $Ht(i,o);if(a===1)return QHt(i,o,n);if(a===3)return o;throw new Error("unknown padding")};function $Ht(r,e){var t=r.modulus.byteLength(),n=VHt("sha1").update(JJ.alloc(0)).digest(),a=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,a+1),s=e.slice(a+1),o=nVe(i,rVe(s,a)),c=nVe(s,rVe(o,t-a-1));if(JHt(n,c.slice(0,a)))throw new Error("decryption error");for(var u=a;c[u]===0;)u++;if(c[u++]!==1)throw new Error("decryption error");return c.slice(u)}function QHt(r,e,t){for(var n=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var s=e.slice(2,a-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&i++,s.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function JHt(r,e){r=JJ.from(r),e=JJ.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var a=-1;++a{d();p();qb.publicEncrypt=tVe();qb.privateDecrypt=sVe();qb.privateEncrypt=function(e,t){return qb.publicEncrypt(e,t,!0)};qb.publicDecrypt=function(e,t){return qb.privateDecrypt(e,t,!0)}});var gVe=_(ZJ=>{"use strict";d();p();function cVe(){throw new Error(`secure random number generation not supported by this browser -use chrome, FireFox or Internet Explorer 11`)}var lVe=Ir(),uVe=hb(),dVe=lVe.Buffer,pVe=lVe.kMaxLength,u3e=global.crypto||global.msCrypto,hVe=Math.pow(2,32)-1;function fVe(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>hVe||r<0)throw new TypeError("offset must be a uint32");if(r>pVe||r>e)throw new RangeError("offset out of range")}function mVe(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>hVe||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>pVe)throw new RangeError("buffer too small")}u3e&&u3e.getRandomValues||!g.browser?(ZJ.randomFill=ZHt,ZJ.randomFillSync=XHt):(ZJ.randomFill=cVe,ZJ.randomFillSync=cVe);function ZHt(r,e,t,n){if(!dVe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,t=r.length;else if(typeof t=="function")n=t,t=r.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return fVe(e,r.length),mVe(t,e,r.length),yVe(r,e,t,n)}function yVe(r,e,t,n){if(g.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(u3e.getRandomValues(i),n){g.nextTick(function(){n(null,r)});return}return r}if(n){uVe(t,function(o,c){if(o)return n(o);c.copy(r,e),n(null,r)});return}var s=uVe(t);return s.copy(r,e),r}function XHt(r,e,t){if(typeof e>"u"&&(e=0),!dVe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return fVe(e,r.length),t===void 0&&(t=r.length-e),mVe(t,e,r.length),yVe(r,e,t)}});var l3e=_(Er=>{"use strict";d();p();Er.randomBytes=Er.rng=Er.pseudoRandomBytes=Er.prng=hb();Er.createHash=Er.Hash=x3();Er.createHmac=Er.Hmac=r5e();var ejt=lze(),tjt=Object.keys(ejt),rjt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(tjt);Er.getHashes=function(){return rjt};var bVe=p5e();Er.pbkdf2=bVe.pbkdf2;Er.pbkdf2Sync=bVe.pbkdf2Sync;var Cf=SKe();Er.Cipher=Cf.Cipher;Er.createCipher=Cf.createCipher;Er.Cipheriv=Cf.Cipheriv;Er.createCipheriv=Cf.createCipheriv;Er.Decipher=Cf.Decipher;Er.createDecipher=Cf.createDecipher;Er.Decipheriv=Cf.Decipheriv;Er.createDecipheriv=Cf.createDecipheriv;Er.getCiphers=Cf.getCiphers;Er.listCiphers=Cf.listCiphers;var XJ=HKe();Er.DiffieHellmanGroup=XJ.DiffieHellmanGroup;Er.createDiffieHellmanGroup=XJ.createDiffieHellmanGroup;Er.getDiffieHellman=XJ.getDiffieHellman;Er.createDiffieHellman=XJ.createDiffieHellman;Er.DiffieHellman=XJ.DiffieHellman;var uce=KGe();Er.createSign=uce.createSign;Er.Sign=uce.Sign;Er.createVerify=uce.createVerify;Er.Verify=uce.Verify;Er.createECDH=VGe();var lce=oVe();Er.publicEncrypt=lce.publicEncrypt;Er.privateEncrypt=lce.privateEncrypt;Er.publicDecrypt=lce.publicDecrypt;Er.privateDecrypt=lce.privateDecrypt;var vVe=gVe();Er.randomFill=vVe.randomFill;Er.randomFillSync=vVe.randomFillSync;Er.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))};Er.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var Voe=_((NSn,h3e)=>{d();p();var d3e;h3e.exports=function(e){return d3e||(d3e=new qy(null)),d3e.generate(e)};function qy(r){this.rand=r}h3e.exports.Rand=qy;qy.prototype.generate=function(e){return this._rand(e)};qy.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();var Fb=co(),eZ=Kl(),dce=eZ.getNAF,njt=eZ.getJSF,pce=eZ.assert;function Fy(r,e){this.type=r,this.p=new Fb(e.p,16),this.red=e.prime?Fb.red(e.prime):Fb.mont(this.p),this.zero=new Fb(0).toRed(this.red),this.one=new Fb(1).toRed(this.red),this.two=new Fb(2).toRed(this.red),this.n=e.n&&new Fb(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}wVe.exports=Fy;Fy.prototype.point=function(){throw new Error("Not implemented")};Fy.prototype.validate=function(){throw new Error("Not implemented")};Fy.prototype._fixedNafMul=function(e,t){pce(e.precomputed);var n=e._getDoubles(),a=dce(t,1,this._bitLength),i=(1<=o;u--)c=(c<<1)+a[u];s.push(c)}for(var l=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;c--){for(var u=0;c>=0&&s[c]===0;c--)u++;if(c>=0&&u++,o=o.dblp(u),c<0)break;var l=s[c];pce(l!==0),e.type==="affine"?l>0?o=o.mixedAdd(i[l-1>>1]):o=o.mixedAdd(i[-l-1>>1].neg()):l>0?o=o.add(i[l-1>>1]):o=o.add(i[-l-1>>1].neg())}return e.type==="affine"?o.toP():o};Fy.prototype._wnafMulAdd=function(e,t,n,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,u=0,l,h,f;for(l=0;l=1;l-=2){var y=l-1,I=l;if(s[y]!==1||s[I]!==1){c[y]=dce(n[y],s[y],this._bitLength),c[I]=dce(n[I],s[I],this._bitLength),u=Math.max(c[y].length,u),u=Math.max(c[I].length,u);continue}var C=[t[y],null,null,t[I]];t[y].y.cmp(t[I].y)===0?(C[1]=t[y].add(t[I]),C[2]=t[y].toJ().mixedAdd(t[I].neg())):t[y].y.cmp(t[I].y.redNeg())===0?(C[1]=t[y].toJ().mixedAdd(t[I]),C[2]=t[y].add(t[I].neg())):(C[1]=t[y].toJ().mixedAdd(t[I]),C[2]=t[y].toJ().mixedAdd(t[I].neg()));var R=[-3,-1,-5,-7,0,7,5,1,3],L=njt(n[y],n[I]);for(u=Math.max(L[0].length,u),c[y]=new Array(u),c[I]=new Array(u),h=0;h=0;l--){for(var H=0;l>=0;){var G=!0;for(h=0;h=0&&H++,V=V.dblp(H),l<0)break;for(h=0;h0?f=o[h][Q-1>>1]:Q<0&&(f=o[h][-Q-1>>1].neg()),f.type==="affine"?V=V.mixedAdd(f):V=V.add(f))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step):!1};Vd.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i{"use strict";d();p();var ajt=Kl(),as=co(),f3e=xr(),O3=tZ(),ijt=ajt.assert;function Yd(r){O3.call(this,"short",r),this.a=new as(r.a,16).toRed(this.red),this.b=new as(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}f3e(Yd,O3);xVe.exports=Yd;Yd.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new as(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)n=new as(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?n=i[0]:(n=i[1],ijt(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var s;return e.basis?s=e.basis.map(function(o){return{a:new as(o.a,16),b:new as(o.b,16)}}):s=this._getEndoBasis(n),{beta:t,lambda:n,basis:s}}};Yd.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:as.mont(e),n=new as(2).toRed(t).redInvm(),a=n.redNeg(),i=new as(3).toRed(t).redNeg().redSqrt().redMul(n),s=a.redAdd(i).fromRed(),o=a.redSub(i).fromRed();return[s,o]};Yd.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,a=this.n.clone(),i=new as(1),s=new as(0),o=new as(0),c=new as(1),u,l,h,f,m,y,I,C=0,R,L;n.cmpn(0)!==0;){var F=a.div(n);R=a.sub(F.mul(n)),L=o.sub(F.mul(i));var W=c.sub(F.mul(s));if(!h&&R.cmp(t)<0)u=I.neg(),l=i,h=R.neg(),f=L;else if(h&&++C===2)break;I=R,a=n,n=R,o=i,i=L,c=s,s=W}m=R.neg(),y=L;var V=h.sqr().add(f.sqr()),K=m.sqr().add(y.sqr());return K.cmp(V)>=0&&(m=u,y=l),h.negative&&(h=h.neg(),f=f.neg()),m.negative&&(m=m.neg(),y=y.neg()),[{a:h,b:f},{a:m,b:y}]};Yd.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),c=s.mul(a.a),u=i.mul(n.b),l=s.mul(a.b),h=e.sub(o).sub(c),f=u.add(l).neg();return{k1:h,k2:f}};Yd.prototype.pointFromX=function(e,t){e=new as(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};Yd.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};Yd.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Bo.prototype.isInfinity=function(){return this.inf};Bo.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Bo.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};Bo.prototype.getX=function(){return this.x.fromRed()};Bo.prototype.getY=function(){return this.y.fromRed()};Bo.prototype.mul=function(e){return e=new as(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)};Bo.prototype.mulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Bo.prototype.jmulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Bo.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Bo.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t};Bo.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function fc(r,e,t,n){O3.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new as(0)):(this.x=new as(e,16),this.y=new as(t,16),this.z=new as(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}f3e(fc,O3.BasePoint);Yd.prototype.jpoint=function(e,t,n){return new fc(this,e,t,n)};fc.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)};fc.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};fc.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),c=a.redSub(i),u=s.redSub(o);if(c.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),h=l.redMul(c),f=a.redMul(l),m=u.redSqr().redIAdd(h).redISub(f).redISub(f),y=u.redMul(f.redISub(m)).redISub(s.redMul(h)),I=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(m,y,I)};fc.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=n.redSub(a),c=i.redSub(s);if(o.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),h=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(h).redISub(h),m=c.redMul(h.redISub(f)).redISub(i.redMul(l)),y=this.z.redMul(o);return this.curve.jpoint(f,m,y)};fc.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};fc.prototype.inspect=function(){return this.isInfinity()?"":""};fc.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var EVe=_((HSn,IVe)=>{"use strict";d();p();var q3=co(),TVe=xr(),hce=tZ(),sjt=Kl();function F3(r){hce.call(this,"mont",r),this.a=new q3(r.a,16).toRed(this.red),this.b=new q3(r.b,16).toRed(this.red),this.i4=new q3(4).toRed(this.red).redInvm(),this.two=new q3(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}TVe(F3,hce);IVe.exports=F3;F3.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),a=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Do(r,e,t){hce.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new q3(e,16),this.z=new q3(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}TVe(Do,hce.BasePoint);F3.prototype.decodePoint=function(e,t){return this.point(sjt.toArray(e,t),1)};F3.prototype.point=function(e,t){return new Do(this,e,t)};F3.prototype.pointFromJSON=function(e){return Do.fromJSON(this,e)};Do.prototype.precompute=function(){};Do.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Do.fromJSON=function(e,t){return new Do(e,t[0],t[1]||e.one)};Do.prototype.inspect=function(){return this.isInfinity()?"":""};Do.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Do.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=t.redSub(a),s=t.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};Do.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z),o=s.redMul(n),c=i.redMul(a),u=t.z.redMul(o.redAdd(c).redSqr()),l=t.x.redMul(o.redISub(c).redSqr());return this.curve.point(u,l)};Do.prototype.mul=function(e){for(var t=e.clone(),n=this,a=this.curve.point(null,null),i=this,s=[];t.cmpn(0)!==0;t.iushrn(1))s.push(t.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};Do.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Do.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Do.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var AVe=_((KSn,kVe)=>{"use strict";d();p();var ojt=Kl(),s0=co(),CVe=xr(),fce=tZ(),cjt=ojt.assert;function kf(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,fce.call(this,"edwards",r),this.a=new s0(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new s0(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new s0(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),cjt(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}CVe(kf,fce);kVe.exports=kf;kf.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};kf.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};kf.prototype.jpoint=function(e,t,n,a){return this.point(e,t,n,a)};kf.prototype.pointFromX=function(e,t){e=new s0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=a.redMul(i.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)};kf.prototype.pointFromY=function(e,t){e=new s0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)};kf.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),a=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return a.cmp(i)===0};function Ja(r,e,t,n,a){fce.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new s0(e,16),this.y=new s0(t,16),this.z=n?new s0(n,16):this.curve.one,this.t=a&&new s0(a,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()))))}CVe(Ja,fce.BasePoint);kf.prototype.pointFromJSON=function(e){return Ja.fromJSON(this,e)};kf.prototype.point=function(e,t,n,a){return new Ja(this,e,t,n,a)};Ja.fromJSON=function(e,t){return new Ja(e,t[0],t[1],t[2])};Ja.prototype.inspect=function(){return this.isInfinity()?"":""};Ja.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Ja.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=a.redAdd(t),o=s.redSub(n),c=a.redSub(t),u=i.redMul(o),l=s.redMul(c),h=i.redMul(c),f=o.redMul(s);return this.curve.point(u,l,f,h)};Ja.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),a,i,s,o,c,u;if(this.curve.twisted){o=this.curve._mulA(t);var l=o.redAdd(n);this.zOne?(a=e.redSub(t).redSub(n).redMul(l.redSub(this.curve.two)),i=l.redMul(o.redSub(n)),s=l.redSqr().redSub(l).redSub(l)):(c=this.z.redSqr(),u=l.redSub(c).redISub(c),a=e.redSub(t).redISub(n).redMul(u),i=l.redMul(o.redSub(n)),s=l.redMul(u))}else o=t.redAdd(n),c=this.curve._mulC(this.z).redSqr(),u=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(u),i=this.curve._mulC(o).redMul(t.redISub(n)),s=o.redMul(u);return this.curve.point(a,i,s)};Ja.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Ja.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),o=i.redSub(a),c=i.redAdd(a),u=n.redAdd(t),l=s.redMul(o),h=c.redMul(u),f=s.redMul(u),m=o.redMul(c);return this.curve.point(l,h,m,f)};Ja.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=n.redSub(s),c=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),l=t.redMul(o).redMul(u),h,f;return this.curve.twisted?(h=t.redMul(c).redMul(i.redSub(this.curve._mulA(a))),f=o.redMul(c)):(h=t.redMul(c).redMul(i.redSub(a)),f=this.curve._mulC(o).redMul(c)),this.curve.point(l,h,f)};Ja.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};Ja.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};Ja.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};Ja.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};Ja.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};Ja.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Ja.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Ja.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Ja.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};Ja.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};Ja.prototype.toP=Ja.prototype.normalize;Ja.prototype.mixedAdd=Ja.prototype.add});var m3e=_(PVe=>{"use strict";d();p();var mce=PVe;mce.base=tZ();mce.short=_Ve();mce.mont=EVe();mce.edwards=AVe()});var hh=_(Ka=>{"use strict";d();p();var ujt=zl(),ljt=xr();Ka.inherits=ljt;function djt(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function pjt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a>6|192,t[n++]=i&63|128):djt(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}else for(a=0;a>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}Ka.htonl=SVe;function fjt(r,e){for(var t="",n=0;n>>0}return i}Ka.join32=mjt;function yjt(r,e){for(var t=new Array(r.length*4),n=0,a=0;n>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}Ka.split32=yjt;function gjt(r,e){return r>>>e|r<<32-e}Ka.rotr32=gjt;function bjt(r,e){return r<>>32-e}Ka.rotl32=bjt;function vjt(r,e){return r+e>>>0}Ka.sum32=vjt;function wjt(r,e,t){return r+e+t>>>0}Ka.sum32_3=wjt;function xjt(r,e,t,n){return r+e+t+n>>>0}Ka.sum32_4=xjt;function _jt(r,e,t,n,a){return r+e+t+n+a>>>0}Ka.sum32_5=_jt;function Tjt(r,e,t,n){var a=r[e],i=r[e+1],s=n+i>>>0,o=(s>>0,r[e+1]=s}Ka.sum64=Tjt;function Ijt(r,e,t,n){var a=e+n>>>0,i=(a>>0}Ka.sum64_hi=Ijt;function Ejt(r,e,t,n){var a=e+n;return a>>>0}Ka.sum64_lo=Ejt;function Cjt(r,e,t,n,a,i,s,o){var c=0,u=e;u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}Ka.sum64_4_hi=Cjt;function kjt(r,e,t,n,a,i,s,o){var c=e+n+i+o;return c>>>0}Ka.sum64_4_lo=kjt;function Ajt(r,e,t,n,a,i,s,o,c,u){var l=0,h=e;h=h+n>>>0,l+=h>>0,l+=h>>0,l+=h>>0,l+=h>>0}Ka.sum64_5_hi=Ajt;function Pjt(r,e,t,n,a,i,s,o,c,u){var l=e+n+i+o+u;return l>>>0}Ka.sum64_5_lo=Pjt;function Sjt(r,e,t){var n=e<<32-t|r>>>t;return n>>>0}Ka.rotr64_hi=Sjt;function Rjt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ka.rotr64_lo=Rjt;function Mjt(r,e,t){return r>>>t}Ka.shr64_hi=Mjt;function Njt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ka.shr64_lo=Njt});var W3=_(BVe=>{"use strict";d();p();var NVe=hh(),Bjt=zl();function yce(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}BVe.BlockHash=yce;yce.prototype.update=function(e,t){if(e=NVe.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=NVe.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,s=8;s{"use strict";d();p();var Djt=hh(),Af=Djt.rotr32;function Ljt(r,e,t,n){if(r===0)return DVe(e,t,n);if(r===1||r===3)return OVe(e,t,n);if(r===2)return LVe(e,t,n)}o0.ft_1=Ljt;function DVe(r,e,t){return r&e^~r&t}o0.ch32=DVe;function LVe(r,e,t){return r&e^r&t^e&t}o0.maj32=LVe;function OVe(r,e,t){return r^e^t}o0.p32=OVe;function Ojt(r){return Af(r,2)^Af(r,13)^Af(r,22)}o0.s0_256=Ojt;function qjt(r){return Af(r,6)^Af(r,11)^Af(r,25)}o0.s1_256=qjt;function Fjt(r){return Af(r,7)^Af(r,18)^r>>>3}o0.g0_256=Fjt;function Wjt(r){return Af(r,17)^Af(r,19)^r>>>10}o0.g1_256=Wjt});var WVe=_((s7n,FVe)=>{"use strict";d();p();var U3=hh(),Ujt=W3(),Hjt=y3e(),g3e=U3.rotl32,rZ=U3.sum32,jjt=U3.sum32_5,zjt=Hjt.ft_1,qVe=Ujt.BlockHash,Kjt=[1518500249,1859775393,2400959708,3395469782];function Pf(){if(!(this instanceof Pf))return new Pf;qVe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}U3.inherits(Pf,qVe);FVe.exports=Pf;Pf.blockSize=512;Pf.outSize=160;Pf.hmacStrength=80;Pf.padLength=64;Pf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var H3=hh(),Gjt=W3(),j3=y3e(),Vjt=zl(),fh=H3.sum32,Yjt=H3.sum32_4,$jt=H3.sum32_5,Qjt=j3.ch32,Jjt=j3.maj32,Zjt=j3.s0_256,Xjt=j3.s1_256,ezt=j3.g0_256,tzt=j3.g1_256,UVe=Gjt.BlockHash,rzt=[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 Sf(){if(!(this instanceof Sf))return new Sf;UVe.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=rzt,this.W=new Array(64)}H3.inherits(Sf,UVe);HVe.exports=Sf;Sf.blockSize=512;Sf.outSize=256;Sf.hmacStrength=192;Sf.padLength=64;Sf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var v3e=hh(),jVe=b3e();function c0(){if(!(this instanceof c0))return new c0;jVe.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}v3e.inherits(c0,jVe);zVe.exports=c0;c0.blockSize=512;c0.outSize=224;c0.hmacStrength=192;c0.padLength=64;c0.prototype._digest=function(e){return e==="hex"?v3e.toHex32(this.h.slice(0,7),"big"):v3e.split32(this.h.slice(0,7),"big")}});var _3e=_((m7n,$Ve)=>{"use strict";d();p();var dl=hh(),nzt=W3(),azt=zl(),Rf=dl.rotr64_hi,Mf=dl.rotr64_lo,GVe=dl.shr64_hi,VVe=dl.shr64_lo,Wy=dl.sum64,w3e=dl.sum64_hi,x3e=dl.sum64_lo,izt=dl.sum64_4_hi,szt=dl.sum64_4_lo,ozt=dl.sum64_5_hi,czt=dl.sum64_5_lo,YVe=nzt.BlockHash,uzt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function mh(){if(!(this instanceof mh))return new mh;YVe.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=uzt,this.W=new Array(160)}dl.inherits(mh,YVe);$Ve.exports=mh;mh.blockSize=1024;mh.outSize=512;mh.hmacStrength=192;mh.padLength=128;mh.prototype._prepareBlock=function(e,t){for(var n=this.W,a=0;a<32;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var T3e=hh(),QVe=_3e();function u0(){if(!(this instanceof u0))return new u0;QVe.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}T3e.inherits(u0,QVe);JVe.exports=u0;u0.blockSize=1024;u0.outSize=384;u0.hmacStrength=192;u0.padLength=128;u0.prototype._digest=function(e){return e==="hex"?T3e.toHex32(this.h.slice(0,12),"big"):T3e.split32(this.h.slice(0,12),"big")}});var XVe=_(z3=>{"use strict";d();p();z3.sha1=WVe();z3.sha224=KVe();z3.sha256=b3e();z3.sha384=ZVe();z3.sha512=_3e()});var iYe=_(aYe=>{"use strict";d();p();var Wb=hh(),_zt=W3(),gce=Wb.rotl32,eYe=Wb.sum32,nZ=Wb.sum32_3,tYe=Wb.sum32_4,nYe=_zt.BlockHash;function Nf(){if(!(this instanceof Nf))return new Nf;nYe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Wb.inherits(Nf,nYe);aYe.ripemd160=Nf;Nf.blockSize=512;Nf.outSize=160;Nf.hmacStrength=192;Nf.padLength=64;Nf.prototype._update=function(e,t){for(var n=this.h[0],a=this.h[1],i=this.h[2],s=this.h[3],o=this.h[4],c=n,u=a,l=i,h=s,f=o,m=0;m<80;m++){var y=eYe(gce(tYe(n,rYe(m,a,i,s),e[Ezt[m]+t],Tzt(m)),kzt[m]),o);n=o,o=s,s=gce(i,10),i=a,a=y,y=eYe(gce(tYe(c,rYe(79-m,u,l,h),e[Czt[m]+t],Izt(m)),Azt[m]),f),c=f,f=h,h=gce(l,10),l=u,u=y}y=nZ(this.h[1],i,h),this.h[1]=nZ(this.h[2],s,f),this.h[2]=nZ(this.h[3],o,c),this.h[3]=nZ(this.h[4],n,u),this.h[4]=nZ(this.h[0],a,l),this.h[0]=y};Nf.prototype._digest=function(e){return e==="hex"?Wb.toHex32(this.h,"little"):Wb.split32(this.h,"little")};function rYe(r,e,t,n){return r<=15?e^t^n:r<=31?e&t|~e&n:r<=47?(e|~t)^n:r<=63?e&n|t&~n:e^(t|~n)}function Tzt(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function Izt(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var Ezt=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Czt=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],kzt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Azt=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var oYe=_((k7n,sYe)=>{"use strict";d();p();var Pzt=hh(),Szt=zl();function K3(r,e,t){if(!(this instanceof K3))return new K3(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(Pzt.toArray(e,t))}sYe.exports=K3;K3.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),Szt(e.length<=this.blockSize);for(var t=e.length;t{d();p();var mc=cYe;mc.utils=hh();mc.common=W3();mc.sha=XVe();mc.ripemd=iYe();mc.hmac=oYe();mc.sha1=mc.sha.sha1;mc.sha256=mc.sha.sha256;mc.sha224=mc.sha.sha224;mc.sha384=mc.sha.sha384;mc.sha512=mc.sha.sha512;mc.ripemd160=mc.ripemd.ripemd160});var lYe=_((N7n,uYe)=>{d();p();uYe.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var bce=_(hYe=>{"use strict";d();p();var E3e=hYe,Uy=aZ(),I3e=m3e(),Rzt=Kl(),dYe=Rzt.assert;function pYe(r){r.type==="short"?this.curve=new I3e.short(r):r.type==="edwards"?this.curve=new I3e.edwards(r):this.curve=new I3e.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,dYe(this.g.validate(),"Invalid curve"),dYe(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}E3e.PresetCurve=pYe;function Hy(r,e){Object.defineProperty(E3e,r,{configurable:!0,enumerable:!0,get:function(){var t=new pYe(e);return Object.defineProperty(E3e,r,{configurable:!0,enumerable:!0,value:t}),t}})}Hy("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:Uy.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});Hy("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:Uy.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});Hy("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:Uy.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});Hy("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:Uy.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"]});Hy("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:Uy.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"]});Hy("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Uy.sha256,gRed:!1,g:["9"]});Hy("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:Uy.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var C3e;try{C3e=lYe()}catch{C3e=void 0}Hy("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:Uy.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",C3e]})});var yYe=_((F7n,mYe)=>{"use strict";d();p();var Mzt=aZ(),Ub=j2e(),fYe=zl();function jy(r){if(!(this instanceof jy))return new jy(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ub.toArray(r.entropy,r.entropyEnc||"hex"),t=Ub.toArray(r.nonce,r.nonceEnc||"hex"),n=Ub.toArray(r.pers,r.persEnc||"hex");fYe(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,n)}mYe.exports=jy;jy.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};jy.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=n,n=t,t=null),n&&(n=Ub.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length{"use strict";d();p();var Nzt=co(),Bzt=Kl(),k3e=Bzt.assert;function Xc(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}gYe.exports=Xc;Xc.fromPublic=function(e,t,n){return t instanceof Xc?t:new Xc(e,{pub:t,pubEnc:n})};Xc.fromPrivate=function(e,t,n){return t instanceof Xc?t:new Xc(e,{priv:t,privEnc:n})};Xc.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"}};Xc.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Xc.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Xc.prototype._importPrivate=function(e,t){this.priv=new Nzt(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Xc.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?k3e(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&k3e(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)};Xc.prototype.derive=function(e){return e.validate()||k3e(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Xc.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Xc.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Xc.prototype.inspect=function(){return""}});var xYe=_((K7n,wYe)=>{"use strict";d();p();var vce=co(),S3e=Kl(),Dzt=S3e.assert;function wce(r,e){if(r instanceof wce)return r;this._importDER(r,e)||(Dzt(r.r&&r.s,"Signature without r or s"),this.r=new vce(r.r,16),this.s=new vce(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}wYe.exports=wce;function Lzt(){this.place=0}function A3e(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function vYe(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}wce.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=vYe(t),n=vYe(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];P3e(a,t.length),a=a.concat(t),a.push(2),P3e(a,n.length);var i=a.concat(n),s=[48];return P3e(s,i.length),s=s.concat(i),S3e.encode(s,e)}});var EYe=_((Y7n,IYe)=>{"use strict";d();p();var Hb=co(),_Ye=yYe(),Ozt=Kl(),R3e=bce(),qzt=Voe(),TYe=Ozt.assert,M3e=bYe(),xce=xYe();function $d(r){if(!(this instanceof $d))return new $d(r);typeof r=="string"&&(TYe(Object.prototype.hasOwnProperty.call(R3e,r),"Unknown curve "+r),r=R3e[r]),r instanceof R3e.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}IYe.exports=$d;$d.prototype.keyPair=function(e){return new M3e(this,e)};$d.prototype.keyFromPrivate=function(e,t){return M3e.fromPrivate(this,e,t)};$d.prototype.keyFromPublic=function(e,t){return M3e.fromPublic(this,e,t)};$d.prototype.genKeyPair=function(e){e||(e={});for(var t=new _Ye({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||qzt(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new Hb(2));;){var i=new Hb(t.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};$d.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};$d.prototype.sign=function(e,t,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new Hb(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new _Ye({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new Hb(1)),l=0;;l++){var h=a.k?a.k(l):new Hb(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(u)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),y=m.umod(this.n);if(y.cmpn(0)!==0){var I=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(I=I.umod(this.n),I.cmpn(0)!==0){var C=(f.getY().isOdd()?1:0)|(m.cmp(y)!==0?2:0);return a.canonical&&I.cmp(this.nh)>0&&(I=this.n.sub(I),C^=1),new xce({r:y,s:I,recoveryParam:C})}}}}}};$d.prototype.verify=function(e,t,n,a){e=this._truncateToN(new Hb(e,16)),n=this.keyFromPublic(n,a),t=new xce(t,"hex");var i=t.r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),c=o.mul(e).umod(this.n),u=o.mul(i).umod(this.n),l;return this.curve._maxwellTrick?(l=this.g.jmulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.eqXToP(i)):(l=this.g.mulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.getX().umod(this.n).cmp(i)===0)};$d.prototype.recoverPubKey=function(r,e,t,n){TYe((3&t)===t,"The recovery param is more than two bits"),e=new xce(e,n);var a=this.n,i=new Hb(r),s=e.r,o=e.s,c=t&1,u=t>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");u?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var l=e.r.invm(a),h=a.sub(i).mul(l).umod(a),f=o.mul(l).umod(a);return this.g.mulAdd(h,s,f)};$d.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new xce(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var PYe=_((J7n,AYe)=>{"use strict";d();p();var iZ=Kl(),kYe=iZ.assert,CYe=iZ.parseBytes,G3=iZ.cachedProperty;function Lo(r,e){this.eddsa=r,this._secret=CYe(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=CYe(e.pub)}Lo.fromPublic=function(e,t){return t instanceof Lo?t:new Lo(e,{pub:t})};Lo.fromSecret=function(e,t){return t instanceof Lo?t:new Lo(e,{secret:t})};Lo.prototype.secret=function(){return this._secret};G3(Lo,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});G3(Lo,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});G3(Lo,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});G3(Lo,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});G3(Lo,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});G3(Lo,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Lo.prototype.sign=function(e){return kYe(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Lo.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};Lo.prototype.getSecret=function(e){return kYe(this._secret,"KeyPair is public only"),iZ.encode(this.secret(),e)};Lo.prototype.getPublic=function(e){return iZ.encode(this.pubBytes(),e)};AYe.exports=Lo});var RYe=_((eRn,SYe)=>{"use strict";d();p();var Fzt=co(),_ce=Kl(),Wzt=_ce.assert,Tce=_ce.cachedProperty,Uzt=_ce.parseBytes;function jb(r,e){this.eddsa=r,typeof e!="object"&&(e=Uzt(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),Wzt(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof Fzt&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Tce(jb,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Tce(jb,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Tce(jb,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Tce(jb,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});jb.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};jb.prototype.toHex=function(){return _ce.encode(this.toBytes(),"hex").toUpperCase()};SYe.exports=jb});var LYe=_((nRn,DYe)=>{"use strict";d();p();var Hzt=aZ(),jzt=bce(),V3=Kl(),zzt=V3.assert,NYe=V3.parseBytes,BYe=PYe(),MYe=RYe();function pl(r){if(zzt(r==="ed25519","only tested with ed25519 so far"),!(this instanceof pl))return new pl(r);r=jzt[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=Hzt.sha512}DYe.exports=pl;pl.prototype.sign=function(e,t){e=NYe(e);var n=this.keyFromSecret(t),a=this.hashInt(n.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};pl.prototype.verify=function(e,t,n){e=NYe(e),t=this.makeSignature(t);var a=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),s=this.g.mul(t.S()),o=t.R().add(a.pub().mul(i));return o.eq(s)};pl.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";d();p();var zb=OYe;zb.version=OWe().version;zb.utils=Kl();zb.rand=Voe();zb.curve=m3e();zb.curves=bce();zb.ec=EYe();zb.eddsa=LYe()});var qYe=_(Y3=>{"use strict";d();p();var Kzt=Y3&&Y3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Y3,"__esModule",{value:!0});Y3.EC=void 0;var Gzt=Kzt(VJ()),Vzt=Gzt.default.ec;Y3.EC=Vzt});var FYe=_(Ice=>{"use strict";d();p();Object.defineProperty(Ice,"__esModule",{value:!0});Ice.version=void 0;Ice.version="signing-key/5.7.0"});var oZ=_(zy=>{"use strict";d();p();Object.defineProperty(zy,"__esModule",{value:!0});zy.computePublicKey=zy.recoverPublicKey=zy.SigningKey=void 0;var Yzt=qYe(),Ws=wr(),sZ=Aa(),$zt=Zt(),Qzt=FYe(),B3e=new $zt.Logger(Qzt.version),N3e=null;function Bf(){return N3e||(N3e=new Yzt.EC("secp256k1")),N3e}var WYe=function(){function r(e){(0,sZ.defineReadOnly)(this,"curve","secp256k1"),(0,sZ.defineReadOnly)(this,"privateKey",(0,Ws.hexlify)(e)),(0,Ws.hexDataLength)(this.privateKey)!==32&&B3e.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey));(0,sZ.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,sZ.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,sZ.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=Bf().keyFromPublic((0,Ws.arrayify)(this.publicKey)),n=Bf().keyFromPublic((0,Ws.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey)),n=(0,Ws.arrayify)(e);n.length!==32&&B3e.throwArgumentError("bad digest length","digest",e);var a=t.sign(n,{canonical:!0});return(0,Ws.splitSignature)({recoveryParam:a.recoveryParam,r:(0,Ws.hexZeroPad)("0x"+a.r.toString(16),32),s:(0,Ws.hexZeroPad)("0x"+a.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey)),n=Bf().keyFromPublic((0,Ws.arrayify)(UYe(e)));return(0,Ws.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();zy.SigningKey=WYe;function Jzt(r,e){var t=(0,Ws.splitSignature)(e),n={r:(0,Ws.arrayify)(t.r),s:(0,Ws.arrayify)(t.s)};return"0x"+Bf().recoverPubKey((0,Ws.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}zy.recoverPublicKey=Jzt;function UYe(r,e){var t=(0,Ws.arrayify)(r);if(t.length===32){var n=new WYe(t);return e?"0x"+Bf().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,Ws.hexlify)(t):"0x"+Bf().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+Bf().keyFromPublic(t).getPublic(!0,"hex"):(0,Ws.hexlify)(t)}return B3e.throwArgumentError("invalid public or private key","key","[REDACTED]")}zy.computePublicKey=UYe});var HYe=_(Ece=>{"use strict";d();p();Object.defineProperty(Ece,"__esModule",{value:!0});Ece.version=void 0;Ece.version="transactions/5.7.0"});var l0=_(vs=>{"use strict";d();p();var Zzt=vs&&vs.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Xzt=vs&&vs.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),eKt=vs&&vs.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Zzt(e,r,t);return Xzt(e,r),e};Object.defineProperty(vs,"__esModule",{value:!0});vs.parse=vs.serialize=vs.accessListify=vs.recoverAddress=vs.computeAddress=vs.TransactionTypes=void 0;var cZ=Sd(),Kb=Ls(),Kr=wr(),tKt=ib(),$3=jl(),rKt=Aa(),Ky=eKt(ase()),jYe=oZ(),L3e=Zt(),nKt=HYe(),tu=new L3e.Logger(nKt.version),aKt;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(aKt=vs.TransactionTypes||(vs.TransactionTypes={}));function O3e(r){return r==="0x"?null:(0,cZ.getAddress)(r)}function eu(r){return r==="0x"?tKt.Zero:Kb.BigNumber.from(r)}var iKt=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],sKt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function zYe(r){var e=(0,jYe.computePublicKey)(r);return(0,cZ.getAddress)((0,Kr.hexDataSlice)((0,$3.keccak256)((0,Kr.hexDataSlice)(e,1)),12))}vs.computeAddress=zYe;function q3e(r,e){return zYe((0,jYe.recoverPublicKey)((0,Kr.arrayify)(r),e))}vs.recoverAddress=q3e;function Yl(r,e){var t=(0,Kr.stripZeros)(Kb.BigNumber.from(r).toHexString());return t.length>32&&tu.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function D3e(r,e){return{address:(0,cZ.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,Kr.hexDataLength)(t)!==32&&tu.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function Cce(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&tu.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),D3e(t[0],t[1])):D3e(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(a,i){return a[i]=!0,a},{});return D3e(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}vs.accessListify=Cce;function KYe(r){return Cce(r).map(function(e){return[e.address,e.storageKeys]})}function GYe(r,e){if(r.gasPrice!=null){var t=Kb.BigNumber.from(r.gasPrice),n=Kb.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||tu.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var a=[Yl(r.chainId||0,"chainId"),Yl(r.nonce||0,"nonce"),Yl(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Yl(r.maxFeePerGas||0,"maxFeePerGas"),Yl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,cZ.getAddress)(r.to):"0x",Yl(r.value||0,"value"),r.data||"0x",KYe(r.accessList||[])];if(e){var i=(0,Kr.splitSignature)(e);a.push(Yl(i.recoveryParam,"recoveryParam")),a.push((0,Kr.stripZeros)(i.r)),a.push((0,Kr.stripZeros)(i.s))}return(0,Kr.hexConcat)(["0x02",Ky.encode(a)])}function VYe(r,e){var t=[Yl(r.chainId||0,"chainId"),Yl(r.nonce||0,"nonce"),Yl(r.gasPrice||0,"gasPrice"),Yl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,cZ.getAddress)(r.to):"0x",Yl(r.value||0,"value"),r.data||"0x",KYe(r.accessList||[])];if(e){var n=(0,Kr.splitSignature)(e);t.push(Yl(n.recoveryParam,"recoveryParam")),t.push((0,Kr.stripZeros)(n.r)),t.push((0,Kr.stripZeros)(n.s))}return(0,Kr.hexConcat)(["0x01",Ky.encode(t)])}function oKt(r,e){(0,rKt.checkProperties)(r,sKt);var t=[];iKt.forEach(function(s){var o=r[s.name]||[],c={};s.numeric&&(c.hexPad="left"),o=(0,Kr.arrayify)((0,Kr.hexlify)(o,c)),s.length&&o.length!==s.length&&o.length>0&&tu.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o),s.maxLength&&(o=(0,Kr.stripZeros)(o),o.length>s.maxLength&&tu.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o)),t.push((0,Kr.hexlify)(o))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&tu.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,Kr.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,Kr.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return Ky.encode(t);var a=(0,Kr.splitSignature)(e),i=27+a.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),i+=n*2+8,a.v>28&&a.v!==i&&tu.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):a.v!==i&&tu.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,Kr.hexlify)(i)),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.r))),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.s))),Ky.encode(t)}function cKt(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&tu.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),oKt(r,e);switch(r.type){case 1:return VYe(r,e);case 2:return GYe(r,e);default:break}return tu.throwError("unsupported transaction type: "+r.type,L3e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}vs.serialize=cKt;function YYe(r,e,t){try{var n=eu(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{tu.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,Kr.hexZeroPad)(e[1],32),r.s=(0,Kr.hexZeroPad)(e[2],32);try{var a=(0,$3.keccak256)(t(r));r.from=q3e(a,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function uKt(r){var e=Ky.decode(r.slice(1));e.length!==9&&e.length!==12&&tu.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Kr.hexlify)(r));var t=eu(e[2]),n=eu(e[3]),a={type:2,chainId:eu(e[0]).toNumber(),nonce:eu(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:eu(e[4]),to:O3e(e[5]),value:eu(e[6]),data:e[7],accessList:Cce(e[8])};return e.length===9||(a.hash=(0,$3.keccak256)(r),YYe(a,e.slice(9),GYe)),a}function lKt(r){var e=Ky.decode(r.slice(1));e.length!==8&&e.length!==11&&tu.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Kr.hexlify)(r));var t={type:1,chainId:eu(e[0]).toNumber(),nonce:eu(e[1]).toNumber(),gasPrice:eu(e[2]),gasLimit:eu(e[3]),to:O3e(e[4]),value:eu(e[5]),data:e[6],accessList:Cce(e[7])};return e.length===8||(t.hash=(0,$3.keccak256)(r),YYe(t,e.slice(8),VYe)),t}function dKt(r){var e=Ky.decode(r);e.length!==9&&e.length!==6&&tu.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:eu(e[0]).toNumber(),gasPrice:eu(e[1]),gasLimit:eu(e[2]),to:O3e(e[3]),value:eu(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=Kb.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,Kr.hexZeroPad)(e[7],32),t.s=(0,Kr.hexZeroPad)(e[8],32),Kb.BigNumber.from(t.r).isZero()&&Kb.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,a=e.slice(0,6);t.chainId!==0&&(a.push((0,Kr.hexlify)(t.chainId)),a.push("0x"),a.push("0x"),n-=t.chainId*2+8);var i=(0,$3.keccak256)(Ky.encode(a));try{t.from=q3e(i,{r:(0,Kr.hexlify)(t.r),s:(0,Kr.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,$3.keccak256)(r)}return t.type=null,t}function pKt(r){var e=(0,Kr.arrayify)(r);if(e[0]>127)return dKt(e);switch(e[0]){case 1:return lKt(e);case 2:return uKt(e);default:break}return tu.throwError("unsupported transaction type: "+e[0],L3e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}vs.parse=pKt});var $Ye=_(kce=>{"use strict";d();p();Object.defineProperty(kce,"__esModule",{value:!0});kce.version=void 0;kce.version="contracts/5.7.0"});var n$e=_(ru=>{"use strict";d();p();var Sce=ru&&ru.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vy=ru&&ru.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Yy=ru&&ru.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]1)){u=u.substring(1);var h=l[0];try{i[u]==null&&(0,ht.defineReadOnly)(i,u,i[h])}catch{}i.functions[u]==null&&(0,ht.defineReadOnly)(i.functions,u,i.functions[h]),i.callStatic[u]==null&&(0,ht.defineReadOnly)(i.callStatic,u,i.callStatic[h]),i.populateTransaction[u]==null&&(0,ht.defineReadOnly)(i.populateTransaction,u,i.populateTransaction[h]),i.estimateGas[u]==null&&(0,ht.defineReadOnly)(i.estimateGas,u,i.estimateGas[h])}})}return r.getContractAddress=function(e){return(0,lZ.getContractAddress)(e)},r.getInterface=function(e){return Ace.Interface.isInterface(e)?e:new Ace.Interface(e)},r.prototype.deployed=function(){return this._deployed()},r.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(n){return n==="0x"&&Wa.throwError("contract not deployed",yc.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},r.prototype.fallback=function(e){var t=this;this.signer||Wa.throwError("sending a transactions require a signer",yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,ht.shallowCopy)(e||{});return["from","to"].forEach(function(a){n[a]!=null&&Wa.throwError("cannot override "+a,yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(n)})},r.prototype.connect=function(e){typeof e=="string"&&(e=new F3e.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,ht.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},r.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},r.isIndexed=function(e){return Ace.Indexed.isIndexed(e)},r.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},r.prototype._getRunningEvent=function(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new xKt);if(e==="event")return this._normalizeRunningEvent(new dZ("event",null));if(e==="*")return this._normalizeRunningEvent(new ZYe(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new JYe(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");var t=this.interface.getEvent(n);return this._normalizeRunningEvent(new JYe(this.address,this.interface,t,e.topics))}catch{}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new dZ(t$e(a),a))}return this._normalizeRunningEvent(new ZYe(this.address,this.interface))},r.prototype._checkRunningEvents=function(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},r.prototype._wrapEvent=function(e,t,n){var a=this,i=(0,ht.deepCopy)(t);return i.removeListener=function(){!n||(e.removeListener(n),a._checkRunningEvents(e))},i.getBlock=function(){return a.provider.getBlock(t.blockHash)},i.getTransaction=function(){return a.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return a.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i},r.prototype._addEventListener=function(e,t,n){var a=this;if(this.provider||Wa.throwError("events require a provider or a signer with a provider",yc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(s){var o=a._wrapEvent(e,s,t);if(o.decodeError==null)try{var c=e.getEmit(o);a.emit.apply(a,hKt([e.filter],c,!1))}catch(u){o.decodeError=u.error}e.filter!=null&&a.emit("event",o),o.decodeError!=null&&a.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}},r.prototype.queryFilter=function(e,t,n){var a=this,i=this._getRunningEvent(e),s=(0,ht.shallowCopy)(i.filter);return typeof t=="string"&&(0,Gb.isHexString)(t,32)?(n!=null&&Wa.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=t):(s.fromBlock=t??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(function(o){return o.map(function(c){return a._wrapEvent(i,c,null)})})},r.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},r.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},r.prototype.emit=function(e){for(var t=[],n=1;n0;return this._checkRunningEvents(a),i},r.prototype.listenerCount=function(e){var t=this;return this.provider?e==null?Object.keys(this._runningEvents).reduce(function(n,a){return n+t._runningEvents[a].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},r.prototype.listeners=function(e){if(!this.provider)return[];if(e==null){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach(function(a){t.push(a)});return t}return this._getRunningEvent(e).listeners()},r.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(e==null){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var a=this._getRunningEvent(e);return a.removeAllListeners(),this._checkRunningEvents(a),this},r.prototype.off=function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this},r.prototype.removeListener=function(e,t){return this.off(e,t)},r}();ru.BaseContract=r$e;var W3e=function(r){Sce(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(r$e);ru.Contract=W3e;var _Kt=function(){function r(e,t,n){var a=this.constructor,i=null;typeof t=="string"?i=t:(0,Gb.isBytes)(t)?i=(0,Gb.hexlify)(t):t&&typeof t.object=="string"?i=t.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!(0,Gb.isHexString)(i)||i.length%2)&&Wa.throwArgumentError("invalid bytecode","bytecode",t),n&&!F3e.Signer.isSigner(n)&&Wa.throwArgumentError("invalid signer","signer",n),(0,ht.defineReadOnly)(this,"bytecode",i),(0,ht.defineReadOnly)(this,"interface",(0,ht.getStatic)(a,"getInterface")(e)),(0,ht.defineReadOnly)(this,"signer",n||null)}return r.prototype.getDeployTransaction=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty($y,"__esModule",{value:!0});$y.Base58=$y.Base32=$y.BaseX=void 0;var a$e=wr(),Mce=Aa(),U3e=function(){function r(e){(0,Mce.defineReadOnly)(this,"alphabet",e),(0,Mce.defineReadOnly)(this,"base",e.length),(0,Mce.defineReadOnly)(this,"_alphabetMap",{}),(0,Mce.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t0;)n.push(i%this.base),i=i/this.base|0}for(var o="",c=0;t[c]===0&&c=0;--u)o+=this.alphabet[n[u]];return o},r.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;i>0;)t.push(i&255),i>>=8}for(var o=0;e[o]===this._leader&&o{"use strict";d();p();Object.defineProperty(pZ,"__esModule",{value:!0});pZ.SupportedAlgorithm=void 0;var EKt;(function(r){r.sha256="sha256",r.sha512="sha512"})(EKt=pZ.SupportedAlgorithm||(pZ.SupportedAlgorithm={}))});var i$e=_(Bce=>{"use strict";d();p();Object.defineProperty(Bce,"__esModule",{value:!0});Bce.version=void 0;Bce.version="sha2/5.7.0"});var o$e=_(Qd=>{"use strict";d();p();var CKt=Qd&&Qd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qd,"__esModule",{value:!0});Qd.computeHmac=Qd.sha512=Qd.sha256=Qd.ripemd160=void 0;var hZ=CKt(aZ()),fZ=wr(),kKt=H3e(),s$e=Zt(),AKt=i$e(),PKt=new s$e.Logger(AKt.version);function SKt(r){return"0x"+hZ.default.ripemd160().update((0,fZ.arrayify)(r)).digest("hex")}Qd.ripemd160=SKt;function RKt(r){return"0x"+hZ.default.sha256().update((0,fZ.arrayify)(r)).digest("hex")}Qd.sha256=RKt;function MKt(r){return"0x"+hZ.default.sha512().update((0,fZ.arrayify)(r)).digest("hex")}Qd.sha512=MKt;function NKt(r,e,t){return kKt.SupportedAlgorithm[r]||PKt.throwError("unsupported algorithm "+r,s$e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:r}),"0x"+hZ.default.hmac(hZ.default[r],(0,fZ.arrayify)(e)).update((0,fZ.arrayify)(t)).digest("hex")}Qd.computeHmac=NKt});var Vb=_(Jd=>{"use strict";d();p();Object.defineProperty(Jd,"__esModule",{value:!0});Jd.SupportedAlgorithm=Jd.sha512=Jd.sha256=Jd.ripemd160=Jd.computeHmac=void 0;var Dce=o$e();Object.defineProperty(Jd,"computeHmac",{enumerable:!0,get:function(){return Dce.computeHmac}});Object.defineProperty(Jd,"ripemd160",{enumerable:!0,get:function(){return Dce.ripemd160}});Object.defineProperty(Jd,"sha256",{enumerable:!0,get:function(){return Dce.sha256}});Object.defineProperty(Jd,"sha512",{enumerable:!0,get:function(){return Dce.sha512}});var BKt=H3e();Object.defineProperty(Jd,"SupportedAlgorithm",{enumerable:!0,get:function(){return BKt.SupportedAlgorithm}})});var u$e=_(Lce=>{"use strict";d();p();Object.defineProperty(Lce,"__esModule",{value:!0});Lce.pbkdf2=void 0;var Q3=wr(),c$e=Vb();function DKt(r,e,t,n,a){r=(0,Q3.arrayify)(r),e=(0,Q3.arrayify)(e);var i,s=1,o=new Uint8Array(n),c=new Uint8Array(e.length+4);c.set(e);for(var u,l,h=1;h<=s;h++){c[e.length]=h>>24&255,c[e.length+1]=h>>16&255,c[e.length+2]=h>>8&255,c[e.length+3]=h&255;var f=(0,Q3.arrayify)((0,c$e.computeHmac)(a,r,c));i||(i=f.length,l=new Uint8Array(i),s=Math.ceil(n/i),u=n-(s-1)*i),l.set(f);for(var m=1;m{"use strict";d();p();Object.defineProperty(Oce,"__esModule",{value:!0});Oce.pbkdf2=void 0;var LKt=u$e();Object.defineProperty(Oce,"pbkdf2",{enumerable:!0,get:function(){return LKt.pbkdf2}})});var l$e=_(Fce=>{"use strict";d();p();Object.defineProperty(Fce,"__esModule",{value:!0});Fce.version=void 0;Fce.version="wordlists/5.7.0"});var Df=_(Yb=>{"use strict";d();p();Object.defineProperty(Yb,"__esModule",{value:!0});Yb.Wordlist=Yb.logger=void 0;var OKt=!1,qKt=lb(),d$e=Aa(),FKt=Zt(),WKt=l$e();Yb.logger=new FKt.Logger(WKt.version);var UKt=function(){function r(e){var t=this.constructor;Yb.logger.checkAbstract(t,r),(0,d$e.defineReadOnly)(this,"locale",e)}return r.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},r.prototype.join=function(e){return e.join(" ")},r.check=function(e){for(var t=[],n=0;n<2048;n++){var a=e.getWord(n);if(n!==e.getWordIndex(a))return"0x";t.push(a)}return(0,qKt.id)(t.join(` + `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}En.types=Dot();function qot(r){return Array.isArray(r)}En.isArray=qot;function LCe(r){return typeof r=="boolean"}En.isBoolean=LCe;function Cme(r){return r===null}En.isNull=Cme;function nhr(r){return r==null}En.isNullOrUndefined=nhr;function Wot(r){return typeof r=="number"}En.isNumber=Wot;function Ame(r){return typeof r=="string"}En.isString=Ame;function ahr(r){return typeof r=="symbol"}En.isSymbol=ahr;function nv(r){return r===void 0}En.isUndefined=nv;function Nae(r){return n_(r)&&qCe(r)==="[object RegExp]"}En.isRegExp=Nae;En.types.isRegExp=Nae;function n_(r){return typeof r=="object"&&r!==null}En.isObject=n_;function Ime(r){return n_(r)&&qCe(r)==="[object Date]"}En.isDate=Ime;En.types.isDate=Ime;function Oae(r){return n_(r)&&(qCe(r)==="[object Error]"||r instanceof Error)}En.isError=Oae;En.types.isNativeError=Oae;function Tme(r){return typeof r=="function"}En.isFunction=Tme;function ihr(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}En.isPrimitive=ihr;En.isBuffer=Oot();function qCe(r){return Object.prototype.toString.call(r)}function OCe(r){return r<10?"0"+r.toString(10):r.toString(10)}var shr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ohr(){var r=new Date,e=[OCe(r.getHours()),OCe(r.getMinutes()),OCe(r.getSeconds())].join(":");return[r.getDate(),shr[r.getMonth()],e].join(" ")}En.log=function(){console.log("%s - %s",ohr(),En.format.apply(En,arguments))};En.inherits=tn();En._extend=function(r,e){if(!e||!n_(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function Uot(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var rv=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;En.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(rv&&e[rv]){var t=e[rv];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,rv,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,a,i=new Promise(function(c,u){n=c,a=u}),s=[],o=0;o{"use strict";f();d();function Hot(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function jot(r){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a}},{key:"concat",value:function(t){if(this.length===0)return kme.alloc(0);for(var n=kme.allocUnsafe(t>>>0),a=this.head,i=0;a;)bhr(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(t,n){var a;return ts.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(t){var n=kme.allocUnsafe(t),a=this.head,i=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var s=a.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(o));break}++i}return this.length-=i,n}},{key:yhr,value:function(t,n){return WCe(this,jot(jot({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var HCe=E((s6a,Yot)=>{"use strict";f();d();function ghr(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(UCe,this,r)):g.nextTick(UCe,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!e&&i?t._writableState?t._writableState.errorEmitted?g.nextTick(Sme,t):(t._writableState.errorEmitted=!0,g.nextTick($ot,t,i)):g.nextTick($ot,t,i):e?(g.nextTick(Sme,t),e(i)):g.nextTick(Sme,t)}),this)}function $ot(r,e){UCe(r,e),Sme(r)}function Sme(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function vhr(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function UCe(r,e){r.emit("error",e)}function whr(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}Yot.exports={destroy:ghr,undestroy:vhr,errorOrDestroy:whr}});var av=E((u6a,Zot)=>{"use strict";f();d();function xhr(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Jot={};function Vd(r,e,t){t||(t=Error);function n(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){xhr(s,i);function s(o,c,u){return i.call(this,n(o,c,u))||this}return s}(t);a.prototype.name=t.name,a.prototype.code=r,Jot[r]=a}function Qot(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function _hr(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function Thr(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function Ehr(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Vd("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Vd("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&_hr(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(Thr(r," argument"))a="The ".concat(r," ").concat(n," ").concat(Qot(e,"type"));else{var i=Ehr(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(Qot(e,"type"))}return a+=". Received type ".concat(typeof t),a},TypeError);Vd("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Vd("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Vd("ERR_STREAM_PREMATURE_CLOSE","Premature close");Vd("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Vd("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Vd("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Vd("ERR_STREAM_WRITE_AFTER_END","write after end");Vd("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Vd("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Vd("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Zot.exports.codes=Jot});var jCe=E((d6a,Xot)=>{"use strict";f();d();var Ihr=av().codes.ERR_INVALID_OPT_VALUE;function Chr(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function Ahr(r,e,t,n){var a=Chr(e,n,t);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?t:"highWaterMark";throw new Ihr(i,a)}return Math.floor(a)}return r.objectMode?16:16*1024}Xot.exports={getHighWaterMark:Ahr}});var tct=E((m6a,ect)=>{f();d();ect.exports=khr;function khr(r,e){if(zCe("noDeprecation"))return r;var t=!1;function n(){if(!t){if(zCe("throwDeprecation"))throw new Error(e);zCe("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function zCe(r){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var Mme=E((g6a,oct)=>{"use strict";f();d();oct.exports=To;function nct(r){var e=this;this.next=null,this.entry=null,this.finish=function(){tmr(e,r)}}var a_;To.WritableState=Lae;var Shr={deprecate:tct()},act=fCe(),Rme=Uo().Buffer,Phr=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Rhr(r){return Rme.from(r)}function Mhr(r){return Rme.isBuffer(r)||r instanceof Phr}var GCe=HCe(),Bhr=jCe(),Dhr=Bhr.getHighWaterMark,N2=av().codes,Nhr=N2.ERR_INVALID_ARG_TYPE,Ohr=N2.ERR_METHOD_NOT_IMPLEMENTED,Fhr=N2.ERR_MULTIPLE_CALLBACK,Lhr=N2.ERR_STREAM_CANNOT_PIPE,qhr=N2.ERR_STREAM_DESTROYED,Whr=N2.ERR_STREAM_NULL_VALUES,Uhr=N2.ERR_STREAM_WRITE_AFTER_END,Hhr=N2.ERR_UNKNOWN_ENCODING,i_=GCe.errorOrDestroy;tn()(To,act);function jhr(){}function Lae(r,e,t){a_=a_||O2(),r=r||{},typeof t!="boolean"&&(t=e instanceof a_),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=Dhr(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){Qhr(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new nct(this)}Lae.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(Lae.prototype,"buffer",{get:Shr.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Pme;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pme=Function.prototype[Symbol.hasInstance],Object.defineProperty(To,Symbol.hasInstance,{value:function(e){return Pme.call(this,e)?!0:this!==To?!1:e&&e._writableState instanceof Lae}})):Pme=function(e){return e instanceof this};function To(r){a_=a_||O2();var e=this instanceof a_;if(!e&&!Pme.call(To,this))return new To(r);this._writableState=new Lae(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),act.call(this)}To.prototype.pipe=function(){i_(this,new Lhr)};function zhr(r,e){var t=new Uhr;i_(r,t),g.nextTick(e,t)}function Khr(r,e,t,n){var a;return t===null?a=new Whr:typeof t!="string"&&!e.objectMode&&(a=new Nhr("chunk",["string","Buffer"],t)),a?(i_(r,a),g.nextTick(n,a),!1):!0}To.prototype.write=function(r,e,t){var n=this._writableState,a=!1,i=!n.objectMode&&Mhr(r);return i&&!Rme.isBuffer(r)&&(r=Rhr(r)),typeof e=="function"&&(t=e,e=null),i?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=jhr),n.ending?zhr(this,t):(i||Khr(this,n,r,t))&&(n.pendingcb++,a=Vhr(this,n,i,r,e,t)),a};To.prototype.cork=function(){this._writableState.corked++};To.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&ict(this,r))};To.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new Hhr(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(To.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ghr(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=Rme.from(e,t)),e}Object.defineProperty(To.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Vhr(r,e,t,n,a,i){if(!t){var s=Ghr(e,n,a);n!==s&&(t=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var c=e.length{"use strict";f();d();var rmr=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};uct.exports=Jm;var cct=Nme(),$Ce=Mme();tn()(Jm,cct);for(VCe=rmr($Ce.prototype),Bme=0;Bme{"use strict";f();d();var QCe=an().Buffer,lct=QCe.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function imr(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function smr(r){var e=imr(r);if(typeof e!="string"&&(QCe.isEncoding===lct||!lct(r)))throw new Error("Unknown encoding: "+r);return e||r}fct.StringDecoder=qae;function qae(r){this.encoding=smr(r);var e;switch(this.encoding){case"utf16le":this.text=dmr,this.end=pmr,e=4;break;case"utf8":this.fillLast=umr,e=4;break;case"base64":this.text=hmr,this.end=mmr,e=3;break;default:this.write=ymr,this.end=bmr;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=QCe.allocUnsafe(e)}qae.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function omr(r,e,t){var n=e.length-1;if(n=0?(a>0&&(r.lastNeed=a-1),a):--n=0?(a>0&&(r.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:r.lastNeed=a-3),a):0))}function cmr(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function umr(r){var e=this.lastTotal-this.lastNeed,t=cmr(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function lmr(r,e){var t=omr(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function fmr(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function dmr(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function pmr(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function hmr(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function mmr(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function ymr(r){return r.toString(this.encoding)}function bmr(r){return r&&r.length?this.write(r):""}});var Wae=E((A6a,hct)=>{"use strict";f();d();var dct=av().codes.ERR_STREAM_PREMATURE_CLOSE;function gmr(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),a=0;a{"use strict";f();d();var Fme;function F2(r,e,t){return e=xmr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function xmr(r){var e=_mr(r,"string");return typeof e=="symbol"?e:String(e)}function _mr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var Tmr=Wae(),L2=Symbol("lastResolve"),iv=Symbol("lastReject"),Uae=Symbol("error"),Lme=Symbol("ended"),sv=Symbol("lastPromise"),JCe=Symbol("handlePromise"),ov=Symbol("stream");function q2(r,e){return{value:r,done:e}}function Emr(r){var e=r[L2];if(e!==null){var t=r[ov].read();t!==null&&(r[sv]=null,r[L2]=null,r[iv]=null,e(q2(t,!1)))}}function Imr(r){g.nextTick(Emr,r)}function Cmr(r,e){return function(t,n){r.then(function(){if(e[Lme]){t(q2(void 0,!0));return}e[JCe](t,n)},n)}}var Amr=Object.getPrototypeOf(function(){}),kmr=Object.setPrototypeOf((Fme={get stream(){return this[ov]},next:function(){var e=this,t=this[Uae];if(t!==null)return Promise.reject(t);if(this[Lme])return Promise.resolve(q2(void 0,!0));if(this[ov].destroyed)return new Promise(function(s,o){g.nextTick(function(){e[Uae]?o(e[Uae]):s(q2(void 0,!0))})});var n=this[sv],a;if(n)a=new Promise(Cmr(n,this));else{var i=this[ov].read();if(i!==null)return Promise.resolve(q2(i,!1));a=new Promise(this[JCe])}return this[sv]=a,a}},F2(Fme,Symbol.asyncIterator,function(){return this}),F2(Fme,"return",function(){var e=this;return new Promise(function(t,n){e[ov].destroy(null,function(a){if(a){n(a);return}t(q2(void 0,!0))})})}),Fme),Amr),Smr=function(e){var t,n=Object.create(kmr,(t={},F2(t,ov,{value:e,writable:!0}),F2(t,L2,{value:null,writable:!0}),F2(t,iv,{value:null,writable:!0}),F2(t,Uae,{value:null,writable:!0}),F2(t,Lme,{value:e._readableState.endEmitted,writable:!0}),F2(t,JCe,{value:function(i,s){var o=n[ov].read();o?(n[sv]=null,n[L2]=null,n[iv]=null,i(q2(o,!1))):(n[L2]=i,n[iv]=s)},writable:!0}),t));return n[sv]=null,Tmr(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[iv];i!==null&&(n[sv]=null,n[L2]=null,n[iv]=null,i(a)),n[Uae]=a;return}var s=n[L2];s!==null&&(n[sv]=null,n[L2]=null,n[iv]=null,s(q2(void 0,!0))),n[Lme]=!0}),e.on("readable",Imr.bind(null,n)),n};mct.exports=Smr});var gct=E((B6a,bct)=>{f();d();bct.exports=function(){throw new Error("Readable.from is not available in the browser")}});var Nme=E((F6a,kct)=>{"use strict";f();d();kct.exports=ta;var s_;ta.ReadableState=_ct;var O6a=ml().EventEmitter,xct=function(e,t){return e.listeners(t).length},jae=fCe(),qme=Uo().Buffer,Pmr=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function Rmr(r){return qme.from(r)}function Mmr(r){return qme.isBuffer(r)||r instanceof Pmr}var ZCe=zy(),hn;ZCe&&ZCe.debuglog?hn=ZCe.debuglog("stream"):hn=function(){};var Bmr=Vot(),iAe=HCe(),Dmr=jCe(),Nmr=Dmr.getHighWaterMark,Wme=av().codes,Omr=Wme.ERR_INVALID_ARG_TYPE,Fmr=Wme.ERR_STREAM_PUSH_AFTER_EOF,Lmr=Wme.ERR_METHOD_NOT_IMPLEMENTED,qmr=Wme.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,o_,XCe,eAe;tn()(ta,jae);var Hae=iAe.errorOrDestroy,tAe=["error","close","destroy","pause","resume"];function Wmr(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function _ct(r,e,t){s_=s_||O2(),r=r||{},typeof t!="boolean"&&(t=e instanceof s_),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=Nmr(this,r,"readableHighWaterMark",t),this.buffer=new Bmr,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(o_||(o_=Ome().StringDecoder),this.decoder=new o_(r.encoding),this.encoding=r.encoding)}function ta(r){if(s_=s_||O2(),!(this instanceof ta))return new ta(r);var e=this instanceof s_;this._readableState=new _ct(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),jae.call(this)}Object.defineProperty(ta.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});ta.prototype.destroy=iAe.destroy;ta.prototype._undestroy=iAe.undestroy;ta.prototype._destroy=function(r,e){e(r)};ta.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=qme.from(r,e),e=""),n=!0),Tct(this,r,e,!1,n)};ta.prototype.unshift=function(r){return Tct(this,r,null,!0,!1)};function Tct(r,e,t,n,a){hn("readableAddChunk",e);var i=r._readableState;if(e===null)i.reading=!1,jmr(r,i);else{var s;if(a||(s=Umr(i,e)),s)Hae(r,s);else if(i.objectMode||e&&e.length>0)if(typeof e!="string"&&!i.objectMode&&Object.getPrototypeOf(e)!==qme.prototype&&(e=Rmr(e)),n)i.endEmitted?Hae(r,new qmr):rAe(r,i,e,!0);else if(i.ended)Hae(r,new Fmr);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(e=i.decoder.write(e),i.objectMode||e.length!==0?rAe(r,i,e,!1):aAe(r,i)):rAe(r,i,e,!1)}else n||(i.reading=!1,aAe(r,i))}return!i.ended&&(i.length=vct?r=vct:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function wct(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=Hmr(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}ta.prototype.read=function(r){hn("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return hn("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?nAe(this):Ume(this),null;if(r=wct(r,e),r===0&&e.ended)return e.length===0&&nAe(this),null;var n=e.needReadable;hn("need readable",n),(e.length===0||e.length-r0?a=Cct(r,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&nAe(this)),a!==null&&this.emit("data",a),a};function jmr(r,e){if(hn("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?Ume(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,Ect(r)))}}function Ume(r){var e=r._readableState;hn("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(hn("emitReadable",e.flowing),e.emittedReadable=!0,g.nextTick(Ect,r))}function Ect(r){var e=r._readableState;hn("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,sAe(r)}function aAe(r,e){e.readingMore||(e.readingMore=!0,g.nextTick(zmr,r,e))}function zmr(r,e){for(;!e.reading&&!e.ended&&(e.length1&&Act(n.pipes,r)!==-1)&&!u&&(hn("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function h(P){hn("onerror",P),C(),r.removeListener("error",h),xct(r,"error")===0&&Hae(r,P)}Wmr(r,"error",h);function m(){r.removeListener("finish",y),C()}r.once("close",m);function y(){hn("onfinish"),r.removeListener("close",m),C()}r.once("finish",y);function C(){hn("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(hn("pipe resume"),t.resume()),r};function Kmr(r){return function(){var t=r._readableState;hn("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&xct(r,"data")&&(t.flowing=!0,sAe(r))}}ta.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,hn("on readable",n.length,n.reading),n.length?Ume(this):n.reading||g.nextTick(Gmr,this)),t};ta.prototype.addListener=ta.prototype.on;ta.prototype.removeListener=function(r,e){var t=jae.prototype.removeListener.call(this,r,e);return r==="readable"&&g.nextTick(Ict,this),t};ta.prototype.removeAllListeners=function(r){var e=jae.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&g.nextTick(Ict,this),e};function Ict(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function Gmr(r){hn("readable nexttick read 0"),r.read(0)}ta.prototype.resume=function(){var r=this._readableState;return r.flowing||(hn("resume"),r.flowing=!r.readableListening,Vmr(this,r)),r.paused=!1,this};function Vmr(r,e){e.resumeScheduled||(e.resumeScheduled=!0,g.nextTick($mr,r,e))}function $mr(r,e){hn("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),sAe(r),e.flowing&&!e.reading&&r.read(0)}ta.prototype.pause=function(){return hn("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(hn("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function sAe(r){var e=r._readableState;for(hn("flow",e.flowing);e.flowing&&r.read()!==null;);}ta.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(hn("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(hn("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!0,r.pause())}});for(var a in r)this[a]===void 0&&typeof r[a]=="function"&&(this[a]=function(o){return function(){return r[o].apply(r,arguments)}}(a));for(var i=0;i=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function nAe(r){var e=r._readableState;hn("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,g.nextTick(Ymr,e,r))}function Ymr(r,e){if(hn("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(ta.from=function(r,e){return eAe===void 0&&(eAe=gct()),eAe(ta,r,e)});function Act(r,e){for(var t=0,n=r.length;t{"use strict";f();d();Pct.exports=Ky;var Hme=av().codes,Qmr=Hme.ERR_METHOD_NOT_IMPLEMENTED,Jmr=Hme.ERR_MULTIPLE_CALLBACK,Zmr=Hme.ERR_TRANSFORM_ALREADY_TRANSFORMING,Xmr=Hme.ERR_TRANSFORM_WITH_LENGTH_0,jme=O2();tn()(Ky,jme);function e1r(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new Jmr);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";f();d();Mct.exports=zae;var Rct=zme();tn()(zae,Rct);function zae(r){if(!(this instanceof zae))return new zae(r);Rct.call(this,r)}zae.prototype._transform=function(r,e,t){t(null,r)}});var uAe=E((G6a,Oct)=>{"use strict";f();d();var cAe;function r1r(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var Nct=av().codes,n1r=Nct.ERR_MISSING_ARGS,a1r=Nct.ERR_STREAM_DESTROYED;function Bct(r){if(r)throw r}function i1r(r){return r.setHeader&&typeof r.abort=="function"}function s1r(r,e,t,n){n=r1r(n);var a=!1;r.on("close",function(){a=!0}),cAe===void 0&&(cAe=Wae()),cAe(r,{readable:e,writable:t},function(s){if(s)return n(s);a=!0,n()});var i=!1;return function(s){if(!a&&!i){if(i=!0,i1r(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new a1r("pipe"))}}}function Dct(r){r()}function o1r(r,e){return r.pipe(e)}function c1r(r){return!r.length||typeof r[r.length-1]!="function"?Bct:r.pop()}function u1r(){for(var r=arguments.length,e=new Array(r),t=0;t0;return s1r(s,c,u,function(l){a||(a=l),l&&i.forEach(Dct),!c&&(i.forEach(Dct),n(a))})});return e.reduce(o1r)}Oct.exports=u1r});var Kae=E(($d,Fct)=>{f();d();$d=Fct.exports=Nme();$d.Stream=$d;$d.Readable=$d;$d.Writable=Mme();$d.Duplex=O2();$d.Transform=zme();$d.PassThrough=oAe();$d.finished=Wae();$d.pipeline=uAe()});var lAe=E((J6a,qct)=>{"use strict";f();d();var Kme=an().Buffer,Lct=Kae().Transform,l1r=tn();function f1r(r,e){if(!Kme.isBuffer(r)&&typeof r!="string")throw new TypeError(e+" must be a string or a buffer")}function W2(r){Lct.call(this),this._block=Kme.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}l1r(W2,Lct);W2.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(a){n=a}t(n)};W2.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};W2.prototype.update=function(r,e){if(f1r(r,"Data"),this._finalized)throw new Error("Digest already called");Kme.isBuffer(r)||(r=Kme.from(r,e));for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=s,s=this._length[i]/4294967296|0,s>0&&(this._length[i]-=4294967296*s);return this};W2.prototype._update=function(){throw new Error("_update is not implemented")};W2.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};W2.prototype._digest=function(){throw new Error("_digest is not implemented")};qct.exports=W2});var $me=E((e5a,Uct)=>{"use strict";f();d();var d1r=tn(),Wct=lAe(),p1r=an().Buffer,h1r=new Array(16);function Gme(){Wct.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}d1r(Gme,Wct);Gme.prototype._update=function(){for(var r=h1r,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,a=this._c,i=this._d;t=Eu(t,n,a,i,r[0],3614090360,7),i=Eu(i,t,n,a,r[1],3905402710,12),a=Eu(a,i,t,n,r[2],606105819,17),n=Eu(n,a,i,t,r[3],3250441966,22),t=Eu(t,n,a,i,r[4],4118548399,7),i=Eu(i,t,n,a,r[5],1200080426,12),a=Eu(a,i,t,n,r[6],2821735955,17),n=Eu(n,a,i,t,r[7],4249261313,22),t=Eu(t,n,a,i,r[8],1770035416,7),i=Eu(i,t,n,a,r[9],2336552879,12),a=Eu(a,i,t,n,r[10],4294925233,17),n=Eu(n,a,i,t,r[11],2304563134,22),t=Eu(t,n,a,i,r[12],1804603682,7),i=Eu(i,t,n,a,r[13],4254626195,12),a=Eu(a,i,t,n,r[14],2792965006,17),n=Eu(n,a,i,t,r[15],1236535329,22),t=Iu(t,n,a,i,r[1],4129170786,5),i=Iu(i,t,n,a,r[6],3225465664,9),a=Iu(a,i,t,n,r[11],643717713,14),n=Iu(n,a,i,t,r[0],3921069994,20),t=Iu(t,n,a,i,r[5],3593408605,5),i=Iu(i,t,n,a,r[10],38016083,9),a=Iu(a,i,t,n,r[15],3634488961,14),n=Iu(n,a,i,t,r[4],3889429448,20),t=Iu(t,n,a,i,r[9],568446438,5),i=Iu(i,t,n,a,r[14],3275163606,9),a=Iu(a,i,t,n,r[3],4107603335,14),n=Iu(n,a,i,t,r[8],1163531501,20),t=Iu(t,n,a,i,r[13],2850285829,5),i=Iu(i,t,n,a,r[2],4243563512,9),a=Iu(a,i,t,n,r[7],1735328473,14),n=Iu(n,a,i,t,r[12],2368359562,20),t=Cu(t,n,a,i,r[5],4294588738,4),i=Cu(i,t,n,a,r[8],2272392833,11),a=Cu(a,i,t,n,r[11],1839030562,16),n=Cu(n,a,i,t,r[14],4259657740,23),t=Cu(t,n,a,i,r[1],2763975236,4),i=Cu(i,t,n,a,r[4],1272893353,11),a=Cu(a,i,t,n,r[7],4139469664,16),n=Cu(n,a,i,t,r[10],3200236656,23),t=Cu(t,n,a,i,r[13],681279174,4),i=Cu(i,t,n,a,r[0],3936430074,11),a=Cu(a,i,t,n,r[3],3572445317,16),n=Cu(n,a,i,t,r[6],76029189,23),t=Cu(t,n,a,i,r[9],3654602809,4),i=Cu(i,t,n,a,r[12],3873151461,11),a=Cu(a,i,t,n,r[15],530742520,16),n=Cu(n,a,i,t,r[2],3299628645,23),t=Au(t,n,a,i,r[0],4096336452,6),i=Au(i,t,n,a,r[7],1126891415,10),a=Au(a,i,t,n,r[14],2878612391,15),n=Au(n,a,i,t,r[5],4237533241,21),t=Au(t,n,a,i,r[12],1700485571,6),i=Au(i,t,n,a,r[3],2399980690,10),a=Au(a,i,t,n,r[10],4293915773,15),n=Au(n,a,i,t,r[1],2240044497,21),t=Au(t,n,a,i,r[8],1873313359,6),i=Au(i,t,n,a,r[15],4264355552,10),a=Au(a,i,t,n,r[6],2734768916,15),n=Au(n,a,i,t,r[13],1309151649,21),t=Au(t,n,a,i,r[4],4149444226,6),i=Au(i,t,n,a,r[11],3174756917,10),a=Au(a,i,t,n,r[2],718787259,15),n=Au(n,a,i,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};Gme.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=p1r.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function Vme(r,e){return r<>>32-e}function Eu(r,e,t,n,a,i,s){return Vme(r+(e&t|~e&n)+a+i|0,s)+e|0}function Iu(r,e,t,n,a,i,s){return Vme(r+(e&n|t&~n)+a+i|0,s)+e|0}function Cu(r,e,t,n,a,i,s){return Vme(r+(e^t^n)+a+i|0,s)+e|0}function Au(r,e,t,n,a,i,s){return Vme(r+(t^(e|~n))+a+i|0,s)+e|0}Uct.exports=Gme});var Qme=E((n5a,$ct)=>{"use strict";f();d();var fAe=Uo().Buffer,m1r=tn(),Vct=lAe(),y1r=new Array(16),Gae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],Vae=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],$ae=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],Yae=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],Qae=[0,1518500249,1859775393,2400959708,2840853838],Jae=[1352829926,1548603684,1836072691,2053994217,0];function Yme(){Vct.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}m1r(Yme,Vct);Yme.prototype._update=function(){for(var r=y1r,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,u=this._c|0,l=this._d|0,p=this._e|0,h=0;h<80;h+=1){var m,y;h<16?(m=Hct(t,n,a,i,s,r[Gae[h]],Qae[0],$ae[h]),y=Gct(o,c,u,l,p,r[Vae[h]],Jae[0],Yae[h])):h<32?(m=jct(t,n,a,i,s,r[Gae[h]],Qae[1],$ae[h]),y=Kct(o,c,u,l,p,r[Vae[h]],Jae[1],Yae[h])):h<48?(m=zct(t,n,a,i,s,r[Gae[h]],Qae[2],$ae[h]),y=zct(o,c,u,l,p,r[Vae[h]],Jae[2],Yae[h])):h<64?(m=Kct(t,n,a,i,s,r[Gae[h]],Qae[3],$ae[h]),y=jct(o,c,u,l,p,r[Vae[h]],Jae[3],Yae[h])):(m=Gct(t,n,a,i,s,r[Gae[h]],Qae[4],$ae[h]),y=Hct(o,c,u,l,p,r[Vae[h]],Jae[4],Yae[h])),t=s,s=i,i=cv(a,10),a=n,n=m,o=p,p=l,l=cv(u,10),u=c,c=y}var C=this._b+a+l|0;this._b=this._c+i+p|0,this._c=this._d+s+o|0,this._d=this._e+t+c|0,this._e=this._a+n+u|0,this._a=C};Yme.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=fAe.alloc?fAe.alloc(20):new fAe(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};function cv(r,e){return r<>>32-e}function Hct(r,e,t,n,a,i,s,o){return cv(r+(e^t^n)+i+s|0,o)+a|0}function jct(r,e,t,n,a,i,s,o){return cv(r+(e&t|~e&n)+i+s|0,o)+a|0}function zct(r,e,t,n,a,i,s,o){return cv(r+((e|~t)^n)+i+s|0,o)+a|0}function Kct(r,e,t,n,a,i,s,o){return cv(r+(e&n|t&~n)+i+s|0,o)+a|0}function Gct(r,e,t,n,a,i,s,o){return cv(r+(e^(t|~n))+i+s|0,o)+a|0}$ct.exports=Yme});var uv=E((s5a,Qct)=>{f();d();var Yct=an().Buffer;function Jme(r,e){this._block=Yct.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}Jme.prototype.update=function(r,e){typeof r=="string"&&(e=e||"utf8",r=Yct.from(r,e));for(var t=this._block,n=this._blockSize,a=r.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,a=(t-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return r?i.toString(r):i};Jme.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Qct.exports=Jme});var Xct=E((u5a,Zct)=>{f();d();var b1r=tn(),Jct=uv(),g1r=an().Buffer,v1r=[1518500249,1859775393,-1894007588,-899497514],w1r=new Array(80);function Zae(){this.init(),this._w=w1r,Jct.call(this,64,56)}b1r(Zae,Jct);Zae.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function x1r(r){return r<<5|r>>>27}function _1r(r){return r<<30|r>>>2}function T1r(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}Zae.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=e[o-3]^e[o-8]^e[o-14]^e[o-16];for(var c=0;c<80;++c){var u=~~(c/20),l=x1r(t)+T1r(u,n,a,i)+s+e[c]+v1r[u]|0;s=i,i=a,a=_1r(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};Zae.prototype._hash=function(){var r=g1r.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Zct.exports=Zae});var r0t=E((d5a,t0t)=>{f();d();var E1r=tn(),e0t=uv(),I1r=an().Buffer,C1r=[1518500249,1859775393,-1894007588,-899497514],A1r=new Array(80);function Xae(){this.init(),this._w=A1r,e0t.call(this,64,56)}E1r(Xae,e0t);Xae.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function k1r(r){return r<<1|r>>>31}function S1r(r){return r<<5|r>>>27}function P1r(r){return r<<30|r>>>2}function R1r(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}Xae.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=k1r(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var u=~~(c/20),l=S1r(t)+R1r(u,n,a,i)+s+e[c]+C1r[u]|0;s=i,i=a,a=P1r(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};Xae.prototype._hash=function(){var r=I1r.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};t0t.exports=Xae});var dAe=E((m5a,a0t)=>{f();d();var M1r=tn(),n0t=uv(),B1r=an().Buffer,D1r=[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],N1r=new Array(64);function eie(){this.init(),this._w=N1r,n0t.call(this,64,56)}M1r(eie,n0t);eie.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function O1r(r,e,t){return t^r&(e^t)}function F1r(r,e,t){return r&e|t&(r|e)}function L1r(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function q1r(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function W1r(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function U1r(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}eie.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,u=this._h|0,l=0;l<16;++l)e[l]=r.readInt32BE(l*4);for(;l<64;++l)e[l]=U1r(e[l-2])+e[l-7]+W1r(e[l-15])+e[l-16]|0;for(var p=0;p<64;++p){var h=u+q1r(s)+O1r(s,o,c)+D1r[p]+e[p]|0,m=L1r(t)+F1r(t,n,a)|0;u=c,c=o,o=s,s=i+h|0,i=a,a=n,n=t,t=h+m|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=o+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0};eie.prototype._hash=function(){var r=B1r.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};a0t.exports=eie});var s0t=E((g5a,i0t)=>{f();d();var H1r=tn(),j1r=dAe(),z1r=uv(),K1r=an().Buffer,G1r=new Array(64);function Zme(){this.init(),this._w=G1r,z1r.call(this,64,56)}H1r(Zme,j1r);Zme.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Zme.prototype._hash=function(){var r=K1r.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};i0t.exports=Zme});var pAe=E((x5a,p0t)=>{f();d();var V1r=tn(),d0t=uv(),$1r=an().Buffer,o0t=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],Y1r=new Array(160);function tie(){this.init(),this._w=Y1r,d0t.call(this,128,112)}V1r(tie,d0t);tie.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function c0t(r,e,t){return t^r&(e^t)}function u0t(r,e,t){return r&e|t&(r|e)}function l0t(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function f0t(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function Q1r(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function J1r(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function Z1r(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function X1r(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function c0(r,e){return r>>>0>>0?1:0}tie.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,u=this._hh|0,l=this._al|0,p=this._bl|0,h=this._cl|0,m=this._dl|0,y=this._el|0,C=this._fl|0,P=this._gl|0,A=this._hl|0,B=0;B<32;B+=2)e[B]=r.readInt32BE(B*4),e[B+1]=r.readInt32BE(B*4+4);for(;B<160;B+=2){var F=e[B-30],W=e[B-15*2+1],K=Q1r(F,W),z=J1r(W,F);F=e[B-2*2],W=e[B-2*2+1];var G=Z1r(F,W),j=X1r(W,F),H=e[B-7*2],I=e[B-7*2+1],b=e[B-16*2],k=e[B-16*2+1],S=z+I|0,w=K+H+c0(S,z)|0;S=S+j|0,w=w+G+c0(S,j)|0,S=S+k|0,w=w+b+c0(S,k)|0,e[B]=w,e[B+1]=S}for(var R=0;R<160;R+=2){w=e[R],S=e[R+1];var O=u0t(t,n,a),D=u0t(l,p,h),T=l0t(t,l),x=l0t(l,t),N=f0t(s,y),U=f0t(y,s),M=o0t[R],V=o0t[R+1],ee=c0t(s,o,c),$=c0t(y,C,P),X=A+U|0,se=u+N+c0(X,A)|0;X=X+$|0,se=se+ee+c0(X,$)|0,X=X+V|0,se=se+M+c0(X,V)|0,X=X+S|0,se=se+w+c0(X,S)|0;var ue=x+D|0,ye=T+O+c0(ue,x)|0;u=c,A=P,c=o,P=C,o=s,C=y,y=m+X|0,s=i+se+c0(y,m)|0,i=a,m=h,a=n,h=p,n=t,p=l,l=X+ue|0,t=se+ye+c0(l,X)|0}this._al=this._al+l|0,this._bl=this._bl+p|0,this._cl=this._cl+h|0,this._dl=this._dl+m|0,this._el=this._el+y|0,this._fl=this._fl+C|0,this._gl=this._gl+P|0,this._hl=this._hl+A|0,this._ah=this._ah+t+c0(this._al,l)|0,this._bh=this._bh+n+c0(this._bl,p)|0,this._ch=this._ch+a+c0(this._cl,h)|0,this._dh=this._dh+i+c0(this._dl,m)|0,this._eh=this._eh+s+c0(this._el,y)|0,this._fh=this._fh+o+c0(this._fl,C)|0,this._gh=this._gh+c+c0(this._gl,P)|0,this._hh=this._hh+u+c0(this._hl,A)|0};tie.prototype._hash=function(){var r=$1r.allocUnsafe(64);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};p0t.exports=tie});var m0t=E((E5a,h0t)=>{f();d();var eyr=tn(),tyr=pAe(),ryr=uv(),nyr=an().Buffer,ayr=new Array(160);function Xme(){this.init(),this._w=ayr,ryr.call(this,128,112)}eyr(Xme,tyr);Xme.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Xme.prototype._hash=function(){var r=nyr.allocUnsafe(48);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};h0t.exports=Xme});var rie=E((Gy,y0t)=>{f();d();var Gy=y0t.exports=function(e){e=e.toLowerCase();var t=Gy[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};Gy.sha=Xct();Gy.sha1=r0t();Gy.sha224=s0t();Gy.sha256=dAe();Gy.sha384=m0t();Gy.sha512=pAe()});var g0t=E((S5a,b0t)=>{f();d();b0t.exports=Yd;var hAe=ml().EventEmitter,iyr=tn();iyr(Yd,hAe);Yd.Readable=Nme();Yd.Writable=Mme();Yd.Duplex=O2();Yd.Transform=zme();Yd.PassThrough=oAe();Yd.finished=Wae();Yd.pipeline=uAe();Yd.Stream=Yd;function Yd(){hAe.call(this)}Yd.prototype.pipe=function(r,e){var t=this;function n(l){r.writable&&r.write(l)===!1&&t.pause&&t.pause()}t.on("data",n);function a(){t.readable&&t.resume&&t.resume()}r.on("drain",a),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",o));var i=!1;function s(){i||(i=!0,r.end())}function o(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function c(l){if(u(),hAe.listenerCount(this,"error")===0)throw l}t.on("error",c),r.on("error",c);function u(){t.removeListener("data",n),r.removeListener("drain",a),t.removeListener("end",s),t.removeListener("close",o),t.removeListener("error",c),r.removeListener("error",c),t.removeListener("end",u),t.removeListener("close",u),r.removeListener("close",u)}return t.on("end",u),t.on("close",u),r.on("close",u),r.emit("pipe",t),r}});var Vy=E((M5a,x0t)=>{f();d();var v0t=an().Buffer,w0t=g0t().Transform,syr=Ome().StringDecoder,oyr=tn();function mh(r){w0t.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}oyr(mh,w0t);mh.prototype.update=function(r,e,t){typeof r=="string"&&(r=v0t.from(r,e));var n=this._update(r);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)};mh.prototype.setAutoPadding=function(){};mh.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};mh.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};mh.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};mh.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){n=a}finally{t(n)}};mh.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};mh.prototype._finalOrDigest=function(r){var e=this.__final()||v0t.alloc(0);return r&&(e=this._toString(e,r,!0)),e};mh.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new syr(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};x0t.exports=mh});var lv=E((N5a,T0t)=>{"use strict";f();d();var cyr=tn(),uyr=$me(),lyr=Qme(),fyr=rie(),_0t=Vy();function e1e(r){_0t.call(this,"digest"),this._hash=r}cyr(e1e,_0t);e1e.prototype._update=function(r){this._hash.update(r)};e1e.prototype._final=function(){return this._hash.digest()};T0t.exports=function(e){return e=e.toLowerCase(),e==="md5"?new uyr:e==="rmd160"||e==="ripemd160"?new lyr:new e1e(fyr(e))}});var C0t=E((L5a,I0t)=>{"use strict";f();d();var dyr=tn(),fv=an().Buffer,E0t=Vy(),pyr=fv.alloc(128),c_=64;function t1e(r,e){E0t.call(this,"digest"),typeof e=="string"&&(e=fv.from(e)),this._alg=r,this._key=e,e.length>c_?e=r(e):e.length{f();d();var hyr=$me();A0t.exports=function(r){return new hyr().update(r).digest()}});var gAe=E((z5a,S0t)=>{"use strict";f();d();var myr=tn(),yyr=C0t(),k0t=Vy(),nie=an().Buffer,byr=mAe(),yAe=Qme(),bAe=rie(),gyr=nie.alloc(128);function aie(r,e){k0t.call(this,"digest"),typeof e=="string"&&(e=nie.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new yAe:bAe(r);e=n.update(e).digest()}else e.length{vyr.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var R0t=E(($5a,P0t)=>{f();d();P0t.exports=vAe()});var wAe=E((J5a,M0t)=>{f();d();var wyr=Math.pow(2,30)-1;M0t.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>wyr||e!==e)throw new TypeError("Bad key length")}});var xAe=E((eva,D0t)=>{f();d();var r1e;global.process&&global.process.browser?r1e="utf-8":global.process&&global.process.version?(B0t=parseInt(g.version.split(".")[0].slice(1),10),r1e=B0t>=6?"utf-8":"binary"):r1e="utf-8";var B0t;D0t.exports=r1e});var TAe=E((nva,N0t)=>{f();d();var _Ae=an().Buffer;N0t.exports=function(r,e,t){if(_Ae.isBuffer(r))return r;if(typeof r=="string")return _Ae.from(r,e);if(ArrayBuffer.isView(r))return _Ae.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var EAe=E((sva,q0t)=>{f();d();var xyr=mAe(),_yr=Qme(),Tyr=rie(),dv=an().Buffer,Eyr=wAe(),O0t=xAe(),F0t=TAe(),Iyr=dv.alloc(128),n1e={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L0t(r,e,t){var n=Cyr(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=n(e):e.length{f();d();var j0t=an().Buffer,kyr=wAe(),W0t=xAe(),U0t=EAe(),H0t=TAe(),a1e,iie=global.crypto&&global.crypto.subtle,Syr={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},IAe=[];function Pyr(r){if(global.process&&!global.process.browser||!iie||!iie.importKey||!iie.deriveBits)return Promise.resolve(!1);if(IAe[r]!==void 0)return IAe[r];a1e=a1e||j0t.alloc(8);var e=z0t(a1e,a1e,10,128,r).then(function(){return!0}).catch(function(){return!1});return IAe[r]=e,e}var pv;function CAe(){return pv||(global.process&&global.process.nextTick?pv=global.process.nextTick:global.queueMicrotask?pv=global.queueMicrotask:global.setImmediate?pv=global.setImmediate:pv=global.setTimeout,pv)}function z0t(r,e,t,n,a){return iie.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return iie.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,n<<3)}).then(function(i){return j0t.from(i)})}function Ryr(r,e){r.then(function(t){CAe()(function(){e(null,t)})},function(t){CAe()(function(){e(t)})})}K0t.exports=function(r,e,t,n,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var s=Syr[a.toLowerCase()];if(!s||typeof global.Promise!="function"){CAe()(function(){var o;try{o=U0t(r,e,t,n,a)}catch(c){return i(c)}i(null,o)});return}if(kyr(t,n),r=H0t(r,W0t,"Password"),e=H0t(e,W0t,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");Ryr(Pyr(s).then(function(o){return o?z0t(r,e,t,n,s):U0t(r,e,t,n,a)}),i)}});var kAe=E(AAe=>{f();d();AAe.pbkdf2=G0t();AAe.pbkdf2Sync=EAe()});var SAe=E(Qd=>{"use strict";f();d();Qd.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};Qd.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};Qd.ip=function(e,t,n,a){for(var i=0,s=0,o=6;o>=0;o-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>>c+o&1}for(var o=6;o>=0;o-=2){for(var c=1;c<=25;c+=8)s<<=1,s|=t>>>c+o&1;for(var c=1;c<=25;c+=8)s<<=1,s|=e>>>c+o&1}n[a+0]=i>>>0,n[a+1]=s>>>0};Qd.rip=function(e,t,n,a){for(var i=0,s=0,o=0;o<4;o++)for(var c=24;c>=0;c-=8)i<<=1,i|=t>>>c+o&1,i<<=1,i|=e>>>c+o&1;for(var o=4;o<8;o++)for(var c=24;c>=0;c-=8)s<<=1,s|=t>>>c+o&1,s<<=1,s|=e>>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Qd.pc1=function(e,t,n,a){for(var i=0,s=0,o=7;o>=5;o--){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1}for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var o=1;o<=3;o++){for(var c=0;c<=24;c+=8)s<<=1,s|=t>>c+o&1;for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1}for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Qd.r28shl=function(e,t){return e<>>28-t};var i1e=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Qd.pc2=function(e,t,n,a){for(var i=0,s=0,o=i1e.length>>>1,c=0;c>>i1e[c]&1;for(var c=o;c>>i1e[c]&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Qd.expand=function(e,t,n){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)a<<=6,a|=e>>>s&63;for(var s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=a>>>0,t[n+1]=i>>>0};var V0t=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Qd.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-a*6&63,s=V0t[a*64+i];n<<=4,n|=s}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,s=V0t[4*64+a*64+i];n<<=4,n|=s}return n>>>0};var $0t=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Qd.permute=function(e){for(var t=0,n=0;n<$0t.length;n++)t<<=1,t|=e>>>$0t[n]&1;return t>>>0};Qd.padSplit=function(e,t,n){for(var a=e.toString(2);a.length{"use strict";f();d();var Myr=jf();function Jd(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Y0t.exports=Jd;Jd.prototype._init=function(){};Jd.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Jd.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a0;a--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i};Jd.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Jd.prototype._pad=function(e,t){if(t===0)return!1;for(;t{"use strict";f();d();var Q0t=jf(),Byr=tn(),Dc=SAe(),J0t=s1e();function Dyr(){this.tmp=new Array(2),this.keys=null}function Zm(r){J0t.call(this,r);var e=new Dyr;this._desState=e,this.deriveKeys(e,r.key)}Byr(Zm,J0t);Z0t.exports=Zm;Zm.create=function(e){return new Zm(e)};var Nyr=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Zm.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),Q0t.equal(t.length,this.blockSize,"Invalid key length");var n=Dc.readUInt32BE(t,0),a=Dc.readUInt32BE(t,4);Dc.pc1(n,a,e.tmp,0),n=e.tmp[0],a=e.tmp[1];for(var i=0;i>>1];n=Dc.r28shl(n,s),a=Dc.r28shl(a,s),Dc.pc2(n,a,e.keys,i)}};Zm.prototype._update=function(e,t,n,a){var i=this._desState,s=Dc.readUInt32BE(e,t),o=Dc.readUInt32BE(e,t+4);Dc.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],this.type==="encrypt"?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],Dc.writeUInt32BE(n,s,a),Dc.writeUInt32BE(n,o,a+4)};Zm.prototype._pad=function(e,t){for(var n=e.length-t,a=t;a>>0,s=m}Dc.rip(o,s,a,i)};Zm.prototype._decrypt=function(e,t,n,a,i){for(var s=n,o=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];Dc.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var p=Dc.substitute(u,l),h=Dc.permute(p),m=s;s=(o^h)>>>0,o=m}Dc.rip(s,o,a,i)}});var eut=E(X0t=>{"use strict";f();d();var Oyr=jf(),Fyr=tn(),o1e={};function Lyr(r){Oyr.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";f();d();var Wyr=jf(),Uyr=tn(),tut=s1e(),U2=PAe();function Hyr(r,e){Wyr.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[U2.create({type:"encrypt",key:t}),U2.create({type:"decrypt",key:n}),U2.create({type:"encrypt",key:a})]:this.ciphers=[U2.create({type:"decrypt",key:a}),U2.create({type:"encrypt",key:n}),U2.create({type:"decrypt",key:t})]}function hv(r){tut.call(this,r);var e=new Hyr(this.type,this.options.key);this._edeState=e}Uyr(hv,tut);rut.exports=hv;hv.create=function(e){return new hv(e)};hv.prototype._update=function(e,t,n,a){var i=this._edeState;i.ciphers[0]._update(e,t,n,a),i.ciphers[1]._update(n,a,n,a),i.ciphers[2]._update(n,a,n,a)};hv.prototype._pad=U2.prototype._pad;hv.prototype._unpad=U2.prototype._unpad});var aut=E(u_=>{"use strict";f();d();u_.utils=SAe();u_.Cipher=s1e();u_.DES=PAe();u_.CBC=eut();u_.EDE=nut()});var out=E((Bva,sut)=>{f();d();var iut=Vy(),$y=aut(),jyr=tn(),mv=an().Buffer,sie={"des-ede3-cbc":$y.CBC.instantiate($y.EDE),"des-ede3":$y.EDE,"des-ede-cbc":$y.CBC.instantiate($y.EDE),"des-ede":$y.EDE,"des-cbc":$y.CBC.instantiate($y.DES),"des-ecb":$y.DES};sie.des=sie["des-cbc"];sie.des3=sie["des-ede3-cbc"];sut.exports=c1e;jyr(c1e,iut);function c1e(r){iut.call(this);var e=r.mode.toLowerCase(),t=sie[e],n;r.decrypt?n="decrypt":n="encrypt";var a=r.key;mv.isBuffer(a)||(a=mv.from(a)),(e==="des-ede"||e==="des-ede-cbc")&&(a=mv.concat([a,a.slice(0,8)]));var i=r.iv;mv.isBuffer(i)||(i=mv.from(i)),this._des=t.create({key:a,iv:i,type:n})}c1e.prototype._update=function(r){return mv.from(this._des.update(r))};c1e.prototype._final=function(){return mv.from(this._des.final())}});var cut=E(RAe=>{f();d();RAe.encrypt=function(r,e){return r._cipher.encryptBlock(e)};RAe.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var l_=E((qva,uut)=>{f();d();uut.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new v.Buffer(n),i=0;i{f();d();var lut=l_();MAe.encrypt=function(r,e){var t=lut(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};MAe.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return lut(n,t)}});var hut=E(put=>{f();d();var oie=an().Buffer,zyr=l_();function dut(r,e,t){var n=e.length,a=zyr(e,r._cache);return r._cache=r._cache.slice(n),r._prev=oie.concat([r._prev,t?e:a]),a}put.encrypt=function(r,e,t){for(var n=oie.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=oie.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,n=oie.concat([n,dut(r,e.slice(0,a),t)]),e=e.slice(a);else{n=oie.concat([n,dut(r,e,t)]);break}return n}});var yut=E(mut=>{f();d();var BAe=an().Buffer;function Kyr(r,e,t){var n=r._cipher.encryptBlock(r._prev),a=n[0]^e;return r._prev=BAe.concat([r._prev.slice(1),BAe.from([t?e:a])]),a}mut.encrypt=function(r,e,t){for(var n=e.length,a=BAe.allocUnsafe(n),i=-1;++i{f();d();var u1e=an().Buffer;function Gyr(r,e,t){for(var n,a=-1,i=8,s=0,o,c;++a>a%8,r._prev=Vyr(r._prev,t?o:c);return s}function Vyr(r,e){var t=r.length,n=-1,a=u1e.allocUnsafe(r.length);for(r=u1e.concat([r,u1e.from([e])]);++n>7;return a}but.encrypt=function(r,e,t){for(var n=e.length,a=u1e.allocUnsafe(n),i=-1;++i{f();d();var $yr=l_();function Yyr(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}vut.encrypt=function(r,e){for(;r._cache.length{f();d();function Qyr(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}xut.exports=Qyr});var OAe=E(Tut=>{f();d();var Jyr=l_(),_ut=an().Buffer,Zyr=DAe();function Xyr(r){var e=r._cipher.encryptBlockRaw(r._prev);return Zyr(r._prev),e}var NAe=16;Tut.encrypt=function(r,e){var t=Math.ceil(e.length/NAe),n=r._cache.length;r._cache=_ut.concat([r._cache,_ut.allocUnsafe(t*NAe)]);for(var a=0;a{ebr.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var f1e=E((lwa,Eut)=>{f();d();var tbr={ECB:cut(),CBC:fut(),CFB:hut(),CFB8:yut(),CFB1:gut(),OFB:wut(),CTR:OAe(),GCM:OAe()},l1e=FAe();for(LAe in l1e)l1e[LAe].module=tbr[l1e[LAe].mode];var LAe;Eut.exports=l1e});var cie=E((pwa,Cut)=>{f();d();var d1e=an().Buffer;function WAe(r){d1e.isBuffer(r)||(r=d1e.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n>>24]^s[l>>>16&255]^o[p>>>8&255]^c[h&255]^e[A++],y=i[l>>>24]^s[p>>>16&255]^o[h>>>8&255]^c[u&255]^e[A++],C=i[p>>>24]^s[h>>>16&255]^o[u>>>8&255]^c[l&255]^e[A++],P=i[h>>>24]^s[u>>>16&255]^o[l>>>8&255]^c[p&255]^e[A++],u=m,l=y,p=C,h=P;return m=(n[u>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[h&255])^e[A++],y=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[h>>>8&255]<<8|n[u&255])^e[A++],C=(n[p>>>24]<<24|n[h>>>16&255]<<16|n[u>>>8&255]<<8|n[l&255])^e[A++],P=(n[h>>>24]<<24|n[u>>>16&255]<<16|n[l>>>8&255]<<8|n[p&255])^e[A++],m=m>>>0,y=y>>>0,C=C>>>0,P=P>>>0,[m,y,C,P]}var rbr=[0,1,2,4,8,16,32,64,128,27,54],uc=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var u=o^o<<1^o<<2^o<<3^o<<4;u=u>>>8^u&255^99,t[s]=u,n[u]=s;var l=r[s],p=r[l],h=r[p],m=r[u]*257^u*16843008;a[0][s]=m<<24|m>>>8,a[1][s]=m<<16|m>>>16,a[2][s]=m<<8|m>>>24,a[3][s]=m,m=h*16843009^p*65537^l*257^s*16843008,i[0][u]=m<<24|m>>>8,i[1][u]=m<<16|m>>>16,i[2][u]=m<<8|m>>>24,i[3][u]=m,s===0?s=o=1:(s=l^r[r[r[h^l]]],o^=r[r[o]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function Zd(r){this._key=WAe(r),this._reset()}Zd.blockSize=4*4;Zd.keySize=256/8;Zd.prototype.blockSize=Zd.blockSize;Zd.prototype.keySize=Zd.keySize;Zd.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,a=[],i=0;i>>24,s=uc.SBOX[s>>>24]<<24|uc.SBOX[s>>>16&255]<<16|uc.SBOX[s>>>8&255]<<8|uc.SBOX[s&255],s^=rbr[i/e|0]<<24):e>6&&i%e===4&&(s=uc.SBOX[s>>>24]<<24|uc.SBOX[s>>>16&255]<<16|uc.SBOX[s>>>8&255]<<8|uc.SBOX[s&255]),a[i]=a[i-e]^s}for(var o=[],c=0;c>>24]]^uc.INV_SUB_MIX[1][uc.SBOX[l>>>16&255]]^uc.INV_SUB_MIX[2][uc.SBOX[l>>>8&255]]^uc.INV_SUB_MIX[3][uc.SBOX[l&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=o};Zd.prototype.encryptBlockRaw=function(r){return r=WAe(r),Iut(r,this._keySchedule,uc.SUB_MIX,uc.SBOX,this._nRounds)};Zd.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=d1e.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Zd.prototype.decryptBlock=function(r){r=WAe(r);var e=r[1];r[1]=r[3],r[3]=e;var t=Iut(r,this._invKeySchedule,uc.INV_SUB_MIX,uc.INV_SBOX,this._nRounds),n=d1e.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Zd.prototype.scrub=function(){qAe(this._keySchedule),qAe(this._invKeySchedule),qAe(this._key)};Cut.exports.AES=Zd});var Sut=E((ywa,kut)=>{f();d();var f_=an().Buffer,nbr=f_.alloc(16,0);function abr(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function Aut(r){var e=f_.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function uie(r){this.h=r,this.state=f_.alloc(16,0),this.cache=f_.allocUnsafe(0)}uie.prototype.ghash=function(r){for(var e=-1;++e0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=Aut(e)};uie.prototype.update=function(r){this.cache=f_.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};uie.prototype.final=function(r,e){return this.cache.length&&this.ghash(f_.concat([this.cache,nbr],16)),this.ghash(Aut([0,r,0,e])),this.state};kut.exports=uie});var UAe=E((vwa,Mut)=>{f();d();var ibr=cie(),Gl=an().Buffer,Put=Vy(),sbr=tn(),Rut=Sut(),obr=l_(),cbr=DAe();function ubr(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),a=0;a{f();d();var fbr=cie(),HAe=an().Buffer,But=Vy(),dbr=tn();function p1e(r,e,t,n){But.call(this),this._cipher=new fbr.AES(e),this._prev=HAe.from(t),this._cache=HAe.allocUnsafe(0),this._secCache=HAe.allocUnsafe(0),this._decrypt=n,this._mode=r}dbr(p1e,But);p1e.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};p1e.prototype._final=function(){this._cipher.scrub()};Dut.exports=p1e});var lie=E((Iwa,Nut)=>{f();d();var bv=an().Buffer,pbr=$me();function hbr(r,e,t,n){if(bv.isBuffer(r)||(r=bv.from(r,"binary")),e&&(bv.isBuffer(e)||(e=bv.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=bv.alloc(a),s=bv.alloc(n||0),o=bv.alloc(0);a>0||n>0;){var c=new pbr;c.update(o),c.update(r),e&&c.update(e),o=c.digest();var u=0;if(a>0){var l=i.length-a;u=Math.min(a,o.length),o.copy(i,l,0,u),a-=u}if(u0){var p=s.length-n,h=Math.min(n,o.length-u);o.copy(s,p,u,u+h),n-=h}}return o.fill(0),{key:i,iv:s}}Nut.exports=hbr});var qut=E(zAe=>{f();d();var Out=f1e(),mbr=UAe(),Yy=an().Buffer,ybr=jAe(),Fut=Vy(),bbr=cie(),gbr=lie(),vbr=tn();function fie(r,e,t){Fut.call(this),this._cache=new h1e,this._cipher=new bbr.AES(e),this._prev=Yy.from(t),this._mode=r,this._autopadding=!0}vbr(fie,Fut);fie.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return Yy.concat(n)};var wbr=Yy.alloc(16,16);fie.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(wbr))throw this._cipher.scrub(),new Error("data not multiple of block length")};fie.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function h1e(){this.cache=Yy.allocUnsafe(0)}h1e.prototype.add=function(r){this.cache=Yy.concat([this.cache,r])};h1e.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};h1e.prototype.flush=function(){for(var r=16-this.cache.length,e=Yy.allocUnsafe(r),t=-1;++t{f();d();var _br=UAe(),d_=an().Buffer,Wut=f1e(),Tbr=jAe(),Uut=Vy(),Ebr=cie(),Ibr=lie(),Cbr=tn();function die(r,e,t){Uut.call(this),this._cache=new m1e,this._last=void 0,this._cipher=new Ebr.AES(e),this._prev=d_.from(t),this._mode=r,this._autopadding=!0}Cbr(die,Uut);die.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return d_.concat(n)};die.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return Abr(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};die.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function m1e(){this.cache=d_.allocUnsafe(0)}m1e.prototype.add=function(r){this.cache=d_.concat([this.cache,r])};m1e.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};m1e.prototype.flush=function(){if(this.cache.length)return this.cache};function Abr(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t{f();d();var zut=qut(),Kut=jut(),Sbr=FAe();function Pbr(){return Object.keys(Sbr)}yh.createCipher=yh.Cipher=zut.createCipher;yh.createCipheriv=yh.Cipheriv=zut.createCipheriv;yh.createDecipher=yh.Decipher=Kut.createDecipher;yh.createDecipheriv=yh.Decipheriv=Kut.createDecipheriv;yh.listCiphers=yh.getCiphers=Pbr});var Gut=E(Qy=>{f();d();Qy["des-ecb"]={key:8,iv:0};Qy["des-cbc"]=Qy.des={key:8,iv:8};Qy["des-ede3-cbc"]=Qy.des3={key:24,iv:8};Qy["des-ede3"]={key:24,iv:0};Qy["des-ede-cbc"]={key:16,iv:8};Qy["des-ede"]={key:16,iv:0}});var Jut=E(bh=>{f();d();var Vut=out(),GAe=y1e(),H2=f1e(),Jy=Gut(),$ut=lie();function Rbr(r,e){r=r.toLowerCase();var t,n;if(H2[r])t=H2[r].key,n=H2[r].iv;else if(Jy[r])t=Jy[r].key*8,n=Jy[r].iv;else throw new TypeError("invalid suite type");var a=$ut(e,!1,t,n);return Yut(r,a.key,a.iv)}function Mbr(r,e){r=r.toLowerCase();var t,n;if(H2[r])t=H2[r].key,n=H2[r].iv;else if(Jy[r])t=Jy[r].key*8,n=Jy[r].iv;else throw new TypeError("invalid suite type");var a=$ut(e,!1,t,n);return Qut(r,a.key,a.iv)}function Yut(r,e,t){if(r=r.toLowerCase(),H2[r])return GAe.createCipheriv(r,e,t);if(Jy[r])return new Vut({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function Qut(r,e,t){if(r=r.toLowerCase(),H2[r])return GAe.createDecipheriv(r,e,t);if(Jy[r])return new Vut({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function Bbr(){return Object.keys(Jy).concat(GAe.getCiphers())}bh.createCipher=bh.Cipher=Rbr;bh.createCipheriv=bh.Cipheriv=Yut;bh.createDecipher=bh.Decipher=Mbr;bh.createDecipheriv=bh.Decipheriv=Qut;bh.listCiphers=bh.getCiphers=Bbr});var VAe=E((jwa,Zut)=>{f();d();var gv=Bc(),Dbr=b1e();function vv(r){this.rand=r||new Dbr.Rand}Zut.exports=vv;vv.create=function(e){return new vv(e)};vv.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var a=new gv(this.rand.generate(n));while(a.cmp(e)>=0);return a};vv.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};vv.prototype.test=function(e,t,n){var a=e.bitLength(),i=gv.mont(e),s=new gv(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var u=e.shrn(c),l=o.toRed(i),p=!0;t>0;t--){var h=this._randrange(new gv(2),o);n&&n(h);var m=h.toRed(i).redPow(u);if(!(m.cmp(s)===0||m.cmp(l)===0)){for(var y=1;y0;t--){var l=this._randrange(new gv(2),s),p=e.gcd(l);if(p.cmpn(1)!==0)return p;var h=l.toRed(a).redPow(c);if(!(h.cmp(i)===0||h.cmp(u)===0)){for(var m=1;m{f();d();var Nbr=jy();tlt.exports=ZAe;ZAe.simpleSieve=QAe;ZAe.fermatTest=JAe;var G0=Bc(),Obr=new G0(24),Fbr=VAe(),Xut=new Fbr,Lbr=new G0(1),YAe=new G0(2),qbr=new G0(5),Gwa=new G0(16),Vwa=new G0(8),Wbr=new G0(10),Ubr=new G0(3),$wa=new G0(7),Hbr=new G0(11),elt=new G0(4),Ywa=new G0(12),$Ae=null;function jbr(){if($Ae!==null)return $Ae;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;nr;)t.ishrn(1);if(t.isEven()&&t.iadd(Lbr),t.testn(1)||t.iadd(YAe),e.cmp(YAe)){if(!e.cmp(qbr))for(;t.mod(Wbr).cmp(Ubr);)t.iadd(elt)}else for(;t.mod(Obr).cmp(Hbr);)t.iadd(elt);if(n=t.shrn(1),QAe(n)&&QAe(t)&&JAe(n)&&JAe(t)&&Xut.test(n)&&Xut.test(t))return t}}});var rlt=E((Xwa,zbr)=>{zbr.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var slt=E((e3a,ilt)=>{f();d();var Xd=Bc(),Kbr=VAe(),nlt=new Kbr,Gbr=new Xd(24),Vbr=new Xd(11),$br=new Xd(10),Ybr=new Xd(3),Qbr=new Xd(7),alt=XAe(),Jbr=jy();ilt.exports=Zy;function Zbr(r,e){return e=e||"utf8",v.Buffer.isBuffer(r)||(r=new v.Buffer(r,e)),this._pub=new Xd(r),this}function Xbr(r,e){return e=e||"utf8",v.Buffer.isBuffer(r)||(r=new v.Buffer(r,e)),this._priv=new Xd(r),this}var g1e={};function e2r(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in g1e)return g1e[n];var a=0;if(r.isEven()||!alt.simpleSieve||!alt.fermatTest(r)||!nlt.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,g1e[n]=a,a;nlt.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(Gbr).cmp(Vbr)&&(a+=8);break;case"05":i=r.mod($br),i.cmp(Ybr)&&i.cmp(Qbr)&&(a+=8);break;default:a+=4}return g1e[n]=a,a}function Zy(r,e,t){this.setGenerator(e),this.__prime=new Xd(r),this._prime=Xd.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=Zbr,this.setPrivateKey=Xbr):this._primeCode=8}Object.defineProperty(Zy.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=e2r(this.__prime,this.__gen)),this._primeCode}});Zy.prototype.generateKeys=function(){return this._priv||(this._priv=new Xd(Jbr(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};Zy.prototype.computeSecret=function(r){r=new Xd(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new v.Buffer(e.toArray()),n=this.getPrime();if(t.length{f();d();var t2r=XAe(),olt=rlt(),eke=slt();function r2r(r){var e=new v.Buffer(olt[r].prime,"hex"),t=new v.Buffer(olt[r].gen,"hex");return new eke(e,t)}var n2r={binary:!0,hex:!0,base64:!0};function clt(r,e,t,n){return v.Buffer.isBuffer(e)||n2r[e]===void 0?clt(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new v.Buffer([2]),v.Buffer.isBuffer(t)||(t=new v.Buffer(t,n)),typeof r=="number"?new eke(t2r(r,t),t,!0):(v.Buffer.isBuffer(r)||(r=new v.Buffer(r,e)),new eke(r,t,!0)))}p_.DiffieHellmanGroup=p_.createDiffieHellmanGroup=p_.getDiffieHellman=r2r;p_.createDiffieHellman=p_.DiffieHellman=clt});var w1e=E((s3a,dlt)=>{f();d();var h_=Fr(),a2r=jy();function i2r(r){var e=llt(r),t=e.toRed(h_.mont(r.modulus)).redPow(new h_(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function llt(r){var e=r.modulus.byteLength(),t;do t=new h_(a2r(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function flt(r,e){var t=i2r(e),n=e.modulus.byteLength(),a=new h_(r).mul(t.blinder).umod(e.modulus),i=a.toRed(h_.mont(e.prime1)),s=a.toRed(h_.mont(e.prime2)),o=e.coefficient,c=e.prime1,u=e.prime2,l=i.redPow(e.exponent1).fromRed(),p=s.redPow(e.exponent2).fromRed(),h=l.isub(p).imul(o).umod(c).imul(u);return p.iadd(h).imul(t.unblinder).umod(e.modulus).toArrayLike(v.Buffer,"be",n)}flt.getr=llt;dlt.exports=flt});var _1e=E((u3a,plt)=>{"use strict";f();d();var x1e=Uo(),m_=x1e.Buffer,ep={},tp;for(tp in x1e)!x1e.hasOwnProperty(tp)||tp==="SlowBuffer"||tp==="Buffer"||(ep[tp]=x1e[tp]);var y_=ep.Buffer={};for(tp in m_)!m_.hasOwnProperty(tp)||tp==="allocUnsafe"||tp==="allocUnsafeSlow"||(y_[tp]=m_[tp]);ep.Buffer.prototype=m_.prototype;(!y_.from||y_.from===Uint8Array.from)&&(y_.from=function(r,e,t){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return m_(r,e,t)});y_.alloc||(y_.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var n=m_(r);return!e||e.length===0?n.fill(0):typeof t=="string"?n.fill(e,t):n.fill(e),n});if(!ep.kStringMaxLength)try{ep.kStringMaxLength=g.binding("buffer").kStringMaxLength}catch{}ep.constants||(ep.constants={MAX_LENGTH:ep.kMaxLength},ep.kStringMaxLength&&(ep.constants.MAX_STRING_LENGTH=ep.kStringMaxLength));plt.exports=ep});var T1e=E(hlt=>{"use strict";f();d();var s2r=tn();function rp(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}hlt.Reporter=rp;rp.prototype.isError=function(e){return e instanceof b_};rp.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};rp.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};rp.prototype.enterKey=function(e){return this._reporterState.path.push(e)};rp.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)};rp.prototype.leaveKey=function(e,t,n){let a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=n)};rp.prototype.path=function(){return this._reporterState.path.join("/")};rp.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t};rp.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n};rp.prototype.error=function(e){let t,n=this._reporterState,a=e instanceof b_;if(a?t=e:t=new b_(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t};rp.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function b_(r,e){this.path=r,this.rethrow(e)}s2r(b_,Error);b_.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,b_),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var w_=E(tke=>{"use strict";f();d();var o2r=tn(),E1e=T1e().Reporter,g_=_1e().Buffer;function np(r,e){if(E1e.call(this,e),!g_.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}o2r(np,E1e);tke.DecoderBuffer=np;np.isDecoderBuffer=function(e){return e instanceof np?!0:typeof e=="object"&&g_.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};np.prototype.save=function(){return{offset:this.offset,reporter:E1e.prototype.save.call(this)}};np.prototype.restore=function(e){let t=new np(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,E1e.prototype.restore.call(this,e.reporter),t};np.prototype.isEmpty=function(){return this.offset===this.length};np.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};np.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new np(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};np.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function v_(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return v_.isEncoderBuffer(t)||(t=new v_(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=g_.byteLength(r);else if(g_.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}tke.EncoderBuffer=v_;v_.isEncoderBuffer=function(e){return e instanceof v_?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};v_.prototype.join=function(e,t){return e||(e=g_.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):g_.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var I1e=E((g3a,ylt)=>{"use strict";f();d();var c2r=T1e().Reporter,u2r=w_().EncoderBuffer,l2r=w_().DecoderBuffer,yl=jf(),mlt=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],f2r=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(mlt),d2r=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Hi(r,e,t){let n={};this._baseState=n,n.name=t,n.enc=r,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}ylt.exports=Hi;var p2r=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Hi.prototype.clone=function(){let e=this._baseState,t={};p2r.forEach(function(a){t[a]=e[a]});let n=new this.constructor(t.parent);return n._baseState=t,n};Hi.prototype._wrap=function(){let e=this._baseState;f2r.forEach(function(t){this[t]=function(){let a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};Hi.prototype._init=function(e){let t=this._baseState;yl(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),yl.equal(t.children.length,1,"Root node can have only one child")};Hi.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(yl(t.children===null),t.children=n,n.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&(yl(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;let i={};return Object.keys(a).forEach(function(s){s==(s|0)&&(s|=0);let o=a[s];i[o]=s}),i}))};d2r.forEach(function(r){Hi.prototype[r]=function(){let t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});mlt.forEach(function(r){Hi.prototype[r]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return yl(t.tag===null),t.tag=r,this._useArgs(n),this}});Hi.prototype.use=function(e){yl(e);let t=this._baseState;return yl(t.use===null),t.use=e,this};Hi.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};Hi.prototype.def=function(e){let t=this._baseState;return yl(t.default===null),t.default=e,t.optional=!0,this};Hi.prototype.explicit=function(e){let t=this._baseState;return yl(t.explicit===null&&t.implicit===null),t.explicit=e,this};Hi.prototype.implicit=function(e){let t=this._baseState;return yl(t.explicit===null&&t.implicit===null),t.implicit=e,this};Hi.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};Hi.prototype.key=function(e){let t=this._baseState;return yl(t.key===null),t.key=e,this};Hi.prototype.any=function(){let e=this._baseState;return e.any=!0,this};Hi.prototype.choice=function(e){let t=this._baseState;return yl(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};Hi.prototype.contains=function(e){let t=this._baseState;return yl(t.use===null),t.contains=e,this};Hi.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let a=n.default,i=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){let u=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(u)}else if(i=this._peekTag(e,c,n.any),e.isError(i))return i}let o;if(n.obj&&i&&(o=e.enterObject()),i){if(n.explicit!==null){let u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}let c=e.offset;if(n.use===null&&n.choice===null){let u;n.any&&(u=e.save());let l=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(l))return l;n.any?a=e.raw(u):e=l}if(t&&t.track&&n.tag!==null&&t.track(e.path(),c,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,e,t):a=this._decodeChoice(e,t)),e.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(l){l._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let u=new l2r(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(u,t)}}return n.obj&&i&&(a=e.leaveObject(o)),n.key!==null&&(a!==null||i===!0)?e.leaveKey(s,n.key,a):s!==null&&e.exitKey(s),a};Hi.prototype._decodeGeneric=function(e,t,n){let a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};Hi.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),yl(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};Hi.prototype._decodeChoice=function(e,t){let n=this._baseState,a=null,i=!1;return Object.keys(n.choice).some(function(s){let o=e.save(),c=n.choice[s];try{let u=c._decode(e,t);if(e.isError(u))return!1;a={type:s,value:u},i=!0}catch{return e.restore(o),!1}return!0},this),i?a:e.error("Choice not matched")};Hi.prototype._createEncoderBuffer=function(e){return new u2r(e,this.reporter)};Hi.prototype._encode=function(e,t,n){let a=this._baseState;if(a.default!==null&&a.default===e)return;let i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i};Hi.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new c2r);let i=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;let s=null,o=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),o=!0;else if(a.children)s=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,t,e);if(c._baseState.key===null)return t.error("Child should have a key");let u=t.enterKey(c._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");let l=c._encode(e[c._baseState.key],t,e);return t.leaveKey(u),l},this).filter(function(c){return c}),s=this._createEncoderBuffer(s);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(u){let l=this._baseState;return this._getUse(l.args[0],e)._encode(u,t)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),o=!0);if(!a.any&&a.choice===null){let c=a.implicit!==null?a.implicit:a.tag,u=a.implicit===null?"universal":"context";c===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,o,u,s))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};Hi.prototype._encodeChoice=function(e,t){let n=this._baseState,a=n.choice[e.type];return a||yl(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)};Hi.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};Hi.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Hi.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var C1e=E(wv=>{"use strict";f();d();function blt(r){let e={};return Object.keys(r).forEach(function(t){(t|0)==t&&(t=t|0);let n=r[t];e[n]=t}),e}wv.tagClass={0:"universal",1:"application",2:"context",3:"private"};wv.tagClassByName=blt(wv.tagClass);wv.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};wv.tagByName=blt(wv.tag)});var nke=E((E3a,wlt)=>{"use strict";f();d();var h2r=tn(),Xy=_1e().Buffer,glt=I1e(),rke=C1e();function vlt(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new gh,this.tree._init(r.body)}wlt.exports=vlt;vlt.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function gh(r){glt.call(this,"der",r)}h2r(gh,glt);gh.prototype._encodeComposite=function(e,t,n,a){let i=m2r(e,t,n,this.reporter);if(a.length<128){let c=Xy.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let s=1;for(let c=a.length;c>=256;c>>=8)s++;let o=Xy.alloc(1+1+s);o[0]=i,o[1]=128|s;for(let c=1+s,u=a.length;u>0;c--,u>>=8)o[c]=u&255;return this._createEncoderBuffer([o,a])};gh.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){let n=Xy.alloc(e.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let a=0;for(let o=0;o=128;c>>=7)a++}let i=Xy.alloc(a),s=i.length-1;for(let o=e.length-1;o>=0;o--){let c=e[o];for(i[s--]=c&127;(c>>=7)>0;)i[s--]=128|c&127}return this._createEncoderBuffer(i)};function ap(r){return r<10?"0"+r:r}gh.prototype._encodeTime=function(e,t){let n,a=new Date(e);return t==="gentime"?n=[ap(a.getUTCFullYear()),ap(a.getUTCMonth()+1),ap(a.getUTCDate()),ap(a.getUTCHours()),ap(a.getUTCMinutes()),ap(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[ap(a.getUTCFullYear()%100),ap(a.getUTCMonth()+1),ap(a.getUTCDate()),ap(a.getUTCHours()),ap(a.getUTCMinutes()),ap(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};gh.prototype._encodeNull=function(){return this._createEncoderBuffer("")};gh.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!Xy.isBuffer(e)){let i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=Xy.from(i)}if(Xy.isBuffer(e)){let i=e.length;e.length===0&&i++;let s=Xy.alloc(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;let a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(Xy.from(a))};gh.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};gh.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};gh.prototype._skipDefault=function(e,t,n){let a=this._baseState,i;if(a.default===null)return!1;let s=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),s.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=rke.tagClassByName[t||"universal"]<<6,a)}});var _lt=E((A3a,xlt)=>{"use strict";f();d();var y2r=tn(),ake=nke();function ike(r){ake.call(this,r),this.enc="pem"}y2r(ike,ake);xlt.exports=ike;ike.prototype.encode=function(e,t){let a=ake.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let s=0;s{"use strict";f();d();var Tlt=Elt;Tlt.der=nke();Tlt.pem=_lt()});var cke=E((B3a,Plt)=>{"use strict";f();d();var b2r=tn(),g2r=Bc(),Ilt=w_().DecoderBuffer,Alt=I1e(),Clt=C1e();function klt(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new Kf,this.tree._init(r.body)}Plt.exports=klt;klt.prototype.decode=function(e,t){return Ilt.isDecoderBuffer(e)||(e=new Ilt(e,t)),this.tree._decode(e,t)};function Kf(r){Alt.call(this,"der",r)}b2r(Kf,Alt);Kf.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let a=e.save(),i=oke(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)};Kf.prototype._decodeTag=function(e,t,n){let a=oke(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;let i=Slt(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');let s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))};Kf.prototype._skipUntilEnd=function(e,t){for(;;){let n=oke(e,t);if(e.isError(n))return n;let a=Slt(e,n.primitive,t);if(e.isError(a))return a;let i;if(n.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr==="end")break}};Kf.prototype._decodeList=function(e,t,n,a){let i=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let o=n.decode(e,"der",a);if(e.isError(o)&&s)break;i.push(o)}return i};Kf.prototype._decodeStr=function(e,t){if(t==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let a="";for(let i=0;i>6],a=(t&32)===0;if((t&31)===31){let s=t;for(t=0;(s&128)===128;){if(s=r.readUInt8(e),r.isError(s))return s;t<<=7,t|=s&127}}else t&=31;let i=Clt.tag[t];return{cls:n,primitive:a,tag:t,tagStr:i}}function Slt(r,e,t){let n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;let a=n&127;if(a>4)return r.error("length octect is too long");n=0;for(let i=0;i{"use strict";f();d();var v2r=tn(),w2r=_1e().Buffer,uke=cke();function lke(r){uke.call(this,r),this.enc="pem"}v2r(lke,uke);Rlt.exports=lke;lke.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,o=-1;for(let l=0;l{"use strict";f();d();var Blt=Dlt;Blt.der=cke();Blt.pem=Mlt()});var Olt=E(Nlt=>{"use strict";f();d();var x2r=ske(),_2r=fke(),T2r=tn(),E2r=Nlt;E2r.define=function(e,t){return new x_(e,t)};function x_(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}x_.prototype._createNamed=function(e){let t=this.name;function n(a){this._initNamed(a,t)}return T2r(n,e),n.prototype._initNamed=function(i,s){e.call(this,i,s)},new n(this)};x_.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(_2r[e])),this.decoders[e]};x_.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};x_.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(x2r[e])),this.encoders[e]};x_.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var Llt=E(Flt=>{"use strict";f();d();var A1e=Flt;A1e.Reporter=T1e().Reporter;A1e.DecoderBuffer=w_().DecoderBuffer;A1e.EncoderBuffer=w_().EncoderBuffer;A1e.Node=I1e()});var Ult=E(Wlt=>{"use strict";f();d();var qlt=Wlt;qlt._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let a=e[n];t[a]=n}),t};qlt.der=C1e()});var dke=E(Hlt=>{"use strict";f();d();var __=Hlt;__.bignum=Bc();__.define=Olt().define;__.base=Llt();__.constants=Ult();__.decoders=fke();__.encoders=ske()});var Glt=E((e8a,Klt)=>{"use strict";f();d();var vh=dke(),jlt=vh.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),I2r=vh.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),pke=vh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),C2r=vh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(pke),this.key("subjectPublicKey").bitstr())}),A2r=vh.define("RelativeDistinguishedName",function(){this.setof(I2r)}),k2r=vh.define("RDNSequence",function(){this.seqof(A2r)}),zlt=vh.define("Name",function(){this.choice({rdnSequence:this.use(k2r)})}),S2r=vh.define("Validity",function(){this.seq().obj(this.key("notBefore").use(jlt),this.key("notAfter").use(jlt))}),P2r=vh.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),R2r=vh.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(pke),this.key("issuer").use(zlt),this.key("validity").use(S2r),this.key("subject").use(zlt),this.key("subjectPublicKeyInfo").use(C2r),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(P2r).optional())}),M2r=vh.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(R2r),this.key("signatureAlgorithm").use(pke),this.key("signatureValue").bitstr())});Klt.exports=M2r});var $lt=E(xh=>{"use strict";f();d();var wh=dke();xh.certificate=Glt();var B2r=wh.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});xh.RSAPrivateKey=B2r;var D2r=wh.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});xh.RSAPublicKey=D2r;var N2r=wh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Vlt),this.key("subjectPublicKey").bitstr())});xh.PublicKey=N2r;var Vlt=wh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),O2r=wh.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(Vlt),this.key("subjectPrivateKey").octstr())});xh.PrivateKey=O2r;var F2r=wh.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});xh.EncryptedPrivateKey=F2r;var L2r=wh.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});xh.DSAPrivateKey=L2r;xh.DSAparam=wh.define("DSAparam",function(){this.int()});var q2r=wh.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(W2r),this.key("publicKey").optional().explicit(1).bitstr())});xh.ECPrivateKey=q2r;var W2r=wh.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});xh.signature=wh.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var Ylt=E((s8a,U2r)=>{U2r.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var Jlt=E((o8a,Qlt)=>{f();d();var H2r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,j2r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,z2r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,K2r=lie(),G2r=y1e(),k1e=an().Buffer;Qlt.exports=function(r,e){var t=r.toString(),n=t.match(H2r),a;if(n){var s="aes"+n[1],o=k1e.from(n[2],"hex"),c=k1e.from(n[3].replace(/[\r\n]/g,""),"base64"),u=K2r(e,o.slice(0,8),parseInt(n[1],10)).key,l=[],p=G2r.createDecipheriv(s,u,o);l.push(p.update(c)),l.push(p.final()),a=k1e.concat(l)}else{var i=t.match(z2r);a=k1e.from(i[2].replace(/[\r\n]/g,""),"base64")}var h=t.match(j2r)[1];return{tag:h,data:a}}});var pie=E((l8a,Xlt)=>{f();d();var Vl=$lt(),V2r=Ylt(),$2r=Jlt(),Y2r=y1e(),Q2r=kAe(),hke=an().Buffer;Xlt.exports=Zlt;function Zlt(r){var e;typeof r=="object"&&!hke.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=hke.from(r));var t=$2r(r,e),n=t.tag,a=t.data,i,s;switch(n){case"CERTIFICATE":s=Vl.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=Vl.PublicKey.decode(a,"der")),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return Vl.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=Vl.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":a=Vl.EncryptedPrivateKey.decode(a,"der"),a=J2r(a,e);case"PRIVATE KEY":switch(s=Vl.PrivateKey.decode(a,"der"),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return Vl.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:Vl.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=Vl.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return Vl.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return Vl.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Vl.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=Vl.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+n)}}Zlt.signature=Vl.signature;function J2r(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=V2r[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,o=parseInt(a.split("-")[1],10)/8,c=Q2r.pbkdf2Sync(e,t,n,o,"sha1"),u=Y2r.createDecipheriv(a,c,i),l=[];return l.push(u.update(s)),l.push(u.final()),hke.concat(l)}});var mke=E((p8a,Z2r)=>{Z2r.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var rft=E((h8a,P1e)=>{f();d();var ku=an().Buffer,xv=gAe(),X2r=w1e(),egr=T_().ec,S1e=Fr(),tgr=pie(),rgr=mke();function ngr(r,e,t,n,a){var i=tgr(e);if(i.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return agr(r,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return igr(r,i,t)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");r=ku.concat([a,r]);for(var s=i.modulus.byteLength(),o=[0,1];r.length+o.length+10&&t.ishrn(n),t}function ogr(r,e){r=yke(r,e),r=r.mod(e);var t=ku.from(r.toArray());if(t.length{f();d();var bke=an().Buffer,hie=Fr(),ugr=T_().ec,aft=pie(),lgr=mke();function fgr(r,e,t,n,a){var i=aft(t);if(i.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return dgr(r,e,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return pgr(r,e,i)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=bke.concat([a,e]);for(var s=i.modulus.byteLength(),o=[1],c=0;e.length+o.length+2=e)throw new Error("invalid sig")}ift.exports=fgr});var dft=E((w8a,fft)=>{f();d();var R1e=an().Buffer,uft=lv(),M1e=Kae(),lft=tn(),hgr=rft(),mgr=sft(),_v=vAe();Object.keys(_v).forEach(function(r){_v[r].id=R1e.from(_v[r].id,"hex"),_v[r.toLowerCase()]=_v[r]});function mie(r){M1e.Writable.call(this);var e=_v[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=uft(e.hash),this._tag=e.id,this._signType=e.sign}lft(mie,M1e.Writable);mie.prototype._write=function(e,t,n){this._hash.update(e),n()};mie.prototype.update=function(e,t){return typeof e=="string"&&(e=R1e.from(e,t)),this._hash.update(e),this};mie.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),a=hgr(n,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function yie(r){M1e.Writable.call(this);var e=_v[r];if(!e)throw new Error("Unknown message digest");this._hash=uft(e.hash),this._tag=e.id,this._signType=e.sign}lft(yie,M1e.Writable);yie.prototype._write=function(e,t,n){this._hash.update(e),n()};yie.prototype.update=function(e,t){return typeof e=="string"&&(e=R1e.from(e,t)),this._hash.update(e),this};yie.prototype.verify=function(e,t,n){typeof t=="string"&&(t=R1e.from(t,n)),this.end();var a=this._hash.digest();return mgr(t,a,e,this._signType,this._tag)};function oft(r){return new mie(r)}function cft(r){return new yie(r)}fft.exports={Sign:oft,Verify:cft,createSign:oft,createVerify:cft}});var hft=E((T8a,pft)=>{f();d();var ygr=T_(),bgr=Bc();pft.exports=function(e){return new Tv(e)};var Gf={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Gf.p224=Gf.secp224r1;Gf.p256=Gf.secp256r1=Gf.prime256v1;Gf.p192=Gf.secp192r1=Gf.prime192v1;Gf.p384=Gf.secp384r1;Gf.p521=Gf.secp521r1;function Tv(r){this.curveType=Gf[r],this.curveType||(this.curveType={name:r}),this.curve=new ygr.ec(this.curveType.name),this.keys=void 0}Tv.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Tv.prototype.computeSecret=function(r,e,t){e=e||"utf8",v.Buffer.isBuffer(r)||(r=new v.Buffer(r,e));var n=this.curve.keyFromPublic(r).getPublic(),a=n.mul(this.keys.getPrivate()).getX();return gke(a,t,this.curveType.byteLength)};Tv.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),gke(t,r)};Tv.prototype.getPrivateKey=function(r){return gke(this.keys.getPrivate(),r)};Tv.prototype.setPublicKey=function(r,e){return e=e||"utf8",v.Buffer.isBuffer(r)||(r=new v.Buffer(r,e)),this.keys._importPublic(r),this};Tv.prototype.setPrivateKey=function(r,e){e=e||"utf8",v.Buffer.isBuffer(r)||(r=new v.Buffer(r,e));var t=new bgr(r);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this};function gke(r,e,t){Array.isArray(r)||(r=r.toArray());var n=new v.Buffer(r);if(t&&n.length{f();d();var ggr=lv(),vke=an().Buffer;mft.exports=function(r,e){for(var t=vke.alloc(0),n=0,a;t.length{f();d();yft.exports=function(e,t){for(var n=e.length,a=-1;++a{f();d();var bft=Bc(),wgr=an().Buffer;function xgr(r,e){return wgr.from(r.toRed(bft.mont(e.modulus)).redPow(new bft(e.publicExponent)).fromRed().toArray())}gft.exports=xgr});var _ft=E((N8a,xft)=>{f();d();var _gr=pie(),Tke=jy(),Tgr=lv(),vft=wke(),wft=xke(),Eke=Bc(),Egr=_ke(),Igr=w1e(),_h=an().Buffer;xft.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=_gr(e),s;if(a===4)s=Cgr(i,t);else if(a===1)s=Agr(i,t,n);else if(a===3){if(s=new Eke(t),s.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?Igr(s,i):Egr(s,i)};function Cgr(r,e){var t=r.modulus.byteLength(),n=e.length,a=Tgr("sha1").update(_h.alloc(0)).digest(),i=a.length,s=2*i;if(n>t-s-2)throw new Error("message too long");var o=_h.alloc(t-n-s-2),c=t-i-1,u=Tke(i),l=wft(_h.concat([a,o,_h.alloc(1,1),e],c),vft(u,c)),p=wft(u,vft(l,i));return new Eke(_h.concat([_h.alloc(1),p,l],t))}function Agr(r,e,t){var n=e.length,a=r.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return t?i=_h.alloc(a-n-3,255):i=kgr(a-n-3),new Eke(_h.concat([_h.from([0,t?1:2]),i,_h.alloc(1),e],a))}function kgr(r){for(var e=_h.allocUnsafe(r),t=0,n=Tke(r*2),a=0,i;t{f();d();var Sgr=pie(),Tft=wke(),Eft=xke(),Ift=Bc(),Pgr=w1e(),Rgr=lv(),Mgr=_ke(),bie=an().Buffer;Cft.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=Sgr(e),s=i.modulus.byteLength();if(t.length>s||new Ift(t).cmp(i.modulus)>=0)throw new Error("decryption error");var o;n?o=Mgr(new Ift(t),i):o=Pgr(t,i);var c=bie.alloc(s-o.length);if(o=bie.concat([c,o],s),a===4)return Bgr(i,o);if(a===1)return Dgr(i,o,n);if(a===3)return o;throw new Error("unknown padding")};function Bgr(r,e){var t=r.modulus.byteLength(),n=Rgr("sha1").update(bie.alloc(0)).digest(),a=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,a+1),s=e.slice(a+1),o=Eft(i,Tft(s,a)),c=Eft(s,Tft(o,t-a-1));if(Ngr(n,c.slice(0,a)))throw new Error("decryption error");for(var u=a;c[u]===0;)u++;if(c[u++]!==1)throw new Error("decryption error");return c.slice(u)}function Dgr(r,e,t){for(var n=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var s=e.slice(2,a-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&i++,s.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function Ngr(r,e){r=bie.from(r),e=bie.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var a=-1;++a{f();d();Ev.publicEncrypt=_ft();Ev.privateDecrypt=Aft();Ev.privateEncrypt=function(e,t){return Ev.publicEncrypt(e,t,!0)};Ev.publicDecrypt=function(e,t){return Ev.privateDecrypt(e,t,!0)}});var Lft=E(gie=>{"use strict";f();d();function Sft(){throw new Error(`secure random number generation not supported by this browser +use chrome, FireFox or Internet Explorer 11`)}var Rft=an(),Pft=jy(),Mft=Rft.Buffer,Bft=Rft.kMaxLength,Ike=global.crypto||global.msCrypto,Dft=Math.pow(2,32)-1;function Nft(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>Dft||r<0)throw new TypeError("offset must be a uint32");if(r>Bft||r>e)throw new RangeError("offset out of range")}function Oft(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>Dft||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>Bft)throw new RangeError("buffer too small")}Ike&&Ike.getRandomValues||!g.browser?(gie.randomFill=Ogr,gie.randomFillSync=Fgr):(gie.randomFill=Sft,gie.randomFillSync=Sft);function Ogr(r,e,t,n){if(!Mft.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,t=r.length;else if(typeof t=="function")n=t,t=r.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return Nft(e,r.length),Oft(t,e,r.length),Fft(r,e,t,n)}function Fft(r,e,t,n){if(g.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(Ike.getRandomValues(i),n){g.nextTick(function(){n(null,r)});return}return r}if(n){Pft(t,function(o,c){if(o)return n(o);c.copy(r,e),n(null,r)});return}var s=Pft(t);return s.copy(r,e),r}function Fgr(r,e,t){if(typeof e>"u"&&(e=0),!Mft.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Nft(e,r.length),t===void 0&&(t=r.length-e),Oft(t,e,r.length),Fft(r,e,t)}});var N1e=E(sn=>{"use strict";f();d();sn.randomBytes=sn.rng=sn.pseudoRandomBytes=sn.prng=jy();sn.createHash=sn.Hash=lv();sn.createHmac=sn.Hmac=gAe();var Lgr=R0t(),qgr=Object.keys(Lgr),Wgr=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(qgr);sn.getHashes=function(){return Wgr};var qft=kAe();sn.pbkdf2=qft.pbkdf2;sn.pbkdf2Sync=qft.pbkdf2Sync;var Xm=Jut();sn.Cipher=Xm.Cipher;sn.createCipher=Xm.createCipher;sn.Cipheriv=Xm.Cipheriv;sn.createCipheriv=Xm.createCipheriv;sn.Decipher=Xm.Decipher;sn.createDecipher=Xm.createDecipher;sn.Decipheriv=Xm.Decipheriv;sn.createDecipheriv=Xm.createDecipheriv;sn.getCiphers=Xm.getCiphers;sn.listCiphers=Xm.listCiphers;var vie=ult();sn.DiffieHellmanGroup=vie.DiffieHellmanGroup;sn.createDiffieHellmanGroup=vie.createDiffieHellmanGroup;sn.getDiffieHellman=vie.getDiffieHellman;sn.createDiffieHellman=vie.createDiffieHellman;sn.DiffieHellman=vie.DiffieHellman;var B1e=dft();sn.createSign=B1e.createSign;sn.Sign=B1e.Sign;sn.createVerify=B1e.createVerify;sn.Verify=B1e.Verify;sn.createECDH=hft();var D1e=kft();sn.publicEncrypt=D1e.publicEncrypt;sn.privateEncrypt=D1e.privateEncrypt;sn.publicDecrypt=D1e.publicDecrypt;sn.privateDecrypt=D1e.privateDecrypt;var Wft=Lft();sn.randomFill=Wft.randomFill;sn.randomFillSync=Wft.randomFillSync;sn.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` +`))};sn.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var b1e=E((Q8a,kke)=>{f();d();var Cke;kke.exports=function(e){return Cke||(Cke=new j2(null)),Cke.generate(e)};function j2(r){this.rand=r}kke.exports.Rand=j2;j2.prototype.generate=function(e){return this._rand(e)};j2.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";f();d();var Iv=Bc(),wie=zf(),O1e=wie.getNAF,Ugr=wie.getJSF,F1e=wie.assert;function z2(r,e){this.type=r,this.p=new Iv(e.p,16),this.red=e.prime?Iv.red(e.prime):Iv.mont(this.p),this.zero=new Iv(0).toRed(this.red),this.one=new Iv(1).toRed(this.red),this.two=new Iv(2).toRed(this.red),this.n=e.n&&new Iv(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Uft.exports=z2;z2.prototype.point=function(){throw new Error("Not implemented")};z2.prototype.validate=function(){throw new Error("Not implemented")};z2.prototype._fixedNafMul=function(e,t){F1e(e.precomputed);var n=e._getDoubles(),a=O1e(t,1,this._bitLength),i=(1<=o;u--)c=(c<<1)+a[u];s.push(c)}for(var l=this.jpoint(null,null,null),p=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;c--){for(var u=0;c>=0&&s[c]===0;c--)u++;if(c>=0&&u++,o=o.dblp(u),c<0)break;var l=s[c];F1e(l!==0),e.type==="affine"?l>0?o=o.mixedAdd(i[l-1>>1]):o=o.mixedAdd(i[-l-1>>1].neg()):l>0?o=o.add(i[l-1>>1]):o=o.add(i[-l-1>>1].neg())}return e.type==="affine"?o.toP():o};z2.prototype._wnafMulAdd=function(e,t,n,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,u=0,l,p,h;for(l=0;l=1;l-=2){var y=l-1,C=l;if(s[y]!==1||s[C]!==1){c[y]=O1e(n[y],s[y],this._bitLength),c[C]=O1e(n[C],s[C],this._bitLength),u=Math.max(c[y].length,u),u=Math.max(c[C].length,u);continue}var P=[t[y],null,null,t[C]];t[y].y.cmp(t[C].y)===0?(P[1]=t[y].add(t[C]),P[2]=t[y].toJ().mixedAdd(t[C].neg())):t[y].y.cmp(t[C].y.redNeg())===0?(P[1]=t[y].toJ().mixedAdd(t[C]),P[2]=t[y].add(t[C].neg())):(P[1]=t[y].toJ().mixedAdd(t[C]),P[2]=t[y].toJ().mixedAdd(t[C].neg()));var A=[-3,-1,-5,-7,0,7,5,1,3],B=Ugr(n[y],n[C]);for(u=Math.max(B[0].length,u),c[y]=new Array(u),c[C]=new Array(u),p=0;p=0;l--){for(var G=0;l>=0;){var j=!0;for(p=0;p=0&&G++,K=K.dblp(G),l<0)break;for(p=0;p0?h=o[p][H-1>>1]:H<0&&(h=o[p][-H-1>>1].neg()),h.type==="affine"?K=K.mixedAdd(h):K=K.add(h))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step):!1};ip.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i{"use strict";f();d();var Hgr=zf(),Eo=Bc(),Ske=tn(),E_=xie(),jgr=Hgr.assert;function sp(r){E_.call(this,"short",r),this.a=new Eo(r.a,16).toRed(this.red),this.b=new Eo(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Ske(sp,E_);Hft.exports=sp;sp.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new Eo(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)n=new Eo(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?n=i[0]:(n=i[1],jgr(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var s;return e.basis?s=e.basis.map(function(o){return{a:new Eo(o.a,16),b:new Eo(o.b,16)}}):s=this._getEndoBasis(n),{beta:t,lambda:n,basis:s}}};sp.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:Eo.mont(e),n=new Eo(2).toRed(t).redInvm(),a=n.redNeg(),i=new Eo(3).toRed(t).redNeg().redSqrt().redMul(n),s=a.redAdd(i).fromRed(),o=a.redSub(i).fromRed();return[s,o]};sp.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,a=this.n.clone(),i=new Eo(1),s=new Eo(0),o=new Eo(0),c=new Eo(1),u,l,p,h,m,y,C,P=0,A,B;n.cmpn(0)!==0;){var F=a.div(n);A=a.sub(F.mul(n)),B=o.sub(F.mul(i));var W=c.sub(F.mul(s));if(!p&&A.cmp(t)<0)u=C.neg(),l=i,p=A.neg(),h=B;else if(p&&++P===2)break;C=A,a=n,n=A,o=i,i=B,c=s,s=W}m=A.neg(),y=B;var K=p.sqr().add(h.sqr()),z=m.sqr().add(y.sqr());return z.cmp(K)>=0&&(m=u,y=l),p.negative&&(p=p.neg(),h=h.neg()),m.negative&&(m=m.neg(),y=y.neg()),[{a:p,b:h},{a:m,b:y}]};sp.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),c=s.mul(a.a),u=i.mul(n.b),l=s.mul(a.b),p=e.sub(o).sub(c),h=u.add(l).neg();return{k1:p,k2:h}};sp.prototype.pointFromX=function(e,t){e=new Eo(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};sp.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};sp.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};u0.prototype.isInfinity=function(){return this.inf};u0.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};u0.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};u0.prototype.getX=function(){return this.x.fromRed()};u0.prototype.getY=function(){return this.y.fromRed()};u0.prototype.mul=function(e){return e=new Eo(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)};u0.prototype.mulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};u0.prototype.jmulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};u0.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};u0.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t};u0.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function V0(r,e,t,n){E_.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Eo(0)):(this.x=new Eo(e,16),this.y=new Eo(t,16),this.z=new Eo(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}Ske(V0,E_.BasePoint);sp.prototype.jpoint=function(e,t,n){return new V0(this,e,t,n)};V0.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)};V0.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};V0.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),c=a.redSub(i),u=s.redSub(o);if(c.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),p=l.redMul(c),h=a.redMul(l),m=u.redSqr().redIAdd(p).redISub(h).redISub(h),y=u.redMul(h.redISub(m)).redISub(s.redMul(p)),C=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(m,y,C)};V0.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=n.redSub(a),c=i.redSub(s);if(o.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),p=n.redMul(u),h=c.redSqr().redIAdd(l).redISub(p).redISub(p),m=c.redMul(p.redISub(h)).redISub(i.redMul(l)),y=this.z.redMul(o);return this.curve.jpoint(h,m,y)};V0.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};V0.prototype.inspect=function(){return this.isInfinity()?"":""};V0.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var Gft=E((i4a,Kft)=>{"use strict";f();d();var I_=Bc(),zft=tn(),L1e=xie(),zgr=zf();function C_(r){L1e.call(this,"mont",r),this.a=new I_(r.a,16).toRed(this.red),this.b=new I_(r.b,16).toRed(this.red),this.i4=new I_(4).toRed(this.red).redInvm(),this.two=new I_(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}zft(C_,L1e);Kft.exports=C_;C_.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),a=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function l0(r,e,t){L1e.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new I_(e,16),this.z=new I_(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}zft(l0,L1e.BasePoint);C_.prototype.decodePoint=function(e,t){return this.point(zgr.toArray(e,t),1)};C_.prototype.point=function(e,t){return new l0(this,e,t)};C_.prototype.pointFromJSON=function(e){return l0.fromJSON(this,e)};l0.prototype.precompute=function(){};l0.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};l0.fromJSON=function(e,t){return new l0(e,t[0],t[1]||e.one)};l0.prototype.inspect=function(){return this.isInfinity()?"":""};l0.prototype.isInfinity=function(){return this.z.cmpn(0)===0};l0.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=t.redSub(a),s=t.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};l0.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};l0.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z),o=s.redMul(n),c=i.redMul(a),u=t.z.redMul(o.redAdd(c).redSqr()),l=t.x.redMul(o.redISub(c).redSqr());return this.curve.point(u,l)};l0.prototype.mul=function(e){for(var t=e.clone(),n=this,a=this.curve.point(null,null),i=this,s=[];t.cmpn(0)!==0;t.iushrn(1))s.push(t.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};l0.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};l0.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};l0.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};l0.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};l0.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var Yft=E((c4a,$ft)=>{"use strict";f();d();var Kgr=zf(),eb=Bc(),Vft=tn(),q1e=xie(),Ggr=Kgr.assert;function e1(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,q1e.call(this,"edwards",r),this.a=new eb(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new eb(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new eb(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Ggr(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}Vft(e1,q1e);$ft.exports=e1;e1.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};e1.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};e1.prototype.jpoint=function(e,t,n,a){return this.point(e,t,n,a)};e1.prototype.pointFromX=function(e,t){e=new eb(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=a.redMul(i.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)};e1.prototype.pointFromY=function(e,t){e=new eb(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)};e1.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),a=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return a.cmp(i)===0};function ns(r,e,t,n,a){q1e.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new eb(e,16),this.y=new eb(t,16),this.z=n?new eb(n,16):this.curve.one,this.t=a&&new eb(a,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()))))}Vft(ns,q1e.BasePoint);e1.prototype.pointFromJSON=function(e){return ns.fromJSON(this,e)};e1.prototype.point=function(e,t,n,a){return new ns(this,e,t,n,a)};ns.fromJSON=function(e,t){return new ns(e,t[0],t[1],t[2])};ns.prototype.inspect=function(){return this.isInfinity()?"":""};ns.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};ns.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=a.redAdd(t),o=s.redSub(n),c=a.redSub(t),u=i.redMul(o),l=s.redMul(c),p=i.redMul(c),h=o.redMul(s);return this.curve.point(u,l,h,p)};ns.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),a,i,s,o,c,u;if(this.curve.twisted){o=this.curve._mulA(t);var l=o.redAdd(n);this.zOne?(a=e.redSub(t).redSub(n).redMul(l.redSub(this.curve.two)),i=l.redMul(o.redSub(n)),s=l.redSqr().redSub(l).redSub(l)):(c=this.z.redSqr(),u=l.redSub(c).redISub(c),a=e.redSub(t).redISub(n).redMul(u),i=l.redMul(o.redSub(n)),s=l.redMul(u))}else o=t.redAdd(n),c=this.curve._mulC(this.z).redSqr(),u=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(u),i=this.curve._mulC(o).redMul(t.redISub(n)),s=o.redMul(u);return this.curve.point(a,i,s)};ns.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};ns.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),o=i.redSub(a),c=i.redAdd(a),u=n.redAdd(t),l=s.redMul(o),p=c.redMul(u),h=s.redMul(u),m=o.redMul(c);return this.curve.point(l,p,m,h)};ns.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=n.redSub(s),c=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),l=t.redMul(o).redMul(u),p,h;return this.curve.twisted?(p=t.redMul(c).redMul(i.redSub(this.curve._mulA(a))),h=o.redMul(c)):(p=t.redMul(c).redMul(i.redSub(a)),h=this.curve._mulC(o).redMul(c)),this.curve.point(l,p,h)};ns.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};ns.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};ns.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};ns.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};ns.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};ns.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};ns.prototype.getX=function(){return this.normalize(),this.x.fromRed()};ns.prototype.getY=function(){return this.normalize(),this.y.fromRed()};ns.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};ns.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};ns.prototype.toP=ns.prototype.normalize;ns.prototype.mixedAdd=ns.prototype.add});var Pke=E(Qft=>{"use strict";f();d();var W1e=Qft;W1e.base=xie();W1e.short=jft();W1e.mont=Gft();W1e.edwards=Yft()});var Th=E(Qi=>{"use strict";f();d();var Vgr=jf(),$gr=tn();Qi.inherits=$gr;function Ygr(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function Qgr(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a>6|192,t[n++]=i&63|128):Ygr(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}else for(a=0;a>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}Qi.htonl=Jft;function Zgr(r,e){for(var t="",n=0;n>>0}return i}Qi.join32=Xgr;function e6r(r,e){for(var t=new Array(r.length*4),n=0,a=0;n>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}Qi.split32=e6r;function t6r(r,e){return r>>>e|r<<32-e}Qi.rotr32=t6r;function r6r(r,e){return r<>>32-e}Qi.rotl32=r6r;function n6r(r,e){return r+e>>>0}Qi.sum32=n6r;function a6r(r,e,t){return r+e+t>>>0}Qi.sum32_3=a6r;function i6r(r,e,t,n){return r+e+t+n>>>0}Qi.sum32_4=i6r;function s6r(r,e,t,n,a){return r+e+t+n+a>>>0}Qi.sum32_5=s6r;function o6r(r,e,t,n){var a=r[e],i=r[e+1],s=n+i>>>0,o=(s>>0,r[e+1]=s}Qi.sum64=o6r;function c6r(r,e,t,n){var a=e+n>>>0,i=(a>>0}Qi.sum64_hi=c6r;function u6r(r,e,t,n){var a=e+n;return a>>>0}Qi.sum64_lo=u6r;function l6r(r,e,t,n,a,i,s,o){var c=0,u=e;u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}Qi.sum64_4_hi=l6r;function f6r(r,e,t,n,a,i,s,o){var c=e+n+i+o;return c>>>0}Qi.sum64_4_lo=f6r;function d6r(r,e,t,n,a,i,s,o,c,u){var l=0,p=e;p=p+n>>>0,l+=p>>0,l+=p>>0,l+=p>>0,l+=p>>0}Qi.sum64_5_hi=d6r;function p6r(r,e,t,n,a,i,s,o,c,u){var l=e+n+i+o+u;return l>>>0}Qi.sum64_5_lo=p6r;function h6r(r,e,t){var n=e<<32-t|r>>>t;return n>>>0}Qi.rotr64_hi=h6r;function m6r(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Qi.rotr64_lo=m6r;function y6r(r,e,t){return r>>>t}Qi.shr64_hi=y6r;function b6r(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Qi.shr64_lo=b6r});var A_=E(tdt=>{"use strict";f();d();var edt=Th(),g6r=jf();function U1e(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}tdt.BlockHash=U1e;U1e.prototype.update=function(e,t){if(e=edt.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=edt.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,s=8;s{"use strict";f();d();var v6r=Th(),t1=v6r.rotr32;function w6r(r,e,t,n){if(r===0)return rdt(e,t,n);if(r===1||r===3)return adt(e,t,n);if(r===2)return ndt(e,t,n)}tb.ft_1=w6r;function rdt(r,e,t){return r&e^~r&t}tb.ch32=rdt;function ndt(r,e,t){return r&e^r&t^e&t}tb.maj32=ndt;function adt(r,e,t){return r^e^t}tb.p32=adt;function x6r(r){return t1(r,2)^t1(r,13)^t1(r,22)}tb.s0_256=x6r;function _6r(r){return t1(r,6)^t1(r,11)^t1(r,25)}tb.s1_256=_6r;function T6r(r){return t1(r,7)^t1(r,18)^r>>>3}tb.g0_256=T6r;function E6r(r){return t1(r,17)^t1(r,19)^r>>>10}tb.g1_256=E6r});var odt=E((T4a,sdt)=>{"use strict";f();d();var k_=Th(),I6r=A_(),C6r=Rke(),Mke=k_.rotl32,_ie=k_.sum32,A6r=k_.sum32_5,k6r=C6r.ft_1,idt=I6r.BlockHash,S6r=[1518500249,1859775393,2400959708,3395469782];function r1(){if(!(this instanceof r1))return new r1;idt.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}k_.inherits(r1,idt);sdt.exports=r1;r1.blockSize=512;r1.outSize=160;r1.hmacStrength=80;r1.padLength=64;r1.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";f();d();var S_=Th(),P6r=A_(),P_=Rke(),R6r=jf(),Eh=S_.sum32,M6r=S_.sum32_4,B6r=S_.sum32_5,D6r=P_.ch32,N6r=P_.maj32,O6r=P_.s0_256,F6r=P_.s1_256,L6r=P_.g0_256,q6r=P_.g1_256,cdt=P6r.BlockHash,W6r=[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 n1(){if(!(this instanceof n1))return new n1;cdt.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=W6r,this.W=new Array(64)}S_.inherits(n1,cdt);udt.exports=n1;n1.blockSize=512;n1.outSize=256;n1.hmacStrength=192;n1.padLength=64;n1.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";f();d();var Dke=Th(),ldt=Bke();function rb(){if(!(this instanceof rb))return new rb;ldt.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Dke.inherits(rb,ldt);fdt.exports=rb;rb.blockSize=512;rb.outSize=224;rb.hmacStrength=192;rb.padLength=64;rb.prototype._digest=function(e){return e==="hex"?Dke.toHex32(this.h.slice(0,7),"big"):Dke.split32(this.h.slice(0,7),"big")}});var Fke=E((M4a,ydt)=>{"use strict";f();d();var $l=Th(),U6r=A_(),H6r=jf(),a1=$l.rotr64_hi,i1=$l.rotr64_lo,pdt=$l.shr64_hi,hdt=$l.shr64_lo,K2=$l.sum64,Nke=$l.sum64_hi,Oke=$l.sum64_lo,j6r=$l.sum64_4_hi,z6r=$l.sum64_4_lo,K6r=$l.sum64_5_hi,G6r=$l.sum64_5_lo,mdt=U6r.BlockHash,V6r=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Ih(){if(!(this instanceof Ih))return new Ih;mdt.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=V6r,this.W=new Array(160)}$l.inherits(Ih,mdt);ydt.exports=Ih;Ih.blockSize=1024;Ih.outSize=512;Ih.hmacStrength=192;Ih.padLength=128;Ih.prototype._prepareBlock=function(e,t){for(var n=this.W,a=0;a<32;a++)n[a]=e[t+a];for(;a{"use strict";f();d();var Lke=Th(),bdt=Fke();function nb(){if(!(this instanceof nb))return new nb;bdt.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Lke.inherits(nb,bdt);gdt.exports=nb;nb.blockSize=1024;nb.outSize=384;nb.hmacStrength=192;nb.padLength=128;nb.prototype._digest=function(e){return e==="hex"?Lke.toHex32(this.h.slice(0,12),"big"):Lke.split32(this.h.slice(0,12),"big")}});var wdt=E(R_=>{"use strict";f();d();R_.sha1=odt();R_.sha224=ddt();R_.sha256=Bke();R_.sha384=vdt();R_.sha512=Fke()});var Cdt=E(Idt=>{"use strict";f();d();var Cv=Th(),s5r=A_(),H1e=Cv.rotl32,xdt=Cv.sum32,Tie=Cv.sum32_3,_dt=Cv.sum32_4,Edt=s5r.BlockHash;function s1(){if(!(this instanceof s1))return new s1;Edt.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Cv.inherits(s1,Edt);Idt.ripemd160=s1;s1.blockSize=512;s1.outSize=160;s1.hmacStrength=192;s1.padLength=64;s1.prototype._update=function(e,t){for(var n=this.h[0],a=this.h[1],i=this.h[2],s=this.h[3],o=this.h[4],c=n,u=a,l=i,p=s,h=o,m=0;m<80;m++){var y=xdt(H1e(_dt(n,Tdt(m,a,i,s),e[u5r[m]+t],o5r(m)),f5r[m]),o);n=o,o=s,s=H1e(i,10),i=a,a=y,y=xdt(H1e(_dt(c,Tdt(79-m,u,l,p),e[l5r[m]+t],c5r(m)),d5r[m]),h),c=h,h=p,p=H1e(l,10),l=u,u=y}y=Tie(this.h[1],i,p),this.h[1]=Tie(this.h[2],s,h),this.h[2]=Tie(this.h[3],o,c),this.h[3]=Tie(this.h[4],n,u),this.h[4]=Tie(this.h[0],a,l),this.h[0]=y};s1.prototype._digest=function(e){return e==="hex"?Cv.toHex32(this.h,"little"):Cv.split32(this.h,"little")};function Tdt(r,e,t,n){return r<=15?e^t^n:r<=31?e&t|~e&n:r<=47?(e|~t)^n:r<=63?e&n|t&~n:e^(t|~n)}function o5r(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function c5r(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var u5r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l5r=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f5r=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],d5r=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var kdt=E((z4a,Adt)=>{"use strict";f();d();var p5r=Th(),h5r=jf();function M_(r,e,t){if(!(this instanceof M_))return new M_(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(p5r.toArray(e,t))}Adt.exports=M_;M_.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),h5r(e.length<=this.blockSize);for(var t=e.length;t{f();d();var $0=Sdt;$0.utils=Th();$0.common=A_();$0.sha=wdt();$0.ripemd=Cdt();$0.hmac=kdt();$0.sha1=$0.sha.sha1;$0.sha256=$0.sha.sha256;$0.sha224=$0.sha.sha224;$0.sha384=$0.sha.sha384;$0.sha512=$0.sha.sha512;$0.ripemd160=$0.ripemd.ripemd160});var Rdt=E((Q4a,Pdt)=>{f();d();Pdt.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var j1e=E(Ddt=>{"use strict";f();d();var Wke=Ddt,G2=Eie(),qke=Pke(),m5r=zf(),Mdt=m5r.assert;function Bdt(r){r.type==="short"?this.curve=new qke.short(r):r.type==="edwards"?this.curve=new qke.edwards(r):this.curve=new qke.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,Mdt(this.g.validate(),"Invalid curve"),Mdt(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}Wke.PresetCurve=Bdt;function V2(r,e){Object.defineProperty(Wke,r,{configurable:!0,enumerable:!0,get:function(){var t=new Bdt(e);return Object.defineProperty(Wke,r,{configurable:!0,enumerable:!0,value:t}),t}})}V2("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:G2.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});V2("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:G2.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});V2("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:G2.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});V2("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:G2.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"]});V2("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:G2.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"]});V2("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:G2.sha256,gRed:!1,g:["9"]});V2("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:G2.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var Uke;try{Uke=Rdt()}catch{Uke=void 0}V2("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:G2.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",Uke]})});var Fdt=E((rxa,Odt)=>{"use strict";f();d();var y5r=Eie(),Av=iCe(),Ndt=jf();function $2(r){if(!(this instanceof $2))return new $2(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Av.toArray(r.entropy,r.entropyEnc||"hex"),t=Av.toArray(r.nonce,r.nonceEnc||"hex"),n=Av.toArray(r.pers,r.persEnc||"hex");Ndt(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,n)}Odt.exports=$2;$2.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};$2.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=n,n=t,t=null),n&&(n=Av.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length{"use strict";f();d();var b5r=Bc(),g5r=zf(),Hke=g5r.assert;function Su(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}Ldt.exports=Su;Su.fromPublic=function(e,t,n){return t instanceof Su?t:new Su(e,{pub:t,pubEnc:n})};Su.fromPrivate=function(e,t,n){return t instanceof Su?t:new Su(e,{priv:t,privEnc:n})};Su.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"}};Su.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Su.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Su.prototype._importPrivate=function(e,t){this.priv=new b5r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Su.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?Hke(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Hke(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)};Su.prototype.derive=function(e){return e.validate()||Hke(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Su.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Su.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Su.prototype.inspect=function(){return""}});var Hdt=E((cxa,Udt)=>{"use strict";f();d();var z1e=Bc(),Kke=zf(),v5r=Kke.assert;function K1e(r,e){if(r instanceof K1e)return r;this._importDER(r,e)||(v5r(r.r&&r.s,"Signature without r or s"),this.r=new z1e(r.r,16),this.s=new z1e(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}Udt.exports=K1e;function w5r(){this.place=0}function jke(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function Wdt(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}K1e.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=Wdt(t),n=Wdt(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];zke(a,t.length),a=a.concat(t),a.push(2),zke(a,n.length);var i=a.concat(n),s=[48];return zke(s,i.length),s=s.concat(i),Kke.encode(s,e)}});var Gdt=E((fxa,Kdt)=>{"use strict";f();d();var kv=Bc(),jdt=Fdt(),x5r=zf(),Gke=j1e(),_5r=b1e(),zdt=x5r.assert,Vke=qdt(),G1e=Hdt();function op(r){if(!(this instanceof op))return new op(r);typeof r=="string"&&(zdt(Object.prototype.hasOwnProperty.call(Gke,r),"Unknown curve "+r),r=Gke[r]),r instanceof Gke.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}Kdt.exports=op;op.prototype.keyPair=function(e){return new Vke(this,e)};op.prototype.keyFromPrivate=function(e,t){return Vke.fromPrivate(this,e,t)};op.prototype.keyFromPublic=function(e,t){return Vke.fromPublic(this,e,t)};op.prototype.genKeyPair=function(e){e||(e={});for(var t=new jdt({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||_5r(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new kv(2));;){var i=new kv(t.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};op.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};op.prototype.sign=function(e,t,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new kv(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new jdt({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new kv(1)),l=0;;l++){var p=a.k?a.k(l):new kv(c.generate(this.n.byteLength()));if(p=this._truncateToN(p,!0),!(p.cmpn(1)<=0||p.cmp(u)>=0)){var h=this.g.mul(p);if(!h.isInfinity()){var m=h.getX(),y=m.umod(this.n);if(y.cmpn(0)!==0){var C=p.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(C=C.umod(this.n),C.cmpn(0)!==0){var P=(h.getY().isOdd()?1:0)|(m.cmp(y)!==0?2:0);return a.canonical&&C.cmp(this.nh)>0&&(C=this.n.sub(C),P^=1),new G1e({r:y,s:C,recoveryParam:P})}}}}}};op.prototype.verify=function(e,t,n,a){e=this._truncateToN(new kv(e,16)),n=this.keyFromPublic(n,a),t=new G1e(t,"hex");var i=t.r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),c=o.mul(e).umod(this.n),u=o.mul(i).umod(this.n),l;return this.curve._maxwellTrick?(l=this.g.jmulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.eqXToP(i)):(l=this.g.mulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.getX().umod(this.n).cmp(i)===0)};op.prototype.recoverPubKey=function(r,e,t,n){zdt((3&t)===t,"The recovery param is more than two bits"),e=new G1e(e,n);var a=this.n,i=new kv(r),s=e.r,o=e.s,c=t&1,u=t>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");u?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var l=e.r.invm(a),p=a.sub(i).mul(l).umod(a),h=o.mul(l).umod(a);return this.g.mulAdd(p,s,h)};op.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new G1e(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var Qdt=E((hxa,Ydt)=>{"use strict";f();d();var Iie=zf(),$dt=Iie.assert,Vdt=Iie.parseBytes,B_=Iie.cachedProperty;function f0(r,e){this.eddsa=r,this._secret=Vdt(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=Vdt(e.pub)}f0.fromPublic=function(e,t){return t instanceof f0?t:new f0(e,{pub:t})};f0.fromSecret=function(e,t){return t instanceof f0?t:new f0(e,{secret:t})};f0.prototype.secret=function(){return this._secret};B_(f0,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});B_(f0,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});B_(f0,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});B_(f0,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});B_(f0,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});B_(f0,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});f0.prototype.sign=function(e){return $dt(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};f0.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};f0.prototype.getSecret=function(e){return $dt(this._secret,"KeyPair is public only"),Iie.encode(this.secret(),e)};f0.prototype.getPublic=function(e){return Iie.encode(this.pubBytes(),e)};Ydt.exports=f0});var Zdt=E((bxa,Jdt)=>{"use strict";f();d();var T5r=Bc(),V1e=zf(),E5r=V1e.assert,$1e=V1e.cachedProperty,I5r=V1e.parseBytes;function Sv(r,e){this.eddsa=r,typeof e!="object"&&(e=I5r(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),E5r(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof T5r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}$1e(Sv,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});$1e(Sv,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});$1e(Sv,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});$1e(Sv,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Sv.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Sv.prototype.toHex=function(){return V1e.encode(this.toBytes(),"hex").toUpperCase()};Jdt.exports=Sv});var npt=E((wxa,rpt)=>{"use strict";f();d();var C5r=Eie(),A5r=j1e(),D_=zf(),k5r=D_.assert,ept=D_.parseBytes,tpt=Qdt(),Xdt=Zdt();function Yl(r){if(k5r(r==="ed25519","only tested with ed25519 so far"),!(this instanceof Yl))return new Yl(r);r=A5r[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=C5r.sha512}rpt.exports=Yl;Yl.prototype.sign=function(e,t){e=ept(e);var n=this.keyFromSecret(t),a=this.hashInt(n.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};Yl.prototype.verify=function(e,t,n){e=ept(e),t=this.makeSignature(t);var a=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),s=this.g.mul(t.S()),o=t.R().add(a.pub().mul(i));return o.eq(s)};Yl.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";f();d();var Pv=apt;Pv.version=ist().version;Pv.utils=zf();Pv.rand=b1e();Pv.curve=Pke();Pv.curves=j1e();Pv.ec=Gdt();Pv.eddsa=npt()});var ipt=E(N_=>{"use strict";f();d();var S5r=N_&&N_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(N_,"__esModule",{value:!0});N_.EC=void 0;var P5r=S5r(T_()),R5r=P5r.default.ec;N_.EC=R5r});var spt=E(Y1e=>{"use strict";f();d();Object.defineProperty(Y1e,"__esModule",{value:!0});Y1e.version=void 0;Y1e.version="signing-key/5.7.0"});var Aie=E(Y2=>{"use strict";f();d();Object.defineProperty(Y2,"__esModule",{value:!0});Y2.computePublicKey=Y2.recoverPublicKey=Y2.SigningKey=void 0;var M5r=ipt(),lc=Qr(),Cie=ca(),B5r=gr(),D5r=spt(),Yke=new B5r.Logger(D5r.version),$ke=null;function o1(){return $ke||($ke=new M5r.EC("secp256k1")),$ke}var opt=function(){function r(e){(0,Cie.defineReadOnly)(this,"curve","secp256k1"),(0,Cie.defineReadOnly)(this,"privateKey",(0,lc.hexlify)(e)),(0,lc.hexDataLength)(this.privateKey)!==32&&Yke.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=o1().keyFromPrivate((0,lc.arrayify)(this.privateKey));(0,Cie.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,Cie.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,Cie.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=o1().keyFromPublic((0,lc.arrayify)(this.publicKey)),n=o1().keyFromPublic((0,lc.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=o1().keyFromPrivate((0,lc.arrayify)(this.privateKey)),n=(0,lc.arrayify)(e);n.length!==32&&Yke.throwArgumentError("bad digest length","digest",e);var a=t.sign(n,{canonical:!0});return(0,lc.splitSignature)({recoveryParam:a.recoveryParam,r:(0,lc.hexZeroPad)("0x"+a.r.toString(16),32),s:(0,lc.hexZeroPad)("0x"+a.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=o1().keyFromPrivate((0,lc.arrayify)(this.privateKey)),n=o1().keyFromPublic((0,lc.arrayify)(cpt(e)));return(0,lc.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();Y2.SigningKey=opt;function N5r(r,e){var t=(0,lc.splitSignature)(e),n={r:(0,lc.arrayify)(t.r),s:(0,lc.arrayify)(t.s)};return"0x"+o1().recoverPubKey((0,lc.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}Y2.recoverPublicKey=N5r;function cpt(r,e){var t=(0,lc.arrayify)(r);if(t.length===32){var n=new opt(t);return e?"0x"+o1().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,lc.hexlify)(t):"0x"+o1().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+o1().keyFromPublic(t).getPublic(!0,"hex"):(0,lc.hexlify)(t)}return Yke.throwArgumentError("invalid public or private key","key","[REDACTED]")}Y2.computePublicKey=cpt});var upt=E(Q1e=>{"use strict";f();d();Object.defineProperty(Q1e,"__esModule",{value:!0});Q1e.version=void 0;Q1e.version="transactions/5.7.0"});var ab=E(zo=>{"use strict";f();d();var O5r=zo&&zo.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),F5r=zo&&zo.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),L5r=zo&&zo.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&O5r(e,r,t);return F5r(e,r),e};Object.defineProperty(zo,"__esModule",{value:!0});zo.parse=zo.serialize=zo.accessListify=zo.recoverAddress=zo.computeAddress=zo.TransactionTypes=void 0;var kie=Hf(),Rv=Yi(),Nn=Qr(),q5r=K5(),O_=Uf(),W5r=ca(),Q2=L5r(Ahe()),lpt=Aie(),Jke=gr(),U5r=upt(),Ru=new Jke.Logger(U5r.version),H5r;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(H5r=zo.TransactionTypes||(zo.TransactionTypes={}));function Zke(r){return r==="0x"?null:(0,kie.getAddress)(r)}function Pu(r){return r==="0x"?q5r.Zero:Rv.BigNumber.from(r)}var j5r=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],z5r={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function fpt(r){var e=(0,lpt.computePublicKey)(r);return(0,kie.getAddress)((0,Nn.hexDataSlice)((0,O_.keccak256)((0,Nn.hexDataSlice)(e,1)),12))}zo.computeAddress=fpt;function Xke(r,e){return fpt((0,lpt.recoverPublicKey)((0,Nn.arrayify)(r),e))}zo.recoverAddress=Xke;function Vf(r,e){var t=(0,Nn.stripZeros)(Rv.BigNumber.from(r).toHexString());return t.length>32&&Ru.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function Qke(r,e){return{address:(0,kie.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,Nn.hexDataLength)(t)!==32&&Ru.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function J1e(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&Ru.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),Qke(t[0],t[1])):Qke(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(a,i){return a[i]=!0,a},{});return Qke(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}zo.accessListify=J1e;function dpt(r){return J1e(r).map(function(e){return[e.address,e.storageKeys]})}function ppt(r,e){if(r.gasPrice!=null){var t=Rv.BigNumber.from(r.gasPrice),n=Rv.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||Ru.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var a=[Vf(r.chainId||0,"chainId"),Vf(r.nonce||0,"nonce"),Vf(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Vf(r.maxFeePerGas||0,"maxFeePerGas"),Vf(r.gasLimit||0,"gasLimit"),r.to!=null?(0,kie.getAddress)(r.to):"0x",Vf(r.value||0,"value"),r.data||"0x",dpt(r.accessList||[])];if(e){var i=(0,Nn.splitSignature)(e);a.push(Vf(i.recoveryParam,"recoveryParam")),a.push((0,Nn.stripZeros)(i.r)),a.push((0,Nn.stripZeros)(i.s))}return(0,Nn.hexConcat)(["0x02",Q2.encode(a)])}function hpt(r,e){var t=[Vf(r.chainId||0,"chainId"),Vf(r.nonce||0,"nonce"),Vf(r.gasPrice||0,"gasPrice"),Vf(r.gasLimit||0,"gasLimit"),r.to!=null?(0,kie.getAddress)(r.to):"0x",Vf(r.value||0,"value"),r.data||"0x",dpt(r.accessList||[])];if(e){var n=(0,Nn.splitSignature)(e);t.push(Vf(n.recoveryParam,"recoveryParam")),t.push((0,Nn.stripZeros)(n.r)),t.push((0,Nn.stripZeros)(n.s))}return(0,Nn.hexConcat)(["0x01",Q2.encode(t)])}function K5r(r,e){(0,W5r.checkProperties)(r,z5r);var t=[];j5r.forEach(function(s){var o=r[s.name]||[],c={};s.numeric&&(c.hexPad="left"),o=(0,Nn.arrayify)((0,Nn.hexlify)(o,c)),s.length&&o.length!==s.length&&o.length>0&&Ru.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o),s.maxLength&&(o=(0,Nn.stripZeros)(o),o.length>s.maxLength&&Ru.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o)),t.push((0,Nn.hexlify)(o))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&Ru.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,Nn.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,Nn.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return Q2.encode(t);var a=(0,Nn.splitSignature)(e),i=27+a.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),i+=n*2+8,a.v>28&&a.v!==i&&Ru.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):a.v!==i&&Ru.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,Nn.hexlify)(i)),t.push((0,Nn.stripZeros)((0,Nn.arrayify)(a.r))),t.push((0,Nn.stripZeros)((0,Nn.arrayify)(a.s))),Q2.encode(t)}function G5r(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&Ru.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),K5r(r,e);switch(r.type){case 1:return hpt(r,e);case 2:return ppt(r,e);default:break}return Ru.throwError("unsupported transaction type: "+r.type,Jke.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}zo.serialize=G5r;function mpt(r,e,t){try{var n=Pu(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{Ru.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,Nn.hexZeroPad)(e[1],32),r.s=(0,Nn.hexZeroPad)(e[2],32);try{var a=(0,O_.keccak256)(t(r));r.from=Xke(a,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function V5r(r){var e=Q2.decode(r.slice(1));e.length!==9&&e.length!==12&&Ru.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Nn.hexlify)(r));var t=Pu(e[2]),n=Pu(e[3]),a={type:2,chainId:Pu(e[0]).toNumber(),nonce:Pu(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:Pu(e[4]),to:Zke(e[5]),value:Pu(e[6]),data:e[7],accessList:J1e(e[8])};return e.length===9||(a.hash=(0,O_.keccak256)(r),mpt(a,e.slice(9),ppt)),a}function $5r(r){var e=Q2.decode(r.slice(1));e.length!==8&&e.length!==11&&Ru.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Nn.hexlify)(r));var t={type:1,chainId:Pu(e[0]).toNumber(),nonce:Pu(e[1]).toNumber(),gasPrice:Pu(e[2]),gasLimit:Pu(e[3]),to:Zke(e[4]),value:Pu(e[5]),data:e[6],accessList:J1e(e[7])};return e.length===8||(t.hash=(0,O_.keccak256)(r),mpt(t,e.slice(8),hpt)),t}function Y5r(r){var e=Q2.decode(r);e.length!==9&&e.length!==6&&Ru.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:Pu(e[0]).toNumber(),gasPrice:Pu(e[1]),gasLimit:Pu(e[2]),to:Zke(e[3]),value:Pu(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=Rv.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,Nn.hexZeroPad)(e[7],32),t.s=(0,Nn.hexZeroPad)(e[8],32),Rv.BigNumber.from(t.r).isZero()&&Rv.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,a=e.slice(0,6);t.chainId!==0&&(a.push((0,Nn.hexlify)(t.chainId)),a.push("0x"),a.push("0x"),n-=t.chainId*2+8);var i=(0,O_.keccak256)(Q2.encode(a));try{t.from=Xke(i,{r:(0,Nn.hexlify)(t.r),s:(0,Nn.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,O_.keccak256)(r)}return t.type=null,t}function Q5r(r){var e=(0,Nn.arrayify)(r);if(e[0]>127)return Y5r(e);switch(e[0]){case 1:return $5r(e);case 2:return V5r(e);default:break}return Ru.throwError("unsupported transaction type: "+e[0],Jke.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}zo.parse=Q5r});var ypt=E(Z1e=>{"use strict";f();d();Object.defineProperty(Z1e,"__esModule",{value:!0});Z1e.version=void 0;Z1e.version="contracts/5.7.0"});var Ept=E(Mu=>{"use strict";f();d();var tye=Mu&&Mu.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Z2=Mu&&Mu.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},X2=Mu&&Mu.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]1)){u=u.substring(1);var p=l[0];try{i[u]==null&&(0,er.defineReadOnly)(i,u,i[p])}catch{}i.functions[u]==null&&(0,er.defineReadOnly)(i.functions,u,i.functions[p]),i.callStatic[u]==null&&(0,er.defineReadOnly)(i.callStatic,u,i.callStatic[p]),i.populateTransaction[u]==null&&(0,er.defineReadOnly)(i.populateTransaction,u,i.populateTransaction[p]),i.estimateGas[u]==null&&(0,er.defineReadOnly)(i.estimateGas,u,i.estimateGas[p])}})}return r.getContractAddress=function(e){return(0,Pie.getContractAddress)(e)},r.getInterface=function(e){return X1e.Interface.isInterface(e)?e:new X1e.Interface(e)},r.prototype.deployed=function(){return this._deployed()},r.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(n){return n==="0x"&&ji.throwError("contract not deployed",Y0.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},r.prototype.fallback=function(e){var t=this;this.signer||ji.throwError("sending a transactions require a signer",Y0.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,er.shallowCopy)(e||{});return["from","to"].forEach(function(a){n[a]!=null&&ji.throwError("cannot override "+a,Y0.Logger.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(n)})},r.prototype.connect=function(e){typeof e=="string"&&(e=new eSe.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,er.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},r.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},r.isIndexed=function(e){return X1e.Indexed.isIndexed(e)},r.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},r.prototype._getRunningEvent=function(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new ivr);if(e==="event")return this._normalizeRunningEvent(new Rie("event",null));if(e==="*")return this._normalizeRunningEvent(new vpt(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new gpt(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");var t=this.interface.getEvent(n);return this._normalizeRunningEvent(new gpt(this.address,this.interface,t,e.topics))}catch{}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Rie(_pt(a),a))}return this._normalizeRunningEvent(new vpt(this.address,this.interface))},r.prototype._checkRunningEvents=function(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},r.prototype._wrapEvent=function(e,t,n){var a=this,i=(0,er.deepCopy)(t);return i.removeListener=function(){!n||(e.removeListener(n),a._checkRunningEvents(e))},i.getBlock=function(){return a.provider.getBlock(t.blockHash)},i.getTransaction=function(){return a.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return a.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i},r.prototype._addEventListener=function(e,t,n){var a=this;if(this.provider||ji.throwError("events require a provider or a signer with a provider",Y0.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(s){var o=a._wrapEvent(e,s,t);if(o.decodeError==null)try{var c=e.getEmit(o);a.emit.apply(a,J5r([e.filter],c,!1))}catch(u){o.decodeError=u.error}e.filter!=null&&a.emit("event",o),o.decodeError!=null&&a.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}},r.prototype.queryFilter=function(e,t,n){var a=this,i=this._getRunningEvent(e),s=(0,er.shallowCopy)(i.filter);return typeof t=="string"&&(0,Mv.isHexString)(t,32)?(n!=null&&ji.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=t):(s.fromBlock=t??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(function(o){return o.map(function(c){return a._wrapEvent(i,c,null)})})},r.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},r.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},r.prototype.emit=function(e){for(var t=[],n=1;n0;return this._checkRunningEvents(a),i},r.prototype.listenerCount=function(e){var t=this;return this.provider?e==null?Object.keys(this._runningEvents).reduce(function(n,a){return n+t._runningEvents[a].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},r.prototype.listeners=function(e){if(!this.provider)return[];if(e==null){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach(function(a){t.push(a)});return t}return this._getRunningEvent(e).listeners()},r.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(e==null){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var a=this._getRunningEvent(e);return a.removeAllListeners(),this._checkRunningEvents(a),this},r.prototype.off=function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this},r.prototype.removeListener=function(e,t){return this.off(e,t)},r}();Mu.BaseContract=Tpt;var tSe=function(r){tye(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Tpt);Mu.Contract=tSe;var svr=function(){function r(e,t,n){var a=this.constructor,i=null;typeof t=="string"?i=t:(0,Mv.isBytes)(t)?i=(0,Mv.hexlify)(t):t&&typeof t.object=="string"?i=t.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!(0,Mv.isHexString)(i)||i.length%2)&&ji.throwArgumentError("invalid bytecode","bytecode",t),n&&!eSe.Signer.isSigner(n)&&ji.throwArgumentError("invalid signer","signer",n),(0,er.defineReadOnly)(this,"bytecode",i),(0,er.defineReadOnly)(this,"interface",(0,er.getStatic)(a,"getInterface")(e)),(0,er.defineReadOnly)(this,"signer",n||null)}return r.prototype.getDeployTransaction=function(){for(var e=[],t=0;t{"use strict";f();d();Object.defineProperty(eg,"__esModule",{value:!0});eg.Base58=eg.Base32=eg.BaseX=void 0;var Ipt=Qr(),nye=ca(),rSe=function(){function r(e){(0,nye.defineReadOnly)(this,"alphabet",e),(0,nye.defineReadOnly)(this,"base",e.length),(0,nye.defineReadOnly)(this,"_alphabetMap",{}),(0,nye.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t0;)n.push(i%this.base),i=i/this.base|0}for(var o="",c=0;t[c]===0&&c=0;--u)o+=this.alphabet[n[u]];return o},r.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;i>0;)t.push(i&255),i>>=8}for(var o=0;e[o]===this._leader&&o{"use strict";f();d();Object.defineProperty(Mie,"__esModule",{value:!0});Mie.SupportedAlgorithm=void 0;var uvr;(function(r){r.sha256="sha256",r.sha512="sha512"})(uvr=Mie.SupportedAlgorithm||(Mie.SupportedAlgorithm={}))});var Cpt=E(iye=>{"use strict";f();d();Object.defineProperty(iye,"__esModule",{value:!0});iye.version=void 0;iye.version="sha2/5.7.0"});var kpt=E(cp=>{"use strict";f();d();var lvr=cp&&cp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(cp,"__esModule",{value:!0});cp.computeHmac=cp.sha512=cp.sha256=cp.ripemd160=void 0;var Bie=lvr(Eie()),Die=Qr(),fvr=nSe(),Apt=gr(),dvr=Cpt(),pvr=new Apt.Logger(dvr.version);function hvr(r){return"0x"+Bie.default.ripemd160().update((0,Die.arrayify)(r)).digest("hex")}cp.ripemd160=hvr;function mvr(r){return"0x"+Bie.default.sha256().update((0,Die.arrayify)(r)).digest("hex")}cp.sha256=mvr;function yvr(r){return"0x"+Bie.default.sha512().update((0,Die.arrayify)(r)).digest("hex")}cp.sha512=yvr;function bvr(r,e,t){return fvr.SupportedAlgorithm[r]||pvr.throwError("unsupported algorithm "+r,Apt.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:r}),"0x"+Bie.default.hmac(Bie.default[r],(0,Die.arrayify)(e)).update((0,Die.arrayify)(t)).digest("hex")}cp.computeHmac=bvr});var Bv=E(up=>{"use strict";f();d();Object.defineProperty(up,"__esModule",{value:!0});up.SupportedAlgorithm=up.sha512=up.sha256=up.ripemd160=up.computeHmac=void 0;var sye=kpt();Object.defineProperty(up,"computeHmac",{enumerable:!0,get:function(){return sye.computeHmac}});Object.defineProperty(up,"ripemd160",{enumerable:!0,get:function(){return sye.ripemd160}});Object.defineProperty(up,"sha256",{enumerable:!0,get:function(){return sye.sha256}});Object.defineProperty(up,"sha512",{enumerable:!0,get:function(){return sye.sha512}});var gvr=nSe();Object.defineProperty(up,"SupportedAlgorithm",{enumerable:!0,get:function(){return gvr.SupportedAlgorithm}})});var Ppt=E(oye=>{"use strict";f();d();Object.defineProperty(oye,"__esModule",{value:!0});oye.pbkdf2=void 0;var F_=Qr(),Spt=Bv();function vvr(r,e,t,n,a){r=(0,F_.arrayify)(r),e=(0,F_.arrayify)(e);var i,s=1,o=new Uint8Array(n),c=new Uint8Array(e.length+4);c.set(e);for(var u,l,p=1;p<=s;p++){c[e.length]=p>>24&255,c[e.length+1]=p>>16&255,c[e.length+2]=p>>8&255,c[e.length+3]=p&255;var h=(0,F_.arrayify)((0,Spt.computeHmac)(a,r,c));i||(i=h.length,l=new Uint8Array(i),s=Math.ceil(n/i),u=n-(s-1)*i),l.set(h);for(var m=1;m{"use strict";f();d();Object.defineProperty(cye,"__esModule",{value:!0});cye.pbkdf2=void 0;var wvr=Ppt();Object.defineProperty(cye,"pbkdf2",{enumerable:!0,get:function(){return wvr.pbkdf2}})});var Rpt=E(lye=>{"use strict";f();d();Object.defineProperty(lye,"__esModule",{value:!0});lye.version=void 0;lye.version="wordlists/5.7.0"});var c1=E(Dv=>{"use strict";f();d();Object.defineProperty(Dv,"__esModule",{value:!0});Dv.Wordlist=Dv.logger=void 0;var xvr=!1,_vr=Q5(),Mpt=ca(),Tvr=gr(),Evr=Rpt();Dv.logger=new Tvr.Logger(Evr.version);var Ivr=function(){function r(e){var t=this.constructor;Dv.logger.checkAbstract(t,r),(0,Mpt.defineReadOnly)(this,"locale",e)}return r.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},r.prototype.join=function(e){return e.join(" ")},r.check=function(e){for(var t=[],n=0;n<2048;n++){var a=e.getWord(n);if(n!==e.getWordIndex(a))return"0x";t.push(a)}return(0,_vr.id)(t.join(` `)+` -`)},r.register=function(e,t){if(t||(t=e.locale),OKt)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,d$e.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();Yb.Wordlist=UKt});var f$e=_(J3=>{"use strict";d();p();var HKt=J3&&J3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J3,"__esModule",{value:!0});J3.langCz=void 0;var j3e=Df(),jKt="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",mZ=null;function p$e(r){if(mZ==null&&(mZ=jKt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),j3e.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw mZ=null,new Error("BIP39 Wordlist for en (English) FAILED")}var zKt=function(r){HKt(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return p$e(this),mZ[t]},e.prototype.getWordIndex=function(t){return p$e(this),mZ.indexOf(t)},e}(j3e.Wordlist),h$e=new zKt;J3.langCz=h$e;j3e.Wordlist.register(h$e)});var g$e=_(Z3=>{"use strict";d();p();var KKt=Z3&&Z3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z3,"__esModule",{value:!0});Z3.langEn=void 0;var z3e=Df(),GKt="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",yZ=null;function m$e(r){if(yZ==null&&(yZ=GKt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),z3e.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw yZ=null,new Error("BIP39 Wordlist for en (English) FAILED")}var VKt=function(r){KKt(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return m$e(this),yZ[t]},e.prototype.getWordIndex=function(t){return m$e(this),yZ.indexOf(t)},e}(z3e.Wordlist),y$e=new VKt;Z3.langEn=y$e;z3e.Wordlist.register(y$e)});var _$e=_(X3=>{"use strict";d();p();var YKt=X3&&X3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X3,"__esModule",{value:!0});X3.langEs=void 0;var Wce=qs(),Uce=Df(),$Kt="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",v$e={},gZ=null;function w$e(r){return Uce.logger.checkNormalize(),(0,Wce.toUtf8String)(Array.prototype.filter.call((0,Wce.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function QKt(r){var e=[];return Array.prototype.forEach.call((0,Wce.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,Wce.toUtf8String)(e)}function b$e(r){if(gZ==null&&(gZ=$Kt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return QKt(e)}),gZ.forEach(function(e,t){v$e[w$e(e)]=t}),Uce.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw gZ=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var JKt=function(r){YKt(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return b$e(this),gZ[t]},e.prototype.getWordIndex=function(t){return b$e(this),v$e[w$e(t)]},e}(Uce.Wordlist),x$e=new JKt;X3.langEs=x$e;Uce.Wordlist.register(x$e)});var k$e=_(ex=>{"use strict";d();p();var ZKt=ex&&ex.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ex,"__esModule",{value:!0});ex.langFr=void 0;var Hce=qs(),jce=Df(),XKt="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",bZ=null,I$e={};function E$e(r){return jce.logger.checkNormalize(),(0,Hce.toUtf8String)(Array.prototype.filter.call((0,Hce.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function eGt(r){var e=[];return Array.prototype.forEach.call((0,Hce.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,Hce.toUtf8String)(e)}function T$e(r){if(bZ==null&&(bZ=XKt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return eGt(e)}),bZ.forEach(function(e,t){I$e[E$e(e)]=t}),jce.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw bZ=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var tGt=function(r){ZKt(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return T$e(this),bZ[t]},e.prototype.getWordIndex=function(t){return T$e(this),I$e[E$e(t)]},e}(jce.Wordlist),C$e=new tGt;ex.langFr=C$e;jce.Wordlist.register(C$e)});var R$e=_(tx=>{"use strict";d();p();var rGt=tx&&tx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tx,"__esModule",{value:!0});tx.langJa=void 0;var nGt=wr(),Zd=qs(),zce=Df(),aGt=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],iGt="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",$l=null;function A$e(r){return(0,nGt.hexlify)((0,Zd.toUtf8Bytes)(r))}var sGt="0xe3818de38284e3818f",oGt="0xe3818de38283e3818f";function P$e(r){if($l!==null)return;$l=[];var e={};e[(0,Zd.toUtf8String)([227,130,154])]=!1,e[(0,Zd.toUtf8String)([227,130,153])]=!1,e[(0,Zd.toUtf8String)([227,130,133])]=(0,Zd.toUtf8String)([227,130,134]),e[(0,Zd.toUtf8String)([227,129,163])]=(0,Zd.toUtf8String)([227,129,164]),e[(0,Zd.toUtf8String)([227,130,131])]=(0,Zd.toUtf8String)([227,130,132]),e[(0,Zd.toUtf8String)([227,130,135])]=(0,Zd.toUtf8String)([227,130,136]);function t(h){for(var f="",m=0;mf?1:0}for(var a=3;a<=9;a++)for(var i=aGt[a-3],s=0;s{"use strict";d();p();var uGt=rx&&rx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rx,"__esModule",{value:!0});rx.langKo=void 0;var lGt=qs(),K3e=Df(),dGt=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],pGt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function hGt(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,lGt.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var $b=null;function M$e(r){if($b==null&&($b=[],dGt.forEach(function(e,t){t+=4;for(var n=0;n{"use strict";d();p();var mGt=nx&&nx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nx,"__esModule",{value:!0});nx.langIt=void 0;var G3e=Df(),yGt="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",vZ=null;function D$e(r){if(vZ==null&&(vZ=yGt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),G3e.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw vZ=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var gGt=function(r){mGt(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return D$e(this),vZ[t]},e.prototype.getWordIndex=function(t){return D$e(this),vZ.indexOf(t)},e}(G3e.Wordlist),L$e=new gGt;nx.langIt=L$e;G3e.Wordlist.register(L$e)});var U$e=_(Qy=>{"use strict";d();p();var bGt=Qy&&Qy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.langZhTw=Qy.langZhCn=void 0;var vGt=qs(),wZ=Df(),V3e="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?";function q$e(r){if(ax[r.locale]===null){ax[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=_Gt.indexOf(V3e[t*3]),a=[228+(n>>2),128+Y3e.indexOf(V3e[t*3+1]),128+Y3e.indexOf(V3e[t*3+2])];if(r.locale==="zh_tw")for(var i=n%4,s=i;s<3;s++)a[s]=Y3e.indexOf(wGt[e++])+(s==0?228:128);ax[r.locale].push((0,vGt.toUtf8String)(a))}if(wZ.Wordlist.check(r)!==xGt[r.locale])throw ax[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var F$e=function(r){bGt(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return q$e(this),ax[this.locale][t]},e.prototype.getWordIndex=function(t){return q$e(this),ax[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(wZ.Wordlist),$3e=new F$e("cn");Qy.langZhCn=$3e;wZ.Wordlist.register($3e);wZ.Wordlist.register($3e,"zh");var W$e=new F$e("tw");Qy.langZhTw=W$e;wZ.Wordlist.register(W$e)});var H$e=_(Kce=>{"use strict";d();p();Object.defineProperty(Kce,"__esModule",{value:!0});Kce.wordlists=void 0;var TGt=f$e(),IGt=g$e(),EGt=_$e(),CGt=k$e(),kGt=R$e(),AGt=B$e(),PGt=O$e(),Q3e=U$e();Kce.wordlists={cz:TGt.langCz,en:IGt.langEn,es:EGt.langEs,fr:CGt.langFr,it:PGt.langIt,ja:kGt.langJa,ko:AGt.langKo,zh:Q3e.langZhCn,zh_cn:Q3e.langZhCn,zh_tw:Q3e.langZhTw}});var J3e=_(Jy=>{"use strict";d();p();Object.defineProperty(Jy,"__esModule",{value:!0});Jy.wordlists=Jy.Wordlist=Jy.logger=void 0;var j$e=Df();Object.defineProperty(Jy,"logger",{enumerable:!0,get:function(){return j$e.logger}});Object.defineProperty(Jy,"Wordlist",{enumerable:!0,get:function(){return j$e.Wordlist}});var SGt=H$e();Object.defineProperty(Jy,"wordlists",{enumerable:!0,get:function(){return SGt.wordlists}})});var z$e=_(Gce=>{"use strict";d();p();Object.defineProperty(Gce,"__esModule",{value:!0});Gce.version=void 0;Gce.version="hdnode/5.7.0"});var Yce=_(au=>{"use strict";d();p();Object.defineProperty(au,"__esModule",{value:!0});au.getAccountPath=au.isValidMnemonic=au.entropyToMnemonic=au.mnemonicToEntropy=au.mnemonicToSeed=au.HDNode=au.defaultPath=void 0;var Y$e=Nce(),Ua=wr(),$$e=Ls(),xZ=qs(),RGt=qce(),nu=Aa(),K$e=oZ(),Lf=Vb(),MGt=l0(),G$e=J3e(),NGt=Zt(),BGt=z$e(),_Z=new NGt.Logger(BGt.version),DGt=$$e.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),LGt=(0,xZ.toUtf8Bytes)("Bitcoin seed"),sx=2147483648;function Q$e(r){return(1<=256)throw new Error("Depth too large!");return V$e((0,Ua.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,Ua.hexlify)(this.depth),this.parentFingerprint,(0,Ua.hexZeroPad)((0,Ua.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,Ua.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(ix,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~sx));var n=new Uint8Array(37);if(e&sx){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,Ua.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,Ua.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=e>>24-a&255;var i=(0,Ua.arrayify)((0,Lf.computeHmac)(Lf.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32),c=null,u=null;if(this.privateKey)c=Vce($$e.BigNumber.from(s).add(this.privateKey).mod(DGt));else{var l=new K$e.SigningKey((0,Ua.hexlify)(s));u=l._addPoint(this.publicKey)}var h=t,f=this.mnemonic;return f&&(h=Object.freeze({phrase:f.phrase,path:t,locale:f.locale||"en"})),new r(ix,c,u,this.fingerprint,Vce(o),e,this.depth+1,h)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,a=0;a=sx)throw new Error("invalid path index - "+i);n=n._derive(sx+s)}else if(i.match(/^[0-9]+$/)){var s=parseInt(i);if(s>=sx)throw new Error("invalid path index - "+i);n=n._derive(s)}else throw new Error("invalid path component - "+i)}return n},r._fromSeed=function(e,t){var n=(0,Ua.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=(0,Ua.arrayify)((0,Lf.computeHmac)(Lf.SupportedAlgorithm.sha512,LGt,n));return new r(ix,Vce(a.slice(0,32)),null,"0x00000000",Vce(a.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=Z3e(n),e=Z$e(X3e(e,n),n),r._fromSeed(J$e(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=Y$e.Base58.decode(e);(t.length!==82||V$e(t.slice(0,78))!==e)&&_Z.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],a=(0,Ua.hexlify)(t.slice(5,9)),i=parseInt((0,Ua.hexlify)(t.slice(9,13)).substring(2),16),s=(0,Ua.hexlify)(t.slice(13,45)),o=t.slice(45,78);switch((0,Ua.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(ix,null,(0,Ua.hexlify)(o),a,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new r(ix,(0,Ua.hexlify)(o.slice(1)),null,a,s,i,n,null)}return _Z.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();au.HDNode=qGt;function J$e(r,e){e||(e="");var t=(0,xZ.toUtf8Bytes)("mnemonic"+e,xZ.UnicodeNormalizationForm.NFKD);return(0,RGt.pbkdf2)((0,xZ.toUtf8Bytes)(r,xZ.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}au.mnemonicToSeed=J$e;function X3e(r,e){e=Z3e(e),_Z.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,Ua.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var c=32*t.length/3,u=t.length/3,l=Q$e(u),h=(0,Ua.arrayify)((0,Lf.sha256)(n.slice(0,c/8)))[0]&l;if(h!==(n[n.length-1]&l))throw new Error("invalid checksum");return(0,Ua.hexlify)(n.slice(0,c/8))}au.mnemonicToEntropy=X3e;function Z$e(r,e){if(e=Z3e(e),r=(0,Ua.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,a=0;a8?(t[t.length-1]<<=8,t[t.length-1]|=r[a],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[a]>>8-n,t.push(r[a]&OGt(8-n)),n+=3);var i=r.length/4,s=(0,Ua.arrayify)((0,Lf.sha256)(r))[0]&Q$e(i);return t[t.length-1]<<=i,t[t.length-1]|=s>>8-i,e.join(t.map(function(o){return e.getWord(o)}))}au.entropyToMnemonic=Z$e;function FGt(r,e){try{return X3e(r,e),!0}catch{}return!1}au.isValidMnemonic=FGt;function WGt(r){return(typeof r!="number"||r<0||r>=sx||r%1)&&_Z.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}au.getAccountPath=WGt});var X$e=_($ce=>{"use strict";d();p();Object.defineProperty($ce,"__esModule",{value:!0});$ce.version=void 0;$ce.version="random/5.7.0"});var rQe=_(Jce=>{"use strict";d();p();Object.defineProperty(Jce,"__esModule",{value:!0});Jce.randomBytes=void 0;var UGt=wr(),tQe=Zt(),HGt=X$e(),exe=new tQe.Logger(HGt.version);function jGt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var eQe=jGt(),Qce=eQe.crypto||eQe.msCrypto;(!Qce||!Qce.getRandomValues)&&(exe.warn("WARNING: Missing strong random number source"),Qce={getRandomValues:function(r){return exe.throwError("no secure random source avaialble",tQe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function zGt(r){(r<=0||r>1024||r%1||r!=r)&&exe.throwArgumentError("invalid length","length",r);var e=new Uint8Array(r);return Qce.getRandomValues(e),(0,UGt.arrayify)(e)}Jce.randomBytes=zGt});var nQe=_(Zce=>{"use strict";d();p();Object.defineProperty(Zce,"__esModule",{value:!0});Zce.shuffled=void 0;function KGt(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}Zce.shuffled=KGt});var TZ=_(ox=>{"use strict";d();p();Object.defineProperty(ox,"__esModule",{value:!0});ox.shuffled=ox.randomBytes=void 0;var GGt=rQe();Object.defineProperty(ox,"randomBytes",{enumerable:!0,get:function(){return GGt.randomBytes}});var VGt=nQe();Object.defineProperty(ox,"shuffled",{enumerable:!0,get:function(){return VGt.shuffled}})});var rxe=_((txe,aQe)=>{"use strict";d();p();(function(r){function e(x){return parseInt(x)===x}function t(x){if(!e(x.length))return!1;for(var N=0;N255)return!1;return!0}function n(x,N){if(x.buffer&&ArrayBuffer.isView(x)&&x.name==="Uint8Array")return N&&(x.slice?x=x.slice():x=Array.prototype.slice.call(x)),x;if(Array.isArray(x)){if(!t(x))throw new Error("Array contains invalid value: "+x);return new Uint8Array(x)}if(e(x.length)&&t(x))return new Uint8Array(x);throw new Error("unsupported array-like object")}function a(x){return new Uint8Array(x)}function i(x,N,U,E,z){(E!=null||z!=null)&&(x.slice?x=x.slice(E,z):x=Array.prototype.slice.call(x,E,z)),N.set(x,U)}var s=function(){function x(U){var E=[],z=0;for(U=encodeURI(U);z191&&ee<224?(E.push(String.fromCharCode((ee&31)<<6|U[z+1]&63)),z+=2):(E.push(String.fromCharCode((ee&15)<<12|(U[z+1]&63)<<6|U[z+2]&63)),z+=3)}return E.join("")}return{toBytes:x,fromBytes:N}}(),o=function(){function x(E){for(var z=[],ee=0;ee>4]+N[j&15])}return z.join("")}return{toBytes:x,fromBytes:U}}(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],f=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],I=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],C=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],R=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],F=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],W=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],V=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],K=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],H=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function G(x){for(var N=[],U=0;U>2,this._Ke[ee][N%4]=z[N],this._Kd[x-ee][N%4]=z[N];for(var j=0,X=E,ie;X>16&255]<<24^l[ie>>8&255]<<16^l[ie&255]<<8^l[ie>>24&255]^u[j]<<24,j+=1,E!=8)for(var N=1;N>8&255]<<8^l[ie>>16&255]<<16^l[ie>>24&255]<<24;for(var N=E/2+1;N>2,he=X%4,this._Ke[ue][he]=z[N],this._Kd[x-ue][he]=z[N++],X++}for(var ue=1;ue>24&255]^V[ie>>16&255]^K[ie>>8&255]^H[ie&255]},Q.prototype.encrypt=function(x){if(x.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var N=this._Ke.length-1,U=[0,0,0,0],E=G(x),z=0;z<4;z++)E[z]^=this._Ke[0][z];for(var ee=1;ee>24&255]^m[E[(z+1)%4]>>16&255]^y[E[(z+2)%4]>>8&255]^I[E[(z+3)%4]&255]^this._Ke[ee][z];E=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Ke[N][z],j[4*z]=(l[E[z]>>24&255]^X>>24)&255,j[4*z+1]=(l[E[(z+1)%4]>>16&255]^X>>16)&255,j[4*z+2]=(l[E[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(l[E[(z+3)%4]&255]^X)&255;return j},Q.prototype.decrypt=function(x){if(x.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var N=this._Kd.length-1,U=[0,0,0,0],E=G(x),z=0;z<4;z++)E[z]^=this._Kd[0][z];for(var ee=1;ee>24&255]^R[E[(z+3)%4]>>16&255]^L[E[(z+2)%4]>>8&255]^F[E[(z+1)%4]&255]^this._Kd[ee][z];E=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Kd[N][z],j[4*z]=(h[E[z]>>24&255]^X>>24)&255,j[4*z+1]=(h[E[(z+3)%4]>>16&255]^X>>16)&255,j[4*z+2]=(h[E[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(h[E[(z+1)%4]&255]^X)&255;return j};var q=function(x){if(!(this instanceof q))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Q(x)};q.prototype.encrypt=function(x){if(x=n(x),x.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(x.length),U=a(16),E=0;E=0;--N)this._counter[N]=x%256,x=x>>8},v.prototype.setBytes=function(x){if(x=n(x,!0),x.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=x},v.prototype.increment=function(){for(var x=15;x>=0;x--)if(this._counter[x]===255)this._counter[x]=0;else{this._counter[x]++;break}};var k=function(x,N){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",N instanceof v||(N=new v(N)),this._counter=N,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Q(x)};k.prototype.encrypt=function(x){for(var N=n(x,!0),U=0;U16)throw new Error("PKCS#7 padding byte out of range");for(var U=x.length-N,E=0;E{"use strict";d();p();Object.defineProperty(Xce,"__esModule",{value:!0});Xce.version=void 0;Xce.version="json-wallets/5.7.0"});var axe=_(Xd=>{"use strict";d();p();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.uuidV4=Xd.searchPath=Xd.getPassword=Xd.zpad=Xd.looseArrayify=void 0;var eue=wr(),iQe=qs();function YGt(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,eue.arrayify)(r)}Xd.looseArrayify=YGt;function $Gt(r,e){for(r=String(r);r.length{"use strict";d();p();var XGt=Of&&Of.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),eVt=Of&&Of.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Of,"__esModule",{value:!0});Of.decrypt=Of.CrowdsaleAccount=void 0;var sQe=eVt(rxe()),tVt=Sd(),oQe=wr(),rVt=jl(),nVt=qce(),aVt=qs(),iVt=Aa(),sVt=Zt(),oVt=nxe(),cVt=new sVt.Logger(oVt.version),tue=axe(),cQe=function(r){XGt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(iVt.Description);Of.CrowdsaleAccount=cQe;function uVt(r,e){var t=JSON.parse(r);e=(0,tue.getPassword)(e);var n=(0,tVt.getAddress)((0,tue.searchPath)(t,"ethaddr")),a=(0,tue.looseArrayify)((0,tue.searchPath)(t,"encseed"));(!a||a.length%16!==0)&&cVt.throwArgumentError("invalid encseed","json",r);for(var i=(0,oQe.arrayify)((0,nVt.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),s=a.slice(0,16),o=a.slice(16),c=new sQe.default.ModeOfOperation.cbc(i,s),u=sQe.default.padding.pkcs7.strip((0,oQe.arrayify)(c.decrypt(o))),l="",h=0;h{"use strict";d();p();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.getJsonWalletAddress=Zy.isKeystoreWallet=Zy.isCrowdsaleWallet=void 0;var lQe=Sd();function dQe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}Zy.isCrowdsaleWallet=dQe;function pQe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}Zy.isKeystoreWallet=pQe;function lVt(r){if(dQe(r))try{return(0,lQe.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(pQe(r))try{return(0,lQe.getAddress)(JSON.parse(r).address)}catch{return null}return null}Zy.getJsonWalletAddress=lVt});var mQe=_((ixe,fQe)=>{"use strict";d();p();(function(r){function t(m){let y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),I=1779033703,C=3144134277,R=1013904242,L=2773480762,F=1359893119,W=2600822924,V=528734635,K=1541459225,H=new Uint32Array(64);function G(k){let O=0,D=k.length;for(;D>=64;){let B=I,x=C,N=R,U=L,E=F,z=W,ee=V,j=K,X,ie,ue,he,ke;for(ie=0;ie<16;ie++)ue=O+ie*4,H[ie]=(k[ue]&255)<<24|(k[ue+1]&255)<<16|(k[ue+2]&255)<<8|k[ue+3]&255;for(ie=16;ie<64;ie++)X=H[ie-2],he=(X>>>17|X<<32-17)^(X>>>19|X<<32-19)^X>>>10,X=H[ie-15],ke=(X>>>7|X<<32-7)^(X>>>18|X<<32-18)^X>>>3,H[ie]=(he+H[ie-7]|0)+(ke+H[ie-16]|0)|0;for(ie=0;ie<64;ie++)he=(((E>>>6|E<<32-6)^(E>>>11|E<<32-11)^(E>>>25|E<<32-25))+(E&z^~E&ee)|0)+(j+(y[ie]+H[ie]|0)|0)|0,ke=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&x^B&N^x&N)|0,j=ee,ee=z,z=E,E=U+he|0,U=N,N=x,x=B,B=he+ke|0;I=I+B|0,C=C+x|0,R=R+N|0,L=L+U|0,F=F+E|0,W=W+z|0,V=V+ee|0,K=K+j|0,O+=64,D-=64}}G(m);let Q,q=m.length%64,T=m.length/536870912|0,M=m.length<<3,A=q<56?56:120,v=m.slice(m.length-q,m.length);for(v.push(128),Q=q+1;Q>>24&255),v.push(T>>>16&255),v.push(T>>>8&255),v.push(T>>>0&255),v.push(M>>>24&255),v.push(M>>>16&255),v.push(M>>>8&255),v.push(M>>>0&255),G(v),[I>>>24&255,I>>>16&255,I>>>8&255,I>>>0&255,C>>>24&255,C>>>16&255,C>>>8&255,C>>>0&255,R>>>24&255,R>>>16&255,R>>>8&255,R>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255]}function n(m,y,I){m=m.length<=64?m:t(m);let C=64+y.length+4,R=new Array(C),L=new Array(64),F,W=[];for(F=0;F<64;F++)R[F]=54;for(F=0;F=C-4;K--){if(R[K]++,R[K]<=255)return;R[K]=0}}for(;I>=32;)V(),W=W.concat(t(L.concat(t(R)))),I-=32;return I>0&&(V(),W=W.concat(t(L.concat(t(R))).slice(0,I))),W}function a(m,y,I,C,R){let L;for(c(m,(2*I-1)*16,R,0,16),L=0;L<2*I;L++)o(m,L*16,R,16),s(R,C),c(R,0,m,y+L*16,16);for(L=0;L>>32-y}function s(m,y){c(m,0,y,0,16);for(let I=8;I>0;I-=2)y[4]^=i(y[0]+y[12],7),y[8]^=i(y[4]+y[0],9),y[12]^=i(y[8]+y[4],13),y[0]^=i(y[12]+y[8],18),y[9]^=i(y[5]+y[1],7),y[13]^=i(y[9]+y[5],9),y[1]^=i(y[13]+y[9],13),y[5]^=i(y[1]+y[13],18),y[14]^=i(y[10]+y[6],7),y[2]^=i(y[14]+y[10],9),y[6]^=i(y[2]+y[14],13),y[10]^=i(y[6]+y[2],18),y[3]^=i(y[15]+y[11],7),y[7]^=i(y[3]+y[15],9),y[11]^=i(y[7]+y[3],13),y[15]^=i(y[11]+y[7],18),y[1]^=i(y[0]+y[3],7),y[2]^=i(y[1]+y[0],9),y[3]^=i(y[2]+y[1],13),y[0]^=i(y[3]+y[2],18),y[6]^=i(y[5]+y[4],7),y[7]^=i(y[6]+y[5],9),y[4]^=i(y[7]+y[6],13),y[5]^=i(y[4]+y[7],18),y[11]^=i(y[10]+y[9],7),y[8]^=i(y[11]+y[10],9),y[9]^=i(y[8]+y[11],13),y[10]^=i(y[9]+y[8],18),y[12]^=i(y[15]+y[14],7),y[13]^=i(y[12]+y[15],9),y[14]^=i(y[13]+y[12],13),y[15]^=i(y[14]+y[13],18);for(let I=0;I<16;++I)m[I]+=y[I]}function o(m,y,I,C){for(let R=0;R=256)return!1}return!0}function l(m,y){if(typeof m!="number"||m%1)throw new Error("invalid "+y);return m}function h(m,y,I,C,R,L,F){if(I=l(I,"N"),C=l(C,"r"),R=l(R,"p"),L=l(L,"dkLen"),I===0||(I&I-1)!==0)throw new Error("N must be power of 2");if(I>2147483647/128/C)throw new Error("N too large");if(C>2147483647/128/R)throw new Error("r too large");if(!u(m))throw new Error("password must be an array or buffer");if(m=Array.prototype.slice.call(m),!u(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);let W=n(m,y,R*128*C),V=new Uint32Array(R*32*C);for(let E=0;Ex&&(E=x);for(let ee=0;eex&&(E=x);for(let ee=0;ee>0&255),W.push(V[ee]>>8&255),W.push(V[ee]>>16&255),W.push(V[ee]>>24&255);let z=n(m,W,L);return F&&F(null,1,z),z}F&&N(U)};if(!F)for(;;){let E=U();if(E!=null)return E}U()}let f={scrypt:function(m,y,I,C,R,L,F){return new Promise(function(W,V){let K=0;F&&F(0),h(m,y,I,C,R,L,function(H,G,Q){if(H)V(H);else if(Q)F&&K!==1&&F(1),W(new Uint8Array(Q));else if(F&&G!==K)return K=G,F(G)})})},syncScrypt:function(m,y,I,C,R,L){return new Uint8Array(h(m,y,I,C,R,L))}};typeof ixe<"u"?fQe.exports=f:typeof define=="function"&&define.amd?define(f):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=f)})(ixe)});var EQe=_(Oo=>{"use strict";d();p();var dVt=Oo&&Oo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pVt=Oo&&Oo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},hVt=Oo&&Oo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.decryptJsonWalletSync=Hs.decryptJsonWallet=Hs.getJsonWalletAddress=Hs.isKeystoreWallet=Hs.isCrowdsaleWallet=Hs.encryptKeystore=Hs.decryptKeystoreSync=Hs.decryptKeystore=Hs.decryptCrowdsale=void 0;var uxe=uQe();Object.defineProperty(Hs,"decryptCrowdsale",{enumerable:!0,get:function(){return uxe.decrypt}});var Jb=hQe();Object.defineProperty(Hs,"getJsonWalletAddress",{enumerable:!0,get:function(){return Jb.getJsonWalletAddress}});Object.defineProperty(Hs,"isCrowdsaleWallet",{enumerable:!0,get:function(){return Jb.isCrowdsaleWallet}});Object.defineProperty(Hs,"isKeystoreWallet",{enumerable:!0,get:function(){return Jb.isKeystoreWallet}});var IZ=EQe();Object.defineProperty(Hs,"decryptKeystore",{enumerable:!0,get:function(){return IZ.decrypt}});Object.defineProperty(Hs,"decryptKeystoreSync",{enumerable:!0,get:function(){return IZ.decryptSync}});Object.defineProperty(Hs,"encryptKeystore",{enumerable:!0,get:function(){return IZ.encrypt}});function _Vt(r,e,t){if((0,Jb.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,uxe.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,Jb.isKeystoreWallet)(r)?(0,IZ.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}Hs.decryptJsonWallet=_Vt;function TVt(r,e){if((0,Jb.isCrowdsaleWallet)(r))return(0,uxe.decrypt)(r,e);if((0,Jb.isKeystoreWallet)(r))return(0,IZ.decryptSync)(r,e);throw new Error("invalid JSON wallet")}Hs.decryptJsonWalletSync=TVt});var CQe=_(nue=>{"use strict";d();p();Object.defineProperty(nue,"__esModule",{value:!0});nue.version=void 0;nue.version="wallet/5.7.0"});var hxe=_(hl=>{"use strict";d();p();var IVt=hl&&hl.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kQe=hl&&hl.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},AQe=hl&&hl.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(aue,"__esModule",{value:!0});aue.version=void 0;aue.version="networks/5.7.1"});var fxe=_(oue=>{"use strict";d();p();Object.defineProperty(oue,"__esModule",{value:!0});oue.getNetwork=void 0;var BVt=Zt(),DVt=MQe(),NQe=new BVt.Logger(DVt.version);function LVt(r){return r&&typeof r.renetwork=="function"}function d0(r){var e=function(t,n){n==null&&(n={});var a=[];if(t.InfuraProvider&&n.infura!=="-")try{a.push(new t.InfuraProvider(r,n.infura))}catch{}if(t.EtherscanProvider&&n.etherscan!=="-")try{a.push(new t.EtherscanProvider(r,n.etherscan))}catch{}if(t.AlchemyProvider&&n.alchemy!=="-")try{a.push(new t.AlchemyProvider(r,n.alchemy))}catch{}if(t.PocketProvider&&n.pocket!=="-"){var i=["goerli","ropsten","rinkeby","sepolia"];try{var s=new t.PocketProvider(r,n.pocket);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(t.CloudflareProvider&&n.cloudflare!=="-")try{a.push(new t.CloudflareProvider(r))}catch{}if(t.AnkrProvider&&n.ankr!=="-")try{var i=["ropsten"],s=new t.AnkrProvider(r,n.ankr);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(t.FallbackProvider){var o=1;return n.quorum!=null?o=n.quorum:r==="homestead"&&(o=2),new t.FallbackProvider(a,o)}return a[0]};return e.renetwork=function(t){return d0(t)},e}function sue(r,e){var t=function(n,a){return n.JsonRpcProvider?new n.JsonRpcProvider(r,e):null};return t.renetwork=function(n){return sue(r,n)},t}var BQe={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:d0("homestead")},DQe={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:d0("ropsten")},LQe={chainId:63,name:"classicMordor",_defaultProvider:sue("https://www.ethercluster.com/mordor","classicMordor")},iue={unspecified:{chainId:0,name:"unspecified"},homestead:BQe,mainnet:BQe,morden:{chainId:2,name:"morden"},ropsten:DQe,testnet:DQe,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:d0("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:d0("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:d0("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:d0("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:sue("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:LQe,classicTestnet:LQe,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:sue("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:d0("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:d0("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function OVt(r){if(r==null)return null;if(typeof r=="number"){for(var e in iue){var t=iue[e];if(t.chainId===r)return{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress||null,_defaultProvider:t._defaultProvider||null}}return{chainId:r,name:"unknown"}}if(typeof r=="string"){var n=iue[r];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var a=iue[r.name];if(!a)return typeof r.chainId!="number"&&NQe.throwArgumentError("invalid network chainId","network",r),r;r.chainId!==0&&r.chainId!==a.chainId&&NQe.throwArgumentError("network chainId mismatch","network",r);var i=r._defaultProvider||null;return i==null&&a._defaultProvider&&(LVt(a._defaultProvider)?i=a._defaultProvider.renetwork(r):i=a._defaultProvider),{name:r.name,chainId:a.chainId,ensAddress:r.ensAddress||a.ensAddress||null,_defaultProvider:i}}oue.getNetwork=OVt});var OQe=_(cue=>{"use strict";d();p();Object.defineProperty(cue,"__esModule",{value:!0});cue.version=void 0;cue.version="web/5.7.1"});var qQe=_(eg=>{"use strict";d();p();var qVt=eg&&eg.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},FVt=eg&&eg.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var HVt=ep&&ep.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},jVt=ep&&ep.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var a=typeof r=="object"?r.throttleCallback:null,i=typeof r=="object"&&typeof r.throttleSlotInterval=="number"?r.throttleSlotInterval:100;yh.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var s=typeof r=="object"?!!r.errorPassThrough:!1,o={},c=null,u={method:"GET"},l=!1,h=2*60*1e3;if(typeof r=="string")c=r;else if(typeof r=="object"){if((r==null||r.url==null)&&yh.throwArgumentError("missing URL","connection.url",r),c=r.url,typeof r.timeout=="number"&&r.timeout>0&&(h=r.timeout),r.headers)for(var f in r.headers)o[f.toLowerCase()]={key:f,value:String(r.headers[f])},["if-none-match","if-modified-since"].indexOf(f.toLowerCase())>=0&&(l=!0);if(u.allowGzip=!!r.allowGzip,r.user!=null&&r.password!=null){c.substring(0,6)!=="https:"&&r.allowInsecureAuthentication!==!0&&yh.throwError("basic authentication requires a secure https url",p0.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:r.user,password:"[REDACTED]"});var m=r.user+":"+r.password;o.authorization={key:"Authorization",value:"Basic "+(0,FQe.encode)((0,kZ.toUtf8Bytes)(m))}}r.skipFetchSetup!=null&&(u.skipFetchSetup=!!r.skipFetchSetup),r.fetchOptions!=null&&(u.fetchOptions=(0,uue.shallowCopy)(r.fetchOptions))}var y=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),I=c?c.match(y):null;if(I)try{var C={statusCode:200,statusMessage:"OK",headers:{"content-type":I[1]||"text/plain"},body:I[2]?(0,FQe.decode)(I[3]):GVt(I[3])},R=C.body;return t&&(R=t(C.body,C)),Promise.resolve(R)}catch(V){yh.throwError("processing response error",p0.Logger.errors.SERVER_ERROR,{body:tg(I[1],I[2]),error:V,requestBody:null,requestMethod:"GET",url:c})}e&&(u.method="POST",u.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));var L={};Object.keys(o).forEach(function(V){var K=o[V];L[K.key]=K.value}),u.headers=L;var F=function(){var V=null,K=new Promise(function(G,Q){h&&(V=setTimeout(function(){V!=null&&(V=null,Q(yh.makeError("timeout",p0.Logger.errors.TIMEOUT,{requestBody:tg(u.body,L["content-type"]),requestMethod:u.method,timeout:h,url:c})))},h))}),H=function(){V!=null&&(clearTimeout(V),V=null)};return{promise:K,cancel:H}}(),W=function(){return HVt(this,void 0,void 0,function(){var V,K,H,v,G,Q,q,T,M,A,v,k;return jVt(this,function(O){switch(O.label){case 0:V=0,O.label=1;case 1:if(!(V=300)&&(F.cancel(),yh.throwError("bad response",p0.Logger.errors.SERVER_ERROR,{status:K.statusCode,headers:K.headers,body:tg(T,K.headers?K.headers["content-type"]:null),requestBody:tg(u.body,L["content-type"]),requestMethod:u.method,url:c})),!t)return[3,18];O.label=11;case 11:return O.trys.push([11,13,,18]),[4,t(T,K)];case 12:return M=O.sent(),F.cancel(),[2,M];case 13:return A=O.sent(),A.throttleRetry&&Vo){s()&&n(new Error("retry limit reached"));return}var h=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));he.ceiling&&(h=e.ceiling),setTimeout(u,h)}return null},function(l){s()&&n(l)})}u()})}ep.poll=YVt});var GQe=_((WMn,KQe)=>{"use strict";d();p();var due="qpzry9x8gf2tvdw0s3jn54khce6mua7l",mxe={};for(AZ=0;AZ>25;return(r&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function jQe(r){for(var e=1,t=0;t126)return"Invalid prefix ("+r+")";e=lx(e)^n>>5}for(e=lx(e),t=0;tt)throw new TypeError("Exceeds length limit");r=r.toLowerCase();var n=jQe(r);if(typeof n=="string")throw new Error(n);for(var a=r+"1",i=0;i>5!==0)throw new Error("Non 5-bit word");n=lx(n)^s,a+=due.charAt(s)}for(i=0;i<6;++i)n=lx(n);for(n^=1,i=0;i<6;++i){var o=n>>(5-i)*5&31;a+=due.charAt(o)}return a}function zQe(r,e){if(e=e||90,r.length<8)return r+" too short";if(r.length>e)return"Exceeds length limit";var t=r.toLowerCase(),n=r.toUpperCase();if(r!==t&&r!==n)return"Mixed-case string "+r;r=t;var a=r.lastIndexOf("1");if(a===-1)return"No separator character for "+r;if(a===0)return"Missing prefix for "+r;var i=r.slice(0,a),s=r.slice(a+1);if(s.length<6)return"Data too short";var o=jQe(i);if(typeof o=="string")return o;for(var c=[],u=0;u=s.length)&&c.push(h)}return o!==1?"Invalid checksum for "+r:{prefix:i,words:c}}function QVt(){var r=zQe.apply(null,arguments);if(typeof r=="object")return r}function JVt(r){var e=zQe.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function pue(r,e,t,n){for(var a=0,i=0,s=(1<=t;)i-=t,o.push(a>>i&s);if(n)i>0&&o.push(a<=e)return"Excess padding";if(a<{"use strict";d();p();Object.defineProperty(hue,"__esModule",{value:!0});hue.version=void 0;hue.version="providers/5.7.2"});var rg=_(Wf=>{"use strict";d();p();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.showThrottleMessage=Wf.isCommunityResource=Wf.isCommunityResourcable=Wf.Formatter=void 0;var yxe=Sd(),h0=Ls(),Ff=wr(),rYt=ib(),nYt=Aa(),VQe=l0(),aYt=Zt(),iYt=gc(),PZ=new aYt.Logger(iYt.version),sYt=function(){function r(){this.formats=this.getDefaultFormats()}return r.prototype.getDefaultFormats=function(){var e=this,t={},n=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),o=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),l=this.type.bind(this),h=function(f){return e.data(f,!0)};return t.transaction={hash:o,type:l,accessList:r.allowNull(this.accessList.bind(this),null),blockHash:r.allowNull(o,null),blockNumber:r.allowNull(u,null),transactionIndex:r.allowNull(u,null),confirmations:r.allowNull(u,null),from:n,gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),gasLimit:a,to:r.allowNull(n,null),value:a,nonce:u,data:s,r:r.allowNull(this.uint256),s:r.allowNull(this.uint256),v:r.allowNull(u),creates:r.allowNull(n,null),raw:r.allowNull(s)},t.transactionRequest={from:r.allowNull(n),nonce:r.allowNull(u),gasLimit:r.allowNull(a),gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),to:r.allowNull(n),value:r.allowNull(a),data:r.allowNull(h),type:r.allowNull(u),accessList:r.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:o,address:n,topics:r.arrayOf(o),data:s,logIndex:u,blockHash:o},t.receipt={to:r.allowNull(this.address,null),from:r.allowNull(this.address,null),contractAddress:r.allowNull(n,null),transactionIndex:u,root:r.allowNull(c),gasUsed:a,logsBloom:r.allowNull(s),blockHash:o,transactionHash:o,logs:r.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:r.allowNull(u,null),cumulativeGasUsed:a,effectiveGasPrice:r.allowNull(a),status:r.allowNull(u),type:l},t.block={hash:r.allowNull(o),parentHash:o,number:u,timestamp:u,nonce:r.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:r.allowNull(n),extraData:s,transactions:r.allowNull(r.arrayOf(o)),baseFeePerGas:r.allowNull(a)},t.blockWithTransactions=(0,nYt.shallowCopy)(t.block),t.blockWithTransactions.transactions=r.allowNull(r.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:r.allowNull(i,void 0),toBlock:r.allowNull(i,void 0),blockHash:r.allowNull(o,void 0),address:r.allowNull(n,void 0),topics:r.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:r.allowNull(u),blockHash:r.allowNull(o),transactionIndex:u,removed:r.allowNull(this.boolean.bind(this)),address:n,data:r.allowFalsish(s,"0x"),topics:r.arrayOf(o),transactionHash:o,logIndex:u},t},r.prototype.accessList=function(e){return(0,VQe.accessListify)(e||[])},r.prototype.number=function(e){return e==="0x"?0:h0.BigNumber.from(e).toNumber()},r.prototype.type=function(e){return e==="0x"||e==null?0:h0.BigNumber.from(e).toNumber()},r.prototype.bigNumber=function(e){return h0.BigNumber.from(e)},r.prototype.boolean=function(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)},r.prototype.hex=function(e,t){return typeof e=="string"&&(!t&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,Ff.isHexString)(e))?e.toLowerCase():PZ.throwArgumentError("invalid hash","value",e)},r.prototype.data=function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n},r.prototype.address=function(e){return(0,yxe.getAddress)(e)},r.prototype.callAddress=function(e){if(!(0,Ff.isHexString)(e,32))return null;var t=(0,yxe.getAddress)((0,Ff.hexDataSlice)(e,12));return t===rYt.AddressZero?null:t},r.prototype.contractAddress=function(e){return(0,yxe.getContractAddress)(e)},r.prototype.blockTag=function(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,Ff.isHexString)(e))return(0,Ff.hexValue)(e);throw new Error("invalid blockTag")},r.prototype.hash=function(e,t){var n=this.hex(e,t);return(0,Ff.hexDataLength)(n)!==32?PZ.throwArgumentError("invalid hash","value",e):n},r.prototype.difficulty=function(e){if(e==null)return null;var t=h0.BigNumber.from(e);try{return t.toNumber()}catch{}return null},r.prototype.uint256=function(e){if(!(0,Ff.isHexString)(e))throw new Error("invalid uint256");return(0,Ff.hexZeroPad)(e,32)},r.prototype._block=function(e,t){e.author!=null&&e.miner==null&&(e.miner=e.author);var n=e._difficulty!=null?e._difficulty:e.difficulty,a=r.check(t,e);return a._difficulty=n==null?null:h0.BigNumber.from(n),a},r.prototype.block=function(e){return this._block(e,this.formats.block)},r.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},r.prototype.transactionRequest=function(e){return r.check(this.formats.transactionRequest,e)},r.prototype.transactionResponse=function(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&h0.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);var t=r.check(this.formats.transaction,e);if(e.chainId!=null){var n=e.chainId;(0,Ff.isHexString)(n)&&(n=h0.BigNumber.from(n).toNumber()),t.chainId=n}else{var n=e.networkId;n==null&&t.v==null&&(n=e.chainId),(0,Ff.isHexString)(n)&&(n=h0.BigNumber.from(n).toNumber()),typeof n!="number"&&t.v!=null&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),t.chainId=n}return t.blockHash&&t.blockHash.replace(/0/g,"")==="x"&&(t.blockHash=null),t},r.prototype.transaction=function(e){return(0,VQe.parse)(e)},r.prototype.receiptLog=function(e){return r.check(this.formats.receiptLog,e)},r.prototype.receipt=function(e){var t=r.check(this.formats.receipt,e);if(t.root!=null)if(t.root.length<=4){var n=h0.BigNumber.from(t.root).toNumber();n===0||n===1?(t.status!=null&&t.status!==n&&PZ.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=n,delete t.root):PZ.throwArgumentError("invalid alt-root-status","value.root",t.root)}else t.root.length!==66&&PZ.throwArgumentError("invalid root hash","value.root",t.root);return t.status!=null&&(t.byzantium=!0),t},r.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map(function(n){return t.topics(n)}):e!=null?this.hash(e,!0):null},r.prototype.filter=function(e){return r.check(this.formats.filter,e)},r.prototype.filterLog=function(e){return r.check(this.formats.filterLog,e)},r.check=function(e,t){var n={};for(var a in e)try{var i=e[a](t[a]);i!==void 0&&(n[a]=i)}catch(s){throw s.checkKey=a,s.checkValue=t[a],s}return n},r.allowNull=function(e,t){return function(n){return n==null?t:e(n)}},r.allowFalsish=function(e,t){return function(n){return n?e(n):t}},r.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach(function(a){n.push(e(a))}),n}},r}();Wf.Formatter=sYt;function $Qe(r){return r&&typeof r.isCommunityResource=="function"}Wf.isCommunityResourcable=$Qe;function oYt(r){return $Qe(r)&&r.isCommunityResource()}Wf.isCommunityResource=oYt;var YQe=!1;function cYt(){YQe||(YQe=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}Wf.showThrottleMessage=cYt});var NZ=_(su=>{"use strict";d();p();var uYt=su&&su.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hr=su&&su.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},fr=su&&su.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&r[r.length-1]==null;)r.pop();return r.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(a){t[XQe(a)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}else return XQe(e)}).join("&")}function yYt(r){return r===""?[]:r.split(/&/g).map(function(e){if(e==="")return[];var t=e.split("|").map(function(n){return n==="null"?null:n});return t.length===1?t[0]:t})}function dx(r){if(typeof r=="string"){if(r=r.toLowerCase(),(0,ir.hexDataLength)(r)===32)return"tx:"+r;if(r.indexOf(":")===-1)return r}else{if(Array.isArray(r))return"filter:*:"+eJe(r);if(iJe.ForkEvent.isForkEvent(r))throw Rr.warn("not implemented"),new Error("not implemented");if(r&&typeof r=="object")return"filter:"+(r.address||"*")+":"+eJe(r.topics||[])}throw new Error("invalid event - "+r)}function SZ(){return new Date().getTime()}function tJe(r){return new Promise(function(e){setTimeout(e,r)})}var gYt=["block","network","pending","poll"],sJe=function(){function r(e,t,n){(0,ws.defineReadOnly)(this,"tag",e),(0,ws.defineReadOnly)(this,"listener",t),(0,ws.defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(r.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){var e=this.tag.split(":");return e[0]!=="tx"?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){var e=this.tag.split(":");if(e[0]!=="filter")return null;var t=e[1],n=yYt(e[2]),a={};return n.length>0&&(a.topics=n),t&&t!=="*"&&(a.address=t),a},enumerable:!1,configurable:!0}),r.prototype.pollable=function(){return this.tag.indexOf(":")>=0||gYt.indexOf(this.tag)>=0},r}();su.Event=sJe;var bYt={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function gxe(r){return(0,ir.hexZeroPad)(iu.BigNumber.from(r).toHexString(),32)}function rJe(r){return wxe.Base58.encode((0,ir.concat)([r,(0,ir.hexDataSlice)((0,QQe.sha256)((0,QQe.sha256)(r)),0,4)]))}var oJe=new RegExp("^(ipfs)://(.*)$","i"),nJe=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),oJe,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function fue(r,e){try{return(0,xxe.toUtf8String)(MZ(r,e))}catch{}return null}function MZ(r,e){if(r==="0x")return null;var t=iu.BigNumber.from((0,ir.hexDataSlice)(r,e,e+32)).toNumber(),n=iu.BigNumber.from((0,ir.hexDataSlice)(r,t,t+32)).toNumber();return(0,ir.hexDataSlice)(r,t+32,t+32+n)}function bxe(r){return r.match(/^ipfs:\/\/ipfs\//i)?r=r.substring(12):r.match(/^ipfs:\/\//i)?r=r.substring(7):Rr.throwArgumentError("unsupported IPFS format","link",r),"https://gateway.ipfs.io/ipfs/"+r}function aJe(r){var e=(0,ir.arrayify)(r);if(e.length>32)throw new Error("internal; should not happen");var t=new Uint8Array(32);return t.set(e,32-e.length),t}function vYt(r){if(r.length%32===0)return r;var e=new Uint8Array(Math.ceil(r.length/32)*32);return e.set(r),e}function cJe(r){for(var e=[],t=0,n=0;n=1&&s<=75)return rJe((0,ir.concat)([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var c=parseInt(o[1],16);if(o[2].length===c*2&&c>=1&&c<=75)return rJe((0,ir.concat)([[n.p2sh],"0x"+o[2]]))}}if(n.prefix!=null){var u=a[1],l=a[0];if(l===0?u!==20&&u!==32&&(l=-1):l=-1,l>=0&&a.length===2+u&&u>=1&&u<=75){var h=JQe.default.toWords(a.slice(2));return h.unshift(l),JQe.default.encode(n.prefix,h)}}return null},r.prototype.getAddress=function(e){return hr(this,void 0,void 0,function(){var t,n,a,i;return fr(this,function(s){switch(s.label){case 0:if(e==null&&(e=60),e!==60)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return t=s.sent(),t==="0x"||t===pYt.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if(n=s.sent(),n.code===qr.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",gxe(e))];case 5:return a=s.sent(),a==null||a==="0x"?[2,null]:(i=this._getAddress(e,a),i==null&&Rr.throwError("invalid or unsupported coin data",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:a}),[2,i])}})})},r.prototype.getAvatar=function(){return hr(this,void 0,void 0,function(){var e,t,n,a,i,s,o,c,u,l,h,f,m,y,I,C,R,L,F,W,V,K,H,G,Q;return fr(this,function(q){switch(q.label){case 0:e=[{type:"name",content:this.name}],q.label=1;case 1:return q.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(t=q.sent(),t==null)return[2,null];n=0,q.label=3;case 3:if(!(n=0?null:JSON.stringify({data:s,sender:i}),[4,(0,px.fetchJson)({url:l,errorPassThrough:!0},h,function(I,C){return I.status=C.statusCode,I})]):[3,4];case 2:if(f=y.sent(),f.data)return[2,f.data];if(m=f.message||"unknown error",f.status>=400&&f.status<500)return[2,Rr.throwError("response not found during CCIP fetch: "+m,qr.Logger.errors.SERVER_ERROR,{url:u,errorMessage:m})];o.push(m),y.label=3;case 3:return c++,[3,1];case 4:return[2,Rr.throwError("error encountered during CCIP fetch: "+o.map(function(I){return JSON.stringify(I)}).join(", "),qr.Logger.errors.SERVER_ERROR,{urls:a,errorMessages:o})]}})})},e.prototype._getInternalBlockNumber=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o,c=this;return fr(this,function(u){switch(u.label){case 0:return[4,this._ready()];case 1:if(u.sent(),!(t>0))return[3,7];u.label=2;case 2:if(!this._internalBlockNumber)return[3,7];n=this._internalBlockNumber,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n];case 4:return a=u.sent(),SZ()-a.respTime<=t?[2,a.blockNumber]:[3,7];case 5:return i=u.sent(),this._internalBlockNumber===n?[3,7]:[3,6];case 6:return[3,2];case 7:return s=SZ(),o=(0,ws.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(l){return null},function(l){return l})}).then(function(l){var h=l.blockNumber,f=l.networkError;if(f)throw c._internalBlockNumber===o&&(c._internalBlockNumber=null),f;var m=SZ();return h=iu.BigNumber.from(h).toNumber(),h1e3)Rr.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+a+")"),this.emit("error",Rr.makeError("network block skew detected",qr.Logger.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(s=this._emitted.block+1;s<=a;s++)this.emit("block",s);return this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(function(u){if(u!=="block"){var l=o._emitted[u];l!=="pending"&&a-l>12&&delete o._emitted[u]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(function(u){switch(u.type){case"tx":{var l=u.hash,h=o.getTransactionReceipt(l).then(function(y){return!y||y.blockNumber==null||(o._emitted["t:"+l]=y.blockNumber,o.emit(l,y)),null}).catch(function(y){o.emit("error",y)});n.push(h);break}case"filter":{if(!u._inflight){u._inflight=!0,u._lastBlockNumber===-2&&(u._lastBlockNumber=a-1);var f=u.filter;f.fromBlock=u._lastBlockNumber+1,f.toBlock=a;var m=f.toBlock-o._maxFilterBlockRange;m>f.fromBlock&&(f.fromBlock=m),f.fromBlock<0&&(f.fromBlock=0);var h=o.getLogs(f).then(function(I){u._inflight=!1,I.length!==0&&I.forEach(function(C){C.blockNumber>u._lastBlockNumber&&(u._lastBlockNumber=C.blockNumber),o._emitted["b:"+C.blockHash]=C.blockNumber,o._emitted["t:"+C.transactionHash]=C.blockNumber,o.emit(f,C)})}).catch(function(I){o.emit("error",I),u._inflight=!1});n.push(h)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(function(){o.emit("didPoll",t)}).catch(function(u){o.emit("error",u)}),[2]}})})},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),e.prototype.detectNetwork=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,Rr.throwError("provider does not support network detection",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},e.prototype.getNetwork=function(){return hr(this,void 0,void 0,function(){var t,n,a;return fr(this,function(i){switch(i.label){case 0:return[4,this._ready()];case 1:return t=i.sent(),[4,this.detectNetwork()];case 2:return n=i.sent(),t.chainId===n.chainId?[3,5]:this.anyNetwork?(this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),[4,tJe(0)]):[3,4];case 3:return i.sent(),[2,this._network];case 4:throw a=Rr.makeError("underlying network changed",qr.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",a),a;case 5:return[2,t]}})})},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(n){t._setFastBlockNumber(n)},function(n){}),this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return this._poller!=null},set:function(t){var n=this;t&&!this._poller?(this._poller=setInterval(function(){n.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){n.poll(),n._bootstrapPoll=setTimeout(function(){n._poller||n.poll(),n._bootstrapPoll=null},n.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var n=this;if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){n.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,n=SZ();return n-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=n,this._fastBlockNumberPromise=this.getBlockNumber().then(function(a){return(t._fastBlockNumber==null||a>t._fastBlockNumber)&&(t._fastBlockNumber=a),t._fastBlockNumber})),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,n,a){return hr(this,void 0,void 0,function(){return fr(this,function(i){return[2,this._waitForTransaction(t,n??1,a||0,null)]})})},e.prototype._waitForTransaction=function(t,n,a,i){return hr(this,void 0,void 0,function(){var s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return s=c.sent(),(s?s.confirmations:0)>=n?[2,s]:[2,new Promise(function(u,l){var h=[],f=!1,m=function(){return f?!0:(f=!0,h.forEach(function(F){F()}),!1)},y=function(F){F.confirmations0){var L=setTimeout(function(){m()||l(Rr.makeError("timeout exceeded",qr.Logger.errors.TIMEOUT,{timeout:a}))},a);L.unref&&L.unref(),h.push(function(){clearTimeout(L)})}})]}})})},e.prototype.getBlockNumber=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},e.prototype.getGasPrice=function(){return hr(this,void 0,void 0,function(){var t;return fr(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,this.perform("getGasPrice",{})];case 2:t=n.sent();try{return[2,iu.BigNumber.from(t)]}catch(a){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:a})]}return[2]}})})},e.prototype.getBalance=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getBalance",a)];case 3:i=s.sent();try{return[2,iu.BigNumber.from(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getBalance",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getTransactionCount=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getTransactionCount",a)];case 3:i=s.sent();try{return[2,iu.BigNumber.from(i).toNumber()]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getCode=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getCode",a)];case 3:i=s.sent();try{return[2,(0,ir.hexlify)(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getCode",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getStorageAt=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s;return fr(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(function(c){return(0,ir.hexValue)(c)})})];case 2:return i=o.sent(),[4,this.perform("getStorageAt",i)];case 3:s=o.sent();try{return[2,(0,ir.hexlify)(s)]}catch(c){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:c})]}return[2]}})})},e.prototype._wrapTransaction=function(t,n,a){var i=this;if(n!=null&&(0,ir.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");var s=t;return n!=null&&t.hash!==n&&Rr.throwError("Transaction hash mismatch from Provider.sendTransaction.",qr.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:n}),s.wait=function(o,c){return hr(i,void 0,void 0,function(){var u,l;return fr(this,function(h){switch(h.label){case 0:return o==null&&(o=1),c==null&&(c=0),u=void 0,o!==0&&a!=null&&(u={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:a}),[4,this._waitForTransaction(t.hash,o,c,u)];case 1:return l=h.sent(),l==null&&o===0?[2,null]:(this._emitted["t:"+t.hash]=l.blockNumber,l.status===0&&Rr.throwError("transaction failed",qr.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),[2,l])}})})},s},e.prototype.sendTransaction=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o;return fr(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,Promise.resolve(t).then(function(u){return(0,ir.hexlify)(u)})];case 2:return n=c.sent(),a=this.formatter.transaction(t),a.confirmations==null&&(a.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=c.sent(),c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:n})];case 5:return s=c.sent(),[2,this._wrapTransaction(a,s,i)];case 6:throw o=c.sent(),o.transaction=a,o.transactionHash=a.hash,o;case 7:return[2]}})})},e.prototype._getTransactionRequest=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,t];case 1:return n=c.sent(),a={},["from","to"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?o._getAddress(l):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?iu.BigNumber.from(l):null}))}),["type"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l??null}))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?(0,ir.hexlify)(l):null}))}),s=(i=this.formatter).transactionRequest,[4,(0,ws.resolveProperties)(a)];case 2:return[2,s.apply(i,[c.sent()])]}})})},e.prototype._getFilter=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s=this;return fr(this,function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),n={},t.address!=null&&(n.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(c){t[c]!=null&&(n[c]=t[c])}),["fromBlock","toBlock"].forEach(function(c){t[c]!=null&&(n[c]=s._getBlockTag(t[c]))}),i=(a=this.formatter).filter,[4,(0,ws.resolveProperties)(n)];case 2:return[2,i.apply(a,[o.sent()])]}})})},e.prototype._call=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f,m,y,I,C,R,L,F,W;return fr(this,function(V){switch(V.label){case 0:return a>=mYt&&Rr.throwError("CCIP read exceeded maximum redirections",qr.Logger.errors.SERVER_ERROR,{redirects:a,transaction:t}),i=t.to,[4,this.perform("call",{transaction:t,blockTag:n})];case 1:if(s=V.sent(),!(a>=0&&n==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&(0,ir.hexDataLength)(s)%32===4))return[3,5];V.label=2;case 2:for(V.trys.push([2,4,,5]),o=(0,ir.hexDataSlice)(s,4),c=(0,ir.hexDataSlice)(o,0,32),iu.BigNumber.from(c).eq(i)||Rr.throwError("CCIP Read sender did not match",qr.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s}),u=[],l=iu.BigNumber.from((0,ir.hexDataSlice)(o,32,64)).toNumber(),h=iu.BigNumber.from((0,ir.hexDataSlice)(o,l,l+32)).toNumber(),f=(0,ir.hexDataSlice)(o,l+32),m=0;mthis._emitted.block?[2,null]:[2,void 0];if(!n)return[3,8];h=null,f=0,R.label=2;case 2:return f0},e.prototype._stopEvent=function(t){this.polling=this._events.filter(function(n){return n.pollable()}).length>0},e.prototype._addEventListener=function(t,n,a){var i=new sJe(dx(t),n,a);return this._events.push(i),this._startEvent(i),this},e.prototype.on=function(t,n){return this._addEventListener(t,n,!1)},e.prototype.once=function(t,n){return this._addEventListener(t,n,!0)},e.prototype.emit=function(t){for(var n=this,a=[],i=1;i{"use strict";d();p();var Exe=tp&&tp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),f0=tp&&tp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},m0=tp&&tp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&js.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",lo.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:n}),e}function dJe(r){return new Promise(function(e){setTimeout(e,r)})}function kYt(r){if(r.error){var e=new Error(r.error.message);throw e.code=r.error.code,e.data=r.error.data,e}return r.result}function BZ(r){return r&&r.toLowerCase()}var Ixe={},Cxe=function(r){Exe(e,r);function e(t,n,a){var i=r.call(this)||this;if(t!==Ixe)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,xs.defineReadOnly)(i,"provider",n),a==null&&(a=0),typeof a=="string"?((0,xs.defineReadOnly)(i,"_address",i.provider.formatter.address(a)),(0,xs.defineReadOnly)(i,"_index",null)):typeof a=="number"?((0,xs.defineReadOnly)(i,"_index",a),(0,xs.defineReadOnly)(i,"_address",null)):js.throwArgumentError("invalid address or index","addressOrIndex",a),i}return e.prototype.connect=function(t){return js.throwError("cannot alter JSON-RPC Signer connection",lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new AYt(Ixe,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(n){return n.length<=t._index&&js.throwError("unknown account #"+t._index,lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(n[t._index])})},e.prototype.sendUncheckedTransaction=function(t){var n=this;t=(0,xs.shallowCopy)(t);var a=this.getAddress().then(function(s){return s&&(s=s.toLowerCase()),s});if(t.gasLimit==null){var i=(0,xs.shallowCopy)(t);i.from=a,t.gasLimit=this.provider.estimateGas(i)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(function(s){return f0(n,void 0,void 0,function(){var o;return m0(this,function(c){switch(c.label){case 0:return s==null?[2,null]:[4,this.provider.resolveName(s)];case 1:return o=c.sent(),o==null&&js.throwArgumentError("provided ENS name resolves to null","tx.to",s),[2,o]}})})})),(0,xs.resolveProperties)({tx:(0,xs.resolveProperties)(t),sender:a}).then(function(s){var o=s.tx,c=s.sender;o.from!=null?o.from.toLowerCase()!==c&&js.throwArgumentError("from address mismatch","transaction",t):o.from=c;var u=n.provider.constructor.hexlifyTransaction(o,{from:!0});return n.provider.send("eth_sendTransaction",[u]).then(function(l){return l},function(l){return typeof l.message=="string"&&l.message.match(/user denied/i)&&js.throwError("user rejected transaction",lo.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),hJe("sendTransaction",l,u)})})},e.prototype.signTransaction=function(t){return js.throwError("signing transactions is unsupported",lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){return f0(this,void 0,void 0,function(){var n,a,i,s=this;return m0(this,function(o){switch(o.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return n=o.sent(),[4,this.sendUncheckedTransaction(t)];case 2:a=o.sent(),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,(0,pJe.poll)(function(){return f0(s,void 0,void 0,function(){var c;return m0(this,function(u){switch(u.label){case 0:return[4,this.provider.getTransaction(a)];case 1:return c=u.sent(),c===null?[2,void 0]:[2,this.provider._wrapTransaction(c,a,n)]}})})},{oncePoll:this.provider})];case 4:return[2,o.sent()];case 5:throw i=o.sent(),i.transactionHash=a,i;case 6:return[2]}})})},e.prototype.signMessage=function(t){return f0(this,void 0,void 0,function(){var n,a,i;return m0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,lJe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,hx.hexlify)(n),a.toLowerCase()])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&js.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._legacySignMessage=function(t){return f0(this,void 0,void 0,function(){var n,a,i;return m0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,lJe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[a.toLowerCase(),(0,hx.hexlify)(n)])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&js.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._signTypedData=function(t,n,a){return f0(this,void 0,void 0,function(){var i,s,o,c=this;return m0(this,function(u){switch(u.label){case 0:return[4,uJe._TypedDataEncoder.resolveNames(t,n,a,function(l){return c.provider.resolveName(l)})];case 1:return i=u.sent(),[4,this.getAddress()];case 2:s=u.sent(),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(uJe._TypedDataEncoder.getPayload(i.domain,n,i.value))])];case 4:return[2,u.sent()];case 5:throw o=u.sent(),typeof o.message=="string"&&o.message.match(/user denied/i)&&js.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:n,value:i.value}}),o;case 6:return[2]}})})},e.prototype.unlock=function(t){return f0(this,void 0,void 0,function(){var n,a;return m0(this,function(i){switch(i.label){case 0:return n=this.provider,[4,this.getAddress()];case 1:return a=i.sent(),[2,n.send("personal_unlockAccount",[a.toLowerCase(),t,null])]}})})},e}(_Yt.Signer);tp.JsonRpcSigner=Cxe;var AYt=function(r){Exe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sendTransaction=function(t){var n=this;return this.sendUncheckedTransaction(t).then(function(a){return{hash:a,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(i){return n.provider.waitForTransaction(a,i)}}})},e}(Cxe),PYt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},SYt=function(r){Exe(e,r);function e(t,n){var a=this,i=n;return i==null&&(i=new Promise(function(s,o){setTimeout(function(){a.detectNetwork().then(function(c){s(c)},function(c){o(c)})},0)})),a=r.call(this,i)||this,t||(t=(0,xs.getStatic)(a.constructor,"defaultUrl")()),typeof t=="string"?(0,xs.defineReadOnly)(a,"connection",Object.freeze({url:t})):(0,xs.defineReadOnly)(a,"connection",Object.freeze((0,xs.shallowCopy)(t))),a._nextId=42,a}return Object.defineProperty(e.prototype,"_cache",{get:function(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){t._cache.detectNetwork=null},0)),this._cache.detectNetwork},e.prototype._uncachedDetectNetwork=function(){return f0(this,void 0,void 0,function(){var t,n,a,i;return m0(this,function(s){switch(s.label){case 0:return[4,dJe(0)];case 1:s.sent(),t=null,s.label=2;case 2:return s.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=s.sent(),[3,9];case 4:n=s.sent(),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[3,9];case 9:if(t!=null){i=(0,xs.getStatic)(this.constructor,"getNetwork");try{return[2,i(Txe.BigNumber.from(t).toNumber())]}catch(o){return[2,js.throwError("could not detect network",lo.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})]}}return[2,js.throwError("could not detect network",lo.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},e.prototype.getSigner=function(t){return new Cxe(Ixe,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then(function(n){return n.map(function(a){return t.formatter.address(a)})})},e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,xs.deepCopy)(i),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(s&&this._cache[t])return this._cache[t];var o=(0,pJe.fetchJson)(this.connection,JSON.stringify(i),kYt).then(function(c){return a.emit("debug",{action:"response",request:i,response:c,provider:a}),c},function(c){throw a.emit("debug",{action:"response",error:c,request:i,provider:a}),c});return s&&(this._cache[t]=o,setTimeout(function(){a._cache[t]=null},0)),o},e.prototype.prepareRequest=function(t,n){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[BZ(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[BZ(n.address),n.blockTag]];case"getCode":return["eth_getCode",[BZ(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[BZ(n.address),(0,hx.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":{var a=(0,xs.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[a(n.transaction,{from:!0}),n.blockTag]]}case"estimateGas":{var a=(0,xs.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[a(n.transaction,{from:!0})]]}case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=BZ(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null},e.prototype.perform=function(t,n){return f0(this,void 0,void 0,function(){var a,i,s,o;return m0(this,function(c){switch(c.label){case 0:return t==="call"||t==="estimateGas"?(a=n.transaction,a&&a.type!=null&&Txe.BigNumber.from(a.type).isZero()?a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null?[4,this.getFeeData()]:[3,2]:[3,2]):[3,2];case 1:i=c.sent(),i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=(0,xs.shallowCopy)(n),n.transaction=(0,xs.shallowCopy)(a),delete n.transaction.type),c.label=2;case 2:s=this.prepareRequest(t,n),s==null&&js.throwError(t+" not implemented",lo.Logger.errors.NOT_IMPLEMENTED,{operation:t}),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.send(s[0],s[1])];case 4:return[2,c.sent()];case 5:return o=c.sent(),[2,hJe(t,o,n)];case 6:return[2]}})})},e.prototype._startEvent=function(t){t.tag==="pending"&&this._startPending(),r.prototype._startEvent.call(this,t)},e.prototype._startPending=function(){if(this._pendingFilter==null){var t=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function i(){t.send("eth_getFilterChanges",[a]).then(function(s){if(t._pendingFilter!=n)return null;var o=Promise.resolve();return s.forEach(function(c){t._emitted["t:"+c.toLowerCase()]="pending",o=o.then(function(){return t.getTransaction(c).then(function(u){return t.emit("pending",u),null})})}),o.then(function(){return dJe(1e3)})}).then(function(){if(t._pendingFilter!=n){t.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){i()},0),null}).catch(function(s){})}return i(),a}).catch(function(a){})}},e.prototype._stopEvent=function(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),r.prototype._stopEvent.call(this,t)},e.hexlifyTransaction=function(t,n){var a=(0,xs.shallowCopy)(PYt);if(n)for(var i in n)n[i]&&(a[i]=!0);(0,xs.checkProperties)(t,a);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(t[o]!=null){var c=(0,hx.hexValue)(Txe.BigNumber.from(t[o]));o==="gasLimit"&&(o="gas"),s[o]=c}}),["from","to","data"].forEach(function(o){t[o]!=null&&(s[o]=(0,hx.hexlify)(t[o]))}),t.accessList&&(s.accessList=(0,TYt.accessListify)(t.accessList)),s},e}(EYt.BaseProvider);tp.JsonRpcProvider=SYt});var yJe=_(mx=>{"use strict";d();p();Object.defineProperty(mx,"__esModule",{value:!0});mx.WebSocket=void 0;var fJe=Zt(),RYt=gc(),mue=null;mx.WebSocket=mue;try{if(mx.WebSocket=mue=WebSocket,mue==null)throw new Error("inject please")}catch{mJe=new fJe.Logger(RYt.version),mx.WebSocket=mue=function(){mJe.throwError("WebSockets not supported in this environment",fJe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var mJe});var gue=_(Uf=>{"use strict";d();p();var MYt=Uf&&Uf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kxe=Uf&&Uf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Axe=Uf&&Uf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var bJe=rp&&rp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qYt=rp&&rp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},FYt=rp&&rp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var xJe=ig&&ig.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ig,"__esModule",{value:!0});ig.AlchemyProvider=ig.AlchemyWebSocketProvider=void 0;var jYt=Aa(),zYt=rg(),KYt=gue(),GYt=Zt(),VYt=gc(),wJe=new GYt.Logger(VYt.version),YYt=ag(),vue="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",_Je=function(r){xJe(e,r);function e(t,n){var a=this,i=new TJe(t,n),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=r.call(this,s,i.network)||this,(0,jYt.defineReadOnly)(a,"apiKey",i.apiKey),a}return e.prototype.isCommunityResource=function(){return this.apiKey===vue},e}(KYt.WebSocketProvider);ig.AlchemyWebSocketProvider=_Je;var TJe=function(r){xJe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new _Je(t,n)},e.getApiKey=function(t){return t==null?vue:(t&&typeof t!="string"&&wJe.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,n){var a=null;switch(t.name){case"homestead":a="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":a="eth-goerli.g.alchemy.com/v2/";break;case"matic":a="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":a="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":a="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":a="arb-goerli.g.alchemy.com/v2/";break;case"optimism":a="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":a="opt-goerli.g.alchemy.com/v2/";break;default:wJe.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+a+n,throttleCallback:function(i,s){return n===vue&&(0,zYt.showThrottleMessage)(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===vue},e}(YYt.UrlJsonRpcProvider);ig.AlchemyProvider=TJe});var EJe=_(gx=>{"use strict";d();p();var $Yt=gx&&gx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gx,"__esModule",{value:!0});gx.AnkrProvider=void 0;var QYt=rg(),JYt=ag(),ZYt=Zt(),XYt=gc(),e$t=new ZYt.Logger(XYt.version),wue="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function t$t(r){switch(r){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return e$t.throwArgumentError("unsupported network","name",r)}var r$t=function(r){$Yt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCommunityResource=function(){return this.apiKey===wue},e.getApiKey=function(t){return t??wue},e.getUrl=function(t,n){n==null&&(n=wue);var a={allowGzip:!0,url:"https://"+t$t(t.name)+n,throttleCallback:function(i,s){return n.apiKey===wue&&(0,QYt.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a},e}(JYt.UrlJsonRpcProvider);gx.AnkrProvider=r$t});var kJe=_(Hf=>{"use strict";d();p();var n$t=Hf&&Hf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),a$t=Hf&&Hf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},i$t=Hf&&Hf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var l$t=zf&&zf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xue=zf&&zf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},_ue=zf&&zf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&(e.throttleRetry=!0),e}return r.result}function PJe(r){if(r&&r.status==0&&r.message=="NOTOK"&&(r.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(r),e.throttleRetry=!0,e}if(r.jsonrpc!="2.0"){var e=new Error("invalid response");throw e.result=JSON.stringify(r),e}if(r.error){var e=new Error(r.error.message||"unknown error");throw r.error.code&&(e.code=r.error.code),r.error.data&&(e.data=r.error.data),e}return r.result}function SJe(r){if(r==="pending")throw new Error("pending not supported");return r==="latest"?r:parseInt(r.substring(2),16)}function Sxe(r,e,t){if(r==="call"&&e.code===jf.Logger.errors.SERVER_ERROR){var n=e.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var a=n.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,Tue.isHexString)(a))return a;sg.throwError("missing revert data in call exception",jf.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}var i=e.message;throw e.code===jf.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&sg.throwError("insufficient funds for intrinsic transaction cost",jf.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:r,transaction:t}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&sg.throwError("nonce has already been used",jf.Logger.errors.NONCE_EXPIRED,{error:e,method:r,transaction:t}),i.match(/another transaction with same nonce/)&&sg.throwError("replacement fee too low",jf.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:r,transaction:t}),i.match(/execution failed due to an exception|execution reverted/)&&sg.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",jf.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:t}),e}var g$t=function(r){l$t(e,r);function e(t,n){var a=r.call(this,t)||this;return(0,Pxe.defineReadOnly)(a,"baseUrl",a.getBaseUrl()),(0,Pxe.defineReadOnly)(a,"apiKey",n||null),a}return e.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return sg.throwArgumentError("unsupported network","network",this.network.name)},e.prototype.getUrl=function(t,n){var a=Object.keys(n).reduce(function(s,o){var c=n[o];return c!=null&&(s+="&"+o+"="+c),s},""),i=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+t+a+i},e.prototype.getPostUrl=function(){return this.baseUrl+"/api"},e.prototype.getPostData=function(t,n){return n.module=t,n.apikey=this.apiKey,n},e.prototype.fetch=function(t,n,a){return xue(this,void 0,void 0,function(){var i,s,o,c,u,l,h=this;return _ue(this,function(f){switch(f.label){case 0:return i=a?this.getPostUrl():this.getUrl(t,n),s=a?this.getPostData(t,n):null,o=t==="proxy"?PJe:y$t,this.emit("debug",{action:"request",request:i,provider:this}),c={url:i,throttleSlotInterval:1e3,throttleCallback:function(m,y){return h.isCommunityResource()&&(0,h$t.showThrottleMessage)(),Promise.resolve(!0)}},u=null,s&&(c.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(s).map(function(m){return m+"="+s[m]}).join("&")),[4,(0,p$t.fetchJson)(c,u,o||PJe)];case 1:return l=f.sent(),this.emit("debug",{action:"response",request:i,response:(0,Pxe.deepCopy)(l),provider:this}),[2,l]}})})},e.prototype.detectNetwork=function(){return xue(this,void 0,void 0,function(){return _ue(this,function(t){return[2,this.network]})})},e.prototype.perform=function(t,n){return xue(this,void 0,void 0,function(){var a,s,i,s,o,c,u,l,h,f,m,y,I;return _ue(this,function(C){switch(C.label){case 0:switch(a=t,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(function(R){return Sxe("sendTransaction",R,n.signedTransaction)})];case 8:if(n.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash})];case 11:if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");s=AJe(n.transaction),s.module="proxy",s.action="eth_call",C.label=12;case 12:return C.trys.push([12,14,,15]),[4,this.fetch("proxy",s,!0)];case 13:return[2,C.sent()];case 14:return i=C.sent(),[2,Sxe("call",i,n.transaction)];case 15:s=AJe(n.transaction),s.module="proxy",s.action="eth_estimateGas",C.label=16;case 16:return C.trys.push([16,18,,19]),[4,this.fetch("proxy",s,!0)];case 17:return[2,C.sent()];case 18:return o=C.sent(),[2,Sxe("estimateGas",o,n.transaction)];case 19:return c={action:"getLogs"},n.filter.fromBlock&&(c.fromBlock=SJe(n.filter.fromBlock)),n.filter.toBlock&&(c.toBlock=SJe(n.filter.toBlock)),n.filter.address&&(c.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&sg.throwError("unsupported topic count",jf.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1&&(u=n.filter.topics[0],(typeof u!="string"||u.length!==66)&&sg.throwError("unsupported topic format",jf.Logger.errors.UNSUPPORTED_OPERATION,{topic0:u}),c.topic0=u)),[4,this.fetch("logs",c)];case 20:l=C.sent(),h={},f=0,C.label=21;case 21:return f{"use strict";d();p();var b$t=Gf&&Gf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cue=Gf&&Gf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},FZ=Gf&&Gf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]e?null:(n+a)/2}function vx(r){if(r===null)return"null";if(typeof r=="number"||typeof r=="boolean")return JSON.stringify(r);if(typeof r=="string")return r;if(w$t.BigNumber.isBigNumber(r))return r.toString();if(Array.isArray(r))return JSON.stringify(r.map(function(t){return vx(t)}));if(typeof r=="object"){var e=Object.keys(r);return e.sort(),"{"+e.map(function(t){var n=r[t];return typeof n=="function"?n="[function]":n=vx(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof r)}var E$t=1;function DJe(r){var e=null,t=null,n=new Promise(function(s){e=function(){t&&(clearTimeout(t),t=null),s()},t=setTimeout(e,r)}),a=function(s){return n=n.then(s),n};function i(){return n}return{cancel:e,getPromise:i,wait:a}}var C$t=[og.Logger.errors.CALL_EXCEPTION,og.Logger.errors.INSUFFICIENT_FUNDS,og.Logger.errors.NONCE_EXPIRED,og.Logger.errors.REPLACEMENT_UNDERPRICED,og.Logger.errors.UNPREDICTABLE_GAS_LIMIT],k$t=["address","args","errorArgs","errorSignature","method","transaction"];function Eue(r,e){var t={weight:r.weight};return Object.defineProperty(t,"provider",{get:function(){return r.provider}}),r.start&&(t.start=r.start),e&&(t.duration=e-r.start),r.done&&(r.error?t.error=r.error:t.result=r.result||null),t}function A$t(r,e){return function(t){var n={};t.forEach(function(o){var c=r(o.result);n[c]||(n[c]={count:0,result:o.result}),n[c].count++});for(var a=Object.keys(n),i=0;i=e)return s.result}}}function P$t(r,e,t){var n=vx;switch(e){case"getBlockNumber":return function(a){var i=a.map(function(o){return o.result}),s=BJe(a.map(function(o){return o.result}),2);if(s!=null)return s=Math.ceil(s),i.indexOf(s+1)>=0&&s++,s>=r._highestBlockNumber&&(r._highestBlockNumber=s),r._highestBlockNumber};case"getGasPrice":return function(a){var i=a.map(function(s){return s.result});return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(a){return BJe(a.map(function(i){return i.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(a){return a==null?null:(a=(0,Kf.shallowCopy)(a),a.confirmations=-1,vx(a))};break;case"getBlock":t.includeTransactions?n=function(a){return a==null?null:(a=(0,Kf.shallowCopy)(a),a.transactions=a.transactions.map(function(i){return i=(0,Kf.shallowCopy)(i),i.confirmations=-1,i}),vx(a))}:n=function(a){return a==null?null:vx(a)};break;default:throw new Error("unknown method: "+e)}return A$t(n,r.quorum)}function qZ(r,e){return Cue(this,void 0,void 0,function(){var t;return FZ(this,function(n){return t=r.provider,t.blockNumber!=null&&t.blockNumber>=e||e===-1?[2,t]:[2,(0,_$t.poll)(function(){return new Promise(function(a,i){setTimeout(function(){return t.blockNumber>=e?a(t):r.cancelled?a(null):a(void 0)},0)})},{oncePoll:t})]})})}function S$t(r,e,t,n){return Cue(this,void 0,void 0,function(){var a,i,s;return FZ(this,function(o){switch(o.label){case 0:switch(a=r.provider,i=t,i){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,a[t]()];case 2:return a.getEtherPrice?[2,a.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,5];case 4:a=o.sent(),o.label=5;case 5:return[2,a[t](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,8];case 7:a=o.sent(),o.label=8;case 8:return[2,a.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,11];case 10:a=o.sent(),o.label=11;case 11:return[2,a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,bx.isHexString)(n.blockTag)?[4,qZ(r,e)]:[3,14];case 13:a=o.sent(),o.label=14;case 14:return t==="call"&&n.blockTag?[2,a[t](n.transaction,n.blockTag)]:[2,a[t](n.transaction)];case 15:return[2,a[t](n.transactionHash)];case 16:return s=n.filter,s.fromBlock&&(0,bx.isHexString)(s.fromBlock)||s.toBlock&&(0,bx.isHexString)(s.toBlock)?[4,qZ(r,e)]:[3,18];case 17:a=o.sent(),o.label=18;case 18:return[2,a.getLogs(s)];case 19:return[2,ev.throwError("unknown method error",og.Logger.errors.UNKNOWN_ERROR,{method:t,params:n})]}})})}var R$t=function(r){b$t(e,r);function e(t,n){var a=this;t.length===0&&ev.throwArgumentError("missing providers","providers",t);var i=t.map(function(c,u){if(v$t.Provider.isProvider(c)){var l=(0,MJe.isCommunityResource)(c)?2e3:750,h=1;return Object.freeze({provider:c,weight:1,stallTimeout:l,priority:h})}var f=(0,Kf.shallowCopy)(c);f.priority==null&&(f.priority=1),f.stallTimeout==null&&(f.stallTimeout=(0,MJe.isCommunityResource)(c)?2e3:750),f.weight==null&&(f.weight=1);var m=f.weight;return(m%1||m>512||m<1)&&ev.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+u+"].weight",m),Object.freeze(f)}),s=i.reduce(function(c,u){return c+u.weight},0);n==null?n=s/2:n>s&&ev.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var o=NJe(i.map(function(c){return c.provider.network}));return o==null&&(o=new Promise(function(c,u){setTimeout(function(){a.detectNetwork().then(c,u)},0)})),a=r.call(this,o)||this,(0,Kf.defineReadOnly)(a,"providerConfigs",Object.freeze(i)),(0,Kf.defineReadOnly)(a,"quorum",n),a._highestBlockNumber=-1,a}return e.prototype.detectNetwork=function(){return Cue(this,void 0,void 0,function(){var t;return FZ(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(a){return a.provider.getNetwork()}))];case 1:return t=n.sent(),[2,NJe(t)]}})})},e.prototype.perform=function(t,n){return Cue(this,void 0,void 0,function(){var a,i,s,o,c,u,l,h,f,m,y,I=this;return FZ(this,function(C){switch(C.label){case 0:return t!=="sendTransaction"?[3,2]:[4,Promise.all(this.providerConfigs.map(function(R){return R.provider.sendTransaction(n.signedTransaction).then(function(L){return L.hash},function(L){return L})}))];case 1:for(a=C.sent(),i=0;i=m.quorum?(K=o(V),K!==void 0?(c.forEach(function(Q){Q.staller&&Q.staller.cancel(),Q.cancelled=!0}),[2,{value:K}]):h?[3,4]:[4,DJe(100).getPromise()]):[3,5];case 3:G.sent(),G.label=4;case 4:h=!1,G.label=5;case 5:return H=c.reduce(function(Q,q){if(!q.done||q.error==null)return Q;var T=q.error.code;return C$t.indexOf(T)>=0&&(Q[T]||(Q[T]={error:q.error,weight:0}),Q[T].weight+=q.weight),Q},{}),Object.keys(H).forEach(function(Q){var q=H[Q];if(!(q.weight{"use strict";d();p();Object.defineProperty(kue,"__esModule",{value:!0});kue.IpcProvider=void 0;var M$t=null;kue.IpcProvider=M$t});var UJe=_(cg=>{"use strict";d();p();var qJe=cg&&cg.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cg,"__esModule",{value:!0});cg.InfuraProvider=cg.InfuraWebSocketProvider=void 0;var Rxe=Aa(),N$t=gue(),B$t=rg(),Mxe=Zt(),D$t=gc(),Aue=new Mxe.Logger(D$t.version),L$t=ag(),WZ="84842078b09946638c03157f83405213",FJe=function(r){qJe(e,r);function e(t,n){var a=this,i=new WJe(t,n),s=i.connection;s.password&&Aue.throwError("INFURA WebSocket project secrets unsupported",Mxe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var o=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return a=r.call(this,o,t)||this,(0,Rxe.defineReadOnly)(a,"apiKey",i.projectId),(0,Rxe.defineReadOnly)(a,"projectId",i.projectId),(0,Rxe.defineReadOnly)(a,"projectSecret",i.projectSecret),a}return e.prototype.isCommunityResource=function(){return this.projectId===WZ},e}(N$t.WebSocketProvider);cg.InfuraWebSocketProvider=FJe;var WJe=function(r){qJe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new FJe(t,n)},e.getApiKey=function(t){var n={apiKey:WZ,projectId:WZ,projectSecret:null};return t==null||(typeof t=="string"?n.projectId=t:t.projectSecret!=null?(Aue.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),Aue.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=t.projectId,n.projectSecret=t.projectSecret):t.projectId&&(n.projectId=t.projectId),n.apiKey=n.projectId),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"homestead":a="mainnet.infura.io";break;case"goerli":a="goerli.infura.io";break;case"sepolia":a="sepolia.infura.io";break;case"matic":a="polygon-mainnet.infura.io";break;case"maticmum":a="polygon-mumbai.infura.io";break;case"optimism":a="optimism-mainnet.infura.io";break;case"optimism-goerli":a="optimism-goerli.infura.io";break;case"arbitrum":a="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":a="arbitrum-goerli.infura.io";break;default:Aue.throwError("unsupported network",Mxe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i={allowGzip:!0,url:"https://"+a+"/v3/"+n.projectId,throttleCallback:function(s,o){return n.projectId===WZ&&(0,B$t.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i},e.prototype.isCommunityResource=function(){return this.projectId===WZ},e}(L$t.UrlJsonRpcProvider);cg.InfuraProvider=WJe});var HJe=_(wx=>{"use strict";d();p();var O$t=wx&&wx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wx,"__esModule",{value:!0});wx.JsonRpcBatchProvider=void 0;var q$t=Aa(),F$t=Xb(),W$t=fx(),U$t=function(r){O$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);var s={request:i,resolve:null,reject:null},o=new Promise(function(c,u){s.resolve=c,s.reject=u});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var c=a._pendingBatch;a._pendingBatch=null,a._pendingBatchAggregator=null;var u=c.map(function(l){return l.request});return a.emit("debug",{action:"requestBatch",request:(0,q$t.deepCopy)(u),provider:a}),(0,F$t.fetchJson)(a.connection,JSON.stringify(u)).then(function(l){a.emit("debug",{action:"response",request:u,response:l,provider:a}),c.forEach(function(h,f){var m=l[f];if(m.error){var y=new Error(m.error.message);y.code=m.error.code,y.data=m.error.data,h.reject(y)}else h.resolve(m.result)})},function(l){a.emit("debug",{action:"response",error:l,request:u,provider:a}),c.forEach(function(h){h.reject(l)})})},10)),o},e}(W$t.JsonRpcProvider);wx.JsonRpcBatchProvider=U$t});var jJe=_(xx=>{"use strict";d();p();var H$t=xx&&xx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xx,"__esModule",{value:!0});xx.NodesmithProvider=void 0;var j$t=ag(),z$t=Zt(),K$t=gc(),Nxe=new z$t.Logger(K$t.version),G$t="ETHERS_JS_SHARED",V$t=function(r){H$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){return t&&typeof t!="string"&&Nxe.throwArgumentError("invalid apiKey","apiKey",t),t||G$t},e.getUrl=function(t,n){Nxe.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var a=null;switch(t.name){case"homestead":a="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":a="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":a="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":a="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":a="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Nxe.throwArgumentError("unsupported network","network",arguments[0])}return a+"?apiKey="+n},e}(j$t.UrlJsonRpcProvider);xx.NodesmithProvider=V$t});var VJe=_(_x=>{"use strict";d();p();var Y$t=_x&&_x.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_x,"__esModule",{value:!0});_x.PocketProvider=void 0;var GJe=Zt(),$$t=gc(),zJe=new GJe.Logger($$t.version),Q$t=ag(),KJe="62e1ad51b37b8e00394bda3b",J$t=function(r){Y$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){var n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?n.applicationId=KJe:typeof t=="string"?n.applicationId=t:t.applicationSecretKey!=null?(n.applicationId=t.applicationId,n.applicationSecretKey=t.applicationSecretKey):t.applicationId?n.applicationId=t.applicationId:zJe.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"goerli":a="eth-goerli.gateway.pokt.network";break;case"homestead":a="eth-mainnet.gateway.pokt.network";break;case"kovan":a="poa-kovan.gateway.pokt.network";break;case"matic":a="poly-mainnet.gateway.pokt.network";break;case"maticmum":a="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":a="eth-rinkeby.gateway.pokt.network";break;case"ropsten":a="eth-ropsten.gateway.pokt.network";break;default:zJe.throwError("unsupported network",GJe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i="https://"+a+"/v1/lb/"+n.applicationId,s={headers:{},url:i};return n.applicationSecretKey!=null&&(s.user="",s.password=n.applicationSecretKey),s},e.prototype.isCommunityResource=function(){return this.applicationId===KJe},e}(Q$t.UrlJsonRpcProvider);_x.PocketProvider=J$t});var QJe=_(Tx=>{"use strict";d();p();var Z$t=Tx&&Tx.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tx,"__esModule",{value:!0});Tx.Web3Provider=void 0;var Pue=Aa(),X$t=Zt(),eQt=gc(),YJe=new X$t.Logger(eQt.version),tQt=fx(),rQt=1;function $Je(r,e){var t="Web3LegacyFetcher";return function(n,a){var i=this,s={method:n,params:a,id:rQt++,jsonrpc:"2.0"};return new Promise(function(o,c){i.emit("debug",{action:"request",fetcher:t,request:(0,Pue.deepCopy)(s),provider:i}),e(s,function(u,l){if(u)return i.emit("debug",{action:"response",fetcher:t,error:u,request:s,provider:i}),c(u);if(i.emit("debug",{action:"response",fetcher:t,request:s,response:l,provider:i}),l.error){var h=new Error(l.error.message);return h.code=l.error.code,h.data=l.error.data,c(h)}o(l.result)})})}}function nQt(r){return function(e,t){var n=this;t==null&&(t=[]);var a={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,Pue.deepCopy)(a),provider:this}),r.request(a).then(function(i){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:i,provider:n}),i},function(i){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:i,provider:n}),i})}}var aQt=function(r){Z$t(e,r);function e(t,n){var a=this;t==null&&YJe.throwArgumentError("missing provider","provider",t);var i=null,s=null,o=null;return typeof t=="function"?(i="unknown:",s=t):(i=t.host||t.path||"",!i&&t.isMetaMask&&(i="metamask"),o=t,t.request?(i===""&&(i="eip-1193:"),s=nQt(t)):t.sendAsync?s=$Je(t,t.sendAsync.bind(t)):t.send?s=$Je(t,t.send.bind(t)):YJe.throwArgumentError("unsupported provider","provider",t),i||(i="unknown:")),a=r.call(this,i,n)||this,(0,Pue.defineReadOnly)(a,"jsonRpcFetchFunc",s),(0,Pue.defineReadOnly)(a,"provider",o),a}return e.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},e}(tQt.JsonRpcProvider);Tx.Web3Provider=aQt});var Lxe=_(ft=>{"use strict";d();p();Object.defineProperty(ft,"__esModule",{value:!0});ft.Formatter=ft.showThrottleMessage=ft.isCommunityResourcable=ft.isCommunityResource=ft.getNetwork=ft.getDefaultProvider=ft.JsonRpcSigner=ft.IpcProvider=ft.WebSocketProvider=ft.Web3Provider=ft.StaticJsonRpcProvider=ft.PocketProvider=ft.NodesmithProvider=ft.JsonRpcBatchProvider=ft.JsonRpcProvider=ft.InfuraWebSocketProvider=ft.InfuraProvider=ft.EtherscanProvider=ft.CloudflareProvider=ft.AnkrProvider=ft.AlchemyWebSocketProvider=ft.AlchemyProvider=ft.FallbackProvider=ft.UrlJsonRpcProvider=ft.Resolver=ft.BaseProvider=ft.Provider=void 0;var iQt=o3();Object.defineProperty(ft,"Provider",{enumerable:!0,get:function(){return iQt.Provider}});var ZJe=fxe();Object.defineProperty(ft,"getNetwork",{enumerable:!0,get:function(){return ZJe.getNetwork}});var XJe=NZ();Object.defineProperty(ft,"BaseProvider",{enumerable:!0,get:function(){return XJe.BaseProvider}});Object.defineProperty(ft,"Resolver",{enumerable:!0,get:function(){return XJe.Resolver}});var Bxe=IJe();Object.defineProperty(ft,"AlchemyProvider",{enumerable:!0,get:function(){return Bxe.AlchemyProvider}});Object.defineProperty(ft,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return Bxe.AlchemyWebSocketProvider}});var eZe=EJe();Object.defineProperty(ft,"AnkrProvider",{enumerable:!0,get:function(){return eZe.AnkrProvider}});var tZe=kJe();Object.defineProperty(ft,"CloudflareProvider",{enumerable:!0,get:function(){return tZe.CloudflareProvider}});var rZe=RJe();Object.defineProperty(ft,"EtherscanProvider",{enumerable:!0,get:function(){return rZe.EtherscanProvider}});var nZe=LJe();Object.defineProperty(ft,"FallbackProvider",{enumerable:!0,get:function(){return nZe.FallbackProvider}});var aZe=OJe();Object.defineProperty(ft,"IpcProvider",{enumerable:!0,get:function(){return aZe.IpcProvider}});var Dxe=UJe();Object.defineProperty(ft,"InfuraProvider",{enumerable:!0,get:function(){return Dxe.InfuraProvider}});Object.defineProperty(ft,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return Dxe.InfuraWebSocketProvider}});var Sue=fx();Object.defineProperty(ft,"JsonRpcProvider",{enumerable:!0,get:function(){return Sue.JsonRpcProvider}});Object.defineProperty(ft,"JsonRpcSigner",{enumerable:!0,get:function(){return Sue.JsonRpcSigner}});var sQt=HJe();Object.defineProperty(ft,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return sQt.JsonRpcBatchProvider}});var iZe=jJe();Object.defineProperty(ft,"NodesmithProvider",{enumerable:!0,get:function(){return iZe.NodesmithProvider}});var sZe=VJe();Object.defineProperty(ft,"PocketProvider",{enumerable:!0,get:function(){return sZe.PocketProvider}});var oZe=ag();Object.defineProperty(ft,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return oZe.StaticJsonRpcProvider}});Object.defineProperty(ft,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return oZe.UrlJsonRpcProvider}});var cZe=QJe();Object.defineProperty(ft,"Web3Provider",{enumerable:!0,get:function(){return cZe.Web3Provider}});var uZe=gue();Object.defineProperty(ft,"WebSocketProvider",{enumerable:!0,get:function(){return uZe.WebSocketProvider}});var Rue=rg();Object.defineProperty(ft,"Formatter",{enumerable:!0,get:function(){return Rue.Formatter}});Object.defineProperty(ft,"isCommunityResourcable",{enumerable:!0,get:function(){return Rue.isCommunityResourcable}});Object.defineProperty(ft,"isCommunityResource",{enumerable:!0,get:function(){return Rue.isCommunityResource}});Object.defineProperty(ft,"showThrottleMessage",{enumerable:!0,get:function(){return Rue.showThrottleMessage}});var lZe=Zt(),oQt=gc(),JJe=new lZe.Logger(oQt.version);function cQt(r,e){if(r==null&&(r="homestead"),typeof r=="string"){var t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new Sue.JsonRpcProvider(r);case"ws":case"wss":return new uZe.WebSocketProvider(r);default:JJe.throwArgumentError("unsupported URL scheme","network",r)}}var n=(0,ZJe.getNetwork)(r);return(!n||!n._defaultProvider)&&JJe.throwError("unsupported getDefaultProvider network",lZe.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:r}),n._defaultProvider({FallbackProvider:nZe.FallbackProvider,AlchemyProvider:Bxe.AlchemyProvider,AnkrProvider:eZe.AnkrProvider,CloudflareProvider:tZe.CloudflareProvider,EtherscanProvider:rZe.EtherscanProvider,InfuraProvider:Dxe.InfuraProvider,JsonRpcProvider:Sue.JsonRpcProvider,NodesmithProvider:iZe.NodesmithProvider,PocketProvider:sZe.PocketProvider,Web3Provider:cZe.Web3Provider,IpcProvider:aZe.IpcProvider},e)}ft.getDefaultProvider=cQt});var dZe=_(Mue=>{"use strict";d();p();Object.defineProperty(Mue,"__esModule",{value:!0});Mue.version=void 0;Mue.version="solidity/5.7.0"});var hZe=_(ug=>{"use strict";d();p();Object.defineProperty(ug,"__esModule",{value:!0});ug.sha256=ug.keccak256=ug.pack=void 0;var uQt=Ls(),gh=wr(),lQt=jl(),dQt=Vb(),pQt=qs(),hQt=new RegExp("^bytes([0-9]+)$"),fQt=new RegExp("^(u?int)([0-9]*)$"),mQt=new RegExp("^(.*)\\[([0-9]*)\\]$"),yQt="0000000000000000000000000000000000000000000000000000000000000000",gQt=Zt(),bQt=dZe(),Ix=new gQt.Logger(bQt.version);function pZe(r,e,t){switch(r){case"address":return t?(0,gh.zeroPad)(e,32):(0,gh.arrayify)(e);case"string":return(0,pQt.toUtf8Bytes)(e);case"bytes":return(0,gh.arrayify)(e);case"bool":return e=e?"0x01":"0x00",t?(0,gh.zeroPad)(e,32):(0,gh.arrayify)(e)}var n=r.match(fQt);if(n){var a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||a===0||a>256)&&Ix.throwArgumentError("invalid number type","type",r),t&&(a=256),e=uQt.BigNumber.from(e).toTwos(a),(0,gh.zeroPad)(e,a/8)}if(n=r.match(hQt),n){var a=parseInt(n[1]);return(String(a)!==n[1]||a===0||a>32)&&Ix.throwArgumentError("invalid bytes type","type",r),(0,gh.arrayify)(e).byteLength!==a&&Ix.throwArgumentError("invalid value for "+r,"value",e),t?(0,gh.arrayify)((e+yQt).substring(0,66)):e}if(n=r.match(mQt),n&&Array.isArray(e)){var i=n[1],s=parseInt(n[2]||String(e.length));s!=e.length&&Ix.throwArgumentError("invalid array length for "+r,"value",e);var o=[];return e.forEach(function(c){o.push(pZe(i,c,!0))}),(0,gh.concat)(o)}return Ix.throwArgumentError("invalid type","type",r)}function Oxe(r,e){r.length!=e.length&&Ix.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);var t=[];return r.forEach(function(n,a){t.push(pZe(n,e[a]))}),(0,gh.hexlify)((0,gh.concat)(t))}ug.pack=Oxe;function vQt(r,e){return(0,lQt.keccak256)(Oxe(r,e))}ug.keccak256=vQt;function wQt(r,e){return(0,dQt.sha256)(Oxe(r,e))}ug.sha256=wQt});var fZe=_(Nue=>{"use strict";d();p();Object.defineProperty(Nue,"__esModule",{value:!0});Nue.version=void 0;Nue.version="units/5.7.0"});var wZe=_(np=>{"use strict";d();p();Object.defineProperty(np,"__esModule",{value:!0});np.parseEther=np.formatEther=np.parseUnits=np.formatUnits=np.commify=void 0;var mZe=Ls(),xQt=Zt(),_Qt=fZe(),yZe=new xQt.Logger(_Qt.version),gZe=["wei","kwei","mwei","gwei","szabo","finney","ether"];function TQt(r){var e=String(r).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||r==="."||r==="-.")&&yZe.throwArgumentError("invalid value","value",r);var t=e[0],n="";for(t.substring(0,1)==="-"&&(n="-",t=t.substring(1));t.substring(0,1)==="0";)t=t.substring(1);t===""&&(t="0");var a="";for(e.length===2&&(a="."+(e[1]||"0"));a.length>2&&a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(var i=[];t.length;)if(t.length<=3){i.unshift(t);break}else{var s=t.length-3;i.unshift(t.substring(s)),t=t.substring(0,s)}return n+i.join(",")+a}np.commify=TQt;function bZe(r,e){if(typeof e=="string"){var t=gZe.indexOf(e);t!==-1&&(e=3*t)}return(0,mZe.formatFixed)(r,e??18)}np.formatUnits=bZe;function vZe(r,e){if(typeof r!="string"&&yZe.throwArgumentError("value must be a string","value",r),typeof e=="string"){var t=gZe.indexOf(e);t!==-1&&(e=3*t)}return(0,mZe.parseFixed)(r,e??18)}np.parseUnits=vZe;function IQt(r){return bZe(r,18)}np.formatEther=IQt;function EQt(r){return vZe(r,18)}np.parseEther=EQt});var Xr=_(le=>{"use strict";d();p();var CQt=le&&le.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),kQt=le&&le.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),xZe=le&&le.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&CQt(e,r,t);return kQt(e,r),e};Object.defineProperty(le,"__esModule",{value:!0});le.formatBytes32String=le.Utf8ErrorFuncs=le.toUtf8String=le.toUtf8CodePoints=le.toUtf8Bytes=le._toEscapedUtf8String=le.nameprep=le.hexDataSlice=le.hexDataLength=le.hexZeroPad=le.hexValue=le.hexStripZeros=le.hexConcat=le.isHexString=le.hexlify=le.base64=le.base58=le.TransactionDescription=le.LogDescription=le.Interface=le.SigningKey=le.HDNode=le.defaultPath=le.isBytesLike=le.isBytes=le.zeroPad=le.stripZeros=le.concat=le.arrayify=le.shallowCopy=le.resolveProperties=le.getStatic=le.defineReadOnly=le.deepCopy=le.checkProperties=le.poll=le.fetchJson=le._fetchData=le.RLP=le.Logger=le.checkResultErrors=le.FormatTypes=le.ParamType=le.FunctionFragment=le.EventFragment=le.ErrorFragment=le.ConstructorFragment=le.Fragment=le.defaultAbiCoder=le.AbiCoder=void 0;le.Indexed=le.Utf8ErrorReason=le.UnicodeNormalizationForm=le.SupportedAlgorithm=le.mnemonicToSeed=le.isValidMnemonic=le.entropyToMnemonic=le.mnemonicToEntropy=le.getAccountPath=le.verifyTypedData=le.verifyMessage=le.recoverPublicKey=le.computePublicKey=le.recoverAddress=le.computeAddress=le.getJsonWalletAddress=le.TransactionTypes=le.serializeTransaction=le.parseTransaction=le.accessListify=le.joinSignature=le.splitSignature=le.soliditySha256=le.solidityKeccak256=le.solidityPack=le.shuffled=le.randomBytes=le.sha512=le.sha256=le.ripemd160=le.keccak256=le.computeHmac=le.commify=le.parseUnits=le.formatUnits=le.parseEther=le.formatEther=le.isAddress=le.getCreate2Address=le.getContractAddress=le.getIcapAddress=le.getAddress=le._TypedDataEncoder=le.id=le.isValidName=le.namehash=le.hashMessage=le.dnsEncode=le.parseBytes32String=void 0;var fl=W2e();Object.defineProperty(le,"AbiCoder",{enumerable:!0,get:function(){return fl.AbiCoder}});Object.defineProperty(le,"checkResultErrors",{enumerable:!0,get:function(){return fl.checkResultErrors}});Object.defineProperty(le,"ConstructorFragment",{enumerable:!0,get:function(){return fl.ConstructorFragment}});Object.defineProperty(le,"defaultAbiCoder",{enumerable:!0,get:function(){return fl.defaultAbiCoder}});Object.defineProperty(le,"ErrorFragment",{enumerable:!0,get:function(){return fl.ErrorFragment}});Object.defineProperty(le,"EventFragment",{enumerable:!0,get:function(){return fl.EventFragment}});Object.defineProperty(le,"FormatTypes",{enumerable:!0,get:function(){return fl.FormatTypes}});Object.defineProperty(le,"Fragment",{enumerable:!0,get:function(){return fl.Fragment}});Object.defineProperty(le,"FunctionFragment",{enumerable:!0,get:function(){return fl.FunctionFragment}});Object.defineProperty(le,"Indexed",{enumerable:!0,get:function(){return fl.Indexed}});Object.defineProperty(le,"Interface",{enumerable:!0,get:function(){return fl.Interface}});Object.defineProperty(le,"LogDescription",{enumerable:!0,get:function(){return fl.LogDescription}});Object.defineProperty(le,"ParamType",{enumerable:!0,get:function(){return fl.ParamType}});Object.defineProperty(le,"TransactionDescription",{enumerable:!0,get:function(){return fl.TransactionDescription}});var UZ=Sd();Object.defineProperty(le,"getAddress",{enumerable:!0,get:function(){return UZ.getAddress}});Object.defineProperty(le,"getCreate2Address",{enumerable:!0,get:function(){return UZ.getCreate2Address}});Object.defineProperty(le,"getContractAddress",{enumerable:!0,get:function(){return UZ.getContractAddress}});Object.defineProperty(le,"getIcapAddress",{enumerable:!0,get:function(){return UZ.getIcapAddress}});Object.defineProperty(le,"isAddress",{enumerable:!0,get:function(){return UZ.isAddress}});var AQt=xZe(aJ());le.base64=AQt;var PQt=Nce();Object.defineProperty(le,"base58",{enumerable:!0,get:function(){return PQt.Base58}});var ou=wr();Object.defineProperty(le,"arrayify",{enumerable:!0,get:function(){return ou.arrayify}});Object.defineProperty(le,"concat",{enumerable:!0,get:function(){return ou.concat}});Object.defineProperty(le,"hexConcat",{enumerable:!0,get:function(){return ou.hexConcat}});Object.defineProperty(le,"hexDataSlice",{enumerable:!0,get:function(){return ou.hexDataSlice}});Object.defineProperty(le,"hexDataLength",{enumerable:!0,get:function(){return ou.hexDataLength}});Object.defineProperty(le,"hexlify",{enumerable:!0,get:function(){return ou.hexlify}});Object.defineProperty(le,"hexStripZeros",{enumerable:!0,get:function(){return ou.hexStripZeros}});Object.defineProperty(le,"hexValue",{enumerable:!0,get:function(){return ou.hexValue}});Object.defineProperty(le,"hexZeroPad",{enumerable:!0,get:function(){return ou.hexZeroPad}});Object.defineProperty(le,"isBytes",{enumerable:!0,get:function(){return ou.isBytes}});Object.defineProperty(le,"isBytesLike",{enumerable:!0,get:function(){return ou.isBytesLike}});Object.defineProperty(le,"isHexString",{enumerable:!0,get:function(){return ou.isHexString}});Object.defineProperty(le,"joinSignature",{enumerable:!0,get:function(){return ou.joinSignature}});Object.defineProperty(le,"zeroPad",{enumerable:!0,get:function(){return ou.zeroPad}});Object.defineProperty(le,"splitSignature",{enumerable:!0,get:function(){return ou.splitSignature}});Object.defineProperty(le,"stripZeros",{enumerable:!0,get:function(){return ou.stripZeros}});var Ex=lb();Object.defineProperty(le,"_TypedDataEncoder",{enumerable:!0,get:function(){return Ex._TypedDataEncoder}});Object.defineProperty(le,"dnsEncode",{enumerable:!0,get:function(){return Ex.dnsEncode}});Object.defineProperty(le,"hashMessage",{enumerable:!0,get:function(){return Ex.hashMessage}});Object.defineProperty(le,"id",{enumerable:!0,get:function(){return Ex.id}});Object.defineProperty(le,"isValidName",{enumerable:!0,get:function(){return Ex.isValidName}});Object.defineProperty(le,"namehash",{enumerable:!0,get:function(){return Ex.namehash}});var tv=Yce();Object.defineProperty(le,"defaultPath",{enumerable:!0,get:function(){return tv.defaultPath}});Object.defineProperty(le,"entropyToMnemonic",{enumerable:!0,get:function(){return tv.entropyToMnemonic}});Object.defineProperty(le,"getAccountPath",{enumerable:!0,get:function(){return tv.getAccountPath}});Object.defineProperty(le,"HDNode",{enumerable:!0,get:function(){return tv.HDNode}});Object.defineProperty(le,"isValidMnemonic",{enumerable:!0,get:function(){return tv.isValidMnemonic}});Object.defineProperty(le,"mnemonicToEntropy",{enumerable:!0,get:function(){return tv.mnemonicToEntropy}});Object.defineProperty(le,"mnemonicToSeed",{enumerable:!0,get:function(){return tv.mnemonicToSeed}});var SQt=lxe();Object.defineProperty(le,"getJsonWalletAddress",{enumerable:!0,get:function(){return SQt.getJsonWalletAddress}});var RQt=jl();Object.defineProperty(le,"keccak256",{enumerable:!0,get:function(){return RQt.keccak256}});var MQt=Zt();Object.defineProperty(le,"Logger",{enumerable:!0,get:function(){return MQt.Logger}});var Bue=Vb();Object.defineProperty(le,"computeHmac",{enumerable:!0,get:function(){return Bue.computeHmac}});Object.defineProperty(le,"ripemd160",{enumerable:!0,get:function(){return Bue.ripemd160}});Object.defineProperty(le,"sha256",{enumerable:!0,get:function(){return Bue.sha256}});Object.defineProperty(le,"sha512",{enumerable:!0,get:function(){return Bue.sha512}});var qxe=hZe();Object.defineProperty(le,"solidityKeccak256",{enumerable:!0,get:function(){return qxe.keccak256}});Object.defineProperty(le,"solidityPack",{enumerable:!0,get:function(){return qxe.pack}});Object.defineProperty(le,"soliditySha256",{enumerable:!0,get:function(){return qxe.sha256}});var _Ze=TZ();Object.defineProperty(le,"randomBytes",{enumerable:!0,get:function(){return _Ze.randomBytes}});Object.defineProperty(le,"shuffled",{enumerable:!0,get:function(){return _Ze.shuffled}});var Cx=Aa();Object.defineProperty(le,"checkProperties",{enumerable:!0,get:function(){return Cx.checkProperties}});Object.defineProperty(le,"deepCopy",{enumerable:!0,get:function(){return Cx.deepCopy}});Object.defineProperty(le,"defineReadOnly",{enumerable:!0,get:function(){return Cx.defineReadOnly}});Object.defineProperty(le,"getStatic",{enumerable:!0,get:function(){return Cx.getStatic}});Object.defineProperty(le,"resolveProperties",{enumerable:!0,get:function(){return Cx.resolveProperties}});Object.defineProperty(le,"shallowCopy",{enumerable:!0,get:function(){return Cx.shallowCopy}});var NQt=xZe(ase());le.RLP=NQt;var Fxe=oZ();Object.defineProperty(le,"computePublicKey",{enumerable:!0,get:function(){return Fxe.computePublicKey}});Object.defineProperty(le,"recoverPublicKey",{enumerable:!0,get:function(){return Fxe.recoverPublicKey}});Object.defineProperty(le,"SigningKey",{enumerable:!0,get:function(){return Fxe.SigningKey}});var lg=qs();Object.defineProperty(le,"formatBytes32String",{enumerable:!0,get:function(){return lg.formatBytes32String}});Object.defineProperty(le,"nameprep",{enumerable:!0,get:function(){return lg.nameprep}});Object.defineProperty(le,"parseBytes32String",{enumerable:!0,get:function(){return lg.parseBytes32String}});Object.defineProperty(le,"_toEscapedUtf8String",{enumerable:!0,get:function(){return lg._toEscapedUtf8String}});Object.defineProperty(le,"toUtf8Bytes",{enumerable:!0,get:function(){return lg.toUtf8Bytes}});Object.defineProperty(le,"toUtf8CodePoints",{enumerable:!0,get:function(){return lg.toUtf8CodePoints}});Object.defineProperty(le,"toUtf8String",{enumerable:!0,get:function(){return lg.toUtf8String}});Object.defineProperty(le,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return lg.Utf8ErrorFuncs}});var kx=l0();Object.defineProperty(le,"accessListify",{enumerable:!0,get:function(){return kx.accessListify}});Object.defineProperty(le,"computeAddress",{enumerable:!0,get:function(){return kx.computeAddress}});Object.defineProperty(le,"parseTransaction",{enumerable:!0,get:function(){return kx.parse}});Object.defineProperty(le,"recoverAddress",{enumerable:!0,get:function(){return kx.recoverAddress}});Object.defineProperty(le,"serializeTransaction",{enumerable:!0,get:function(){return kx.serialize}});Object.defineProperty(le,"TransactionTypes",{enumerable:!0,get:function(){return kx.TransactionTypes}});var HZ=wZe();Object.defineProperty(le,"commify",{enumerable:!0,get:function(){return HZ.commify}});Object.defineProperty(le,"formatEther",{enumerable:!0,get:function(){return HZ.formatEther}});Object.defineProperty(le,"parseEther",{enumerable:!0,get:function(){return HZ.parseEther}});Object.defineProperty(le,"formatUnits",{enumerable:!0,get:function(){return HZ.formatUnits}});Object.defineProperty(le,"parseUnits",{enumerable:!0,get:function(){return HZ.parseUnits}});var TZe=hxe();Object.defineProperty(le,"verifyMessage",{enumerable:!0,get:function(){return TZe.verifyMessage}});Object.defineProperty(le,"verifyTypedData",{enumerable:!0,get:function(){return TZe.verifyTypedData}});var Wxe=Xb();Object.defineProperty(le,"_fetchData",{enumerable:!0,get:function(){return Wxe._fetchData}});Object.defineProperty(le,"fetchJson",{enumerable:!0,get:function(){return Wxe.fetchJson}});Object.defineProperty(le,"poll",{enumerable:!0,get:function(){return Wxe.poll}});var BQt=Vb();Object.defineProperty(le,"SupportedAlgorithm",{enumerable:!0,get:function(){return BQt.SupportedAlgorithm}});var IZe=qs();Object.defineProperty(le,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return IZe.UnicodeNormalizationForm}});Object.defineProperty(le,"Utf8ErrorReason",{enumerable:!0,get:function(){return IZe.Utf8ErrorReason}})});var EZe=_(Due=>{"use strict";d();p();Object.defineProperty(Due,"__esModule",{value:!0});Due.version=void 0;Due.version="ethers/5.7.2"});var jxe=_(br=>{"use strict";d();p();var DQt=br&&br.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),LQt=br&&br.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Uxe=br&&br.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&DQt(e,r,t);return LQt(e,r),e};Object.defineProperty(br,"__esModule",{value:!0});br.Wordlist=br.version=br.wordlists=br.utils=br.logger=br.errors=br.constants=br.FixedNumber=br.BigNumber=br.ContractFactory=br.Contract=br.BaseContract=br.providers=br.getDefaultProvider=br.VoidSigner=br.Wallet=br.Signer=void 0;var Hxe=n$e();Object.defineProperty(br,"BaseContract",{enumerable:!0,get:function(){return Hxe.BaseContract}});Object.defineProperty(br,"Contract",{enumerable:!0,get:function(){return Hxe.Contract}});Object.defineProperty(br,"ContractFactory",{enumerable:!0,get:function(){return Hxe.ContractFactory}});var CZe=Ls();Object.defineProperty(br,"BigNumber",{enumerable:!0,get:function(){return CZe.BigNumber}});Object.defineProperty(br,"FixedNumber",{enumerable:!0,get:function(){return CZe.FixedNumber}});var kZe=oJ();Object.defineProperty(br,"Signer",{enumerable:!0,get:function(){return kZe.Signer}});Object.defineProperty(br,"VoidSigner",{enumerable:!0,get:function(){return kZe.VoidSigner}});var OQt=hxe();Object.defineProperty(br,"Wallet",{enumerable:!0,get:function(){return OQt.Wallet}});var qQt=Uxe(ib());br.constants=qQt;var FQt=Uxe(Lxe());br.providers=FQt;var WQt=Lxe();Object.defineProperty(br,"getDefaultProvider",{enumerable:!0,get:function(){return WQt.getDefaultProvider}});var AZe=J3e();Object.defineProperty(br,"Wordlist",{enumerable:!0,get:function(){return AZe.Wordlist}});Object.defineProperty(br,"wordlists",{enumerable:!0,get:function(){return AZe.wordlists}});var UQt=Uxe(Xr());br.utils=UQt;var PZe=Zt();Object.defineProperty(br,"errors",{enumerable:!0,get:function(){return PZe.ErrorCode}});var SZe=EZe();Object.defineProperty(br,"version",{enumerable:!0,get:function(){return SZe.version}});var HQt=new PZe.Logger(SZe.version);br.logger=HQt});var je=_(mr=>{"use strict";d();p();var jQt=mr&&mr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),zQt=mr&&mr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),KQt=mr&&mr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&jQt(e,r,t);return zQt(e,r),e};Object.defineProperty(mr,"__esModule",{value:!0});mr.Wordlist=mr.version=mr.wordlists=mr.utils=mr.logger=mr.errors=mr.constants=mr.FixedNumber=mr.BigNumber=mr.ContractFactory=mr.Contract=mr.BaseContract=mr.providers=mr.getDefaultProvider=mr.VoidSigner=mr.Wallet=mr.Signer=mr.ethers=void 0;var RZe=KQt(jxe());mr.ethers=RZe;try{zxe=window,zxe._ethers==null&&(zxe._ethers=RZe)}catch{}var zxe,bc=jxe();Object.defineProperty(mr,"Signer",{enumerable:!0,get:function(){return bc.Signer}});Object.defineProperty(mr,"Wallet",{enumerable:!0,get:function(){return bc.Wallet}});Object.defineProperty(mr,"VoidSigner",{enumerable:!0,get:function(){return bc.VoidSigner}});Object.defineProperty(mr,"getDefaultProvider",{enumerable:!0,get:function(){return bc.getDefaultProvider}});Object.defineProperty(mr,"providers",{enumerable:!0,get:function(){return bc.providers}});Object.defineProperty(mr,"BaseContract",{enumerable:!0,get:function(){return bc.BaseContract}});Object.defineProperty(mr,"Contract",{enumerable:!0,get:function(){return bc.Contract}});Object.defineProperty(mr,"ContractFactory",{enumerable:!0,get:function(){return bc.ContractFactory}});Object.defineProperty(mr,"BigNumber",{enumerable:!0,get:function(){return bc.BigNumber}});Object.defineProperty(mr,"FixedNumber",{enumerable:!0,get:function(){return bc.FixedNumber}});Object.defineProperty(mr,"constants",{enumerable:!0,get:function(){return bc.constants}});Object.defineProperty(mr,"errors",{enumerable:!0,get:function(){return bc.errors}});Object.defineProperty(mr,"logger",{enumerable:!0,get:function(){return bc.logger}});Object.defineProperty(mr,"utils",{enumerable:!0,get:function(){return bc.utils}});Object.defineProperty(mr,"wordlists",{enumerable:!0,get:function(){return bc.wordlists}});Object.defineProperty(mr,"version",{enumerable:!0,get:function(){return bc.version}});Object.defineProperty(mr,"Wordlist",{enumerable:!0,get:function(){return bc.Wordlist}})});var Gxe=_(Kxe=>{"use strict";d();p();Object.defineProperty(Kxe,"__esModule",{value:!0});Kxe.default=VQt;var Lue,GQt=new Uint8Array(16);function VQt(){if(!Lue&&(Lue=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Lue))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Lue(GQt)}});var MZe=_(Oue=>{"use strict";d();p();Object.defineProperty(Oue,"__esModule",{value:!0});Oue.default=void 0;var YQt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Oue.default=YQt});var jZ=_(que=>{"use strict";d();p();Object.defineProperty(que,"__esModule",{value:!0});que.default=void 0;var $Qt=QQt(MZe());function QQt(r){return r&&r.__esModule?r:{default:r}}function JQt(r){return typeof r=="string"&&$Qt.default.test(r)}var ZQt=JQt;que.default=ZQt});var KZ=_(zZ=>{"use strict";d();p();Object.defineProperty(zZ,"__esModule",{value:!0});zZ.default=void 0;zZ.unsafeStringify=NZe;var XQt=eJt(jZ());function eJt(r){return r&&r.__esModule?r:{default:r}}var vc=[];for(let r=0;r<256;++r)vc.push((r+256).toString(16).slice(1));function NZe(r,e=0){return(vc[r[e+0]]+vc[r[e+1]]+vc[r[e+2]]+vc[r[e+3]]+"-"+vc[r[e+4]]+vc[r[e+5]]+"-"+vc[r[e+6]]+vc[r[e+7]]+"-"+vc[r[e+8]]+vc[r[e+9]]+"-"+vc[r[e+10]]+vc[r[e+11]]+vc[r[e+12]]+vc[r[e+13]]+vc[r[e+14]]+vc[r[e+15]]).toLowerCase()}function tJt(r,e=0){let t=NZe(r,e);if(!(0,XQt.default)(t))throw TypeError("Stringified UUID is invalid");return t}var rJt=tJt;zZ.default=rJt});var DZe=_(Fue=>{"use strict";d();p();Object.defineProperty(Fue,"__esModule",{value:!0});Fue.default=void 0;var nJt=iJt(Gxe()),aJt=KZ();function iJt(r){return r&&r.__esModule?r:{default:r}}var BZe,Vxe,Yxe=0,$xe=0;function sJt(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||BZe,s=r.clockseq!==void 0?r.clockseq:Vxe;if(i==null||s==null){let f=r.random||(r.rng||nJt.default)();i==null&&(i=BZe=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),s==null&&(s=Vxe=(f[6]<<8|f[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),c=r.nsecs!==void 0?r.nsecs:$xe+1,u=o-Yxe+(c-$xe)/1e4;if(u<0&&r.clockseq===void 0&&(s=s+1&16383),(u<0||o>Yxe)&&r.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Yxe=o,$xe=c,Vxe=s,o+=122192928e5;let l=((o&268435455)*1e4+c)%4294967296;a[n++]=l>>>24&255,a[n++]=l>>>16&255,a[n++]=l>>>8&255,a[n++]=l&255;let h=o/4294967296*1e4&268435455;a[n++]=h>>>8&255,a[n++]=h&255,a[n++]=h>>>24&15|16,a[n++]=h>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let f=0;f<6;++f)a[n+f]=i[f];return e||(0,aJt.unsafeStringify)(a)}var oJt=sJt;Fue.default=oJt});var Qxe=_(Wue=>{"use strict";d();p();Object.defineProperty(Wue,"__esModule",{value:!0});Wue.default=void 0;var cJt=uJt(jZ());function uJt(r){return r&&r.__esModule?r:{default:r}}function lJt(r){if(!(0,cJt.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var dJt=lJt;Wue.default=dJt});var Jxe=_(rv=>{"use strict";d();p();Object.defineProperty(rv,"__esModule",{value:!0});rv.URL=rv.DNS=void 0;rv.default=yJt;var pJt=KZ(),hJt=fJt(Qxe());function fJt(r){return r&&r.__esModule?r:{default:r}}function mJt(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";d();p();Object.defineProperty(Hue,"__esModule",{value:!0});Hue.default=void 0;function gJt(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function qZe(r){return(r+64>>>9<<4)+14+1}function vJt(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function xJt(r,e){return r<>>32-e}function Uue(r,e,t,n,a,i){return dg(xJt(dg(dg(e,r),dg(n,i)),a),t)}function cu(r,e,t,n,a,i,s){return Uue(e&t|~e&n,r,e,a,i,s)}function uu(r,e,t,n,a,i,s){return Uue(e&n|t&~n,r,e,a,i,s)}function lu(r,e,t,n,a,i,s){return Uue(e^t^n,r,e,a,i,s)}function du(r,e,t,n,a,i,s){return Uue(t^(e|~n),r,e,a,i,s)}var _Jt=gJt;Hue.default=_Jt});var UZe=_(jue=>{"use strict";d();p();Object.defineProperty(jue,"__esModule",{value:!0});jue.default=void 0;var TJt=WZe(Jxe()),IJt=WZe(FZe());function WZe(r){return r&&r.__esModule?r:{default:r}}var EJt=(0,TJt.default)("v3",48,IJt.default),CJt=EJt;jue.default=CJt});var HZe=_(zue=>{"use strict";d();p();Object.defineProperty(zue,"__esModule",{value:!0});zue.default=void 0;var kJt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),AJt={randomUUID:kJt};zue.default=AJt});var KZe=_(Kue=>{"use strict";d();p();Object.defineProperty(Kue,"__esModule",{value:!0});Kue.default=void 0;var jZe=zZe(HZe()),PJt=zZe(Gxe()),SJt=KZ();function zZe(r){return r&&r.__esModule?r:{default:r}}function RJt(r,e,t){if(jZe.default.randomUUID&&!e&&!r)return jZe.default.randomUUID();r=r||{};let n=r.random||(r.rng||PJt.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,SJt.unsafeStringify)(n)}var MJt=RJt;Kue.default=MJt});var GZe=_(Gue=>{"use strict";d();p();Object.defineProperty(Gue,"__esModule",{value:!0});Gue.default=void 0;function NJt(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function Zxe(r,e){return r<>>32-e}function BJt(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let o=0;o>>0;f=h,h=l,l=Zxe(u,30)>>>0,u=c,c=I}t[0]=t[0]+c>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+l>>>0,t[3]=t[3]+h>>>0,t[4]=t[4]+f>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var DJt=BJt;Gue.default=DJt});var YZe=_(Vue=>{"use strict";d();p();Object.defineProperty(Vue,"__esModule",{value:!0});Vue.default=void 0;var LJt=VZe(Jxe()),OJt=VZe(GZe());function VZe(r){return r&&r.__esModule?r:{default:r}}var qJt=(0,LJt.default)("v5",80,OJt.default),FJt=qJt;Vue.default=FJt});var $Ze=_(Yue=>{"use strict";d();p();Object.defineProperty(Yue,"__esModule",{value:!0});Yue.default=void 0;var WJt="00000000-0000-0000-0000-000000000000";Yue.default=WJt});var QZe=_($ue=>{"use strict";d();p();Object.defineProperty($ue,"__esModule",{value:!0});$ue.default=void 0;var UJt=HJt(jZ());function HJt(r){return r&&r.__esModule?r:{default:r}}function jJt(r){if(!(0,UJt.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var zJt=jJt;$ue.default=zJt});var Fr=_(bh=>{"use strict";d();p();Object.defineProperty(bh,"__esModule",{value:!0});Object.defineProperty(bh,"NIL",{enumerable:!0,get:function(){return $Jt.default}});Object.defineProperty(bh,"parse",{enumerable:!0,get:function(){return XJt.default}});Object.defineProperty(bh,"stringify",{enumerable:!0,get:function(){return ZJt.default}});Object.defineProperty(bh,"v1",{enumerable:!0,get:function(){return KJt.default}});Object.defineProperty(bh,"v3",{enumerable:!0,get:function(){return GJt.default}});Object.defineProperty(bh,"v4",{enumerable:!0,get:function(){return VJt.default}});Object.defineProperty(bh,"v5",{enumerable:!0,get:function(){return YJt.default}});Object.defineProperty(bh,"validate",{enumerable:!0,get:function(){return JJt.default}});Object.defineProperty(bh,"version",{enumerable:!0,get:function(){return QJt.default}});var KJt=y0(DZe()),GJt=y0(UZe()),VJt=y0(KZe()),YJt=y0(YZe()),$Jt=y0($Ze()),QJt=y0(QZe()),JJt=y0(jZ()),ZJt=y0(KZ()),XJt=y0(Qxe());function y0(r){return r&&r.__esModule?r:{default:r}}});var GZ=_(Ha=>{"use strict";d();p();Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getParsedType=Ha.ZodParsedType=Ha.objectUtil=Ha.util=void 0;var JZe;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(let o of i)s[o]=a[o];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(JZe=Ha.util||(Ha.util={}));var eZt;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(eZt=Ha.objectUtil||(Ha.objectUtil={}));Ha.ZodParsedType=JZe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var tZt=r=>{switch(typeof r){case"undefined":return Ha.ZodParsedType.undefined;case"string":return Ha.ZodParsedType.string;case"number":return isNaN(r)?Ha.ZodParsedType.nan:Ha.ZodParsedType.number;case"boolean":return Ha.ZodParsedType.boolean;case"function":return Ha.ZodParsedType.function;case"bigint":return Ha.ZodParsedType.bigint;case"symbol":return Ha.ZodParsedType.symbol;case"object":return Array.isArray(r)?Ha.ZodParsedType.array:r===null?Ha.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Ha.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?Ha.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?Ha.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?Ha.ZodParsedType.date:Ha.ZodParsedType.object;default:return Ha.ZodParsedType.unknown}};Ha.getParsedType=tZt});var Que=_(pg=>{"use strict";d();p();Object.defineProperty(pg,"__esModule",{value:!0});pg.ZodError=pg.quotelessJson=pg.ZodIssueCode=void 0;var ZZe=GZ();pg.ZodIssueCode=ZZe.util.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"]);var rZt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");pg.quotelessJson=rZt;var VZ=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};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(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let o=n,c=0;for(;ct.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};pg.ZodError=VZ;VZ.create=r=>new VZ(r)});var e_e=_(Xxe=>{"use strict";d();p();Object.defineProperty(Xxe,"__esModule",{value:!0});var nv=GZ(),pu=Que(),nZt=(r,e)=>{let t;switch(r.code){case pu.ZodIssueCode.invalid_type:r.received===nv.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case pu.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,nv.util.jsonStringifyReplacer)}`;break;case pu.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${nv.util.joinValues(r.keys,", ")}`;break;case pu.ZodIssueCode.invalid_union:t="Invalid input";break;case pu.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${nv.util.joinValues(r.options)}`;break;case pu.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${nv.util.joinValues(r.options)}, received '${r.received}'`;break;case pu.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case pu.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case pu.ZodIssueCode.invalid_date:t="Invalid date";break;case pu.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:nv.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case pu.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case pu.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case pu.ZodIssueCode.custom:t="Invalid input";break;case pu.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case pu.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case pu.ZodIssueCode.not_finite:t="Number must be finite";break;default:t=e.defaultError,nv.util.assertNever(r)}return{message:t}};Xxe.default=nZt});var Jue=_(Vf=>{"use strict";d();p();var aZt=Vf&&Vf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Vf,"__esModule",{value:!0});Vf.getErrorMap=Vf.setErrorMap=Vf.defaultErrorMap=void 0;var XZe=aZt(e_e());Vf.defaultErrorMap=XZe.default;var eXe=XZe.default;function iZt(r){eXe=r}Vf.setErrorMap=iZt;function sZt(){return eXe}Vf.getErrorMap=sZt});var t_e=_(Sa=>{"use strict";d();p();var oZt=Sa&&Sa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sa,"__esModule",{value:!0});Sa.isAsync=Sa.isValid=Sa.isDirty=Sa.isAborted=Sa.OK=Sa.DIRTY=Sa.INVALID=Sa.ParseStatus=Sa.addIssueToContext=Sa.EMPTY_PATH=Sa.makeIssue=void 0;var cZt=Jue(),uZt=oZt(e_e()),lZt=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},o="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)o=u(s,{data:e,defaultError:o}).message;return{...a,path:i,message:a.message||o}};Sa.makeIssue=lZt;Sa.EMPTY_PATH=[];function dZt(r,e){let t=(0,Sa.makeIssue)({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,(0,cZt.getErrorMap)(),uZt.default].filter(n=>!!n)});r.common.issues.push(t)}Sa.addIssueToContext=dZt;var YZ=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return Sa.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return YZ.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return Sa.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};Sa.ParseStatus=YZ;Sa.INVALID=Object.freeze({status:"aborted"});var pZt=r=>({status:"dirty",value:r});Sa.DIRTY=pZt;var hZt=r=>({status:"valid",value:r});Sa.OK=hZt;var fZt=r=>r.status==="aborted";Sa.isAborted=fZt;var mZt=r=>r.status==="dirty";Sa.isDirty=mZt;var yZt=r=>r.status==="valid";Sa.isValid=yZt;var gZt=r=>typeof Promise<"u"&&r instanceof Promise;Sa.isAsync=gZt});var rXe=_(tXe=>{"use strict";d();p();Object.defineProperty(tXe,"__esModule",{value:!0})});var nXe=_($Z=>{"use strict";d();p();Object.defineProperty($Z,"__esModule",{value:!0});$Z.errorUtil=void 0;var bZt;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(bZt=$Z.errorUtil||($Z.errorUtil={}))});var lXe=_(fe=>{"use strict";d();p();Object.defineProperty(fe,"__esModule",{value:!0});fe.discriminatedUnion=fe.date=fe.boolean=fe.bigint=fe.array=fe.any=fe.coerce=fe.ZodFirstPartyTypeKind=fe.late=fe.ZodSchema=fe.Schema=fe.custom=fe.ZodPipeline=fe.ZodBranded=fe.BRAND=fe.ZodNaN=fe.ZodCatch=fe.ZodDefault=fe.ZodNullable=fe.ZodOptional=fe.ZodTransformer=fe.ZodEffects=fe.ZodPromise=fe.ZodNativeEnum=fe.ZodEnum=fe.ZodLiteral=fe.ZodLazy=fe.ZodFunction=fe.ZodSet=fe.ZodMap=fe.ZodRecord=fe.ZodTuple=fe.ZodIntersection=fe.ZodDiscriminatedUnion=fe.ZodUnion=fe.ZodObject=fe.ZodArray=fe.ZodVoid=fe.ZodNever=fe.ZodUnknown=fe.ZodAny=fe.ZodNull=fe.ZodUndefined=fe.ZodSymbol=fe.ZodDate=fe.ZodBoolean=fe.ZodBigInt=fe.ZodNumber=fe.ZodString=fe.ZodType=void 0;fe.NEVER=fe.void=fe.unknown=fe.union=fe.undefined=fe.tuple=fe.transformer=fe.symbol=fe.string=fe.strictObject=fe.set=fe.record=fe.promise=fe.preprocess=fe.pipeline=fe.ostring=fe.optional=fe.onumber=fe.oboolean=fe.object=fe.number=fe.nullable=fe.null=fe.never=fe.nativeEnum=fe.nan=fe.map=fe.literal=fe.lazy=fe.intersection=fe.instanceof=fe.function=fe.enum=fe.effect=void 0;var Zue=Jue(),zt=nXe(),ye=t_e(),qe=GZ(),Oe=Que(),ap=class{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}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}},aXe=(r,e)=>{if((0,ye.isValid)(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Oe.ZodError(r.common.issues);return this._error=t,this._error}}};function _r(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,o)=>s.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:t??o.defaultError},description:a}}var Tr=class{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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,qe.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ye.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,ye.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},i=this._parseSync({data:e,path:a.path,parent:a});return aXe(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await((0,ye.isAsync)(a)?a:Promise.resolve(a));return aXe(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),o=()=>i.addIssue({code:Oe.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new Zl({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return vh.create(this,this._def)}nullable(){return w0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Jl.create(this,this._def)}promise(){return mg.create(this,this._def)}or(e){return ov.create([this,e],this._def)}and(e){return cv.create(this,e,this._def)}transform(e){return new Zl({..._r(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new hv({..._r(this._def),innerType:this,defaultValue:t,typeName:sr.ZodDefault})}brand(){return new ele({typeName:sr.ZodBranded,type:this,..._r(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new Nx({..._r(this._def),innerType:this,catchValue:t,typeName:sr.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return fv.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};fe.ZodType=Tr;fe.Schema=Tr;fe.ZodSchema=Tr;var vZt=/^c[^\s-]{8,}$/i,wZt=/^[a-z][a-z0-9]*$/,xZt=/[0-9A-HJKMNP-TV-Z]{26}/,_Zt=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,TZt=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((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}))\])|(\[IPv6:(([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})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,IZt=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,EZt=/^(((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}))$/,CZt=/^(([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})))$/,kZt=r=>r.precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):r.precision===0?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function AZt(r,e){return!!((e==="v4"||!e)&&EZt.test(r)||(e==="v6"||!e)&&CZt.test(r))}var Ql=class extends Tr{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:Oe.ZodIssueCode.invalid_string,...zt.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,zt.errorUtil.errToObj(e)),this.trim=()=>new Ql({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Ql({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Ql({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==qe.ZodParsedType.string){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.string,received:i.parsedType}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Oe.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,o=e.data.length"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,...zt.errorUtil.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...zt.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...zt.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...zt.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...zt.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...zt.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...zt.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...zt.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Ql({checks:[],typeName:sr.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,..._r(r)})};function PZt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var Yf=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==qe.ZodParsedType.number){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.number,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="int"?qe.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?PZt(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.not_finite,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new Yf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new Yf({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:zt.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:zt.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:zt.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:zt.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&qe.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.valuenew Yf({checks:[],typeName:sr.ZodNumber,coerce:r?.coerce||!1,..._r(r)});var $f=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==qe.ZodParsedType.bigint){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.bigint,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new $f({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new $f({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new $f({checks:[],typeName:sr.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,..._r(r)})};var av=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==qe.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.boolean,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodBoolean=av;av.create=r=>new av({typeName:sr.ZodBoolean,coerce:r?.coerce||!1,..._r(r)});var b0=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==qe.ZodParsedType.date){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.date,received:i.parsedType}),ye.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Oe.ZodIssueCode.invalid_date}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Oe.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):qe.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new b0({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:zt.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:zt.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew b0({checks:[],coerce:r?.coerce||!1,typeName:sr.ZodDate,..._r(r)});var Px=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.symbol){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.symbol,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodSymbol=Px;Px.create=r=>new Px({typeName:sr.ZodSymbol,..._r(r)});var iv=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.undefined,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodUndefined=iv;iv.create=r=>new iv({typeName:sr.ZodUndefined,..._r(r)});var sv=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.null){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.null,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodNull=sv;sv.create=r=>new sv({typeName:sr.ZodNull,..._r(r)});var fg=class extends Tr{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodAny=fg;fg.create=r=>new fg({typeName:sr.ZodAny,..._r(r)});var g0=class extends Tr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodUnknown=g0;g0.create=r=>new g0({typeName:sr.ZodUnknown,..._r(r)});var wh=class extends Tr{_parse(e){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.never,received:t.parsedType}),ye.INVALID}};fe.ZodNever=wh;wh.create=r=>new wh({typeName:sr.ZodNever,..._r(r)});var Sx=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.void,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodVoid=Sx;Sx.create=r=>new Sx({typeName:sr.ZodVoid,..._r(r)});var Jl=class extends Tr{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:t.parsedType}),ye.INVALID;if(a.exactLength!==null){let s=t.data.length>a.exactLength.value,o=t.data.lengtha.maxLength.value&&((0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((s,o)=>a.type._parseAsync(new ap(t,s,t.path,o)))).then(s=>ye.ParseStatus.mergeArray(n,s));let i=[...t.data].map((s,o)=>a.type._parseSync(new ap(t,s,t.path,o)));return ye.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Jl({...this._def,minLength:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new Jl({...this._def,maxLength:{value:e,message:zt.errorUtil.toString(t)}})}length(e,t){return new Jl({...this._def,exactLength:{value:e,message:zt.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}};fe.ZodArray=Jl;Jl.create=(r,e)=>new Jl({type:r,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,..._r(e)});function Ax(r){if(r instanceof si){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=vh.create(Ax(n))}return new si({...r._def,shape:()=>e})}else return r instanceof Jl?new Jl({...r._def,type:Ax(r.element)}):r instanceof vh?vh.create(Ax(r.unwrap())):r instanceof w0?w0.create(Ax(r.unwrap())):r instanceof ip?ip.create(r.items.map(e=>Ax(e))):r}var si=class extends Tr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=qe.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==qe.ZodParsedType.object){let u=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(u,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:u.parsedType}),ye.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof wh&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let c=[];for(let u of s){let l=i[u],h=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ap(a,h,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof wh){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")o.length>0&&((0,ye.addIssueToContext)(a,{code:Oe.ZodIssueCode.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of o){let h=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ap(a,h,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let h=await l.key;u.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>ye.ParseStatus.mergeObjectSync(n,u)):ye.ParseStatus.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return zt.errorUtil.errToObj,new si({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,o;let c=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=zt.errorUtil.errToObj(e).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new si({...this._def,unknownKeys:"strip"})}passthrough(){return new si({...this._def,unknownKeys:"passthrough"})}extend(e){return new si({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new si({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:sr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new si({...this._def,catchall:e})}pick(e){let t={};return qe.util.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new si({...this._def,shape:()=>t})}omit(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new si({...this._def,shape:()=>t})}deepPartial(){return Ax(this)}partial(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{let a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new si({...this._def,shape:()=>t})}required(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof vh;)i=i._def.innerType;t[n]=i}}),new si({...this._def,shape:()=>t})}keyof(){return iXe(qe.util.objectKeys(this.shape))}};fe.ZodObject=si;si.create=(r,e)=>new si({shape:()=>r,unknownKeys:"strip",catchall:wh.create(),typeName:sr.ZodObject,..._r(e)});si.strictCreate=(r,e)=>new si({shape:()=>r,unknownKeys:"strict",catchall:wh.create(),typeName:sr.ZodObject,..._r(e)});si.lazycreate=(r,e)=>new si({shape:r,unknownKeys:"strip",catchall:wh.create(),typeName:sr.ZodObject,..._r(e)});var ov=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let o of i)if(o.result.status==="valid")return o.result;for(let o of i)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(o=>new Oe.ZodError(o.ctx.common.issues));return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_union,unionErrors:s}),ye.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let c of n){let u={...t,common:{...t.common,issues:[]},parent:null},l=c._parseSync({data:t.data,path:t.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let o=s.map(c=>new Oe.ZodError(c));return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_union,unionErrors:o}),ye.INVALID}}get options(){return this._def.options}};fe.ZodUnion=ov;ov.create=(r,e)=>new ov({options:r,typeName:sr.ZodUnion,..._r(e)});var Xue=r=>r instanceof lv?Xue(r.schema):r instanceof Zl?Xue(r.innerType()):r instanceof dv?[r.value]:r instanceof Qf?r.options:r instanceof pv?Object.keys(r.enum):r instanceof hv?Xue(r._def.innerType):r instanceof iv?[void 0]:r instanceof sv?[null]:null,Rx=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:t.parsedType}),ye.INVALID;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);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}):((0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ye.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let i of t){let s=Xue(i.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of s){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,i)}}return new Rx({typeName:sr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,..._r(n)})}};fe.ZodDiscriminatedUnion=Rx;function r_e(r,e){let t=(0,qe.getParsedType)(r),n=(0,qe.getParsedType)(e);if(r===e)return{valid:!0,data:r};if(t===qe.ZodParsedType.object&&n===qe.ZodParsedType.object){let a=qe.util.objectKeys(e),i=qe.util.objectKeys(r).filter(o=>a.indexOf(o)!==-1),s={...r,...e};for(let o of i){let c=r_e(r[o],e[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(t===qe.ZodParsedType.array&&n===qe.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if((0,ye.isAborted)(i)||(0,ye.isAborted)(s))return ye.INVALID;let o=r_e(i.value,s.value);return o.valid?(((0,ye.isDirty)(i)||(0,ye.isDirty)(s))&&t.dirty(),{status:t.value,value:o.data}):((0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_intersection_types}),ye.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};fe.ZodIntersection=cv;cv.create=(r,e,t)=>new cv({left:r,right:e,typeName:sr.ZodIntersection,..._r(t)});var ip=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:n.parsedType}),ye.INVALID;if(n.data.lengththis._def.items.length&&((0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((s,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new ap(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>ye.ParseStatus.mergeArray(t,s)):ye.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new ip({...this._def,rest:e})}};fe.ZodTuple=ip;ip.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ip({items:r,typeName:sr.ZodTuple,rest:null,..._r(e)})};var uv=class extends Tr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:n.parsedType}),ye.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:i._parse(new ap(n,o,n.path,o)),value:s._parse(new ap(n,n.data[o],n.path,o))});return n.common.async?ye.ParseStatus.mergeObjectAsync(t,a):ye.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof Tr?new uv({keyType:e,valueType:t,typeName:sr.ZodRecord,..._r(n)}):new uv({keyType:Ql.create(),valueType:e,typeName:sr.ZodRecord,..._r(t)})}};fe.ZodRecord=uv;var Mx=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.map)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.map,received:n.parsedType}),ye.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([o,c],u)=>({key:a._parse(new ap(n,o,n.path,[u,"key"])),value:i._parse(new ap(n,c,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}}}};fe.ZodMap=Mx;Mx.create=(r,e,t)=>new Mx({valueType:e,keyType:r,typeName:sr.ZodMap,..._r(t)});var v0=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.set)return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.set,received:n.parsedType}),ye.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&((0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return ye.INVALID;l.status==="dirty"&&t.dirty(),u.add(l.value)}return{status:t.value,value:u}}let o=[...n.data.values()].map((c,u)=>i._parse(new ap(n,c,n.path,u)));return n.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(e,t){return new v0({...this._def,minSize:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new v0({...this._def,maxSize:{value:e,message:zt.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};fe.ZodSet=v0;v0.create=(r,e)=>new v0({valueType:r,minSize:null,maxSize:null,typeName:sr.ZodSet,..._r(e)});var hg=class extends Tr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.function)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.function,received:t.parsedType}),ye.INVALID;function n(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,Zue.getErrorMap)(),Zue.defaultErrorMap].filter(u=>!!u),issueData:{code:Oe.ZodIssueCode.invalid_arguments,argumentsError:c}})}function a(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,Zue.getErrorMap)(),Zue.defaultErrorMap].filter(u=>!!u),issueData:{code:Oe.ZodIssueCode.invalid_return_type,returnTypeError:c}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof mg?(0,ye.OK)(async(...o)=>{let c=new Oe.ZodError([]),u=await this._def.args.parseAsync(o,i).catch(f=>{throw c.addIssue(n(o,f)),c}),l=await s(...u);return await this._def.returns._def.type.parseAsync(l,i).catch(f=>{throw c.addIssue(a(l,f)),c})}):(0,ye.OK)((...o)=>{let c=this._def.args.safeParse(o,i);if(!c.success)throw new Oe.ZodError([n(o,c.error)]);let u=s(...c.data),l=this._def.returns.safeParse(u,i);if(!l.success)throw new Oe.ZodError([a(u,l.error)]);return l.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new hg({...this._def,args:ip.create(e).rest(g0.create())})}returns(e){return new hg({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new hg({args:e||ip.create([]).rest(g0.create()),returns:t||g0.create(),typeName:sr.ZodFunction,..._r(n)})}};fe.ZodFunction=hg;var lv=class extends Tr{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})}};fe.ZodLazy=lv;lv.create=(r,e)=>new lv({getter:r,typeName:sr.ZodLazy,..._r(e)});var dv=class extends Tr{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{received:t.data,code:Oe.ZodIssueCode.invalid_literal,expected:this._def.value}),ye.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};fe.ZodLiteral=dv;dv.create=(r,e)=>new dv({value:r,typeName:sr.ZodLiteral,..._r(e)});function iXe(r,e){return new Qf({values:r,typeName:sr.ZodEnum,..._r(e)})}var Qf=class extends Tr{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{expected:qe.util.joinValues(n),received:t.parsedType,code:Oe.ZodIssueCode.invalid_type}),ye.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{received:t.data,code:Oe.ZodIssueCode.invalid_enum_value,options:n}),ye.INVALID}return(0,ye.OK)(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 Qf.create(e)}exclude(e){return Qf.create(this.options.filter(t=>!e.includes(t)))}};fe.ZodEnum=Qf;Qf.create=iXe;var pv=class extends Tr{_parse(e){let t=qe.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==qe.ZodParsedType.string&&n.parsedType!==qe.ZodParsedType.number){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{expected:qe.util.joinValues(a),received:n.parsedType,code:Oe.ZodIssueCode.invalid_type}),ye.INVALID}if(t.indexOf(e.data)===-1){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{received:n.data,code:Oe.ZodIssueCode.invalid_enum_value,options:a}),ye.INVALID}return(0,ye.OK)(e.data)}get enum(){return this._def.values}};fe.ZodNativeEnum=pv;pv.create=(r,e)=>new pv({values:r,typeName:sr.ZodNativeEnum,..._r(e)});var mg=class extends Tr{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.promise&&t.common.async===!1)return(0,ye.addIssueToContext)(t,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.promise,received:t.parsedType}),ye.INVALID;let n=t.parsedType===qe.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,ye.OK)(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};fe.ZodPromise=mg;mg.create=(r,e)=>new mg({type:r,typeName:sr.ZodPromise,..._r(e)});var Zl=class extends Tr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(o=>this._def.schema._parseAsync({data:o,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{(0,ye.addIssueToContext)(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=o=>{let c=a.refinement(o,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value).then(()=>({status:t.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,ye.isValid)(s))return s;let o=a.transform(s.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>(0,ye.isValid)(s)?Promise.resolve(a.transform(s.value,i)).then(o=>({status:t.value,value:o})):s);qe.util.assertNever(a)}};fe.ZodEffects=Zl;fe.ZodTransformer=Zl;Zl.create=(r,e,t)=>new Zl({schema:r,typeName:sr.ZodEffects,effect:e,..._r(t)});Zl.createWithPreprocess=(r,e,t)=>new Zl({schema:e,effect:{type:"preprocess",transform:r},typeName:sr.ZodEffects,..._r(t)});var vh=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.undefined?(0,ye.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodOptional=vh;vh.create=(r,e)=>new vh({innerType:r,typeName:sr.ZodOptional,..._r(e)});var w0=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.null?(0,ye.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodNullable=w0;w0.create=(r,e)=>new w0({innerType:r,typeName:sr.ZodNullable,..._r(e)});var hv=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===qe.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};fe.ZodDefault=hv;hv.create=(r,e)=>new hv({innerType:r,typeName:sr.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._r(e)});var Nx=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,ye.isAsync)(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Oe.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Oe.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fe.ZodCatch=Nx;Nx.create=(r,e)=>new Nx({innerType:r,typeName:sr.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._r(e)});var Bx=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Oe.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.nan,received:n.parsedType}),ye.INVALID}return{status:"valid",value:e.data}}};fe.ZodNaN=Bx;Bx.create=r=>new Bx({typeName:sr.ZodNaN,..._r(r)});fe.BRAND=Symbol("zod_brand");var ele=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};fe.ZodBranded=ele;var fv=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ye.INVALID:i.status==="dirty"?(t.dirty(),(0,ye.DIRTY)(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ye.INVALID:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new fv({in:e,out:t,typeName:sr.ZodPipeline})}};fe.ZodPipeline=fv;var SZt=(r,e={},t)=>r?fg.create().superRefine((n,a)=>{var i,s;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(s=(i=o.fatal)!==null&&i!==void 0?i:t)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:c})}}):fg.create();fe.custom=SZt;fe.late={object:si.lazycreate};var sr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline"})(sr=fe.ZodFirstPartyTypeKind||(fe.ZodFirstPartyTypeKind={}));var RZt=(r,e={message:`Input not instance of ${r.name}`})=>(0,fe.custom)(t=>t instanceof r,e);fe.instanceof=RZt;var sXe=Ql.create;fe.string=sXe;var oXe=Yf.create;fe.number=oXe;var MZt=Bx.create;fe.nan=MZt;var NZt=$f.create;fe.bigint=NZt;var cXe=av.create;fe.boolean=cXe;var BZt=b0.create;fe.date=BZt;var DZt=Px.create;fe.symbol=DZt;var LZt=iv.create;fe.undefined=LZt;var OZt=sv.create;fe.null=OZt;var qZt=fg.create;fe.any=qZt;var FZt=g0.create;fe.unknown=FZt;var WZt=wh.create;fe.never=WZt;var UZt=Sx.create;fe.void=UZt;var HZt=Jl.create;fe.array=HZt;var jZt=si.create;fe.object=jZt;var zZt=si.strictCreate;fe.strictObject=zZt;var KZt=ov.create;fe.union=KZt;var GZt=Rx.create;fe.discriminatedUnion=GZt;var VZt=cv.create;fe.intersection=VZt;var YZt=ip.create;fe.tuple=YZt;var $Zt=uv.create;fe.record=$Zt;var QZt=Mx.create;fe.map=QZt;var JZt=v0.create;fe.set=JZt;var ZZt=hg.create;fe.function=ZZt;var XZt=lv.create;fe.lazy=XZt;var eXt=dv.create;fe.literal=eXt;var tXt=Qf.create;fe.enum=tXt;var rXt=pv.create;fe.nativeEnum=rXt;var nXt=mg.create;fe.promise=nXt;var uXe=Zl.create;fe.effect=uXe;fe.transformer=uXe;var aXt=vh.create;fe.optional=aXt;var iXt=w0.create;fe.nullable=iXt;var sXt=Zl.createWithPreprocess;fe.preprocess=sXt;var oXt=fv.create;fe.pipeline=oXt;var cXt=()=>sXe().optional();fe.ostring=cXt;var uXt=()=>oXe().optional();fe.onumber=uXt;var lXt=()=>cXe().optional();fe.oboolean=lXt;fe.coerce={string:r=>Ql.create({...r,coerce:!0}),number:r=>Yf.create({...r,coerce:!0}),boolean:r=>av.create({...r,coerce:!0}),bigint:r=>$f.create({...r,coerce:!0}),date:r=>b0.create({...r,coerce:!0})};fe.NEVER=ye.INVALID});var n_e=_(sp=>{"use strict";d();p();var dXt=sp&&sp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Dx=sp&&sp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&dXt(e,r,t)};Object.defineProperty(sp,"__esModule",{value:!0});Dx(Jue(),sp);Dx(t_e(),sp);Dx(rXe(),sp);Dx(GZ(),sp);Dx(lXe(),sp);Dx(Que(),sp)});var kr=_(ml=>{"use strict";d();p();var dXe=ml&&ml.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),pXt=ml&&ml.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),hXt=ml&&ml.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&dXe(e,r,t);return pXt(e,r),e},fXt=ml&&ml.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&dXe(e,r,t)};Object.defineProperty(ml,"__esModule",{value:!0});ml.z=void 0;var pXe=hXt(n_e());ml.z=pXe;fXt(n_e(),ml);ml.default=pXe});var TXe=_(yl=>{"use strict";d();p();var fXe=je(),mXe=Fr(),We=kr();function mXt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function yXt(r){var e=mXt(r,"string");return typeof e=="symbol"?e:String(e)}function hXe(r,e,t){return e=yXt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var gXt=We.z.string().refine(r=>fXe.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),tle=We.z.date().transform(r=>fXe.BigNumber.from(Math.floor(r.getTime()/1e3))),yXe=We.z.union([We.z.literal("evm"),We.z.literal("solana")]),bXt=We.z.union([We.z.string(),We.z.number(),We.z.boolean(),We.z.null()]),rle=We.z.lazy(()=>We.z.union([bXt,We.z.array(rle),We.z.record(rle)]),{invalid_type_error:"Provided value was not valid JSON"}),gXe=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),nonce:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),resources:We.z.array(We.z.string()).optional()}).optional(),nle=We.z.object({type:yXe,domain:We.z.string(),address:We.z.string(),statement:We.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:We.z.string().optional(),version:We.z.string().default("1"),chain_id:We.z.string().optional(),nonce:We.z.string().default(mXe.v4()),issued_at:We.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:We.z.date().transform(r=>r.toISOString()),invalid_before:We.z.date().default(new Date).transform(r=>r.toISOString()),resources:We.z.array(We.z.string()).optional()}),bXe=We.z.object({payload:nle,signature:We.z.string()}),vXe=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),validateNonce:We.z.function().args(We.z.string()).optional(),resources:We.z.array(We.z.string()).optional()}),wXe=vXe.optional(),xXe=We.z.object({domain:We.z.string().optional(),tokenId:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),session:We.z.union([rle,We.z.function().args(We.z.string())]).optional(),verifyOptions:vXe.omit({domain:!0}).optional()}).optional(),s_e=We.z.object({iss:We.z.string(),sub:We.z.string(),aud:We.z.string(),exp:tle.transform(r=>r.toNumber()),nbf:tle.transform(r=>r.toNumber()),iat:tle.transform(r=>r.toNumber()),jti:We.z.string().default(mXe.v4()),ctx:rle.optional()}),vXt=We.z.object({payload:s_e,signature:We.z.string()}),_Xe=We.z.object({domain:We.z.string().optional(),validateTokenId:We.z.function().args(We.z.string()).optional()}).optional(),wXt=bXe.extend({payload:nle.extend({issued_at:We.z.string(),expiration_time:We.z.string(),invalid_before:We.z.string()})}),a_e=()=>typeof window<"u",i_e=class{constructor(e,t){hXe(this,"domain",void 0),hXe(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=gXe.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=nle.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(a_e()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=wXe.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(a_e())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=xXe.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let C=await n.session(i);C&&(s=C)}else s=n?.session;let o=await this.wallet.getAddress(),c=s_e.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(a_e())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=_Xe.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` +`)},r.register=function(e,t){if(t||(t=e.locale),xvr)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,Mpt.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();Dv.Wordlist=Ivr});var Npt=E(L_=>{"use strict";f();d();var Cvr=L_&&L_.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(L_,"__esModule",{value:!0});L_.langCz=void 0;var aSe=c1(),Avr="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",Nie=null;function Bpt(r){if(Nie==null&&(Nie=Avr.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),aSe.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw Nie=null,new Error("BIP39 Wordlist for en (English) FAILED")}var kvr=function(r){Cvr(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return Bpt(this),Nie[t]},e.prototype.getWordIndex=function(t){return Bpt(this),Nie.indexOf(t)},e}(aSe.Wordlist),Dpt=new kvr;L_.langCz=Dpt;aSe.Wordlist.register(Dpt)});var Lpt=E(q_=>{"use strict";f();d();var Svr=q_&&q_.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(q_,"__esModule",{value:!0});q_.langEn=void 0;var iSe=c1(),Pvr="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",Oie=null;function Opt(r){if(Oie==null&&(Oie=Pvr.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),iSe.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw Oie=null,new Error("BIP39 Wordlist for en (English) FAILED")}var Rvr=function(r){Svr(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return Opt(this),Oie[t]},e.prototype.getWordIndex=function(t){return Opt(this),Oie.indexOf(t)},e}(iSe.Wordlist),Fpt=new Rvr;q_.langEn=Fpt;iSe.Wordlist.register(Fpt)});var jpt=E(W_=>{"use strict";f();d();var Mvr=W_&&W_.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(W_,"__esModule",{value:!0});W_.langEs=void 0;var fye=cc(),dye=c1(),Bvr="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",Wpt={},Fie=null;function Upt(r){return dye.logger.checkNormalize(),(0,fye.toUtf8String)(Array.prototype.filter.call((0,fye.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function Dvr(r){var e=[];return Array.prototype.forEach.call((0,fye.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,fye.toUtf8String)(e)}function qpt(r){if(Fie==null&&(Fie=Bvr.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return Dvr(e)}),Fie.forEach(function(e,t){Wpt[Upt(e)]=t}),dye.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw Fie=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var Nvr=function(r){Mvr(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return qpt(this),Fie[t]},e.prototype.getWordIndex=function(t){return qpt(this),Wpt[Upt(t)]},e}(dye.Wordlist),Hpt=new Nvr;W_.langEs=Hpt;dye.Wordlist.register(Hpt)});var $pt=E(U_=>{"use strict";f();d();var Ovr=U_&&U_.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(U_,"__esModule",{value:!0});U_.langFr=void 0;var pye=cc(),hye=c1(),Fvr="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",Lie=null,Kpt={};function Gpt(r){return hye.logger.checkNormalize(),(0,pye.toUtf8String)(Array.prototype.filter.call((0,pye.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function Lvr(r){var e=[];return Array.prototype.forEach.call((0,pye.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,pye.toUtf8String)(e)}function zpt(r){if(Lie==null&&(Lie=Fvr.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return Lvr(e)}),Lie.forEach(function(e,t){Kpt[Gpt(e)]=t}),hye.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw Lie=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var qvr=function(r){Ovr(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return zpt(this),Lie[t]},e.prototype.getWordIndex=function(t){return zpt(this),Kpt[Gpt(t)]},e}(hye.Wordlist),Vpt=new qvr;U_.langFr=Vpt;hye.Wordlist.register(Vpt)});var Zpt=E(H_=>{"use strict";f();d();var Wvr=H_&&H_.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(H_,"__esModule",{value:!0});H_.langJa=void 0;var Uvr=Qr(),lp=cc(),mye=c1(),Hvr=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],jvr="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",$f=null;function Ypt(r){return(0,Uvr.hexlify)((0,lp.toUtf8Bytes)(r))}var zvr="0xe3818de38284e3818f",Kvr="0xe3818de38283e3818f";function Qpt(r){if($f!==null)return;$f=[];var e={};e[(0,lp.toUtf8String)([227,130,154])]=!1,e[(0,lp.toUtf8String)([227,130,153])]=!1,e[(0,lp.toUtf8String)([227,130,133])]=(0,lp.toUtf8String)([227,130,134]),e[(0,lp.toUtf8String)([227,129,163])]=(0,lp.toUtf8String)([227,129,164]),e[(0,lp.toUtf8String)([227,130,131])]=(0,lp.toUtf8String)([227,130,132]),e[(0,lp.toUtf8String)([227,130,135])]=(0,lp.toUtf8String)([227,130,136]);function t(p){for(var h="",m=0;mh?1:0}for(var a=3;a<=9;a++)for(var i=Hvr[a-3],s=0;s{"use strict";f();d();var Vvr=j_&&j_.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(j_,"__esModule",{value:!0});j_.langKo=void 0;var $vr=cc(),sSe=c1(),Yvr=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],Qvr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function Jvr(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,$vr.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var Nv=null;function Xpt(r){if(Nv==null&&(Nv=[],Yvr.forEach(function(e,t){t+=4;for(var n=0;n{"use strict";f();d();var Xvr=z_&&z_.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(z_,"__esModule",{value:!0});z_.langIt=void 0;var oSe=c1(),ewr="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",qie=null;function rht(r){if(qie==null&&(qie=ewr.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),oSe.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw qie=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var twr=function(r){Xvr(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return rht(this),qie[t]},e.prototype.getWordIndex=function(t){return rht(this),qie.indexOf(t)},e}(oSe.Wordlist),nht=new twr;z_.langIt=nht;oSe.Wordlist.register(nht)});var cht=E(tg=>{"use strict";f();d();var rwr=tg&&tg.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tg,"__esModule",{value:!0});tg.langZhTw=tg.langZhCn=void 0;var nwr=cc(),Wie=c1(),cSe="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?";function iht(r){if(K_[r.locale]===null){K_[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=swr.indexOf(cSe[t*3]),a=[228+(n>>2),128+uSe.indexOf(cSe[t*3+1]),128+uSe.indexOf(cSe[t*3+2])];if(r.locale==="zh_tw")for(var i=n%4,s=i;s<3;s++)a[s]=uSe.indexOf(awr[e++])+(s==0?228:128);K_[r.locale].push((0,nwr.toUtf8String)(a))}if(Wie.Wordlist.check(r)!==iwr[r.locale])throw K_[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var sht=function(r){rwr(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return iht(this),K_[this.locale][t]},e.prototype.getWordIndex=function(t){return iht(this),K_[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(Wie.Wordlist),lSe=new sht("cn");tg.langZhCn=lSe;Wie.Wordlist.register(lSe);Wie.Wordlist.register(lSe,"zh");var oht=new sht("tw");tg.langZhTw=oht;Wie.Wordlist.register(oht)});var uht=E(yye=>{"use strict";f();d();Object.defineProperty(yye,"__esModule",{value:!0});yye.wordlists=void 0;var owr=Npt(),cwr=Lpt(),uwr=jpt(),lwr=$pt(),fwr=Zpt(),dwr=tht(),pwr=aht(),fSe=cht();yye.wordlists={cz:owr.langCz,en:cwr.langEn,es:uwr.langEs,fr:lwr.langFr,it:pwr.langIt,ja:fwr.langJa,ko:dwr.langKo,zh:fSe.langZhCn,zh_cn:fSe.langZhCn,zh_tw:fSe.langZhTw}});var dSe=E(rg=>{"use strict";f();d();Object.defineProperty(rg,"__esModule",{value:!0});rg.wordlists=rg.Wordlist=rg.logger=void 0;var lht=c1();Object.defineProperty(rg,"logger",{enumerable:!0,get:function(){return lht.logger}});Object.defineProperty(rg,"Wordlist",{enumerable:!0,get:function(){return lht.Wordlist}});var hwr=uht();Object.defineProperty(rg,"wordlists",{enumerable:!0,get:function(){return hwr.wordlists}})});var fht=E(bye=>{"use strict";f();d();Object.defineProperty(bye,"__esModule",{value:!0});bye.version=void 0;bye.version="hdnode/5.7.0"});var vye=E(Du=>{"use strict";f();d();Object.defineProperty(Du,"__esModule",{value:!0});Du.getAccountPath=Du.isValidMnemonic=Du.entropyToMnemonic=Du.mnemonicToEntropy=Du.mnemonicToSeed=Du.HDNode=Du.defaultPath=void 0;var mht=aye(),zi=Qr(),yht=Yi(),Uie=cc(),mwr=uye(),Bu=ca(),dht=Aie(),u1=Bv(),ywr=ab(),pht=dSe(),bwr=gr(),gwr=fht(),Hie=new bwr.Logger(gwr.version),vwr=yht.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),wwr=(0,Uie.toUtf8Bytes)("Bitcoin seed"),V_=2147483648;function bht(r){return(1<=256)throw new Error("Depth too large!");return hht((0,zi.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,zi.hexlify)(this.depth),this.parentFingerprint,(0,zi.hexZeroPad)((0,zi.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,zi.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(G_,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~V_));var n=new Uint8Array(37);if(e&V_){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,zi.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,zi.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=e>>24-a&255;var i=(0,zi.arrayify)((0,u1.computeHmac)(u1.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32),c=null,u=null;if(this.privateKey)c=gye(yht.BigNumber.from(s).add(this.privateKey).mod(vwr));else{var l=new dht.SigningKey((0,zi.hexlify)(s));u=l._addPoint(this.publicKey)}var p=t,h=this.mnemonic;return h&&(p=Object.freeze({phrase:h.phrase,path:t,locale:h.locale||"en"})),new r(G_,c,u,this.fingerprint,gye(o),e,this.depth+1,p)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,a=0;a=V_)throw new Error("invalid path index - "+i);n=n._derive(V_+s)}else if(i.match(/^[0-9]+$/)){var s=parseInt(i);if(s>=V_)throw new Error("invalid path index - "+i);n=n._derive(s)}else throw new Error("invalid path component - "+i)}return n},r._fromSeed=function(e,t){var n=(0,zi.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=(0,zi.arrayify)((0,u1.computeHmac)(u1.SupportedAlgorithm.sha512,wwr,n));return new r(G_,gye(a.slice(0,32)),null,"0x00000000",gye(a.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=pSe(n),e=vht(hSe(e,n),n),r._fromSeed(ght(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=mht.Base58.decode(e);(t.length!==82||hht(t.slice(0,78))!==e)&&Hie.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],a=(0,zi.hexlify)(t.slice(5,9)),i=parseInt((0,zi.hexlify)(t.slice(9,13)).substring(2),16),s=(0,zi.hexlify)(t.slice(13,45)),o=t.slice(45,78);switch((0,zi.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(G_,null,(0,zi.hexlify)(o),a,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new r(G_,(0,zi.hexlify)(o.slice(1)),null,a,s,i,n,null)}return Hie.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();Du.HDNode=_wr;function ght(r,e){e||(e="");var t=(0,Uie.toUtf8Bytes)("mnemonic"+e,Uie.UnicodeNormalizationForm.NFKD);return(0,mwr.pbkdf2)((0,Uie.toUtf8Bytes)(r,Uie.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}Du.mnemonicToSeed=ght;function hSe(r,e){e=pSe(e),Hie.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,zi.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var c=32*t.length/3,u=t.length/3,l=bht(u),p=(0,zi.arrayify)((0,u1.sha256)(n.slice(0,c/8)))[0]&l;if(p!==(n[n.length-1]&l))throw new Error("invalid checksum");return(0,zi.hexlify)(n.slice(0,c/8))}Du.mnemonicToEntropy=hSe;function vht(r,e){if(e=pSe(e),r=(0,zi.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,a=0;a8?(t[t.length-1]<<=8,t[t.length-1]|=r[a],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[a]>>8-n,t.push(r[a]&xwr(8-n)),n+=3);var i=r.length/4,s=(0,zi.arrayify)((0,u1.sha256)(r))[0]&bht(i);return t[t.length-1]<<=i,t[t.length-1]|=s>>8-i,e.join(t.map(function(o){return e.getWord(o)}))}Du.entropyToMnemonic=vht;function Twr(r,e){try{return hSe(r,e),!0}catch{}return!1}Du.isValidMnemonic=Twr;function Ewr(r){return(typeof r!="number"||r<0||r>=V_||r%1)&&Hie.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}Du.getAccountPath=Ewr});var wht=E(wye=>{"use strict";f();d();Object.defineProperty(wye,"__esModule",{value:!0});wye.version=void 0;wye.version="random/5.7.0"});var Tht=E(_ye=>{"use strict";f();d();Object.defineProperty(_ye,"__esModule",{value:!0});_ye.randomBytes=void 0;var Iwr=Qr(),_ht=gr(),Cwr=wht(),mSe=new _ht.Logger(Cwr.version);function Awr(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var xht=Awr(),xye=xht.crypto||xht.msCrypto;(!xye||!xye.getRandomValues)&&(mSe.warn("WARNING: Missing strong random number source"),xye={getRandomValues:function(r){return mSe.throwError("no secure random source avaialble",_ht.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function kwr(r){(r<=0||r>1024||r%1||r!=r)&&mSe.throwArgumentError("invalid length","length",r);var e=new Uint8Array(r);return xye.getRandomValues(e),(0,Iwr.arrayify)(e)}_ye.randomBytes=kwr});var Eht=E(Tye=>{"use strict";f();d();Object.defineProperty(Tye,"__esModule",{value:!0});Tye.shuffled=void 0;function Swr(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}Tye.shuffled=Swr});var jie=E($_=>{"use strict";f();d();Object.defineProperty($_,"__esModule",{value:!0});$_.shuffled=$_.randomBytes=void 0;var Pwr=Tht();Object.defineProperty($_,"randomBytes",{enumerable:!0,get:function(){return Pwr.randomBytes}});var Rwr=Eht();Object.defineProperty($_,"shuffled",{enumerable:!0,get:function(){return Rwr.shuffled}})});var bSe=E((ySe,Iht)=>{"use strict";f();d();(function(r){function e(x){return parseInt(x)===x}function t(x){if(!e(x.length))return!1;for(var N=0;N255)return!1;return!0}function n(x,N){if(x.buffer&&ArrayBuffer.isView(x)&&x.name==="Uint8Array")return N&&(x.slice?x=x.slice():x=Array.prototype.slice.call(x)),x;if(Array.isArray(x)){if(!t(x))throw new Error("Array contains invalid value: "+x);return new Uint8Array(x)}if(e(x.length)&&t(x))return new Uint8Array(x);throw new Error("unsupported array-like object")}function a(x){return new Uint8Array(x)}function i(x,N,U,M,V){(M!=null||V!=null)&&(x.slice?x=x.slice(M,V):x=Array.prototype.slice.call(x,M,V)),N.set(x,U)}var s=function(){function x(U){var M=[],V=0;for(U=encodeURI(U);V191&&ee<224?(M.push(String.fromCharCode((ee&31)<<6|U[V+1]&63)),V+=2):(M.push(String.fromCharCode((ee&15)<<12|(U[V+1]&63)<<6|U[V+2]&63)),V+=3)}return M.join("")}return{toBytes:x,fromBytes:N}}(),o=function(){function x(M){for(var V=[],ee=0;ee>4]+N[$&15])}return V.join("")}return{toBytes:x,fromBytes:U}}(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],C=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],P=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],A=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],B=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],F=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],W=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],K=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],z=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],G=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function j(x){for(var N=[],U=0;U>2,this._Ke[ee][N%4]=V[N],this._Kd[x-ee][N%4]=V[N];for(var $=0,X=M,se;X>16&255]<<24^l[se>>8&255]<<16^l[se&255]<<8^l[se>>24&255]^u[$]<<24,$+=1,M!=8)for(var N=1;N>8&255]<<8^l[se>>16&255]<<16^l[se>>24&255]<<24;for(var N=M/2+1;N>2,ye=X%4,this._Ke[ue][ye]=V[N],this._Kd[x-ue][ye]=V[N++],X++}for(var ue=1;ue>24&255]^K[se>>16&255]^z[se>>8&255]^G[se&255]},H.prototype.encrypt=function(x){if(x.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var N=this._Ke.length-1,U=[0,0,0,0],M=j(x),V=0;V<4;V++)M[V]^=this._Ke[0][V];for(var ee=1;ee>24&255]^m[M[(V+1)%4]>>16&255]^y[M[(V+2)%4]>>8&255]^C[M[(V+3)%4]&255]^this._Ke[ee][V];M=U.slice()}for(var $=a(16),X,V=0;V<4;V++)X=this._Ke[N][V],$[4*V]=(l[M[V]>>24&255]^X>>24)&255,$[4*V+1]=(l[M[(V+1)%4]>>16&255]^X>>16)&255,$[4*V+2]=(l[M[(V+2)%4]>>8&255]^X>>8)&255,$[4*V+3]=(l[M[(V+3)%4]&255]^X)&255;return $},H.prototype.decrypt=function(x){if(x.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var N=this._Kd.length-1,U=[0,0,0,0],M=j(x),V=0;V<4;V++)M[V]^=this._Kd[0][V];for(var ee=1;ee>24&255]^A[M[(V+3)%4]>>16&255]^B[M[(V+2)%4]>>8&255]^F[M[(V+1)%4]&255]^this._Kd[ee][V];M=U.slice()}for(var $=a(16),X,V=0;V<4;V++)X=this._Kd[N][V],$[4*V]=(p[M[V]>>24&255]^X>>24)&255,$[4*V+1]=(p[M[(V+3)%4]>>16&255]^X>>16)&255,$[4*V+2]=(p[M[(V+2)%4]>>8&255]^X>>8)&255,$[4*V+3]=(p[M[(V+1)%4]&255]^X)&255;return $};var I=function(x){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new H(x)};I.prototype.encrypt=function(x){if(x=n(x),x.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(x.length),U=a(16),M=0;M=0;--N)this._counter[N]=x%256,x=x>>8},w.prototype.setBytes=function(x){if(x=n(x,!0),x.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=x},w.prototype.increment=function(){for(var x=15;x>=0;x--)if(this._counter[x]===255)this._counter[x]=0;else{this._counter[x]++;break}};var R=function(x,N){if(!(this instanceof R))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",N instanceof w||(N=new w(N)),this._counter=N,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new H(x)};R.prototype.encrypt=function(x){for(var N=n(x,!0),U=0;U16)throw new Error("PKCS#7 padding byte out of range");for(var U=x.length-N,M=0;M{"use strict";f();d();Object.defineProperty(Eye,"__esModule",{value:!0});Eye.version=void 0;Eye.version="json-wallets/5.7.0"});var vSe=E(fp=>{"use strict";f();d();Object.defineProperty(fp,"__esModule",{value:!0});fp.uuidV4=fp.searchPath=fp.getPassword=fp.zpad=fp.looseArrayify=void 0;var Iye=Qr(),Cht=cc();function Mwr(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,Iye.arrayify)(r)}fp.looseArrayify=Mwr;function Bwr(r,e){for(r=String(r);r.length{"use strict";f();d();var Fwr=l1&&l1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lwr=l1&&l1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(l1,"__esModule",{value:!0});l1.decrypt=l1.CrowdsaleAccount=void 0;var Aht=Lwr(bSe()),qwr=Hf(),kht=Qr(),Wwr=Uf(),Uwr=uye(),Hwr=cc(),jwr=ca(),zwr=gr(),Kwr=gSe(),Gwr=new zwr.Logger(Kwr.version),Cye=vSe(),Sht=function(r){Fwr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(jwr.Description);l1.CrowdsaleAccount=Sht;function Vwr(r,e){var t=JSON.parse(r);e=(0,Cye.getPassword)(e);var n=(0,qwr.getAddress)((0,Cye.searchPath)(t,"ethaddr")),a=(0,Cye.looseArrayify)((0,Cye.searchPath)(t,"encseed"));(!a||a.length%16!==0)&&Gwr.throwArgumentError("invalid encseed","json",r);for(var i=(0,kht.arrayify)((0,Uwr.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),s=a.slice(0,16),o=a.slice(16),c=new Aht.default.ModeOfOperation.cbc(i,s),u=Aht.default.padding.pkcs7.strip((0,kht.arrayify)(c.decrypt(o))),l="",p=0;p{"use strict";f();d();Object.defineProperty(ng,"__esModule",{value:!0});ng.getJsonWalletAddress=ng.isKeystoreWallet=ng.isCrowdsaleWallet=void 0;var Rht=Hf();function Mht(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}ng.isCrowdsaleWallet=Mht;function Bht(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}ng.isKeystoreWallet=Bht;function $wr(r){if(Mht(r))try{return(0,Rht.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(Bht(r))try{return(0,Rht.getAddress)(JSON.parse(r).address)}catch{return null}return null}ng.getJsonWalletAddress=$wr});var Oht=E((wSe,Nht)=>{"use strict";f();d();(function(r){function t(m){let y=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),C=1779033703,P=3144134277,A=1013904242,B=2773480762,F=1359893119,W=2600822924,K=528734635,z=1541459225,G=new Uint32Array(64);function j(R){let O=0,D=R.length;for(;D>=64;){let T=C,x=P,N=A,U=B,M=F,V=W,ee=K,$=z,X,se,ue,ye,Ie;for(se=0;se<16;se++)ue=O+se*4,G[se]=(R[ue]&255)<<24|(R[ue+1]&255)<<16|(R[ue+2]&255)<<8|R[ue+3]&255;for(se=16;se<64;se++)X=G[se-2],ye=(X>>>17|X<<32-17)^(X>>>19|X<<32-19)^X>>>10,X=G[se-15],Ie=(X>>>7|X<<32-7)^(X>>>18|X<<32-18)^X>>>3,G[se]=(ye+G[se-7]|0)+(Ie+G[se-16]|0)|0;for(se=0;se<64;se++)ye=(((M>>>6|M<<32-6)^(M>>>11|M<<32-11)^(M>>>25|M<<32-25))+(M&V^~M&ee)|0)+($+(y[se]+G[se]|0)|0)|0,Ie=((T>>>2|T<<32-2)^(T>>>13|T<<32-13)^(T>>>22|T<<32-22))+(T&x^T&N^x&N)|0,$=ee,ee=V,V=M,M=U+ye|0,U=N,N=x,x=T,T=ye+Ie|0;C=C+T|0,P=P+x|0,A=A+N|0,B=B+U|0,F=F+M|0,W=W+V|0,K=K+ee|0,z=z+$|0,O+=64,D-=64}}j(m);let H,I=m.length%64,b=m.length/536870912|0,k=m.length<<3,S=I<56?56:120,w=m.slice(m.length-I,m.length);for(w.push(128),H=I+1;H>>24&255),w.push(b>>>16&255),w.push(b>>>8&255),w.push(b>>>0&255),w.push(k>>>24&255),w.push(k>>>16&255),w.push(k>>>8&255),w.push(k>>>0&255),j(w),[C>>>24&255,C>>>16&255,C>>>8&255,C>>>0&255,P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,B>>>24&255,B>>>16&255,B>>>8&255,B>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255,z>>>24&255,z>>>16&255,z>>>8&255,z>>>0&255]}function n(m,y,C){m=m.length<=64?m:t(m);let P=64+y.length+4,A=new Array(P),B=new Array(64),F,W=[];for(F=0;F<64;F++)A[F]=54;for(F=0;F=P-4;z--){if(A[z]++,A[z]<=255)return;A[z]=0}}for(;C>=32;)K(),W=W.concat(t(B.concat(t(A)))),C-=32;return C>0&&(K(),W=W.concat(t(B.concat(t(A))).slice(0,C))),W}function a(m,y,C,P,A){let B;for(c(m,(2*C-1)*16,A,0,16),B=0;B<2*C;B++)o(m,B*16,A,16),s(A,P),c(A,0,m,y+B*16,16);for(B=0;B>>32-y}function s(m,y){c(m,0,y,0,16);for(let C=8;C>0;C-=2)y[4]^=i(y[0]+y[12],7),y[8]^=i(y[4]+y[0],9),y[12]^=i(y[8]+y[4],13),y[0]^=i(y[12]+y[8],18),y[9]^=i(y[5]+y[1],7),y[13]^=i(y[9]+y[5],9),y[1]^=i(y[13]+y[9],13),y[5]^=i(y[1]+y[13],18),y[14]^=i(y[10]+y[6],7),y[2]^=i(y[14]+y[10],9),y[6]^=i(y[2]+y[14],13),y[10]^=i(y[6]+y[2],18),y[3]^=i(y[15]+y[11],7),y[7]^=i(y[3]+y[15],9),y[11]^=i(y[7]+y[3],13),y[15]^=i(y[11]+y[7],18),y[1]^=i(y[0]+y[3],7),y[2]^=i(y[1]+y[0],9),y[3]^=i(y[2]+y[1],13),y[0]^=i(y[3]+y[2],18),y[6]^=i(y[5]+y[4],7),y[7]^=i(y[6]+y[5],9),y[4]^=i(y[7]+y[6],13),y[5]^=i(y[4]+y[7],18),y[11]^=i(y[10]+y[9],7),y[8]^=i(y[11]+y[10],9),y[9]^=i(y[8]+y[11],13),y[10]^=i(y[9]+y[8],18),y[12]^=i(y[15]+y[14],7),y[13]^=i(y[12]+y[15],9),y[14]^=i(y[13]+y[12],13),y[15]^=i(y[14]+y[13],18);for(let C=0;C<16;++C)m[C]+=y[C]}function o(m,y,C,P){for(let A=0;A=256)return!1}return!0}function l(m,y){if(typeof m!="number"||m%1)throw new Error("invalid "+y);return m}function p(m,y,C,P,A,B,F){if(C=l(C,"N"),P=l(P,"r"),A=l(A,"p"),B=l(B,"dkLen"),C===0||(C&C-1)!==0)throw new Error("N must be power of 2");if(C>2147483647/128/P)throw new Error("N too large");if(P>2147483647/128/A)throw new Error("r too large");if(!u(m))throw new Error("password must be an array or buffer");if(m=Array.prototype.slice.call(m),!u(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);let W=n(m,y,A*128*P),K=new Uint32Array(A*32*P);for(let M=0;Mx&&(M=x);for(let ee=0;eex&&(M=x);for(let ee=0;ee>0&255),W.push(K[ee]>>8&255),W.push(K[ee]>>16&255),W.push(K[ee]>>24&255);let V=n(m,W,B);return F&&F(null,1,V),V}F&&N(U)};if(!F)for(;;){let M=U();if(M!=null)return M}U()}let h={scrypt:function(m,y,C,P,A,B,F){return new Promise(function(W,K){let z=0;F&&F(0),p(m,y,C,P,A,B,function(G,j,H){if(G)K(G);else if(H)F&&z!==1&&F(1),W(new Uint8Array(H));else if(F&&j!==z)return z=j,F(j)})})},syncScrypt:function(m,y,C,P,A,B){return new Uint8Array(p(m,y,C,P,A,B))}};typeof wSe<"u"?Nht.exports=h:typeof define=="function"&&define.amd?define(h):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=h)})(wSe)});var Ght=E(d0=>{"use strict";f();d();var Ywr=d0&&d0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Qwr=d0&&d0.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Jwr=d0&&d0.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();Object.defineProperty(dc,"__esModule",{value:!0});dc.decryptJsonWalletSync=dc.decryptJsonWallet=dc.getJsonWalletAddress=dc.isKeystoreWallet=dc.isCrowdsaleWallet=dc.encryptKeystore=dc.decryptKeystoreSync=dc.decryptKeystore=dc.decryptCrowdsale=void 0;var ESe=Pht();Object.defineProperty(dc,"decryptCrowdsale",{enumerable:!0,get:function(){return ESe.decrypt}});var Fv=Dht();Object.defineProperty(dc,"getJsonWalletAddress",{enumerable:!0,get:function(){return Fv.getJsonWalletAddress}});Object.defineProperty(dc,"isCrowdsaleWallet",{enumerable:!0,get:function(){return Fv.isCrowdsaleWallet}});Object.defineProperty(dc,"isKeystoreWallet",{enumerable:!0,get:function(){return Fv.isKeystoreWallet}});var zie=Ght();Object.defineProperty(dc,"decryptKeystore",{enumerable:!0,get:function(){return zie.decrypt}});Object.defineProperty(dc,"decryptKeystoreSync",{enumerable:!0,get:function(){return zie.decryptSync}});Object.defineProperty(dc,"encryptKeystore",{enumerable:!0,get:function(){return zie.encrypt}});function s3r(r,e,t){if((0,Fv.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,ESe.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,Fv.isKeystoreWallet)(r)?(0,zie.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}dc.decryptJsonWallet=s3r;function o3r(r,e){if((0,Fv.isCrowdsaleWallet)(r))return(0,ESe.decrypt)(r,e);if((0,Fv.isKeystoreWallet)(r))return(0,zie.decryptSync)(r,e);throw new Error("invalid JSON wallet")}dc.decryptJsonWalletSync=o3r});var Vht=E(kye=>{"use strict";f();d();Object.defineProperty(kye,"__esModule",{value:!0});kye.version=void 0;kye.version="wallet/5.7.0"});var kSe=E(Ql=>{"use strict";f();d();var c3r=Ql&&Ql.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),$ht=Ql&&Ql.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Yht=Ql&&Ql.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();Object.defineProperty(Sye,"__esModule",{value:!0});Sye.version=void 0;Sye.version="networks/5.7.1"});var SSe=E(Mye=>{"use strict";f();d();Object.defineProperty(Mye,"__esModule",{value:!0});Mye.getNetwork=void 0;var g3r=gr(),v3r=Xht(),emt=new g3r.Logger(v3r.version);function w3r(r){return r&&typeof r.renetwork=="function"}function ib(r){var e=function(t,n){n==null&&(n={});var a=[];if(t.InfuraProvider&&n.infura!=="-")try{a.push(new t.InfuraProvider(r,n.infura))}catch{}if(t.EtherscanProvider&&n.etherscan!=="-")try{a.push(new t.EtherscanProvider(r,n.etherscan))}catch{}if(t.AlchemyProvider&&n.alchemy!=="-")try{a.push(new t.AlchemyProvider(r,n.alchemy))}catch{}if(t.PocketProvider&&n.pocket!=="-"){var i=["goerli","ropsten","rinkeby","sepolia"];try{var s=new t.PocketProvider(r,n.pocket);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(t.CloudflareProvider&&n.cloudflare!=="-")try{a.push(new t.CloudflareProvider(r))}catch{}if(t.AnkrProvider&&n.ankr!=="-")try{var i=["ropsten"],s=new t.AnkrProvider(r,n.ankr);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(t.FallbackProvider){var o=1;return n.quorum!=null?o=n.quorum:r==="homestead"&&(o=2),new t.FallbackProvider(a,o)}return a[0]};return e.renetwork=function(t){return ib(t)},e}function Rye(r,e){var t=function(n,a){return n.JsonRpcProvider?new n.JsonRpcProvider(r,e):null};return t.renetwork=function(n){return Rye(r,n)},t}var tmt={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ib("homestead")},rmt={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ib("ropsten")},nmt={chainId:63,name:"classicMordor",_defaultProvider:Rye("https://www.ethercluster.com/mordor","classicMordor")},Pye={unspecified:{chainId:0,name:"unspecified"},homestead:tmt,mainnet:tmt,morden:{chainId:2,name:"morden"},ropsten:rmt,testnet:rmt,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ib("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ib("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ib("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ib("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Rye("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:nmt,classicTestnet:nmt,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Rye("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ib("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ib("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function x3r(r){if(r==null)return null;if(typeof r=="number"){for(var e in Pye){var t=Pye[e];if(t.chainId===r)return{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress||null,_defaultProvider:t._defaultProvider||null}}return{chainId:r,name:"unknown"}}if(typeof r=="string"){var n=Pye[r];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var a=Pye[r.name];if(!a)return typeof r.chainId!="number"&&emt.throwArgumentError("invalid network chainId","network",r),r;r.chainId!==0&&r.chainId!==a.chainId&&emt.throwArgumentError("network chainId mismatch","network",r);var i=r._defaultProvider||null;return i==null&&a._defaultProvider&&(w3r(a._defaultProvider)?i=a._defaultProvider.renetwork(r):i=a._defaultProvider),{name:r.name,chainId:a.chainId,ensAddress:r.ensAddress||a.ensAddress||null,_defaultProvider:i}}Mye.getNetwork=x3r});var amt=E(Bye=>{"use strict";f();d();Object.defineProperty(Bye,"__esModule",{value:!0});Bye.version=void 0;Bye.version="web/5.7.1"});var imt=E(ig=>{"use strict";f();d();var _3r=ig&&ig.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},T3r=ig&&ig.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();var C3r=dp&&dp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},A3r=dp&&dp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var a=typeof r=="object"?r.throttleCallback:null,i=typeof r=="object"&&typeof r.throttleSlotInterval=="number"?r.throttleSlotInterval:100;Ch.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var s=typeof r=="object"?!!r.errorPassThrough:!1,o={},c=null,u={method:"GET"},l=!1,p=2*60*1e3;if(typeof r=="string")c=r;else if(typeof r=="object"){if((r==null||r.url==null)&&Ch.throwArgumentError("missing URL","connection.url",r),c=r.url,typeof r.timeout=="number"&&r.timeout>0&&(p=r.timeout),r.headers)for(var h in r.headers)o[h.toLowerCase()]={key:h,value:String(r.headers[h])},["if-none-match","if-modified-since"].indexOf(h.toLowerCase())>=0&&(l=!0);if(u.allowGzip=!!r.allowGzip,r.user!=null&&r.password!=null){c.substring(0,6)!=="https:"&&r.allowInsecureAuthentication!==!0&&Ch.throwError("basic authentication requires a secure https url",sb.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:r.user,password:"[REDACTED]"});var m=r.user+":"+r.password;o.authorization={key:"Authorization",value:"Basic "+(0,smt.encode)((0,Vie.toUtf8Bytes)(m))}}r.skipFetchSetup!=null&&(u.skipFetchSetup=!!r.skipFetchSetup),r.fetchOptions!=null&&(u.fetchOptions=(0,Dye.shallowCopy)(r.fetchOptions))}var y=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),C=c?c.match(y):null;if(C)try{var P={statusCode:200,statusMessage:"OK",headers:{"content-type":C[1]||"text/plain"},body:C[2]?(0,smt.decode)(C[3]):P3r(C[3])},A=P.body;return t&&(A=t(P.body,P)),Promise.resolve(A)}catch(K){Ch.throwError("processing response error",sb.Logger.errors.SERVER_ERROR,{body:sg(C[1],C[2]),error:K,requestBody:null,requestMethod:"GET",url:c})}e&&(u.method="POST",u.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));var B={};Object.keys(o).forEach(function(K){var z=o[K];B[z.key]=z.value}),u.headers=B;var F=function(){var K=null,z=new Promise(function(j,H){p&&(K=setTimeout(function(){K!=null&&(K=null,H(Ch.makeError("timeout",sb.Logger.errors.TIMEOUT,{requestBody:sg(u.body,B["content-type"]),requestMethod:u.method,timeout:p,url:c})))},p))}),G=function(){K!=null&&(clearTimeout(K),K=null)};return{promise:z,cancel:G}}(),W=function(){return C3r(this,void 0,void 0,function(){var K,z,G,w,j,H,I,b,k,S,w,R;return A3r(this,function(O){switch(O.label){case 0:K=0,O.label=1;case 1:if(!(K=300)&&(F.cancel(),Ch.throwError("bad response",sb.Logger.errors.SERVER_ERROR,{status:z.statusCode,headers:z.headers,body:sg(b,z.headers?z.headers["content-type"]:null),requestBody:sg(u.body,B["content-type"]),requestMethod:u.method,url:c})),!t)return[3,18];O.label=11;case 11:return O.trys.push([11,13,,18]),[4,t(b,z)];case 12:return k=O.sent(),F.cancel(),[2,k];case 13:return S=O.sent(),S.throttleRetry&&Ko){s()&&n(new Error("retry limit reached"));return}var p=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));pe.ceiling&&(p=e.ceiling),setTimeout(u,p)}return null},function(l){s()&&n(l)})}u()})}dp.poll=M3r});var pmt=E((nEa,dmt)=>{"use strict";f();d();var Oye="qpzry9x8gf2tvdw0s3jn54khce6mua7l",PSe={};for($ie=0;$ie>25;return(r&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function lmt(r){for(var e=1,t=0;t126)return"Invalid prefix ("+r+")";e=J_(e)^n>>5}for(e=J_(e),t=0;tt)throw new TypeError("Exceeds length limit");r=r.toLowerCase();var n=lmt(r);if(typeof n=="string")throw new Error(n);for(var a=r+"1",i=0;i>5!==0)throw new Error("Non 5-bit word");n=J_(n)^s,a+=Oye.charAt(s)}for(i=0;i<6;++i)n=J_(n);for(n^=1,i=0;i<6;++i){var o=n>>(5-i)*5&31;a+=Oye.charAt(o)}return a}function fmt(r,e){if(e=e||90,r.length<8)return r+" too short";if(r.length>e)return"Exceeds length limit";var t=r.toLowerCase(),n=r.toUpperCase();if(r!==t&&r!==n)return"Mixed-case string "+r;r=t;var a=r.lastIndexOf("1");if(a===-1)return"No separator character for "+r;if(a===0)return"Missing prefix for "+r;var i=r.slice(0,a),s=r.slice(a+1);if(s.length<6)return"Data too short";var o=lmt(i);if(typeof o=="string")return o;for(var c=[],u=0;u=s.length)&&c.push(p)}return o!==1?"Invalid checksum for "+r:{prefix:i,words:c}}function D3r(){var r=fmt.apply(null,arguments);if(typeof r=="object")return r}function N3r(r){var e=fmt.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function Fye(r,e,t,n){for(var a=0,i=0,s=(1<=t;)i-=t,o.push(a>>i&s);if(n)i>0&&o.push(a<=e)return"Excess padding";if(a<{"use strict";f();d();Object.defineProperty(Lye,"__esModule",{value:!0});Lye.version=void 0;Lye.version="providers/5.7.2"});var og=E(p1=>{"use strict";f();d();Object.defineProperty(p1,"__esModule",{value:!0});p1.showThrottleMessage=p1.isCommunityResource=p1.isCommunityResourcable=p1.Formatter=void 0;var RSe=Hf(),ob=Yi(),d1=Qr(),W3r=K5(),U3r=ca(),hmt=ab(),H3r=gr(),j3r=Q0(),Yie=new H3r.Logger(j3r.version),z3r=function(){function r(){this.formats=this.getDefaultFormats()}return r.prototype.getDefaultFormats=function(){var e=this,t={},n=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),o=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),l=this.type.bind(this),p=function(h){return e.data(h,!0)};return t.transaction={hash:o,type:l,accessList:r.allowNull(this.accessList.bind(this),null),blockHash:r.allowNull(o,null),blockNumber:r.allowNull(u,null),transactionIndex:r.allowNull(u,null),confirmations:r.allowNull(u,null),from:n,gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),gasLimit:a,to:r.allowNull(n,null),value:a,nonce:u,data:s,r:r.allowNull(this.uint256),s:r.allowNull(this.uint256),v:r.allowNull(u),creates:r.allowNull(n,null),raw:r.allowNull(s)},t.transactionRequest={from:r.allowNull(n),nonce:r.allowNull(u),gasLimit:r.allowNull(a),gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),to:r.allowNull(n),value:r.allowNull(a),data:r.allowNull(p),type:r.allowNull(u),accessList:r.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:o,address:n,topics:r.arrayOf(o),data:s,logIndex:u,blockHash:o},t.receipt={to:r.allowNull(this.address,null),from:r.allowNull(this.address,null),contractAddress:r.allowNull(n,null),transactionIndex:u,root:r.allowNull(c),gasUsed:a,logsBloom:r.allowNull(s),blockHash:o,transactionHash:o,logs:r.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:r.allowNull(u,null),cumulativeGasUsed:a,effectiveGasPrice:r.allowNull(a),status:r.allowNull(u),type:l},t.block={hash:r.allowNull(o),parentHash:o,number:u,timestamp:u,nonce:r.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:r.allowNull(n),extraData:s,transactions:r.allowNull(r.arrayOf(o)),baseFeePerGas:r.allowNull(a)},t.blockWithTransactions=(0,U3r.shallowCopy)(t.block),t.blockWithTransactions.transactions=r.allowNull(r.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:r.allowNull(i,void 0),toBlock:r.allowNull(i,void 0),blockHash:r.allowNull(o,void 0),address:r.allowNull(n,void 0),topics:r.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:r.allowNull(u),blockHash:r.allowNull(o),transactionIndex:u,removed:r.allowNull(this.boolean.bind(this)),address:n,data:r.allowFalsish(s,"0x"),topics:r.arrayOf(o),transactionHash:o,logIndex:u},t},r.prototype.accessList=function(e){return(0,hmt.accessListify)(e||[])},r.prototype.number=function(e){return e==="0x"?0:ob.BigNumber.from(e).toNumber()},r.prototype.type=function(e){return e==="0x"||e==null?0:ob.BigNumber.from(e).toNumber()},r.prototype.bigNumber=function(e){return ob.BigNumber.from(e)},r.prototype.boolean=function(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)},r.prototype.hex=function(e,t){return typeof e=="string"&&(!t&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,d1.isHexString)(e))?e.toLowerCase():Yie.throwArgumentError("invalid hash","value",e)},r.prototype.data=function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n},r.prototype.address=function(e){return(0,RSe.getAddress)(e)},r.prototype.callAddress=function(e){if(!(0,d1.isHexString)(e,32))return null;var t=(0,RSe.getAddress)((0,d1.hexDataSlice)(e,12));return t===W3r.AddressZero?null:t},r.prototype.contractAddress=function(e){return(0,RSe.getContractAddress)(e)},r.prototype.blockTag=function(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,d1.isHexString)(e))return(0,d1.hexValue)(e);throw new Error("invalid blockTag")},r.prototype.hash=function(e,t){var n=this.hex(e,t);return(0,d1.hexDataLength)(n)!==32?Yie.throwArgumentError("invalid hash","value",e):n},r.prototype.difficulty=function(e){if(e==null)return null;var t=ob.BigNumber.from(e);try{return t.toNumber()}catch{}return null},r.prototype.uint256=function(e){if(!(0,d1.isHexString)(e))throw new Error("invalid uint256");return(0,d1.hexZeroPad)(e,32)},r.prototype._block=function(e,t){e.author!=null&&e.miner==null&&(e.miner=e.author);var n=e._difficulty!=null?e._difficulty:e.difficulty,a=r.check(t,e);return a._difficulty=n==null?null:ob.BigNumber.from(n),a},r.prototype.block=function(e){return this._block(e,this.formats.block)},r.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},r.prototype.transactionRequest=function(e){return r.check(this.formats.transactionRequest,e)},r.prototype.transactionResponse=function(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&ob.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);var t=r.check(this.formats.transaction,e);if(e.chainId!=null){var n=e.chainId;(0,d1.isHexString)(n)&&(n=ob.BigNumber.from(n).toNumber()),t.chainId=n}else{var n=e.networkId;n==null&&t.v==null&&(n=e.chainId),(0,d1.isHexString)(n)&&(n=ob.BigNumber.from(n).toNumber()),typeof n!="number"&&t.v!=null&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),t.chainId=n}return t.blockHash&&t.blockHash.replace(/0/g,"")==="x"&&(t.blockHash=null),t},r.prototype.transaction=function(e){return(0,hmt.parse)(e)},r.prototype.receiptLog=function(e){return r.check(this.formats.receiptLog,e)},r.prototype.receipt=function(e){var t=r.check(this.formats.receipt,e);if(t.root!=null)if(t.root.length<=4){var n=ob.BigNumber.from(t.root).toNumber();n===0||n===1?(t.status!=null&&t.status!==n&&Yie.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=n,delete t.root):Yie.throwArgumentError("invalid alt-root-status","value.root",t.root)}else t.root.length!==66&&Yie.throwArgumentError("invalid root hash","value.root",t.root);return t.status!=null&&(t.byzantium=!0),t},r.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map(function(n){return t.topics(n)}):e!=null?this.hash(e,!0):null},r.prototype.filter=function(e){return r.check(this.formats.filter,e)},r.prototype.filterLog=function(e){return r.check(this.formats.filterLog,e)},r.check=function(e,t){var n={};for(var a in e)try{var i=e[a](t[a]);i!==void 0&&(n[a]=i)}catch(s){throw s.checkKey=a,s.checkValue=t[a],s}return n},r.allowNull=function(e,t){return function(n){return n==null?t:e(n)}},r.allowFalsish=function(e,t){return function(n){return n?e(n):t}},r.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach(function(a){n.push(e(a))}),n}},r}();p1.Formatter=z3r;function ymt(r){return r&&typeof r.isCommunityResource=="function"}p1.isCommunityResourcable=ymt;function K3r(r){return ymt(r)&&r.isCommunityResource()}p1.isCommunityResource=K3r;var mmt=!1;function G3r(){mmt||(mmt=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}p1.showThrottleMessage=G3r});var Xie=E(Ou=>{"use strict";f();d();var V3r=Ou&&Ou.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lr=Ou&&Ou.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},qr=Ou&&Ou.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&r[r.length-1]==null;)r.pop();return r.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(a){t[wmt(a)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}else return wmt(e)}).join("&")}function e8r(r){return r===""?[]:r.split(/&/g).map(function(e){if(e==="")return[];var t=e.split("|").map(function(n){return n==="null"?null:n});return t.length===1?t[0]:t})}function Z_(r){if(typeof r=="string"){if(r=r.toLowerCase(),(0,Ar.hexDataLength)(r)===32)return"tx:"+r;if(r.indexOf(":")===-1)return r}else{if(Array.isArray(r))return"filter:*:"+xmt(r);if(Cmt.ForkEvent.isForkEvent(r))throw mn.warn("not implemented"),new Error("not implemented");if(r&&typeof r=="object")return"filter:"+(r.address||"*")+":"+xmt(r.topics||[])}throw new Error("invalid event - "+r)}function Qie(){return new Date().getTime()}function _mt(r){return new Promise(function(e){setTimeout(e,r)})}var t8r=["block","network","pending","poll"],Amt=function(){function r(e,t,n){(0,Ko.defineReadOnly)(this,"tag",e),(0,Ko.defineReadOnly)(this,"listener",t),(0,Ko.defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(r.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){var e=this.tag.split(":");return e[0]!=="tx"?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){var e=this.tag.split(":");if(e[0]!=="filter")return null;var t=e[1],n=e8r(e[2]),a={};return n.length>0&&(a.topics=n),t&&t!=="*"&&(a.address=t),a},enumerable:!1,configurable:!0}),r.prototype.pollable=function(){return this.tag.indexOf(":")>=0||t8r.indexOf(this.tag)>=0},r}();Ou.Event=Amt;var r8r={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function MSe(r){return(0,Ar.hexZeroPad)(Nu.BigNumber.from(r).toHexString(),32)}function Tmt(r){return NSe.Base58.encode((0,Ar.concat)([r,(0,Ar.hexDataSlice)((0,bmt.sha256)((0,bmt.sha256)(r)),0,4)]))}var kmt=new RegExp("^(ipfs)://(.*)$","i"),Emt=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),kmt,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function qye(r,e){try{return(0,OSe.toUtf8String)(Zie(r,e))}catch{}return null}function Zie(r,e){if(r==="0x")return null;var t=Nu.BigNumber.from((0,Ar.hexDataSlice)(r,e,e+32)).toNumber(),n=Nu.BigNumber.from((0,Ar.hexDataSlice)(r,t,t+32)).toNumber();return(0,Ar.hexDataSlice)(r,t+32,t+32+n)}function BSe(r){return r.match(/^ipfs:\/\/ipfs\//i)?r=r.substring(12):r.match(/^ipfs:\/\//i)?r=r.substring(7):mn.throwArgumentError("unsupported IPFS format","link",r),"https://gateway.ipfs.io/ipfs/"+r}function Imt(r){var e=(0,Ar.arrayify)(r);if(e.length>32)throw new Error("internal; should not happen");var t=new Uint8Array(32);return t.set(e,32-e.length),t}function n8r(r){if(r.length%32===0)return r;var e=new Uint8Array(Math.ceil(r.length/32)*32);return e.set(r),e}function Smt(r){for(var e=[],t=0,n=0;n=1&&s<=75)return Tmt((0,Ar.concat)([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var c=parseInt(o[1],16);if(o[2].length===c*2&&c>=1&&c<=75)return Tmt((0,Ar.concat)([[n.p2sh],"0x"+o[2]]))}}if(n.prefix!=null){var u=a[1],l=a[0];if(l===0?u!==20&&u!==32&&(l=-1):l=-1,l>=0&&a.length===2+u&&u>=1&&u<=75){var p=gmt.default.toWords(a.slice(2));return p.unshift(l),gmt.default.encode(n.prefix,p)}}return null},r.prototype.getAddress=function(e){return Lr(this,void 0,void 0,function(){var t,n,a,i;return qr(this,function(s){switch(s.label){case 0:if(e==null&&(e=60),e!==60)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return t=s.sent(),t==="0x"||t===Q3r.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if(n=s.sent(),n.code===In.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",MSe(e))];case 5:return a=s.sent(),a==null||a==="0x"?[2,null]:(i=this._getAddress(e,a),i==null&&mn.throwError("invalid or unsupported coin data",In.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:a}),[2,i])}})})},r.prototype.getAvatar=function(){return Lr(this,void 0,void 0,function(){var e,t,n,a,i,s,o,c,u,l,p,h,m,y,C,P,A,B,F,W,K,z,G,j,H;return qr(this,function(I){switch(I.label){case 0:e=[{type:"name",content:this.name}],I.label=1;case 1:return I.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(t=I.sent(),t==null)return[2,null];n=0,I.label=3;case 3:if(!(n=0?null:JSON.stringify({data:s,sender:i}),[4,(0,X_.fetchJson)({url:l,errorPassThrough:!0},p,function(C,P){return C.status=P.statusCode,C})]):[3,4];case 2:if(h=y.sent(),h.data)return[2,h.data];if(m=h.message||"unknown error",h.status>=400&&h.status<500)return[2,mn.throwError("response not found during CCIP fetch: "+m,In.Logger.errors.SERVER_ERROR,{url:u,errorMessage:m})];o.push(m),y.label=3;case 3:return c++,[3,1];case 4:return[2,mn.throwError("error encountered during CCIP fetch: "+o.map(function(C){return JSON.stringify(C)}).join(", "),In.Logger.errors.SERVER_ERROR,{urls:a,errorMessages:o})]}})})},e.prototype._getInternalBlockNumber=function(t){return Lr(this,void 0,void 0,function(){var n,a,i,s,o,c=this;return qr(this,function(u){switch(u.label){case 0:return[4,this._ready()];case 1:if(u.sent(),!(t>0))return[3,7];u.label=2;case 2:if(!this._internalBlockNumber)return[3,7];n=this._internalBlockNumber,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n];case 4:return a=u.sent(),Qie()-a.respTime<=t?[2,a.blockNumber]:[3,7];case 5:return i=u.sent(),this._internalBlockNumber===n?[3,7]:[3,6];case 6:return[3,2];case 7:return s=Qie(),o=(0,Ko.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(l){return null},function(l){return l})}).then(function(l){var p=l.blockNumber,h=l.networkError;if(h)throw c._internalBlockNumber===o&&(c._internalBlockNumber=null),h;var m=Qie();return p=Nu.BigNumber.from(p).toNumber(),p1e3)mn.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+a+")"),this.emit("error",mn.makeError("network block skew detected",In.Logger.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(s=this._emitted.block+1;s<=a;s++)this.emit("block",s);return this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(function(u){if(u!=="block"){var l=o._emitted[u];l!=="pending"&&a-l>12&&delete o._emitted[u]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(function(u){switch(u.type){case"tx":{var l=u.hash,p=o.getTransactionReceipt(l).then(function(y){return!y||y.blockNumber==null||(o._emitted["t:"+l]=y.blockNumber,o.emit(l,y)),null}).catch(function(y){o.emit("error",y)});n.push(p);break}case"filter":{if(!u._inflight){u._inflight=!0,u._lastBlockNumber===-2&&(u._lastBlockNumber=a-1);var h=u.filter;h.fromBlock=u._lastBlockNumber+1,h.toBlock=a;var m=h.toBlock-o._maxFilterBlockRange;m>h.fromBlock&&(h.fromBlock=m),h.fromBlock<0&&(h.fromBlock=0);var p=o.getLogs(h).then(function(C){u._inflight=!1,C.length!==0&&C.forEach(function(P){P.blockNumber>u._lastBlockNumber&&(u._lastBlockNumber=P.blockNumber),o._emitted["b:"+P.blockHash]=P.blockNumber,o._emitted["t:"+P.transactionHash]=P.blockNumber,o.emit(h,P)})}).catch(function(C){o.emit("error",C),u._inflight=!1});n.push(p)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(function(){o.emit("didPoll",t)}).catch(function(u){o.emit("error",u)}),[2]}})})},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),e.prototype.detectNetwork=function(){return Lr(this,void 0,void 0,function(){return qr(this,function(t){return[2,mn.throwError("provider does not support network detection",In.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},e.prototype.getNetwork=function(){return Lr(this,void 0,void 0,function(){var t,n,a;return qr(this,function(i){switch(i.label){case 0:return[4,this._ready()];case 1:return t=i.sent(),[4,this.detectNetwork()];case 2:return n=i.sent(),t.chainId===n.chainId?[3,5]:this.anyNetwork?(this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),[4,_mt(0)]):[3,4];case 3:return i.sent(),[2,this._network];case 4:throw a=mn.makeError("underlying network changed",In.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",a),a;case 5:return[2,t]}})})},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(n){t._setFastBlockNumber(n)},function(n){}),this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return this._poller!=null},set:function(t){var n=this;t&&!this._poller?(this._poller=setInterval(function(){n.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){n.poll(),n._bootstrapPoll=setTimeout(function(){n._poller||n.poll(),n._bootstrapPoll=null},n.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var n=this;if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){n.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,n=Qie();return n-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=n,this._fastBlockNumberPromise=this.getBlockNumber().then(function(a){return(t._fastBlockNumber==null||a>t._fastBlockNumber)&&(t._fastBlockNumber=a),t._fastBlockNumber})),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,n,a){return Lr(this,void 0,void 0,function(){return qr(this,function(i){return[2,this._waitForTransaction(t,n??1,a||0,null)]})})},e.prototype._waitForTransaction=function(t,n,a,i){return Lr(this,void 0,void 0,function(){var s,o=this;return qr(this,function(c){switch(c.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return s=c.sent(),(s?s.confirmations:0)>=n?[2,s]:[2,new Promise(function(u,l){var p=[],h=!1,m=function(){return h?!0:(h=!0,p.forEach(function(F){F()}),!1)},y=function(F){F.confirmations0){var B=setTimeout(function(){m()||l(mn.makeError("timeout exceeded",In.Logger.errors.TIMEOUT,{timeout:a}))},a);B.unref&&B.unref(),p.push(function(){clearTimeout(B)})}})]}})})},e.prototype.getBlockNumber=function(){return Lr(this,void 0,void 0,function(){return qr(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},e.prototype.getGasPrice=function(){return Lr(this,void 0,void 0,function(){var t;return qr(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,this.perform("getGasPrice",{})];case 2:t=n.sent();try{return[2,Nu.BigNumber.from(t)]}catch(a){return[2,mn.throwError("bad result from backend",In.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:a})]}return[2]}})})},e.prototype.getBalance=function(t,n){return Lr(this,void 0,void 0,function(){var a,i;return qr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Ko.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getBalance",a)];case 3:i=s.sent();try{return[2,Nu.BigNumber.from(i)]}catch(o){return[2,mn.throwError("bad result from backend",In.Logger.errors.SERVER_ERROR,{method:"getBalance",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getTransactionCount=function(t,n){return Lr(this,void 0,void 0,function(){var a,i;return qr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Ko.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getTransactionCount",a)];case 3:i=s.sent();try{return[2,Nu.BigNumber.from(i).toNumber()]}catch(o){return[2,mn.throwError("bad result from backend",In.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getCode=function(t,n){return Lr(this,void 0,void 0,function(){var a,i;return qr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,Ko.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getCode",a)];case 3:i=s.sent();try{return[2,(0,Ar.hexlify)(i)]}catch(o){return[2,mn.throwError("bad result from backend",In.Logger.errors.SERVER_ERROR,{method:"getCode",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getStorageAt=function(t,n,a){return Lr(this,void 0,void 0,function(){var i,s;return qr(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,Ko.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(function(c){return(0,Ar.hexValue)(c)})})];case 2:return i=o.sent(),[4,this.perform("getStorageAt",i)];case 3:s=o.sent();try{return[2,(0,Ar.hexlify)(s)]}catch(c){return[2,mn.throwError("bad result from backend",In.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:c})]}return[2]}})})},e.prototype._wrapTransaction=function(t,n,a){var i=this;if(n!=null&&(0,Ar.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");var s=t;return n!=null&&t.hash!==n&&mn.throwError("Transaction hash mismatch from Provider.sendTransaction.",In.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:n}),s.wait=function(o,c){return Lr(i,void 0,void 0,function(){var u,l;return qr(this,function(p){switch(p.label){case 0:return o==null&&(o=1),c==null&&(c=0),u=void 0,o!==0&&a!=null&&(u={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:a}),[4,this._waitForTransaction(t.hash,o,c,u)];case 1:return l=p.sent(),l==null&&o===0?[2,null]:(this._emitted["t:"+t.hash]=l.blockNumber,l.status===0&&mn.throwError("transaction failed",In.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),[2,l])}})})},s},e.prototype.sendTransaction=function(t){return Lr(this,void 0,void 0,function(){var n,a,i,s,o;return qr(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,Promise.resolve(t).then(function(u){return(0,Ar.hexlify)(u)})];case 2:return n=c.sent(),a=this.formatter.transaction(t),a.confirmations==null&&(a.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=c.sent(),c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:n})];case 5:return s=c.sent(),[2,this._wrapTransaction(a,s,i)];case 6:throw o=c.sent(),o.transaction=a,o.transactionHash=a.hash,o;case 7:return[2]}})})},e.prototype._getTransactionRequest=function(t){return Lr(this,void 0,void 0,function(){var n,a,i,s,o=this;return qr(this,function(c){switch(c.label){case 0:return[4,t];case 1:return n=c.sent(),a={},["from","to"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?o._getAddress(l):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?Nu.BigNumber.from(l):null}))}),["type"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l??null}))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?(0,Ar.hexlify)(l):null}))}),s=(i=this.formatter).transactionRequest,[4,(0,Ko.resolveProperties)(a)];case 2:return[2,s.apply(i,[c.sent()])]}})})},e.prototype._getFilter=function(t){return Lr(this,void 0,void 0,function(){var n,a,i,s=this;return qr(this,function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),n={},t.address!=null&&(n.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(c){t[c]!=null&&(n[c]=t[c])}),["fromBlock","toBlock"].forEach(function(c){t[c]!=null&&(n[c]=s._getBlockTag(t[c]))}),i=(a=this.formatter).filter,[4,(0,Ko.resolveProperties)(n)];case 2:return[2,i.apply(a,[o.sent()])]}})})},e.prototype._call=function(t,n,a){return Lr(this,void 0,void 0,function(){var i,s,o,c,u,l,p,h,m,y,C,P,A,B,F,W;return qr(this,function(K){switch(K.label){case 0:return a>=X3r&&mn.throwError("CCIP read exceeded maximum redirections",In.Logger.errors.SERVER_ERROR,{redirects:a,transaction:t}),i=t.to,[4,this.perform("call",{transaction:t,blockTag:n})];case 1:if(s=K.sent(),!(a>=0&&n==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&(0,Ar.hexDataLength)(s)%32===4))return[3,5];K.label=2;case 2:for(K.trys.push([2,4,,5]),o=(0,Ar.hexDataSlice)(s,4),c=(0,Ar.hexDataSlice)(o,0,32),Nu.BigNumber.from(c).eq(i)||mn.throwError("CCIP Read sender did not match",In.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s}),u=[],l=Nu.BigNumber.from((0,Ar.hexDataSlice)(o,32,64)).toNumber(),p=Nu.BigNumber.from((0,Ar.hexDataSlice)(o,l,l+32)).toNumber(),h=(0,Ar.hexDataSlice)(o,l+32),m=0;mthis._emitted.block?[2,null]:[2,void 0];if(!n)return[3,8];p=null,h=0,A.label=2;case 2:return h0},e.prototype._stopEvent=function(t){this.polling=this._events.filter(function(n){return n.pollable()}).length>0},e.prototype._addEventListener=function(t,n,a){var i=new Amt(Z_(t),n,a);return this._events.push(i),this._startEvent(i),this},e.prototype.on=function(t,n){return this._addEventListener(t,n,!1)},e.prototype.once=function(t,n){return this._addEventListener(t,n,!0)},e.prototype.emit=function(t){for(var n=this,a=[],i=1;i{"use strict";f();d();var WSe=pp&&pp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),cb=pp&&pp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},ub=pp&&pp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&pc.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Nc.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:n}),e}function Mmt(r){return new Promise(function(e){setTimeout(e,r)})}function f8r(r){if(r.error){var e=new Error(r.error.message);throw e.code=r.error.code,e.data=r.error.data,e}return r.result}function ese(r){return r&&r.toLowerCase()}var qSe={},USe=function(r){WSe(e,r);function e(t,n,a){var i=r.call(this)||this;if(t!==qSe)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,Go.defineReadOnly)(i,"provider",n),a==null&&(a=0),typeof a=="string"?((0,Go.defineReadOnly)(i,"_address",i.provider.formatter.address(a)),(0,Go.defineReadOnly)(i,"_index",null)):typeof a=="number"?((0,Go.defineReadOnly)(i,"_index",a),(0,Go.defineReadOnly)(i,"_address",null)):pc.throwArgumentError("invalid address or index","addressOrIndex",a),i}return e.prototype.connect=function(t){return pc.throwError("cannot alter JSON-RPC Signer connection",Nc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new d8r(qSe,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(n){return n.length<=t._index&&pc.throwError("unknown account #"+t._index,Nc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(n[t._index])})},e.prototype.sendUncheckedTransaction=function(t){var n=this;t=(0,Go.shallowCopy)(t);var a=this.getAddress().then(function(s){return s&&(s=s.toLowerCase()),s});if(t.gasLimit==null){var i=(0,Go.shallowCopy)(t);i.from=a,t.gasLimit=this.provider.estimateGas(i)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(function(s){return cb(n,void 0,void 0,function(){var o;return ub(this,function(c){switch(c.label){case 0:return s==null?[2,null]:[4,this.provider.resolveName(s)];case 1:return o=c.sent(),o==null&&pc.throwArgumentError("provided ENS name resolves to null","tx.to",s),[2,o]}})})})),(0,Go.resolveProperties)({tx:(0,Go.resolveProperties)(t),sender:a}).then(function(s){var o=s.tx,c=s.sender;o.from!=null?o.from.toLowerCase()!==c&&pc.throwArgumentError("from address mismatch","transaction",t):o.from=c;var u=n.provider.constructor.hexlifyTransaction(o,{from:!0});return n.provider.send("eth_sendTransaction",[u]).then(function(l){return l},function(l){return typeof l.message=="string"&&l.message.match(/user denied/i)&&pc.throwError("user rejected transaction",Nc.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),Dmt("sendTransaction",l,u)})})},e.prototype.signTransaction=function(t){return pc.throwError("signing transactions is unsupported",Nc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){return cb(this,void 0,void 0,function(){var n,a,i,s=this;return ub(this,function(o){switch(o.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return n=o.sent(),[4,this.sendUncheckedTransaction(t)];case 2:a=o.sent(),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,(0,Bmt.poll)(function(){return cb(s,void 0,void 0,function(){var c;return ub(this,function(u){switch(u.label){case 0:return[4,this.provider.getTransaction(a)];case 1:return c=u.sent(),c===null?[2,void 0]:[2,this.provider._wrapTransaction(c,a,n)]}})})},{oncePoll:this.provider})];case 4:return[2,o.sent()];case 5:throw i=o.sent(),i.transactionHash=a,i;case 6:return[2]}})})},e.prototype.signMessage=function(t){return cb(this,void 0,void 0,function(){var n,a,i;return ub(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,Rmt.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,eT.hexlify)(n),a.toLowerCase()])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&pc.throwError("user rejected signing",Nc.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._legacySignMessage=function(t){return cb(this,void 0,void 0,function(){var n,a,i;return ub(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,Rmt.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[a.toLowerCase(),(0,eT.hexlify)(n)])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&pc.throwError("user rejected signing",Nc.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._signTypedData=function(t,n,a){return cb(this,void 0,void 0,function(){var i,s,o,c=this;return ub(this,function(u){switch(u.label){case 0:return[4,Pmt._TypedDataEncoder.resolveNames(t,n,a,function(l){return c.provider.resolveName(l)})];case 1:return i=u.sent(),[4,this.getAddress()];case 2:s=u.sent(),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(Pmt._TypedDataEncoder.getPayload(i.domain,n,i.value))])];case 4:return[2,u.sent()];case 5:throw o=u.sent(),typeof o.message=="string"&&o.message.match(/user denied/i)&&pc.throwError("user rejected signing",Nc.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:n,value:i.value}}),o;case 6:return[2]}})})},e.prototype.unlock=function(t){return cb(this,void 0,void 0,function(){var n,a;return ub(this,function(i){switch(i.label){case 0:return n=this.provider,[4,this.getAddress()];case 1:return a=i.sent(),[2,n.send("personal_unlockAccount",[a.toLowerCase(),t,null])]}})})},e}(s8r.Signer);pp.JsonRpcSigner=USe;var d8r=function(r){WSe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sendTransaction=function(t){var n=this;return this.sendUncheckedTransaction(t).then(function(a){return{hash:a,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(i){return n.provider.waitForTransaction(a,i)}}})},e}(USe),p8r={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},h8r=function(r){WSe(e,r);function e(t,n){var a=this,i=n;return i==null&&(i=new Promise(function(s,o){setTimeout(function(){a.detectNetwork().then(function(c){s(c)},function(c){o(c)})},0)})),a=r.call(this,i)||this,t||(t=(0,Go.getStatic)(a.constructor,"defaultUrl")()),typeof t=="string"?(0,Go.defineReadOnly)(a,"connection",Object.freeze({url:t})):(0,Go.defineReadOnly)(a,"connection",Object.freeze((0,Go.shallowCopy)(t))),a._nextId=42,a}return Object.defineProperty(e.prototype,"_cache",{get:function(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){t._cache.detectNetwork=null},0)),this._cache.detectNetwork},e.prototype._uncachedDetectNetwork=function(){return cb(this,void 0,void 0,function(){var t,n,a,i;return ub(this,function(s){switch(s.label){case 0:return[4,Mmt(0)];case 1:s.sent(),t=null,s.label=2;case 2:return s.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=s.sent(),[3,9];case 4:n=s.sent(),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[3,9];case 9:if(t!=null){i=(0,Go.getStatic)(this.constructor,"getNetwork");try{return[2,i(LSe.BigNumber.from(t).toNumber())]}catch(o){return[2,pc.throwError("could not detect network",Nc.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})]}}return[2,pc.throwError("could not detect network",Nc.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},e.prototype.getSigner=function(t){return new USe(qSe,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then(function(n){return n.map(function(a){return t.formatter.address(a)})})},e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,Go.deepCopy)(i),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(s&&this._cache[t])return this._cache[t];var o=(0,Bmt.fetchJson)(this.connection,JSON.stringify(i),f8r).then(function(c){return a.emit("debug",{action:"response",request:i,response:c,provider:a}),c},function(c){throw a.emit("debug",{action:"response",error:c,request:i,provider:a}),c});return s&&(this._cache[t]=o,setTimeout(function(){a._cache[t]=null},0)),o},e.prototype.prepareRequest=function(t,n){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[ese(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[ese(n.address),n.blockTag]];case"getCode":return["eth_getCode",[ese(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[ese(n.address),(0,eT.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":{var a=(0,Go.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[a(n.transaction,{from:!0}),n.blockTag]]}case"estimateGas":{var a=(0,Go.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[a(n.transaction,{from:!0})]]}case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=ese(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null},e.prototype.perform=function(t,n){return cb(this,void 0,void 0,function(){var a,i,s,o;return ub(this,function(c){switch(c.label){case 0:return t==="call"||t==="estimateGas"?(a=n.transaction,a&&a.type!=null&&LSe.BigNumber.from(a.type).isZero()?a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null?[4,this.getFeeData()]:[3,2]:[3,2]):[3,2];case 1:i=c.sent(),i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=(0,Go.shallowCopy)(n),n.transaction=(0,Go.shallowCopy)(a),delete n.transaction.type),c.label=2;case 2:s=this.prepareRequest(t,n),s==null&&pc.throwError(t+" not implemented",Nc.Logger.errors.NOT_IMPLEMENTED,{operation:t}),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.send(s[0],s[1])];case 4:return[2,c.sent()];case 5:return o=c.sent(),[2,Dmt(t,o,n)];case 6:return[2]}})})},e.prototype._startEvent=function(t){t.tag==="pending"&&this._startPending(),r.prototype._startEvent.call(this,t)},e.prototype._startPending=function(){if(this._pendingFilter==null){var t=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function i(){t.send("eth_getFilterChanges",[a]).then(function(s){if(t._pendingFilter!=n)return null;var o=Promise.resolve();return s.forEach(function(c){t._emitted["t:"+c.toLowerCase()]="pending",o=o.then(function(){return t.getTransaction(c).then(function(u){return t.emit("pending",u),null})})}),o.then(function(){return Mmt(1e3)})}).then(function(){if(t._pendingFilter!=n){t.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){i()},0),null}).catch(function(s){})}return i(),a}).catch(function(a){})}},e.prototype._stopEvent=function(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),r.prototype._stopEvent.call(this,t)},e.hexlifyTransaction=function(t,n){var a=(0,Go.shallowCopy)(p8r);if(n)for(var i in n)n[i]&&(a[i]=!0);(0,Go.checkProperties)(t,a);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(t[o]!=null){var c=(0,eT.hexValue)(LSe.BigNumber.from(t[o]));o==="gasLimit"&&(o="gas"),s[o]=c}}),["from","to","data"].forEach(function(o){t[o]!=null&&(s[o]=(0,eT.hexlify)(t[o]))}),t.accessList&&(s.accessList=(0,o8r.accessListify)(t.accessList)),s},e}(u8r.BaseProvider);pp.JsonRpcProvider=h8r});var Fmt=E(rT=>{"use strict";f();d();Object.defineProperty(rT,"__esModule",{value:!0});rT.WebSocket=void 0;var Nmt=gr(),m8r=Q0(),Wye=null;rT.WebSocket=Wye;try{if(rT.WebSocket=Wye=WebSocket,Wye==null)throw new Error("inject please")}catch{Omt=new Nmt.Logger(m8r.version),rT.WebSocket=Wye=function(){Omt.throwError("WebSockets not supported in this environment",Nmt.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var Omt});var Hye=E(h1=>{"use strict";f();d();var y8r=h1&&h1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),HSe=h1&&h1.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},jSe=h1&&h1.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();var qmt=hp&&hp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),_8r=hp&&hp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},T8r=hp&&hp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();var Hmt=lg&&lg.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lg,"__esModule",{value:!0});lg.AlchemyProvider=lg.AlchemyWebSocketProvider=void 0;var A8r=ca(),k8r=og(),S8r=Hye(),P8r=gr(),R8r=Q0(),Umt=new P8r.Logger(R8r.version),M8r=ug(),zye="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",jmt=function(r){Hmt(e,r);function e(t,n){var a=this,i=new zmt(t,n),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=r.call(this,s,i.network)||this,(0,A8r.defineReadOnly)(a,"apiKey",i.apiKey),a}return e.prototype.isCommunityResource=function(){return this.apiKey===zye},e}(S8r.WebSocketProvider);lg.AlchemyWebSocketProvider=jmt;var zmt=function(r){Hmt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new jmt(t,n)},e.getApiKey=function(t){return t==null?zye:(t&&typeof t!="string"&&Umt.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,n){var a=null;switch(t.name){case"homestead":a="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":a="eth-goerli.g.alchemy.com/v2/";break;case"matic":a="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":a="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":a="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":a="arb-goerli.g.alchemy.com/v2/";break;case"optimism":a="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":a="opt-goerli.g.alchemy.com/v2/";break;default:Umt.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+a+n,throttleCallback:function(i,s){return n===zye&&(0,k8r.showThrottleMessage)(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===zye},e}(M8r.UrlJsonRpcProvider);lg.AlchemyProvider=zmt});var Gmt=E(aT=>{"use strict";f();d();var B8r=aT&&aT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(aT,"__esModule",{value:!0});aT.AnkrProvider=void 0;var D8r=og(),N8r=ug(),O8r=gr(),F8r=Q0(),L8r=new O8r.Logger(F8r.version),Kye="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function q8r(r){switch(r){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return L8r.throwArgumentError("unsupported network","name",r)}var W8r=function(r){B8r(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCommunityResource=function(){return this.apiKey===Kye},e.getApiKey=function(t){return t??Kye},e.getUrl=function(t,n){n==null&&(n=Kye);var a={allowGzip:!0,url:"https://"+q8r(t.name)+n,throttleCallback:function(i,s){return n.apiKey===Kye&&(0,D8r.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a},e}(N8r.UrlJsonRpcProvider);aT.AnkrProvider=W8r});var $mt=E(m1=>{"use strict";f();d();var U8r=m1&&m1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),H8r=m1&&m1.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},j8r=m1&&m1.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();var $8r=b1&&b1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Gye=b1&&b1.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Vye=b1&&b1.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&(e.throttleRetry=!0),e}return r.result}function Qmt(r){if(r&&r.status==0&&r.message=="NOTOK"&&(r.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(r),e.throttleRetry=!0,e}if(r.jsonrpc!="2.0"){var e=new Error("invalid response");throw e.result=JSON.stringify(r),e}if(r.error){var e=new Error(r.error.message||"unknown error");throw r.error.code&&(e.code=r.error.code),r.error.data&&(e.data=r.error.data),e}return r.result}function Jmt(r){if(r==="pending")throw new Error("pending not supported");return r==="latest"?r:parseInt(r.substring(2),16)}function KSe(r,e,t){if(r==="call"&&e.code===y1.Logger.errors.SERVER_ERROR){var n=e.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var a=n.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,$ye.isHexString)(a))return a;fg.throwError("missing revert data in call exception",y1.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}var i=e.message;throw e.code===y1.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&fg.throwError("insufficient funds for intrinsic transaction cost",y1.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:r,transaction:t}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&fg.throwError("nonce has already been used",y1.Logger.errors.NONCE_EXPIRED,{error:e,method:r,transaction:t}),i.match(/another transaction with same nonce/)&&fg.throwError("replacement fee too low",y1.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:r,transaction:t}),i.match(/execution failed due to an exception|execution reverted/)&&fg.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",y1.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:t}),e}var t4r=function(r){$8r(e,r);function e(t,n){var a=r.call(this,t)||this;return(0,zSe.defineReadOnly)(a,"baseUrl",a.getBaseUrl()),(0,zSe.defineReadOnly)(a,"apiKey",n||null),a}return e.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return fg.throwArgumentError("unsupported network","network",this.network.name)},e.prototype.getUrl=function(t,n){var a=Object.keys(n).reduce(function(s,o){var c=n[o];return c!=null&&(s+="&"+o+"="+c),s},""),i=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+t+a+i},e.prototype.getPostUrl=function(){return this.baseUrl+"/api"},e.prototype.getPostData=function(t,n){return n.module=t,n.apikey=this.apiKey,n},e.prototype.fetch=function(t,n,a){return Gye(this,void 0,void 0,function(){var i,s,o,c,u,l,p=this;return Vye(this,function(h){switch(h.label){case 0:return i=a?this.getPostUrl():this.getUrl(t,n),s=a?this.getPostData(t,n):null,o=t==="proxy"?Qmt:e4r,this.emit("debug",{action:"request",request:i,provider:this}),c={url:i,throttleSlotInterval:1e3,throttleCallback:function(m,y){return p.isCommunityResource()&&(0,J8r.showThrottleMessage)(),Promise.resolve(!0)}},u=null,s&&(c.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(s).map(function(m){return m+"="+s[m]}).join("&")),[4,(0,Q8r.fetchJson)(c,u,o||Qmt)];case 1:return l=h.sent(),this.emit("debug",{action:"response",request:i,response:(0,zSe.deepCopy)(l),provider:this}),[2,l]}})})},e.prototype.detectNetwork=function(){return Gye(this,void 0,void 0,function(){return Vye(this,function(t){return[2,this.network]})})},e.prototype.perform=function(t,n){return Gye(this,void 0,void 0,function(){var a,s,i,s,o,c,u,l,p,h,m,y,C;return Vye(this,function(P){switch(P.label){case 0:switch(a=t,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(function(A){return KSe("sendTransaction",A,n.signedTransaction)})];case 8:if(n.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash})];case 11:if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");s=Ymt(n.transaction),s.module="proxy",s.action="eth_call",P.label=12;case 12:return P.trys.push([12,14,,15]),[4,this.fetch("proxy",s,!0)];case 13:return[2,P.sent()];case 14:return i=P.sent(),[2,KSe("call",i,n.transaction)];case 15:s=Ymt(n.transaction),s.module="proxy",s.action="eth_estimateGas",P.label=16;case 16:return P.trys.push([16,18,,19]),[4,this.fetch("proxy",s,!0)];case 17:return[2,P.sent()];case 18:return o=P.sent(),[2,KSe("estimateGas",o,n.transaction)];case 19:return c={action:"getLogs"},n.filter.fromBlock&&(c.fromBlock=Jmt(n.filter.fromBlock)),n.filter.toBlock&&(c.toBlock=Jmt(n.filter.toBlock)),n.filter.address&&(c.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&fg.throwError("unsupported topic count",y1.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1&&(u=n.filter.topics[0],(typeof u!="string"||u.length!==66)&&fg.throwError("unsupported topic format",y1.Logger.errors.UNSUPPORTED_OPERATION,{topic0:u}),c.topic0=u)),[4,this.fetch("logs",c)];case 20:l=P.sent(),p={},h=0,P.label=21;case 21:return h{"use strict";f();d();var r4r=v1&&v1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Jye=v1&&v1.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},ise=v1&&v1.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]e?null:(n+a)/2}function sT(r){if(r===null)return"null";if(typeof r=="number"||typeof r=="boolean")return JSON.stringify(r);if(typeof r=="string")return r;if(a4r.BigNumber.isBigNumber(r))return r.toString();if(Array.isArray(r))return JSON.stringify(r.map(function(t){return sT(t)}));if(typeof r=="object"){var e=Object.keys(r);return e.sort(),"{"+e.map(function(t){var n=r[t];return typeof n=="function"?n="[function]":n=sT(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof r)}var u4r=1;function r1t(r){var e=null,t=null,n=new Promise(function(s){e=function(){t&&(clearTimeout(t),t=null),s()},t=setTimeout(e,r)}),a=function(s){return n=n.then(s),n};function i(){return n}return{cancel:e,getPromise:i,wait:a}}var l4r=[dg.Logger.errors.CALL_EXCEPTION,dg.Logger.errors.INSUFFICIENT_FUNDS,dg.Logger.errors.NONCE_EXPIRED,dg.Logger.errors.REPLACEMENT_UNDERPRICED,dg.Logger.errors.UNPREDICTABLE_GAS_LIMIT],f4r=["address","args","errorArgs","errorSignature","method","transaction"];function Qye(r,e){var t={weight:r.weight};return Object.defineProperty(t,"provider",{get:function(){return r.provider}}),r.start&&(t.start=r.start),e&&(t.duration=e-r.start),r.done&&(r.error?t.error=r.error:t.result=r.result||null),t}function d4r(r,e){return function(t){var n={};t.forEach(function(o){var c=r(o.result);n[c]||(n[c]={count:0,result:o.result}),n[c].count++});for(var a=Object.keys(n),i=0;i=e)return s.result}}}function p4r(r,e,t){var n=sT;switch(e){case"getBlockNumber":return function(a){var i=a.map(function(o){return o.result}),s=t1t(a.map(function(o){return o.result}),2);if(s!=null)return s=Math.ceil(s),i.indexOf(s+1)>=0&&s++,s>=r._highestBlockNumber&&(r._highestBlockNumber=s),r._highestBlockNumber};case"getGasPrice":return function(a){var i=a.map(function(s){return s.result});return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(a){return t1t(a.map(function(i){return i.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(a){return a==null?null:(a=(0,g1.shallowCopy)(a),a.confirmations=-1,sT(a))};break;case"getBlock":t.includeTransactions?n=function(a){return a==null?null:(a=(0,g1.shallowCopy)(a),a.transactions=a.transactions.map(function(i){return i=(0,g1.shallowCopy)(i),i.confirmations=-1,i}),sT(a))}:n=function(a){return a==null?null:sT(a)};break;default:throw new Error("unknown method: "+e)}return d4r(n,r.quorum)}function ase(r,e){return Jye(this,void 0,void 0,function(){var t;return ise(this,function(n){return t=r.provider,t.blockNumber!=null&&t.blockNumber>=e||e===-1?[2,t]:[2,(0,s4r.poll)(function(){return new Promise(function(a,i){setTimeout(function(){return t.blockNumber>=e?a(t):r.cancelled?a(null):a(void 0)},0)})},{oncePoll:t})]})})}function h4r(r,e,t,n){return Jye(this,void 0,void 0,function(){var a,i,s;return ise(this,function(o){switch(o.label){case 0:switch(a=r.provider,i=t,i){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,a[t]()];case 2:return a.getEtherPrice?[2,a.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,iT.isHexString)(n.blockTag)?[4,ase(r,e)]:[3,5];case 4:a=o.sent(),o.label=5;case 5:return[2,a[t](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,iT.isHexString)(n.blockTag)?[4,ase(r,e)]:[3,8];case 7:a=o.sent(),o.label=8;case 8:return[2,a.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,iT.isHexString)(n.blockTag)?[4,ase(r,e)]:[3,11];case 10:a=o.sent(),o.label=11;case 11:return[2,a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,iT.isHexString)(n.blockTag)?[4,ase(r,e)]:[3,14];case 13:a=o.sent(),o.label=14;case 14:return t==="call"&&n.blockTag?[2,a[t](n.transaction,n.blockTag)]:[2,a[t](n.transaction)];case 15:return[2,a[t](n.transactionHash)];case 16:return s=n.filter,s.fromBlock&&(0,iT.isHexString)(s.fromBlock)||s.toBlock&&(0,iT.isHexString)(s.toBlock)?[4,ase(r,e)]:[3,18];case 17:a=o.sent(),o.label=18;case 18:return[2,a.getLogs(s)];case 19:return[2,Wv.throwError("unknown method error",dg.Logger.errors.UNKNOWN_ERROR,{method:t,params:n})]}})})}var m4r=function(r){r4r(e,r);function e(t,n){var a=this;t.length===0&&Wv.throwArgumentError("missing providers","providers",t);var i=t.map(function(c,u){if(n4r.Provider.isProvider(c)){var l=(0,Xmt.isCommunityResource)(c)?2e3:750,p=1;return Object.freeze({provider:c,weight:1,stallTimeout:l,priority:p})}var h=(0,g1.shallowCopy)(c);h.priority==null&&(h.priority=1),h.stallTimeout==null&&(h.stallTimeout=(0,Xmt.isCommunityResource)(c)?2e3:750),h.weight==null&&(h.weight=1);var m=h.weight;return(m%1||m>512||m<1)&&Wv.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+u+"].weight",m),Object.freeze(h)}),s=i.reduce(function(c,u){return c+u.weight},0);n==null?n=s/2:n>s&&Wv.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var o=e1t(i.map(function(c){return c.provider.network}));return o==null&&(o=new Promise(function(c,u){setTimeout(function(){a.detectNetwork().then(c,u)},0)})),a=r.call(this,o)||this,(0,g1.defineReadOnly)(a,"providerConfigs",Object.freeze(i)),(0,g1.defineReadOnly)(a,"quorum",n),a._highestBlockNumber=-1,a}return e.prototype.detectNetwork=function(){return Jye(this,void 0,void 0,function(){var t;return ise(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(a){return a.provider.getNetwork()}))];case 1:return t=n.sent(),[2,e1t(t)]}})})},e.prototype.perform=function(t,n){return Jye(this,void 0,void 0,function(){var a,i,s,o,c,u,l,p,h,m,y,C=this;return ise(this,function(P){switch(P.label){case 0:return t!=="sendTransaction"?[3,2]:[4,Promise.all(this.providerConfigs.map(function(A){return A.provider.sendTransaction(n.signedTransaction).then(function(B){return B.hash},function(B){return B})}))];case 1:for(a=P.sent(),i=0;i=m.quorum?(z=o(K),z!==void 0?(c.forEach(function(H){H.staller&&H.staller.cancel(),H.cancelled=!0}),[2,{value:z}]):p?[3,4]:[4,r1t(100).getPromise()]):[3,5];case 3:j.sent(),j.label=4;case 4:p=!1,j.label=5;case 5:return G=c.reduce(function(H,I){if(!I.done||I.error==null)return H;var b=I.error.code;return l4r.indexOf(b)>=0&&(H[b]||(H[b]={error:I.error,weight:0}),H[b].weight+=I.weight),H},{}),Object.keys(G).forEach(function(H){var I=G[H];if(!(I.weight{"use strict";f();d();Object.defineProperty(Zye,"__esModule",{value:!0});Zye.IpcProvider=void 0;var y4r=null;Zye.IpcProvider=y4r});var c1t=E(pg=>{"use strict";f();d();var i1t=pg&&pg.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pg,"__esModule",{value:!0});pg.InfuraProvider=pg.InfuraWebSocketProvider=void 0;var GSe=ca(),b4r=Hye(),g4r=og(),VSe=gr(),v4r=Q0(),Xye=new VSe.Logger(v4r.version),w4r=ug(),sse="84842078b09946638c03157f83405213",s1t=function(r){i1t(e,r);function e(t,n){var a=this,i=new o1t(t,n),s=i.connection;s.password&&Xye.throwError("INFURA WebSocket project secrets unsupported",VSe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var o=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return a=r.call(this,o,t)||this,(0,GSe.defineReadOnly)(a,"apiKey",i.projectId),(0,GSe.defineReadOnly)(a,"projectId",i.projectId),(0,GSe.defineReadOnly)(a,"projectSecret",i.projectSecret),a}return e.prototype.isCommunityResource=function(){return this.projectId===sse},e}(b4r.WebSocketProvider);pg.InfuraWebSocketProvider=s1t;var o1t=function(r){i1t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new s1t(t,n)},e.getApiKey=function(t){var n={apiKey:sse,projectId:sse,projectSecret:null};return t==null||(typeof t=="string"?n.projectId=t:t.projectSecret!=null?(Xye.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),Xye.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=t.projectId,n.projectSecret=t.projectSecret):t.projectId&&(n.projectId=t.projectId),n.apiKey=n.projectId),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"homestead":a="mainnet.infura.io";break;case"goerli":a="goerli.infura.io";break;case"sepolia":a="sepolia.infura.io";break;case"matic":a="polygon-mainnet.infura.io";break;case"maticmum":a="polygon-mumbai.infura.io";break;case"optimism":a="optimism-mainnet.infura.io";break;case"optimism-goerli":a="optimism-goerli.infura.io";break;case"arbitrum":a="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":a="arbitrum-goerli.infura.io";break;default:Xye.throwError("unsupported network",VSe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i={allowGzip:!0,url:"https://"+a+"/v3/"+n.projectId,throttleCallback:function(s,o){return n.projectId===sse&&(0,g4r.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i},e.prototype.isCommunityResource=function(){return this.projectId===sse},e}(w4r.UrlJsonRpcProvider);pg.InfuraProvider=o1t});var u1t=E(oT=>{"use strict";f();d();var x4r=oT&&oT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(oT,"__esModule",{value:!0});oT.JsonRpcBatchProvider=void 0;var _4r=ca(),T4r=qv(),E4r=tT(),I4r=function(r){x4r(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);var s={request:i,resolve:null,reject:null},o=new Promise(function(c,u){s.resolve=c,s.reject=u});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var c=a._pendingBatch;a._pendingBatch=null,a._pendingBatchAggregator=null;var u=c.map(function(l){return l.request});return a.emit("debug",{action:"requestBatch",request:(0,_4r.deepCopy)(u),provider:a}),(0,T4r.fetchJson)(a.connection,JSON.stringify(u)).then(function(l){a.emit("debug",{action:"response",request:u,response:l,provider:a}),c.forEach(function(p,h){var m=l[h];if(m.error){var y=new Error(m.error.message);y.code=m.error.code,y.data=m.error.data,p.reject(y)}else p.resolve(m.result)})},function(l){a.emit("debug",{action:"response",error:l,request:u,provider:a}),c.forEach(function(p){p.reject(l)})})},10)),o},e}(E4r.JsonRpcProvider);oT.JsonRpcBatchProvider=I4r});var l1t=E(cT=>{"use strict";f();d();var C4r=cT&&cT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cT,"__esModule",{value:!0});cT.NodesmithProvider=void 0;var A4r=ug(),k4r=gr(),S4r=Q0(),$Se=new k4r.Logger(S4r.version),P4r="ETHERS_JS_SHARED",R4r=function(r){C4r(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){return t&&typeof t!="string"&&$Se.throwArgumentError("invalid apiKey","apiKey",t),t||P4r},e.getUrl=function(t,n){$Se.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var a=null;switch(t.name){case"homestead":a="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":a="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":a="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":a="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":a="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:$Se.throwArgumentError("unsupported network","network",arguments[0])}return a+"?apiKey="+n},e}(A4r.UrlJsonRpcProvider);cT.NodesmithProvider=R4r});var h1t=E(uT=>{"use strict";f();d();var M4r=uT&&uT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uT,"__esModule",{value:!0});uT.PocketProvider=void 0;var p1t=gr(),B4r=Q0(),f1t=new p1t.Logger(B4r.version),D4r=ug(),d1t="62e1ad51b37b8e00394bda3b",N4r=function(r){M4r(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){var n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?n.applicationId=d1t:typeof t=="string"?n.applicationId=t:t.applicationSecretKey!=null?(n.applicationId=t.applicationId,n.applicationSecretKey=t.applicationSecretKey):t.applicationId?n.applicationId=t.applicationId:f1t.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"goerli":a="eth-goerli.gateway.pokt.network";break;case"homestead":a="eth-mainnet.gateway.pokt.network";break;case"kovan":a="poa-kovan.gateway.pokt.network";break;case"matic":a="poly-mainnet.gateway.pokt.network";break;case"maticmum":a="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":a="eth-rinkeby.gateway.pokt.network";break;case"ropsten":a="eth-ropsten.gateway.pokt.network";break;default:f1t.throwError("unsupported network",p1t.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i="https://"+a+"/v1/lb/"+n.applicationId,s={headers:{},url:i};return n.applicationSecretKey!=null&&(s.user="",s.password=n.applicationSecretKey),s},e.prototype.isCommunityResource=function(){return this.applicationId===d1t},e}(D4r.UrlJsonRpcProvider);uT.PocketProvider=N4r});var b1t=E(lT=>{"use strict";f();d();var O4r=lT&&lT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lT,"__esModule",{value:!0});lT.Web3Provider=void 0;var ebe=ca(),F4r=gr(),L4r=Q0(),m1t=new F4r.Logger(L4r.version),q4r=tT(),W4r=1;function y1t(r,e){var t="Web3LegacyFetcher";return function(n,a){var i=this,s={method:n,params:a,id:W4r++,jsonrpc:"2.0"};return new Promise(function(o,c){i.emit("debug",{action:"request",fetcher:t,request:(0,ebe.deepCopy)(s),provider:i}),e(s,function(u,l){if(u)return i.emit("debug",{action:"response",fetcher:t,error:u,request:s,provider:i}),c(u);if(i.emit("debug",{action:"response",fetcher:t,request:s,response:l,provider:i}),l.error){var p=new Error(l.error.message);return p.code=l.error.code,p.data=l.error.data,c(p)}o(l.result)})})}}function U4r(r){return function(e,t){var n=this;t==null&&(t=[]);var a={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,ebe.deepCopy)(a),provider:this}),r.request(a).then(function(i){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:i,provider:n}),i},function(i){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:i,provider:n}),i})}}var H4r=function(r){O4r(e,r);function e(t,n){var a=this;t==null&&m1t.throwArgumentError("missing provider","provider",t);var i=null,s=null,o=null;return typeof t=="function"?(i="unknown:",s=t):(i=t.host||t.path||"",!i&&t.isMetaMask&&(i="metamask"),o=t,t.request?(i===""&&(i="eip-1193:"),s=U4r(t)):t.sendAsync?s=y1t(t,t.sendAsync.bind(t)):t.send?s=y1t(t,t.send.bind(t)):m1t.throwArgumentError("unsupported provider","provider",t),i||(i="unknown:")),a=r.call(this,i,n)||this,(0,ebe.defineReadOnly)(a,"jsonRpcFetchFunc",s),(0,ebe.defineReadOnly)(a,"provider",o),a}return e.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},e}(q4r.JsonRpcProvider);lT.Web3Provider=H4r});var ose=E(tr=>{"use strict";f();d();Object.defineProperty(tr,"__esModule",{value:!0});tr.Formatter=tr.showThrottleMessage=tr.isCommunityResourcable=tr.isCommunityResource=tr.getNetwork=tr.getDefaultProvider=tr.JsonRpcSigner=tr.IpcProvider=tr.WebSocketProvider=tr.Web3Provider=tr.StaticJsonRpcProvider=tr.PocketProvider=tr.NodesmithProvider=tr.JsonRpcBatchProvider=tr.JsonRpcProvider=tr.InfuraWebSocketProvider=tr.InfuraProvider=tr.EtherscanProvider=tr.CloudflareProvider=tr.AnkrProvider=tr.AlchemyWebSocketProvider=tr.AlchemyProvider=tr.FallbackProvider=tr.UrlJsonRpcProvider=tr.Resolver=tr.BaseProvider=tr.Provider=void 0;var j4r=Vx();Object.defineProperty(tr,"Provider",{enumerable:!0,get:function(){return j4r.Provider}});var v1t=SSe();Object.defineProperty(tr,"getNetwork",{enumerable:!0,get:function(){return v1t.getNetwork}});var w1t=Xie();Object.defineProperty(tr,"BaseProvider",{enumerable:!0,get:function(){return w1t.BaseProvider}});Object.defineProperty(tr,"Resolver",{enumerable:!0,get:function(){return w1t.Resolver}});var YSe=Kmt();Object.defineProperty(tr,"AlchemyProvider",{enumerable:!0,get:function(){return YSe.AlchemyProvider}});Object.defineProperty(tr,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return YSe.AlchemyWebSocketProvider}});var x1t=Gmt();Object.defineProperty(tr,"AnkrProvider",{enumerable:!0,get:function(){return x1t.AnkrProvider}});var _1t=$mt();Object.defineProperty(tr,"CloudflareProvider",{enumerable:!0,get:function(){return _1t.CloudflareProvider}});var T1t=Zmt();Object.defineProperty(tr,"EtherscanProvider",{enumerable:!0,get:function(){return T1t.EtherscanProvider}});var E1t=n1t();Object.defineProperty(tr,"FallbackProvider",{enumerable:!0,get:function(){return E1t.FallbackProvider}});var I1t=a1t();Object.defineProperty(tr,"IpcProvider",{enumerable:!0,get:function(){return I1t.IpcProvider}});var QSe=c1t();Object.defineProperty(tr,"InfuraProvider",{enumerable:!0,get:function(){return QSe.InfuraProvider}});Object.defineProperty(tr,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return QSe.InfuraWebSocketProvider}});var tbe=tT();Object.defineProperty(tr,"JsonRpcProvider",{enumerable:!0,get:function(){return tbe.JsonRpcProvider}});Object.defineProperty(tr,"JsonRpcSigner",{enumerable:!0,get:function(){return tbe.JsonRpcSigner}});var z4r=u1t();Object.defineProperty(tr,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return z4r.JsonRpcBatchProvider}});var C1t=l1t();Object.defineProperty(tr,"NodesmithProvider",{enumerable:!0,get:function(){return C1t.NodesmithProvider}});var A1t=h1t();Object.defineProperty(tr,"PocketProvider",{enumerable:!0,get:function(){return A1t.PocketProvider}});var k1t=ug();Object.defineProperty(tr,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return k1t.StaticJsonRpcProvider}});Object.defineProperty(tr,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return k1t.UrlJsonRpcProvider}});var S1t=b1t();Object.defineProperty(tr,"Web3Provider",{enumerable:!0,get:function(){return S1t.Web3Provider}});var P1t=Hye();Object.defineProperty(tr,"WebSocketProvider",{enumerable:!0,get:function(){return P1t.WebSocketProvider}});var rbe=og();Object.defineProperty(tr,"Formatter",{enumerable:!0,get:function(){return rbe.Formatter}});Object.defineProperty(tr,"isCommunityResourcable",{enumerable:!0,get:function(){return rbe.isCommunityResourcable}});Object.defineProperty(tr,"isCommunityResource",{enumerable:!0,get:function(){return rbe.isCommunityResource}});Object.defineProperty(tr,"showThrottleMessage",{enumerable:!0,get:function(){return rbe.showThrottleMessage}});var R1t=gr(),K4r=Q0(),g1t=new R1t.Logger(K4r.version);function G4r(r,e){if(r==null&&(r="homestead"),typeof r=="string"){var t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new tbe.JsonRpcProvider(r);case"ws":case"wss":return new P1t.WebSocketProvider(r);default:g1t.throwArgumentError("unsupported URL scheme","network",r)}}var n=(0,v1t.getNetwork)(r);return(!n||!n._defaultProvider)&&g1t.throwError("unsupported getDefaultProvider network",R1t.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:r}),n._defaultProvider({FallbackProvider:E1t.FallbackProvider,AlchemyProvider:YSe.AlchemyProvider,AnkrProvider:x1t.AnkrProvider,CloudflareProvider:_1t.CloudflareProvider,EtherscanProvider:T1t.EtherscanProvider,InfuraProvider:QSe.InfuraProvider,JsonRpcProvider:tbe.JsonRpcProvider,NodesmithProvider:C1t.NodesmithProvider,PocketProvider:A1t.PocketProvider,Web3Provider:S1t.Web3Provider,IpcProvider:I1t.IpcProvider},e)}tr.getDefaultProvider=G4r});var M1t=E(nbe=>{"use strict";f();d();Object.defineProperty(nbe,"__esModule",{value:!0});nbe.version=void 0;nbe.version="solidity/5.7.0"});var ZSe=E(hg=>{"use strict";f();d();Object.defineProperty(hg,"__esModule",{value:!0});hg.sha256=hg.keccak256=hg.pack=void 0;var V4r=Yi(),Ah=Qr(),$4r=Uf(),Y4r=Bv(),Q4r=cc(),J4r=new RegExp("^bytes([0-9]+)$"),Z4r=new RegExp("^(u?int)([0-9]*)$"),X4r=new RegExp("^(.*)\\[([0-9]*)\\]$"),exr="0000000000000000000000000000000000000000000000000000000000000000",txr=gr(),rxr=M1t(),fT=new txr.Logger(rxr.version);function B1t(r,e,t){switch(r){case"address":return t?(0,Ah.zeroPad)(e,32):(0,Ah.arrayify)(e);case"string":return(0,Q4r.toUtf8Bytes)(e);case"bytes":return(0,Ah.arrayify)(e);case"bool":return e=e?"0x01":"0x00",t?(0,Ah.zeroPad)(e,32):(0,Ah.arrayify)(e)}var n=r.match(Z4r);if(n){var a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||a===0||a>256)&&fT.throwArgumentError("invalid number type","type",r),t&&(a=256),e=V4r.BigNumber.from(e).toTwos(a),(0,Ah.zeroPad)(e,a/8)}if(n=r.match(J4r),n){var a=parseInt(n[1]);return(String(a)!==n[1]||a===0||a>32)&&fT.throwArgumentError("invalid bytes type","type",r),(0,Ah.arrayify)(e).byteLength!==a&&fT.throwArgumentError("invalid value for "+r,"value",e),t?(0,Ah.arrayify)((e+exr).substring(0,66)):e}if(n=r.match(X4r),n&&Array.isArray(e)){var i=n[1],s=parseInt(n[2]||String(e.length));s!=e.length&&fT.throwArgumentError("invalid array length for "+r,"value",e);var o=[];return e.forEach(function(c){o.push(B1t(i,c,!0))}),(0,Ah.concat)(o)}return fT.throwArgumentError("invalid type","type",r)}function JSe(r,e){r.length!=e.length&&fT.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);var t=[];return r.forEach(function(n,a){t.push(B1t(n,e[a]))}),(0,Ah.hexlify)((0,Ah.concat)(t))}hg.pack=JSe;function nxr(r,e){return(0,$4r.keccak256)(JSe(r,e))}hg.keccak256=nxr;function axr(r,e){return(0,Y4r.sha256)(JSe(r,e))}hg.sha256=axr});var D1t=E(abe=>{"use strict";f();d();Object.defineProperty(abe,"__esModule",{value:!0});abe.version=void 0;abe.version="units/5.7.0"});var W1t=E(mp=>{"use strict";f();d();Object.defineProperty(mp,"__esModule",{value:!0});mp.parseEther=mp.formatEther=mp.parseUnits=mp.formatUnits=mp.commify=void 0;var N1t=Yi(),ixr=gr(),sxr=D1t(),O1t=new ixr.Logger(sxr.version),F1t=["wei","kwei","mwei","gwei","szabo","finney","ether"];function oxr(r){var e=String(r).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||r==="."||r==="-.")&&O1t.throwArgumentError("invalid value","value",r);var t=e[0],n="";for(t.substring(0,1)==="-"&&(n="-",t=t.substring(1));t.substring(0,1)==="0";)t=t.substring(1);t===""&&(t="0");var a="";for(e.length===2&&(a="."+(e[1]||"0"));a.length>2&&a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(var i=[];t.length;)if(t.length<=3){i.unshift(t);break}else{var s=t.length-3;i.unshift(t.substring(s)),t=t.substring(0,s)}return n+i.join(",")+a}mp.commify=oxr;function L1t(r,e){if(typeof e=="string"){var t=F1t.indexOf(e);t!==-1&&(e=3*t)}return(0,N1t.formatFixed)(r,e??18)}mp.formatUnits=L1t;function q1t(r,e){if(typeof r!="string"&&O1t.throwArgumentError("value must be a string","value",r),typeof e=="string"){var t=F1t.indexOf(e);t!==-1&&(e=3*t)}return(0,N1t.parseFixed)(r,e??18)}mp.parseUnits=q1t;function cxr(r){return L1t(r,18)}mp.formatEther=cxr;function uxr(r){return q1t(r,18)}mp.parseEther=uxr});var dt=E(me=>{"use strict";f();d();var lxr=me&&me.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),fxr=me&&me.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),U1t=me&&me.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&lxr(e,r,t);return fxr(e,r),e};Object.defineProperty(me,"__esModule",{value:!0});me.formatBytes32String=me.Utf8ErrorFuncs=me.toUtf8String=me.toUtf8CodePoints=me.toUtf8Bytes=me._toEscapedUtf8String=me.nameprep=me.hexDataSlice=me.hexDataLength=me.hexZeroPad=me.hexValue=me.hexStripZeros=me.hexConcat=me.isHexString=me.hexlify=me.base64=me.base58=me.TransactionDescription=me.LogDescription=me.Interface=me.SigningKey=me.HDNode=me.defaultPath=me.isBytesLike=me.isBytes=me.zeroPad=me.stripZeros=me.concat=me.arrayify=me.shallowCopy=me.resolveProperties=me.getStatic=me.defineReadOnly=me.deepCopy=me.checkProperties=me.poll=me.fetchJson=me._fetchData=me.RLP=me.Logger=me.checkResultErrors=me.FormatTypes=me.ParamType=me.FunctionFragment=me.EventFragment=me.ErrorFragment=me.ConstructorFragment=me.Fragment=me.defaultAbiCoder=me.AbiCoder=void 0;me.Indexed=me.Utf8ErrorReason=me.UnicodeNormalizationForm=me.SupportedAlgorithm=me.mnemonicToSeed=me.isValidMnemonic=me.entropyToMnemonic=me.mnemonicToEntropy=me.getAccountPath=me.verifyTypedData=me.verifyMessage=me.recoverPublicKey=me.computePublicKey=me.recoverAddress=me.computeAddress=me.getJsonWalletAddress=me.TransactionTypes=me.serializeTransaction=me.parseTransaction=me.accessListify=me.joinSignature=me.splitSignature=me.soliditySha256=me.solidityKeccak256=me.solidityPack=me.shuffled=me.randomBytes=me.sha512=me.sha256=me.ripemd160=me.keccak256=me.computeHmac=me.commify=me.parseUnits=me.formatUnits=me.parseEther=me.formatEther=me.isAddress=me.getCreate2Address=me.getContractAddress=me.getIcapAddress=me.getAddress=me._TypedDataEncoder=me.id=me.isValidName=me.namehash=me.hashMessage=me.dnsEncode=me.parseBytes32String=void 0;var Jl=$he();Object.defineProperty(me,"AbiCoder",{enumerable:!0,get:function(){return Jl.AbiCoder}});Object.defineProperty(me,"checkResultErrors",{enumerable:!0,get:function(){return Jl.checkResultErrors}});Object.defineProperty(me,"ConstructorFragment",{enumerable:!0,get:function(){return Jl.ConstructorFragment}});Object.defineProperty(me,"defaultAbiCoder",{enumerable:!0,get:function(){return Jl.defaultAbiCoder}});Object.defineProperty(me,"ErrorFragment",{enumerable:!0,get:function(){return Jl.ErrorFragment}});Object.defineProperty(me,"EventFragment",{enumerable:!0,get:function(){return Jl.EventFragment}});Object.defineProperty(me,"FormatTypes",{enumerable:!0,get:function(){return Jl.FormatTypes}});Object.defineProperty(me,"Fragment",{enumerable:!0,get:function(){return Jl.Fragment}});Object.defineProperty(me,"FunctionFragment",{enumerable:!0,get:function(){return Jl.FunctionFragment}});Object.defineProperty(me,"Indexed",{enumerable:!0,get:function(){return Jl.Indexed}});Object.defineProperty(me,"Interface",{enumerable:!0,get:function(){return Jl.Interface}});Object.defineProperty(me,"LogDescription",{enumerable:!0,get:function(){return Jl.LogDescription}});Object.defineProperty(me,"ParamType",{enumerable:!0,get:function(){return Jl.ParamType}});Object.defineProperty(me,"TransactionDescription",{enumerable:!0,get:function(){return Jl.TransactionDescription}});var cse=Hf();Object.defineProperty(me,"getAddress",{enumerable:!0,get:function(){return cse.getAddress}});Object.defineProperty(me,"getCreate2Address",{enumerable:!0,get:function(){return cse.getCreate2Address}});Object.defineProperty(me,"getContractAddress",{enumerable:!0,get:function(){return cse.getContractAddress}});Object.defineProperty(me,"getIcapAddress",{enumerable:!0,get:function(){return cse.getIcapAddress}});Object.defineProperty(me,"isAddress",{enumerable:!0,get:function(){return cse.isAddress}});var dxr=U1t(Aae());me.base64=dxr;var pxr=aye();Object.defineProperty(me,"base58",{enumerable:!0,get:function(){return pxr.Base58}});var Fu=Qr();Object.defineProperty(me,"arrayify",{enumerable:!0,get:function(){return Fu.arrayify}});Object.defineProperty(me,"concat",{enumerable:!0,get:function(){return Fu.concat}});Object.defineProperty(me,"hexConcat",{enumerable:!0,get:function(){return Fu.hexConcat}});Object.defineProperty(me,"hexDataSlice",{enumerable:!0,get:function(){return Fu.hexDataSlice}});Object.defineProperty(me,"hexDataLength",{enumerable:!0,get:function(){return Fu.hexDataLength}});Object.defineProperty(me,"hexlify",{enumerable:!0,get:function(){return Fu.hexlify}});Object.defineProperty(me,"hexStripZeros",{enumerable:!0,get:function(){return Fu.hexStripZeros}});Object.defineProperty(me,"hexValue",{enumerable:!0,get:function(){return Fu.hexValue}});Object.defineProperty(me,"hexZeroPad",{enumerable:!0,get:function(){return Fu.hexZeroPad}});Object.defineProperty(me,"isBytes",{enumerable:!0,get:function(){return Fu.isBytes}});Object.defineProperty(me,"isBytesLike",{enumerable:!0,get:function(){return Fu.isBytesLike}});Object.defineProperty(me,"isHexString",{enumerable:!0,get:function(){return Fu.isHexString}});Object.defineProperty(me,"joinSignature",{enumerable:!0,get:function(){return Fu.joinSignature}});Object.defineProperty(me,"zeroPad",{enumerable:!0,get:function(){return Fu.zeroPad}});Object.defineProperty(me,"splitSignature",{enumerable:!0,get:function(){return Fu.splitSignature}});Object.defineProperty(me,"stripZeros",{enumerable:!0,get:function(){return Fu.stripZeros}});var dT=Q5();Object.defineProperty(me,"_TypedDataEncoder",{enumerable:!0,get:function(){return dT._TypedDataEncoder}});Object.defineProperty(me,"dnsEncode",{enumerable:!0,get:function(){return dT.dnsEncode}});Object.defineProperty(me,"hashMessage",{enumerable:!0,get:function(){return dT.hashMessage}});Object.defineProperty(me,"id",{enumerable:!0,get:function(){return dT.id}});Object.defineProperty(me,"isValidName",{enumerable:!0,get:function(){return dT.isValidName}});Object.defineProperty(me,"namehash",{enumerable:!0,get:function(){return dT.namehash}});var Uv=vye();Object.defineProperty(me,"defaultPath",{enumerable:!0,get:function(){return Uv.defaultPath}});Object.defineProperty(me,"entropyToMnemonic",{enumerable:!0,get:function(){return Uv.entropyToMnemonic}});Object.defineProperty(me,"getAccountPath",{enumerable:!0,get:function(){return Uv.getAccountPath}});Object.defineProperty(me,"HDNode",{enumerable:!0,get:function(){return Uv.HDNode}});Object.defineProperty(me,"isValidMnemonic",{enumerable:!0,get:function(){return Uv.isValidMnemonic}});Object.defineProperty(me,"mnemonicToEntropy",{enumerable:!0,get:function(){return Uv.mnemonicToEntropy}});Object.defineProperty(me,"mnemonicToSeed",{enumerable:!0,get:function(){return Uv.mnemonicToSeed}});var hxr=ISe();Object.defineProperty(me,"getJsonWalletAddress",{enumerable:!0,get:function(){return hxr.getJsonWalletAddress}});var mxr=Uf();Object.defineProperty(me,"keccak256",{enumerable:!0,get:function(){return mxr.keccak256}});var yxr=gr();Object.defineProperty(me,"Logger",{enumerable:!0,get:function(){return yxr.Logger}});var ibe=Bv();Object.defineProperty(me,"computeHmac",{enumerable:!0,get:function(){return ibe.computeHmac}});Object.defineProperty(me,"ripemd160",{enumerable:!0,get:function(){return ibe.ripemd160}});Object.defineProperty(me,"sha256",{enumerable:!0,get:function(){return ibe.sha256}});Object.defineProperty(me,"sha512",{enumerable:!0,get:function(){return ibe.sha512}});var XSe=ZSe();Object.defineProperty(me,"solidityKeccak256",{enumerable:!0,get:function(){return XSe.keccak256}});Object.defineProperty(me,"solidityPack",{enumerable:!0,get:function(){return XSe.pack}});Object.defineProperty(me,"soliditySha256",{enumerable:!0,get:function(){return XSe.sha256}});var H1t=jie();Object.defineProperty(me,"randomBytes",{enumerable:!0,get:function(){return H1t.randomBytes}});Object.defineProperty(me,"shuffled",{enumerable:!0,get:function(){return H1t.shuffled}});var pT=ca();Object.defineProperty(me,"checkProperties",{enumerable:!0,get:function(){return pT.checkProperties}});Object.defineProperty(me,"deepCopy",{enumerable:!0,get:function(){return pT.deepCopy}});Object.defineProperty(me,"defineReadOnly",{enumerable:!0,get:function(){return pT.defineReadOnly}});Object.defineProperty(me,"getStatic",{enumerable:!0,get:function(){return pT.getStatic}});Object.defineProperty(me,"resolveProperties",{enumerable:!0,get:function(){return pT.resolveProperties}});Object.defineProperty(me,"shallowCopy",{enumerable:!0,get:function(){return pT.shallowCopy}});var bxr=U1t(Ahe());me.RLP=bxr;var ePe=Aie();Object.defineProperty(me,"computePublicKey",{enumerable:!0,get:function(){return ePe.computePublicKey}});Object.defineProperty(me,"recoverPublicKey",{enumerable:!0,get:function(){return ePe.recoverPublicKey}});Object.defineProperty(me,"SigningKey",{enumerable:!0,get:function(){return ePe.SigningKey}});var mg=cc();Object.defineProperty(me,"formatBytes32String",{enumerable:!0,get:function(){return mg.formatBytes32String}});Object.defineProperty(me,"nameprep",{enumerable:!0,get:function(){return mg.nameprep}});Object.defineProperty(me,"parseBytes32String",{enumerable:!0,get:function(){return mg.parseBytes32String}});Object.defineProperty(me,"_toEscapedUtf8String",{enumerable:!0,get:function(){return mg._toEscapedUtf8String}});Object.defineProperty(me,"toUtf8Bytes",{enumerable:!0,get:function(){return mg.toUtf8Bytes}});Object.defineProperty(me,"toUtf8CodePoints",{enumerable:!0,get:function(){return mg.toUtf8CodePoints}});Object.defineProperty(me,"toUtf8String",{enumerable:!0,get:function(){return mg.toUtf8String}});Object.defineProperty(me,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return mg.Utf8ErrorFuncs}});var hT=ab();Object.defineProperty(me,"accessListify",{enumerable:!0,get:function(){return hT.accessListify}});Object.defineProperty(me,"computeAddress",{enumerable:!0,get:function(){return hT.computeAddress}});Object.defineProperty(me,"parseTransaction",{enumerable:!0,get:function(){return hT.parse}});Object.defineProperty(me,"recoverAddress",{enumerable:!0,get:function(){return hT.recoverAddress}});Object.defineProperty(me,"serializeTransaction",{enumerable:!0,get:function(){return hT.serialize}});Object.defineProperty(me,"TransactionTypes",{enumerable:!0,get:function(){return hT.TransactionTypes}});var use=W1t();Object.defineProperty(me,"commify",{enumerable:!0,get:function(){return use.commify}});Object.defineProperty(me,"formatEther",{enumerable:!0,get:function(){return use.formatEther}});Object.defineProperty(me,"parseEther",{enumerable:!0,get:function(){return use.parseEther}});Object.defineProperty(me,"formatUnits",{enumerable:!0,get:function(){return use.formatUnits}});Object.defineProperty(me,"parseUnits",{enumerable:!0,get:function(){return use.parseUnits}});var j1t=kSe();Object.defineProperty(me,"verifyMessage",{enumerable:!0,get:function(){return j1t.verifyMessage}});Object.defineProperty(me,"verifyTypedData",{enumerable:!0,get:function(){return j1t.verifyTypedData}});var tPe=qv();Object.defineProperty(me,"_fetchData",{enumerable:!0,get:function(){return tPe._fetchData}});Object.defineProperty(me,"fetchJson",{enumerable:!0,get:function(){return tPe.fetchJson}});Object.defineProperty(me,"poll",{enumerable:!0,get:function(){return tPe.poll}});var gxr=Bv();Object.defineProperty(me,"SupportedAlgorithm",{enumerable:!0,get:function(){return gxr.SupportedAlgorithm}});var z1t=cc();Object.defineProperty(me,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return z1t.UnicodeNormalizationForm}});Object.defineProperty(me,"Utf8ErrorReason",{enumerable:!0,get:function(){return z1t.Utf8ErrorReason}})});var K1t=E(sbe=>{"use strict";f();d();Object.defineProperty(sbe,"__esModule",{value:!0});sbe.version=void 0;sbe.version="ethers/5.7.2"});var aPe=E(Jr=>{"use strict";f();d();var vxr=Jr&&Jr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),wxr=Jr&&Jr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),rPe=Jr&&Jr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&vxr(e,r,t);return wxr(e,r),e};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.Wordlist=Jr.version=Jr.wordlists=Jr.utils=Jr.logger=Jr.errors=Jr.constants=Jr.FixedNumber=Jr.BigNumber=Jr.ContractFactory=Jr.Contract=Jr.BaseContract=Jr.providers=Jr.getDefaultProvider=Jr.VoidSigner=Jr.Wallet=Jr.Signer=void 0;var nPe=Ept();Object.defineProperty(Jr,"BaseContract",{enumerable:!0,get:function(){return nPe.BaseContract}});Object.defineProperty(Jr,"Contract",{enumerable:!0,get:function(){return nPe.Contract}});Object.defineProperty(Jr,"ContractFactory",{enumerable:!0,get:function(){return nPe.ContractFactory}});var G1t=Yi();Object.defineProperty(Jr,"BigNumber",{enumerable:!0,get:function(){return G1t.BigNumber}});Object.defineProperty(Jr,"FixedNumber",{enumerable:!0,get:function(){return G1t.FixedNumber}});var V1t=Hy();Object.defineProperty(Jr,"Signer",{enumerable:!0,get:function(){return V1t.Signer}});Object.defineProperty(Jr,"VoidSigner",{enumerable:!0,get:function(){return V1t.VoidSigner}});var xxr=kSe();Object.defineProperty(Jr,"Wallet",{enumerable:!0,get:function(){return xxr.Wallet}});var _xr=rPe(K5());Jr.constants=_xr;var Txr=rPe(ose());Jr.providers=Txr;var Exr=ose();Object.defineProperty(Jr,"getDefaultProvider",{enumerable:!0,get:function(){return Exr.getDefaultProvider}});var $1t=dSe();Object.defineProperty(Jr,"Wordlist",{enumerable:!0,get:function(){return $1t.Wordlist}});Object.defineProperty(Jr,"wordlists",{enumerable:!0,get:function(){return $1t.wordlists}});var Ixr=rPe(dt());Jr.utils=Ixr;var Y1t=gr();Object.defineProperty(Jr,"errors",{enumerable:!0,get:function(){return Y1t.ErrorCode}});var Q1t=K1t();Object.defineProperty(Jr,"version",{enumerable:!0,get:function(){return Q1t.version}});var Cxr=new Y1t.Logger(Q1t.version);Jr.logger=Cxr});var ke=E(Wr=>{"use strict";f();d();var Axr=Wr&&Wr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),kxr=Wr&&Wr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Sxr=Wr&&Wr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Axr(e,r,t);return kxr(e,r),e};Object.defineProperty(Wr,"__esModule",{value:!0});Wr.Wordlist=Wr.version=Wr.wordlists=Wr.utils=Wr.logger=Wr.errors=Wr.constants=Wr.FixedNumber=Wr.BigNumber=Wr.ContractFactory=Wr.Contract=Wr.BaseContract=Wr.providers=Wr.getDefaultProvider=Wr.VoidSigner=Wr.Wallet=Wr.Signer=Wr.ethers=void 0;var J1t=Sxr(aPe());Wr.ethers=J1t;try{iPe=window,iPe._ethers==null&&(iPe._ethers=J1t)}catch{}var iPe,J0=aPe();Object.defineProperty(Wr,"Signer",{enumerable:!0,get:function(){return J0.Signer}});Object.defineProperty(Wr,"Wallet",{enumerable:!0,get:function(){return J0.Wallet}});Object.defineProperty(Wr,"VoidSigner",{enumerable:!0,get:function(){return J0.VoidSigner}});Object.defineProperty(Wr,"getDefaultProvider",{enumerable:!0,get:function(){return J0.getDefaultProvider}});Object.defineProperty(Wr,"providers",{enumerable:!0,get:function(){return J0.providers}});Object.defineProperty(Wr,"BaseContract",{enumerable:!0,get:function(){return J0.BaseContract}});Object.defineProperty(Wr,"Contract",{enumerable:!0,get:function(){return J0.Contract}});Object.defineProperty(Wr,"ContractFactory",{enumerable:!0,get:function(){return J0.ContractFactory}});Object.defineProperty(Wr,"BigNumber",{enumerable:!0,get:function(){return J0.BigNumber}});Object.defineProperty(Wr,"FixedNumber",{enumerable:!0,get:function(){return J0.FixedNumber}});Object.defineProperty(Wr,"constants",{enumerable:!0,get:function(){return J0.constants}});Object.defineProperty(Wr,"errors",{enumerable:!0,get:function(){return J0.errors}});Object.defineProperty(Wr,"logger",{enumerable:!0,get:function(){return J0.logger}});Object.defineProperty(Wr,"utils",{enumerable:!0,get:function(){return J0.utils}});Object.defineProperty(Wr,"wordlists",{enumerable:!0,get:function(){return J0.wordlists}});Object.defineProperty(Wr,"version",{enumerable:!0,get:function(){return J0.version}});Object.defineProperty(Wr,"Wordlist",{enumerable:!0,get:function(){return J0.Wordlist}})});var oPe=E(sPe=>{"use strict";f();d();Object.defineProperty(sPe,"__esModule",{value:!0});sPe.default=Rxr;var obe,Pxr=new Uint8Array(16);function Rxr(){if(!obe&&(obe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!obe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return obe(Pxr)}});var Z1t=E(cbe=>{"use strict";f();d();Object.defineProperty(cbe,"__esModule",{value:!0});cbe.default=void 0;var Mxr=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;cbe.default=Mxr});var lse=E(ube=>{"use strict";f();d();Object.defineProperty(ube,"__esModule",{value:!0});ube.default=void 0;var Bxr=Dxr(Z1t());function Dxr(r){return r&&r.__esModule?r:{default:r}}function Nxr(r){return typeof r=="string"&&Bxr.default.test(r)}var Oxr=Nxr;ube.default=Oxr});var dse=E(fse=>{"use strict";f();d();Object.defineProperty(fse,"__esModule",{value:!0});fse.default=void 0;fse.unsafeStringify=X1t;var Fxr=Lxr(lse());function Lxr(r){return r&&r.__esModule?r:{default:r}}var Z0=[];for(let r=0;r<256;++r)Z0.push((r+256).toString(16).slice(1));function X1t(r,e=0){return(Z0[r[e+0]]+Z0[r[e+1]]+Z0[r[e+2]]+Z0[r[e+3]]+"-"+Z0[r[e+4]]+Z0[r[e+5]]+"-"+Z0[r[e+6]]+Z0[r[e+7]]+"-"+Z0[r[e+8]]+Z0[r[e+9]]+"-"+Z0[r[e+10]]+Z0[r[e+11]]+Z0[r[e+12]]+Z0[r[e+13]]+Z0[r[e+14]]+Z0[r[e+15]]).toLowerCase()}function qxr(r,e=0){let t=X1t(r,e);if(!(0,Fxr.default)(t))throw TypeError("Stringified UUID is invalid");return t}var Wxr=qxr;fse.default=Wxr});var tyt=E(lbe=>{"use strict";f();d();Object.defineProperty(lbe,"__esModule",{value:!0});lbe.default=void 0;var Uxr=jxr(oPe()),Hxr=dse();function jxr(r){return r&&r.__esModule?r:{default:r}}var eyt,cPe,uPe=0,lPe=0;function zxr(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||eyt,s=r.clockseq!==void 0?r.clockseq:cPe;if(i==null||s==null){let h=r.random||(r.rng||Uxr.default)();i==null&&(i=eyt=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),s==null&&(s=cPe=(h[6]<<8|h[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),c=r.nsecs!==void 0?r.nsecs:lPe+1,u=o-uPe+(c-lPe)/1e4;if(u<0&&r.clockseq===void 0&&(s=s+1&16383),(u<0||o>uPe)&&r.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");uPe=o,lPe=c,cPe=s,o+=122192928e5;let l=((o&268435455)*1e4+c)%4294967296;a[n++]=l>>>24&255,a[n++]=l>>>16&255,a[n++]=l>>>8&255,a[n++]=l&255;let p=o/4294967296*1e4&268435455;a[n++]=p>>>8&255,a[n++]=p&255,a[n++]=p>>>24&15|16,a[n++]=p>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let h=0;h<6;++h)a[n+h]=i[h];return e||(0,Hxr.unsafeStringify)(a)}var Kxr=zxr;lbe.default=Kxr});var fPe=E(fbe=>{"use strict";f();d();Object.defineProperty(fbe,"__esModule",{value:!0});fbe.default=void 0;var Gxr=Vxr(lse());function Vxr(r){return r&&r.__esModule?r:{default:r}}function $xr(r){if(!(0,Gxr.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var Yxr=$xr;fbe.default=Yxr});var dPe=E(Hv=>{"use strict";f();d();Object.defineProperty(Hv,"__esModule",{value:!0});Hv.URL=Hv.DNS=void 0;Hv.default=e_r;var Qxr=dse(),Jxr=Zxr(fPe());function Zxr(r){return r&&r.__esModule?r:{default:r}}function Xxr(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";f();d();Object.defineProperty(pbe,"__esModule",{value:!0});pbe.default=void 0;function t_r(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function ayt(r){return(r+64>>>9<<4)+14+1}function n_r(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function i_r(r,e){return r<>>32-e}function dbe(r,e,t,n,a,i){return yg(i_r(yg(yg(e,r),yg(n,i)),a),t)}function Lu(r,e,t,n,a,i,s){return dbe(e&t|~e&n,r,e,a,i,s)}function qu(r,e,t,n,a,i,s){return dbe(e&n|t&~n,r,e,a,i,s)}function Wu(r,e,t,n,a,i,s){return dbe(e^t^n,r,e,a,i,s)}function Uu(r,e,t,n,a,i,s){return dbe(t^(e|~n),r,e,a,i,s)}var s_r=t_r;pbe.default=s_r});var oyt=E(hbe=>{"use strict";f();d();Object.defineProperty(hbe,"__esModule",{value:!0});hbe.default=void 0;var o_r=syt(dPe()),c_r=syt(iyt());function syt(r){return r&&r.__esModule?r:{default:r}}var u_r=(0,o_r.default)("v3",48,c_r.default),l_r=u_r;hbe.default=l_r});var cyt=E(mbe=>{"use strict";f();d();Object.defineProperty(mbe,"__esModule",{value:!0});mbe.default=void 0;var f_r=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),d_r={randomUUID:f_r};mbe.default=d_r});var fyt=E(ybe=>{"use strict";f();d();Object.defineProperty(ybe,"__esModule",{value:!0});ybe.default=void 0;var uyt=lyt(cyt()),p_r=lyt(oPe()),h_r=dse();function lyt(r){return r&&r.__esModule?r:{default:r}}function m_r(r,e,t){if(uyt.default.randomUUID&&!e&&!r)return uyt.default.randomUUID();r=r||{};let n=r.random||(r.rng||p_r.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,h_r.unsafeStringify)(n)}var y_r=m_r;ybe.default=y_r});var dyt=E(bbe=>{"use strict";f();d();Object.defineProperty(bbe,"__esModule",{value:!0});bbe.default=void 0;function b_r(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function pPe(r,e){return r<>>32-e}function g_r(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let o=0;o>>0;h=p,p=l,l=pPe(u,30)>>>0,u=c,c=C}t[0]=t[0]+c>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+l>>>0,t[3]=t[3]+p>>>0,t[4]=t[4]+h>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var v_r=g_r;bbe.default=v_r});var hyt=E(gbe=>{"use strict";f();d();Object.defineProperty(gbe,"__esModule",{value:!0});gbe.default=void 0;var w_r=pyt(dPe()),x_r=pyt(dyt());function pyt(r){return r&&r.__esModule?r:{default:r}}var __r=(0,w_r.default)("v5",80,x_r.default),T_r=__r;gbe.default=T_r});var myt=E(vbe=>{"use strict";f();d();Object.defineProperty(vbe,"__esModule",{value:!0});vbe.default=void 0;var E_r="00000000-0000-0000-0000-000000000000";vbe.default=E_r});var yyt=E(wbe=>{"use strict";f();d();Object.defineProperty(wbe,"__esModule",{value:!0});wbe.default=void 0;var I_r=C_r(lse());function C_r(r){return r&&r.__esModule?r:{default:r}}function A_r(r){if(!(0,I_r.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var k_r=A_r;wbe.default=k_r});var Cn=E(kh=>{"use strict";f();d();Object.defineProperty(kh,"__esModule",{value:!0});Object.defineProperty(kh,"NIL",{enumerable:!0,get:function(){return B_r.default}});Object.defineProperty(kh,"parse",{enumerable:!0,get:function(){return F_r.default}});Object.defineProperty(kh,"stringify",{enumerable:!0,get:function(){return O_r.default}});Object.defineProperty(kh,"v1",{enumerable:!0,get:function(){return S_r.default}});Object.defineProperty(kh,"v3",{enumerable:!0,get:function(){return P_r.default}});Object.defineProperty(kh,"v4",{enumerable:!0,get:function(){return R_r.default}});Object.defineProperty(kh,"v5",{enumerable:!0,get:function(){return M_r.default}});Object.defineProperty(kh,"validate",{enumerable:!0,get:function(){return N_r.default}});Object.defineProperty(kh,"version",{enumerable:!0,get:function(){return D_r.default}});var S_r=lb(tyt()),P_r=lb(oyt()),R_r=lb(fyt()),M_r=lb(hyt()),B_r=lb(myt()),D_r=lb(yyt()),N_r=lb(lse()),O_r=lb(dse()),F_r=lb(fPe());function lb(r){return r&&r.__esModule?r:{default:r}}});var pse=E(Ki=>{"use strict";f();d();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getParsedType=Ki.ZodParsedType=Ki.objectUtil=Ki.util=void 0;var byt;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(let o of i)s[o]=a[o];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(byt=Ki.util||(Ki.util={}));var L_r;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(L_r=Ki.objectUtil||(Ki.objectUtil={}));Ki.ZodParsedType=byt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var q_r=r=>{switch(typeof r){case"undefined":return Ki.ZodParsedType.undefined;case"string":return Ki.ZodParsedType.string;case"number":return isNaN(r)?Ki.ZodParsedType.nan:Ki.ZodParsedType.number;case"boolean":return Ki.ZodParsedType.boolean;case"function":return Ki.ZodParsedType.function;case"bigint":return Ki.ZodParsedType.bigint;case"symbol":return Ki.ZodParsedType.symbol;case"object":return Array.isArray(r)?Ki.ZodParsedType.array:r===null?Ki.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Ki.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?Ki.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?Ki.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?Ki.ZodParsedType.date:Ki.ZodParsedType.object;default:return Ki.ZodParsedType.unknown}};Ki.getParsedType=q_r});var xbe=E(bg=>{"use strict";f();d();Object.defineProperty(bg,"__esModule",{value:!0});bg.ZodError=bg.quotelessJson=bg.ZodIssueCode=void 0;var gyt=pse();bg.ZodIssueCode=gyt.util.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"]);var W_r=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");bg.quotelessJson=W_r;var hse=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};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(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let o=n,c=0;for(;ct.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};bg.ZodError=hse;hse.create=r=>new hse(r)});var mPe=E(hPe=>{"use strict";f();d();Object.defineProperty(hPe,"__esModule",{value:!0});var jv=pse(),Hu=xbe(),U_r=(r,e)=>{let t;switch(r.code){case Hu.ZodIssueCode.invalid_type:r.received===jv.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case Hu.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,jv.util.jsonStringifyReplacer)}`;break;case Hu.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${jv.util.joinValues(r.keys,", ")}`;break;case Hu.ZodIssueCode.invalid_union:t="Invalid input";break;case Hu.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${jv.util.joinValues(r.options)}`;break;case Hu.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${jv.util.joinValues(r.options)}, received '${r.received}'`;break;case Hu.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case Hu.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case Hu.ZodIssueCode.invalid_date:t="Invalid date";break;case Hu.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:jv.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case Hu.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case Hu.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case Hu.ZodIssueCode.custom:t="Invalid input";break;case Hu.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case Hu.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case Hu.ZodIssueCode.not_finite:t="Number must be finite";break;default:t=e.defaultError,jv.util.assertNever(r)}return{message:t}};hPe.default=U_r});var _be=E(w1=>{"use strict";f();d();var H_r=w1&&w1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w1,"__esModule",{value:!0});w1.getErrorMap=w1.setErrorMap=w1.defaultErrorMap=void 0;var vyt=H_r(mPe());w1.defaultErrorMap=vyt.default;var wyt=vyt.default;function j_r(r){wyt=r}w1.setErrorMap=j_r;function z_r(){return wyt}w1.getErrorMap=z_r});var yPe=E(ki=>{"use strict";f();d();var K_r=ki&&ki.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ki,"__esModule",{value:!0});ki.isAsync=ki.isValid=ki.isDirty=ki.isAborted=ki.OK=ki.DIRTY=ki.INVALID=ki.ParseStatus=ki.addIssueToContext=ki.EMPTY_PATH=ki.makeIssue=void 0;var G_r=_be(),V_r=K_r(mPe()),$_r=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},o="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)o=u(s,{data:e,defaultError:o}).message;return{...a,path:i,message:a.message||o}};ki.makeIssue=$_r;ki.EMPTY_PATH=[];function Y_r(r,e){let t=(0,ki.makeIssue)({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,(0,G_r.getErrorMap)(),V_r.default].filter(n=>!!n)});r.common.issues.push(t)}ki.addIssueToContext=Y_r;var mse=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return ki.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return mse.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return ki.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};ki.ParseStatus=mse;ki.INVALID=Object.freeze({status:"aborted"});var Q_r=r=>({status:"dirty",value:r});ki.DIRTY=Q_r;var J_r=r=>({status:"valid",value:r});ki.OK=J_r;var Z_r=r=>r.status==="aborted";ki.isAborted=Z_r;var X_r=r=>r.status==="dirty";ki.isDirty=X_r;var eTr=r=>r.status==="valid";ki.isValid=eTr;var tTr=r=>typeof Promise<"u"&&r instanceof Promise;ki.isAsync=tTr});var _yt=E(xyt=>{"use strict";f();d();Object.defineProperty(xyt,"__esModule",{value:!0})});var Tyt=E(yse=>{"use strict";f();d();Object.defineProperty(yse,"__esModule",{value:!0});yse.errorUtil=void 0;var rTr;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(rTr=yse.errorUtil||(yse.errorUtil={}))});var Pyt=E(ve=>{"use strict";f();d();Object.defineProperty(ve,"__esModule",{value:!0});ve.discriminatedUnion=ve.date=ve.boolean=ve.bigint=ve.array=ve.any=ve.coerce=ve.ZodFirstPartyTypeKind=ve.late=ve.ZodSchema=ve.Schema=ve.custom=ve.ZodPipeline=ve.ZodBranded=ve.BRAND=ve.ZodNaN=ve.ZodCatch=ve.ZodDefault=ve.ZodNullable=ve.ZodOptional=ve.ZodTransformer=ve.ZodEffects=ve.ZodPromise=ve.ZodNativeEnum=ve.ZodEnum=ve.ZodLiteral=ve.ZodLazy=ve.ZodFunction=ve.ZodSet=ve.ZodMap=ve.ZodRecord=ve.ZodTuple=ve.ZodIntersection=ve.ZodDiscriminatedUnion=ve.ZodUnion=ve.ZodObject=ve.ZodArray=ve.ZodVoid=ve.ZodNever=ve.ZodUnknown=ve.ZodAny=ve.ZodNull=ve.ZodUndefined=ve.ZodSymbol=ve.ZodDate=ve.ZodBoolean=ve.ZodBigInt=ve.ZodNumber=ve.ZodString=ve.ZodType=void 0;ve.NEVER=ve.void=ve.unknown=ve.union=ve.undefined=ve.tuple=ve.transformer=ve.symbol=ve.string=ve.strictObject=ve.set=ve.record=ve.promise=ve.preprocess=ve.pipeline=ve.ostring=ve.optional=ve.onumber=ve.oboolean=ve.object=ve.number=ve.nullable=ve.null=ve.never=ve.nativeEnum=ve.nan=ve.map=ve.literal=ve.lazy=ve.intersection=ve.instanceof=ve.function=ve.enum=ve.effect=void 0;var Tbe=_be(),pr=Tyt(),Ee=yPe(),ut=pse(),ct=xbe(),yp=class{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}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}},Eyt=(r,e)=>{if((0,Ee.isValid)(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new ct.ZodError(r.common.issues);return this._error=t,this._error}}};function rn(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,o)=>s.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:t??o.defaultError},description:a}}var nn=class{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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,ut.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,ut.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Ee.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,ut.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,Ee.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,ut.getParsedType)(e)},i=this._parseSync({data:e,path:a.path,parent:a});return Eyt(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,ut.getParsedType)(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await((0,Ee.isAsync)(a)?a:Promise.resolve(a));return Eyt(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),o=()=>i.addIssue({code:ct.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new Jf({schema:this,typeName:kr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Sh.create(this,this._def)}nullable(){return hb.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qf.create(this,this._def)}promise(){return wg.create(this,this._def)}or(e){return Vv.create([this,e],this._def)}and(e){return $v.create(this,e,this._def)}transform(e){return new Jf({...rn(this._def),schema:this,typeName:kr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new Xv({...rn(this._def),innerType:this,defaultValue:t,typeName:kr.ZodDefault})}brand(){return new Ibe({typeName:kr.ZodBranded,type:this,...rn(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new wT({...rn(this._def),innerType:this,catchValue:t,typeName:kr.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return ew.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};ve.ZodType=nn;ve.Schema=nn;ve.ZodSchema=nn;var nTr=/^c[^\s-]{8,}$/i,aTr=/^[a-z][a-z0-9]*$/,iTr=/[0-9A-HJKMNP-TV-Z]{26}/,sTr=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,oTr=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((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}))\])|(\[IPv6:(([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})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,cTr=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,uTr=/^(((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}))$/,lTr=/^(([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})))$/,fTr=r=>r.precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):r.precision===0?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function dTr(r,e){return!!((e==="v4"||!e)&&uTr.test(r)||(e==="v6"||!e)&&lTr.test(r))}var Yf=class extends nn{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:ct.ZodIssueCode.invalid_string,...pr.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,pr.errorUtil.errToObj(e)),this.trim=()=>new Yf({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Yf({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Yf({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==ut.ZodParsedType.string){let i=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(i,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.string,received:i.parsedType}),Ee.INVALID}let n=new Ee.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),(0,Ee.addIssueToContext)(a,{code:ct.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,o=e.data.length"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,...pr.errorUtil.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...pr.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...pr.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...pr.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...pr.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...pr.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...pr.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...pr.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Yf({checks:[],typeName:kr.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...rn(r)})};function pTr(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var x1=class extends nn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==ut.ZodParsedType.number){let i=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(i,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.number,received:i.parsedType}),Ee.INVALID}let n,a=new Ee.ParseStatus;for(let i of this._def.checks)i.kind==="int"?ut.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?pTr(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.not_finite,message:i.message}),a.dirty()):ut.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,pr.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,pr.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,pr.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,pr.errorUtil.toString(t))}setLimit(e,t,n,a){return new x1({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:pr.errorUtil.toString(a)}]})}_addCheck(e){return new x1({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:pr.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:pr.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:pr.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:pr.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:pr.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:pr.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:pr.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:pr.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:pr.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&ut.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.valuenew x1({checks:[],typeName:kr.ZodNumber,coerce:r?.coerce||!1,...rn(r)});var _1=class extends nn{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==ut.ZodParsedType.bigint){let i=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(i,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.bigint,received:i.parsedType}),Ee.INVALID}let n,a=new Ee.ParseStatus;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):ut.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,pr.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,pr.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,pr.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,pr.errorUtil.toString(t))}setLimit(e,t,n,a){return new _1({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:pr.errorUtil.toString(a)}]})}_addCheck(e){return new _1({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:pr.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:pr.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:pr.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:pr.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:pr.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new _1({checks:[],typeName:kr.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...rn(r)})};var zv=class extends nn{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==ut.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.boolean,received:n.parsedType}),Ee.INVALID}return(0,Ee.OK)(e.data)}};ve.ZodBoolean=zv;zv.create=r=>new zv({typeName:kr.ZodBoolean,coerce:r?.coerce||!1,...rn(r)});var db=class extends nn{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==ut.ZodParsedType.date){let i=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(i,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.date,received:i.parsedType}),Ee.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(i,{code:ct.ZodIssueCode.invalid_date}),Ee.INVALID}let n=new Ee.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),(0,Ee.addIssueToContext)(a,{code:ct.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):ut.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new db({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:pr.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:pr.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew db({checks:[],coerce:r?.coerce||!1,typeName:kr.ZodDate,...rn(r)});var yT=class extends nn{_parse(e){if(this._getType(e)!==ut.ZodParsedType.symbol){let n=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.symbol,received:n.parsedType}),Ee.INVALID}return(0,Ee.OK)(e.data)}};ve.ZodSymbol=yT;yT.create=r=>new yT({typeName:kr.ZodSymbol,...rn(r)});var Kv=class extends nn{_parse(e){if(this._getType(e)!==ut.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.undefined,received:n.parsedType}),Ee.INVALID}return(0,Ee.OK)(e.data)}};ve.ZodUndefined=Kv;Kv.create=r=>new Kv({typeName:kr.ZodUndefined,...rn(r)});var Gv=class extends nn{_parse(e){if(this._getType(e)!==ut.ZodParsedType.null){let n=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.null,received:n.parsedType}),Ee.INVALID}return(0,Ee.OK)(e.data)}};ve.ZodNull=Gv;Gv.create=r=>new Gv({typeName:kr.ZodNull,...rn(r)});var vg=class extends nn{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,Ee.OK)(e.data)}};ve.ZodAny=vg;vg.create=r=>new vg({typeName:kr.ZodAny,...rn(r)});var fb=class extends nn{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,Ee.OK)(e.data)}};ve.ZodUnknown=fb;fb.create=r=>new fb({typeName:kr.ZodUnknown,...rn(r)});var Ph=class extends nn{_parse(e){let t=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.never,received:t.parsedType}),Ee.INVALID}};ve.ZodNever=Ph;Ph.create=r=>new Ph({typeName:kr.ZodNever,...rn(r)});var bT=class extends nn{_parse(e){if(this._getType(e)!==ut.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.void,received:n.parsedType}),Ee.INVALID}return(0,Ee.OK)(e.data)}};ve.ZodVoid=bT;bT.create=r=>new bT({typeName:kr.ZodVoid,...rn(r)});var Qf=class extends nn{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==ut.ZodParsedType.array)return(0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.array,received:t.parsedType}),Ee.INVALID;if(a.exactLength!==null){let s=t.data.length>a.exactLength.value,o=t.data.lengtha.maxLength.value&&((0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((s,o)=>a.type._parseAsync(new yp(t,s,t.path,o)))).then(s=>Ee.ParseStatus.mergeArray(n,s));let i=[...t.data].map((s,o)=>a.type._parseSync(new yp(t,s,t.path,o)));return Ee.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Qf({...this._def,minLength:{value:e,message:pr.errorUtil.toString(t)}})}max(e,t){return new Qf({...this._def,maxLength:{value:e,message:pr.errorUtil.toString(t)}})}length(e,t){return new Qf({...this._def,exactLength:{value:e,message:pr.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}};ve.ZodArray=Qf;Qf.create=(r,e)=>new Qf({type:r,minLength:null,maxLength:null,exactLength:null,typeName:kr.ZodArray,...rn(e)});function mT(r){if(r instanceof fs){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=Sh.create(mT(n))}return new fs({...r._def,shape:()=>e})}else return r instanceof Qf?new Qf({...r._def,type:mT(r.element)}):r instanceof Sh?Sh.create(mT(r.unwrap())):r instanceof hb?hb.create(mT(r.unwrap())):r instanceof bp?bp.create(r.items.map(e=>mT(e))):r}var fs=class extends nn{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=ut.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==ut.ZodParsedType.object){let u=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(u,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.object,received:u.parsedType}),Ee.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ph&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let c=[];for(let u of s){let l=i[u],p=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new yp(a,p,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof Ph){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")o.length>0&&((0,Ee.addIssueToContext)(a,{code:ct.ZodIssueCode.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of o){let p=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new yp(a,p,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let p=await l.key;u.push({key:p,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>Ee.ParseStatus.mergeObjectSync(n,u)):Ee.ParseStatus.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return pr.errorUtil.errToObj,new fs({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,o;let c=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=pr.errorUtil.errToObj(e).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new fs({...this._def,unknownKeys:"strip"})}passthrough(){return new fs({...this._def,unknownKeys:"passthrough"})}extend(e){return new fs({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new fs({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:kr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new fs({...this._def,catchall:e})}pick(e){let t={};return ut.util.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new fs({...this._def,shape:()=>t})}omit(e){let t={};return ut.util.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new fs({...this._def,shape:()=>t})}deepPartial(){return mT(this)}partial(e){let t={};return ut.util.objectKeys(this.shape).forEach(n=>{let a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new fs({...this._def,shape:()=>t})}required(e){let t={};return ut.util.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof Sh;)i=i._def.innerType;t[n]=i}}),new fs({...this._def,shape:()=>t})}keyof(){return Iyt(ut.util.objectKeys(this.shape))}};ve.ZodObject=fs;fs.create=(r,e)=>new fs({shape:()=>r,unknownKeys:"strip",catchall:Ph.create(),typeName:kr.ZodObject,...rn(e)});fs.strictCreate=(r,e)=>new fs({shape:()=>r,unknownKeys:"strict",catchall:Ph.create(),typeName:kr.ZodObject,...rn(e)});fs.lazycreate=(r,e)=>new fs({shape:r,unknownKeys:"strip",catchall:Ph.create(),typeName:kr.ZodObject,...rn(e)});var Vv=class extends nn{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let o of i)if(o.result.status==="valid")return o.result;for(let o of i)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(o=>new ct.ZodError(o.ctx.common.issues));return(0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_union,unionErrors:s}),Ee.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let c of n){let u={...t,common:{...t.common,issues:[]},parent:null},l=c._parseSync({data:t.data,path:t.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let o=s.map(c=>new ct.ZodError(c));return(0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_union,unionErrors:o}),Ee.INVALID}}get options(){return this._def.options}};ve.ZodUnion=Vv;Vv.create=(r,e)=>new Vv({options:r,typeName:kr.ZodUnion,...rn(e)});var Ebe=r=>r instanceof Qv?Ebe(r.schema):r instanceof Jf?Ebe(r.innerType()):r instanceof Jv?[r.value]:r instanceof T1?r.options:r instanceof Zv?Object.keys(r.enum):r instanceof Xv?Ebe(r._def.innerType):r instanceof Kv?[void 0]:r instanceof Gv?[null]:null,gT=class extends nn{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==ut.ZodParsedType.object)return(0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.object,received:t.parsedType}),Ee.INVALID;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);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}):((0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),Ee.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let i of t){let s=Ebe(i.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of s){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,i)}}return new gT({typeName:kr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...rn(n)})}};ve.ZodDiscriminatedUnion=gT;function bPe(r,e){let t=(0,ut.getParsedType)(r),n=(0,ut.getParsedType)(e);if(r===e)return{valid:!0,data:r};if(t===ut.ZodParsedType.object&&n===ut.ZodParsedType.object){let a=ut.util.objectKeys(e),i=ut.util.objectKeys(r).filter(o=>a.indexOf(o)!==-1),s={...r,...e};for(let o of i){let c=bPe(r[o],e[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(t===ut.ZodParsedType.array&&n===ut.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if((0,Ee.isAborted)(i)||(0,Ee.isAborted)(s))return Ee.INVALID;let o=bPe(i.value,s.value);return o.valid?(((0,Ee.isDirty)(i)||(0,Ee.isDirty)(s))&&t.dirty(),{status:t.value,value:o.data}):((0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_intersection_types}),Ee.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ve.ZodIntersection=$v;$v.create=(r,e,t)=>new $v({left:r,right:e,typeName:kr.ZodIntersection,...rn(t)});var bp=class extends nn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ut.ZodParsedType.array)return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.array,received:n.parsedType}),Ee.INVALID;if(n.data.lengththis._def.items.length&&((0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((s,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new yp(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>Ee.ParseStatus.mergeArray(t,s)):Ee.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new bp({...this._def,rest:e})}};ve.ZodTuple=bp;bp.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new bp({items:r,typeName:kr.ZodTuple,rest:null,...rn(e)})};var Yv=class extends nn{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ut.ZodParsedType.object)return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.object,received:n.parsedType}),Ee.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:i._parse(new yp(n,o,n.path,o)),value:s._parse(new yp(n,n.data[o],n.path,o))});return n.common.async?Ee.ParseStatus.mergeObjectAsync(t,a):Ee.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof nn?new Yv({keyType:e,valueType:t,typeName:kr.ZodRecord,...rn(n)}):new Yv({keyType:Yf.create(),valueType:e,typeName:kr.ZodRecord,...rn(t)})}};ve.ZodRecord=Yv;var vT=class extends nn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ut.ZodParsedType.map)return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.map,received:n.parsedType}),Ee.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([o,c],u)=>({key:a._parse(new yp(n,o,n.path,[u,"key"])),value:i._parse(new yp(n,c,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return Ee.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return Ee.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}}}};ve.ZodMap=vT;vT.create=(r,e,t)=>new vT({valueType:e,keyType:r,typeName:kr.ZodMap,...rn(t)});var pb=class extends nn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==ut.ZodParsedType.set)return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.set,received:n.parsedType}),Ee.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&((0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return Ee.INVALID;l.status==="dirty"&&t.dirty(),u.add(l.value)}return{status:t.value,value:u}}let o=[...n.data.values()].map((c,u)=>i._parse(new yp(n,c,n.path,u)));return n.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(e,t){return new pb({...this._def,minSize:{value:e,message:pr.errorUtil.toString(t)}})}max(e,t){return new pb({...this._def,maxSize:{value:e,message:pr.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ve.ZodSet=pb;pb.create=(r,e)=>new pb({valueType:r,minSize:null,maxSize:null,typeName:kr.ZodSet,...rn(e)});var gg=class extends nn{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==ut.ZodParsedType.function)return(0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.function,received:t.parsedType}),Ee.INVALID;function n(o,c){return(0,Ee.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,Tbe.getErrorMap)(),Tbe.defaultErrorMap].filter(u=>!!u),issueData:{code:ct.ZodIssueCode.invalid_arguments,argumentsError:c}})}function a(o,c){return(0,Ee.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,Tbe.getErrorMap)(),Tbe.defaultErrorMap].filter(u=>!!u),issueData:{code:ct.ZodIssueCode.invalid_return_type,returnTypeError:c}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof wg?(0,Ee.OK)(async(...o)=>{let c=new ct.ZodError([]),u=await this._def.args.parseAsync(o,i).catch(h=>{throw c.addIssue(n(o,h)),c}),l=await s(...u);return await this._def.returns._def.type.parseAsync(l,i).catch(h=>{throw c.addIssue(a(l,h)),c})}):(0,Ee.OK)((...o)=>{let c=this._def.args.safeParse(o,i);if(!c.success)throw new ct.ZodError([n(o,c.error)]);let u=s(...c.data),l=this._def.returns.safeParse(u,i);if(!l.success)throw new ct.ZodError([a(u,l.error)]);return l.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new gg({...this._def,args:bp.create(e).rest(fb.create())})}returns(e){return new gg({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new gg({args:e||bp.create([]).rest(fb.create()),returns:t||fb.create(),typeName:kr.ZodFunction,...rn(n)})}};ve.ZodFunction=gg;var Qv=class extends nn{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})}};ve.ZodLazy=Qv;Qv.create=(r,e)=>new Qv({getter:r,typeName:kr.ZodLazy,...rn(e)});var Jv=class extends nn{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(t,{received:t.data,code:ct.ZodIssueCode.invalid_literal,expected:this._def.value}),Ee.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};ve.ZodLiteral=Jv;Jv.create=(r,e)=>new Jv({value:r,typeName:kr.ZodLiteral,...rn(e)});function Iyt(r,e){return new T1({values:r,typeName:kr.ZodEnum,...rn(e)})}var T1=class extends nn{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,Ee.addIssueToContext)(t,{expected:ut.util.joinValues(n),received:t.parsedType,code:ct.ZodIssueCode.invalid_type}),Ee.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,Ee.addIssueToContext)(t,{received:t.data,code:ct.ZodIssueCode.invalid_enum_value,options:n}),Ee.INVALID}return(0,Ee.OK)(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 T1.create(e)}exclude(e){return T1.create(this.options.filter(t=>!e.includes(t)))}};ve.ZodEnum=T1;T1.create=Iyt;var Zv=class extends nn{_parse(e){let t=ut.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==ut.ZodParsedType.string&&n.parsedType!==ut.ZodParsedType.number){let a=ut.util.objectValues(t);return(0,Ee.addIssueToContext)(n,{expected:ut.util.joinValues(a),received:n.parsedType,code:ct.ZodIssueCode.invalid_type}),Ee.INVALID}if(t.indexOf(e.data)===-1){let a=ut.util.objectValues(t);return(0,Ee.addIssueToContext)(n,{received:n.data,code:ct.ZodIssueCode.invalid_enum_value,options:a}),Ee.INVALID}return(0,Ee.OK)(e.data)}get enum(){return this._def.values}};ve.ZodNativeEnum=Zv;Zv.create=(r,e)=>new Zv({values:r,typeName:kr.ZodNativeEnum,...rn(e)});var wg=class extends nn{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==ut.ZodParsedType.promise&&t.common.async===!1)return(0,Ee.addIssueToContext)(t,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.promise,received:t.parsedType}),Ee.INVALID;let n=t.parsedType===ut.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,Ee.OK)(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};ve.ZodPromise=wg;wg.create=(r,e)=>new wg({type:r,typeName:kr.ZodPromise,...rn(e)});var Jf=class extends nn{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===kr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(o=>this._def.schema._parseAsync({data:o,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{(0,Ee.addIssueToContext)(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=o=>{let c=a.refinement(o,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?Ee.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?Ee.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value).then(()=>({status:t.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,Ee.isValid)(s))return s;let o=a.transform(s.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>(0,Ee.isValid)(s)?Promise.resolve(a.transform(s.value,i)).then(o=>({status:t.value,value:o})):s);ut.util.assertNever(a)}};ve.ZodEffects=Jf;ve.ZodTransformer=Jf;Jf.create=(r,e,t)=>new Jf({schema:r,typeName:kr.ZodEffects,effect:e,...rn(t)});Jf.createWithPreprocess=(r,e,t)=>new Jf({schema:e,effect:{type:"preprocess",transform:r},typeName:kr.ZodEffects,...rn(t)});var Sh=class extends nn{_parse(e){return this._getType(e)===ut.ZodParsedType.undefined?(0,Ee.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ve.ZodOptional=Sh;Sh.create=(r,e)=>new Sh({innerType:r,typeName:kr.ZodOptional,...rn(e)});var hb=class extends nn{_parse(e){return this._getType(e)===ut.ZodParsedType.null?(0,Ee.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};ve.ZodNullable=hb;hb.create=(r,e)=>new hb({innerType:r,typeName:kr.ZodNullable,...rn(e)});var Xv=class extends nn{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===ut.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};ve.ZodDefault=Xv;Xv.create=(r,e)=>new Xv({innerType:r,typeName:kr.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...rn(e)});var wT=class extends nn{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,Ee.isAsync)(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ct.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ct.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ve.ZodCatch=wT;wT.create=(r,e)=>new wT({innerType:r,typeName:kr.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...rn(e)});var xT=class extends nn{_parse(e){if(this._getType(e)!==ut.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return(0,Ee.addIssueToContext)(n,{code:ct.ZodIssueCode.invalid_type,expected:ut.ZodParsedType.nan,received:n.parsedType}),Ee.INVALID}return{status:"valid",value:e.data}}};ve.ZodNaN=xT;xT.create=r=>new xT({typeName:kr.ZodNaN,...rn(r)});ve.BRAND=Symbol("zod_brand");var Ibe=class extends nn{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};ve.ZodBranded=Ibe;var ew=class extends nn{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?Ee.INVALID:i.status==="dirty"?(t.dirty(),(0,Ee.DIRTY)(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?Ee.INVALID:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new ew({in:e,out:t,typeName:kr.ZodPipeline})}};ve.ZodPipeline=ew;var hTr=(r,e={},t)=>r?vg.create().superRefine((n,a)=>{var i,s;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(s=(i=o.fatal)!==null&&i!==void 0?i:t)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:c})}}):vg.create();ve.custom=hTr;ve.late={object:fs.lazycreate};var kr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline"})(kr=ve.ZodFirstPartyTypeKind||(ve.ZodFirstPartyTypeKind={}));var mTr=(r,e={message:`Input not instance of ${r.name}`})=>(0,ve.custom)(t=>t instanceof r,e);ve.instanceof=mTr;var Cyt=Yf.create;ve.string=Cyt;var Ayt=x1.create;ve.number=Ayt;var yTr=xT.create;ve.nan=yTr;var bTr=_1.create;ve.bigint=bTr;var kyt=zv.create;ve.boolean=kyt;var gTr=db.create;ve.date=gTr;var vTr=yT.create;ve.symbol=vTr;var wTr=Kv.create;ve.undefined=wTr;var xTr=Gv.create;ve.null=xTr;var _Tr=vg.create;ve.any=_Tr;var TTr=fb.create;ve.unknown=TTr;var ETr=Ph.create;ve.never=ETr;var ITr=bT.create;ve.void=ITr;var CTr=Qf.create;ve.array=CTr;var ATr=fs.create;ve.object=ATr;var kTr=fs.strictCreate;ve.strictObject=kTr;var STr=Vv.create;ve.union=STr;var PTr=gT.create;ve.discriminatedUnion=PTr;var RTr=$v.create;ve.intersection=RTr;var MTr=bp.create;ve.tuple=MTr;var BTr=Yv.create;ve.record=BTr;var DTr=vT.create;ve.map=DTr;var NTr=pb.create;ve.set=NTr;var OTr=gg.create;ve.function=OTr;var FTr=Qv.create;ve.lazy=FTr;var LTr=Jv.create;ve.literal=LTr;var qTr=T1.create;ve.enum=qTr;var WTr=Zv.create;ve.nativeEnum=WTr;var UTr=wg.create;ve.promise=UTr;var Syt=Jf.create;ve.effect=Syt;ve.transformer=Syt;var HTr=Sh.create;ve.optional=HTr;var jTr=hb.create;ve.nullable=jTr;var zTr=Jf.createWithPreprocess;ve.preprocess=zTr;var KTr=ew.create;ve.pipeline=KTr;var GTr=()=>Cyt().optional();ve.ostring=GTr;var VTr=()=>Ayt().optional();ve.onumber=VTr;var $Tr=()=>kyt().optional();ve.oboolean=$Tr;ve.coerce={string:r=>Yf.create({...r,coerce:!0}),number:r=>x1.create({...r,coerce:!0}),boolean:r=>zv.create({...r,coerce:!0}),bigint:r=>_1.create({...r,coerce:!0}),date:r=>db.create({...r,coerce:!0})};ve.NEVER=Ee.INVALID});var gPe=E(gp=>{"use strict";f();d();var YTr=gp&&gp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),_T=gp&&gp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&YTr(e,r,t)};Object.defineProperty(gp,"__esModule",{value:!0});_T(_be(),gp);_T(yPe(),gp);_T(_yt(),gp);_T(pse(),gp);_T(Pyt(),gp);_T(xbe(),gp)});var fn=E(Zl=>{"use strict";f();d();var Ryt=Zl&&Zl.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),QTr=Zl&&Zl.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),JTr=Zl&&Zl.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Ryt(e,r,t);return QTr(e,r),e},ZTr=Zl&&Zl.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ryt(e,r,t)};Object.defineProperty(Zl,"__esModule",{value:!0});Zl.z=void 0;var Myt=JTr(gPe());Zl.z=Myt;ZTr(gPe(),Zl);Zl.default=Myt});var zyt=E(Xl=>{"use strict";f();d();var Nyt=ke(),Oyt=Cn(),vt=fn();function XTr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function eEr(r){var e=XTr(r,"string");return typeof e=="symbol"?e:String(e)}function Byt(r,e,t){return e=eEr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var tEr=vt.z.string().refine(r=>Nyt.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Cbe=vt.z.date().transform(r=>Nyt.BigNumber.from(Math.floor(r.getTime()/1e3))),Fyt=vt.z.union([vt.z.literal("evm"),vt.z.literal("solana")]),rEr=vt.z.union([vt.z.string(),vt.z.number(),vt.z.boolean(),vt.z.null()]),Abe=vt.z.lazy(()=>vt.z.union([rEr,vt.z.array(Abe),vt.z.record(Abe)]),{invalid_type_error:"Provided value was not valid JSON"}),Lyt=vt.z.object({domain:vt.z.string().optional(),statement:vt.z.string().optional(),uri:vt.z.string().optional(),version:vt.z.string().optional(),chainId:vt.z.string().optional(),nonce:vt.z.string().optional(),expirationTime:vt.z.date().optional(),invalidBefore:vt.z.date().optional(),resources:vt.z.array(vt.z.string()).optional()}).optional(),kbe=vt.z.object({type:Fyt,domain:vt.z.string(),address:vt.z.string(),statement:vt.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:vt.z.string().optional(),version:vt.z.string().default("1"),chain_id:vt.z.string().optional(),nonce:vt.z.string().default(Oyt.v4()),issued_at:vt.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:vt.z.date().transform(r=>r.toISOString()),invalid_before:vt.z.date().default(new Date).transform(r=>r.toISOString()),resources:vt.z.array(vt.z.string()).optional()}),qyt=vt.z.object({payload:kbe,signature:vt.z.string()}),Wyt=vt.z.object({domain:vt.z.string().optional(),statement:vt.z.string().optional(),uri:vt.z.string().optional(),version:vt.z.string().optional(),chainId:vt.z.string().optional(),validateNonce:vt.z.function().args(vt.z.string()).optional(),resources:vt.z.array(vt.z.string()).optional()}),Uyt=Wyt.optional(),Hyt=vt.z.object({domain:vt.z.string().optional(),tokenId:vt.z.string().optional(),expirationTime:vt.z.date().optional(),invalidBefore:vt.z.date().optional(),session:vt.z.union([Abe,vt.z.function().args(vt.z.string())]).optional(),verifyOptions:Wyt.omit({domain:!0}).optional()}).optional(),wPe=vt.z.object({iss:vt.z.string(),sub:vt.z.string(),aud:vt.z.string(),exp:Cbe.transform(r=>r.toNumber()),nbf:Cbe.transform(r=>r.toNumber()),iat:Cbe.transform(r=>r.toNumber()),jti:vt.z.string().default(Oyt.v4()),ctx:Abe.optional()}),nEr=vt.z.object({payload:wPe,signature:vt.z.string()}),jyt=vt.z.object({domain:vt.z.string().optional(),validateTokenId:vt.z.function().args(vt.z.string()).optional()}).optional(),aEr=qyt.extend({payload:kbe.extend({issued_at:vt.z.string(),expiration_time:vt.z.string(),invalid_before:vt.z.string()})}),Dyt=()=>typeof window<"u",vPe=class{constructor(e,t){Byt(this,"domain",void 0),Byt(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=Lyt.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=kbe.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri,chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=Uyt.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(Dyt())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=Hyt.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let P=await n.session(i);P&&(s=P)}else s=n?.session;let o=await this.wallet.getAddress(),c=wPe.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),p={alg:"ES256",typ:"JWT"},h=v.Buffer.from(JSON.stringify(p)).toString("base64"),m=v.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=v.Buffer.from(l).toString("base64");return`${h}.${m}.${y}`}async authenticate(e,t){if(Dyt())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=jyt.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(v.Buffer.from(i,"base64").toString()),c=v.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let p;if(this.wallet.getChainId)try{p=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,p))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` `);a=[a,e.statement].join(` `),e.statement&&(a+=` -`);let i=[];if(e.uri){let h=`URI: ${e.uri}`;i.push(h)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let h="Chain ID: "+e.chain_id||"1";i.push(h)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let h=`Not Before: ${e.invalid_before}`;i.push(h)}e.resources&&i.push(["Resources:",...e.resources.map(h=>`- ${h}`)].join(` +`);let i=[];if(e.uri){let p=`URI: ${e.uri}`;i.push(p)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let p="Chain ID: "+e.chain_id||"1";i.push(p)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let p=`Not Before: ${e.invalid_before}`;i.push(p)}e.resources&&i.push(["Resources:",...e.resources.map(p=>`- ${p}`)].join(` `));let l=i.join(` `);return[a,l].join(` -`)}};yl.AccountTypeSchema=yXe;yl.AddressSchema=gXt;yl.AuthenticateOptionsSchema=_Xe;yl.AuthenticationPayloadDataSchema=s_e;yl.AuthenticationPayloadSchema=vXt;yl.GenerateOptionsSchema=xXe;yl.LoginOptionsSchema=gXe;yl.LoginPayloadDataSchema=nle;yl.LoginPayloadOutputSchema=wXt;yl.LoginPayloadSchema=bXe;yl.RawDateSchema=tle;yl.ThirdwebAuth=i_e;yl.VerifyOptionsSchema=wXe});var IXe=_(qu=>{"use strict";d();p();Object.defineProperty(qu,"__esModule",{value:!0});var Xl=TXe();je();Fr();kr();qu.AccountTypeSchema=Xl.AccountTypeSchema;qu.AddressSchema=Xl.AddressSchema;qu.AuthenticateOptionsSchema=Xl.AuthenticateOptionsSchema;qu.AuthenticationPayloadDataSchema=Xl.AuthenticationPayloadDataSchema;qu.AuthenticationPayloadSchema=Xl.AuthenticationPayloadSchema;qu.GenerateOptionsSchema=Xl.GenerateOptionsSchema;qu.LoginOptionsSchema=Xl.LoginOptionsSchema;qu.LoginPayloadDataSchema=Xl.LoginPayloadDataSchema;qu.LoginPayloadOutputSchema=Xl.LoginPayloadOutputSchema;qu.LoginPayloadSchema=Xl.LoginPayloadSchema;qu.RawDateSchema=Xl.RawDateSchema;qu.ThirdwebAuth=Xl.ThirdwebAuth;qu.VerifyOptionsSchema=Xl.VerifyOptionsSchema});var DXe=_(gl=>{"use strict";d();p();var CXe=je(),kXe=Fr(),Ue=kr();function xXt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function _Xt(r){var e=xXt(r,"string");return typeof e=="symbol"?e:String(e)}function EXe(r,e,t){return e=_Xt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var TXt=Ue.z.string().refine(r=>CXe.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),ale=Ue.z.date().transform(r=>CXe.BigNumber.from(Math.floor(r.getTime()/1e3))),AXe=Ue.z.union([Ue.z.literal("evm"),Ue.z.literal("solana")]),IXt=Ue.z.union([Ue.z.string(),Ue.z.number(),Ue.z.boolean(),Ue.z.null()]),ile=Ue.z.lazy(()=>Ue.z.union([IXt,Ue.z.array(ile),Ue.z.record(ile)]),{invalid_type_error:"Provided value was not valid JSON"}),PXe=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),nonce:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),resources:Ue.z.array(Ue.z.string()).optional()}).optional(),sle=Ue.z.object({type:AXe,domain:Ue.z.string(),address:Ue.z.string(),statement:Ue.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:Ue.z.string().optional(),version:Ue.z.string().default("1"),chain_id:Ue.z.string().optional(),nonce:Ue.z.string().default(kXe.v4()),issued_at:Ue.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:Ue.z.date().transform(r=>r.toISOString()),invalid_before:Ue.z.date().default(new Date).transform(r=>r.toISOString()),resources:Ue.z.array(Ue.z.string()).optional()}),SXe=Ue.z.object({payload:sle,signature:Ue.z.string()}),RXe=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),validateNonce:Ue.z.function().args(Ue.z.string()).optional(),resources:Ue.z.array(Ue.z.string()).optional()}),MXe=RXe.optional(),NXe=Ue.z.object({domain:Ue.z.string().optional(),tokenId:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),session:Ue.z.union([ile,Ue.z.function().args(Ue.z.string())]).optional(),verifyOptions:RXe.omit({domain:!0}).optional()}).optional(),u_e=Ue.z.object({iss:Ue.z.string(),sub:Ue.z.string(),aud:Ue.z.string(),exp:ale.transform(r=>r.toNumber()),nbf:ale.transform(r=>r.toNumber()),iat:ale.transform(r=>r.toNumber()),jti:Ue.z.string().default(kXe.v4()),ctx:ile.optional()}),EXt=Ue.z.object({payload:u_e,signature:Ue.z.string()}),BXe=Ue.z.object({domain:Ue.z.string().optional(),validateTokenId:Ue.z.function().args(Ue.z.string()).optional()}).optional(),CXt=SXe.extend({payload:sle.extend({issued_at:Ue.z.string(),expiration_time:Ue.z.string(),invalid_before:Ue.z.string()})}),o_e=()=>typeof window<"u",c_e=class{constructor(e,t){EXe(this,"domain",void 0),EXe(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=PXe.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=sle.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(o_e()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=MXe.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(o_e())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=NXe.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let C=await n.session(i);C&&(s=C)}else s=n?.session;let o=await this.wallet.getAddress(),c=u_e.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(o_e())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=BXe.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` +`)}};Xl.AccountTypeSchema=Fyt;Xl.AddressSchema=tEr;Xl.AuthenticateOptionsSchema=jyt;Xl.AuthenticationPayloadDataSchema=wPe;Xl.AuthenticationPayloadSchema=nEr;Xl.GenerateOptionsSchema=Hyt;Xl.LoginOptionsSchema=Lyt;Xl.LoginPayloadDataSchema=kbe;Xl.LoginPayloadOutputSchema=aEr;Xl.LoginPayloadSchema=qyt;Xl.RawDateSchema=Cbe;Xl.ThirdwebAuth=vPe;Xl.VerifyOptionsSchema=Uyt});var Kyt=E(bl=>{"use strict";f();d();Object.defineProperty(bl,"__esModule",{value:!0});var Zf=zyt();ke();Cn();fn();bl.AccountTypeSchema=Zf.AccountTypeSchema;bl.AddressSchema=Zf.AddressSchema;bl.AuthenticateOptionsSchema=Zf.AuthenticateOptionsSchema;bl.AuthenticationPayloadDataSchema=Zf.AuthenticationPayloadDataSchema;bl.AuthenticationPayloadSchema=Zf.AuthenticationPayloadSchema;bl.GenerateOptionsSchema=Zf.GenerateOptionsSchema;bl.LoginOptionsSchema=Zf.LoginOptionsSchema;bl.LoginPayloadDataSchema=Zf.LoginPayloadDataSchema;bl.LoginPayloadOutputSchema=Zf.LoginPayloadOutputSchema;bl.LoginPayloadSchema=Zf.LoginPayloadSchema;bl.RawDateSchema=Zf.RawDateSchema;bl.ThirdwebAuth=Zf.ThirdwebAuth;bl.VerifyOptionsSchema=Zf.VerifyOptionsSchema});var nbt=E(ef=>{"use strict";f();d();var $yt=ke(),Yyt=Cn(),wt=fn();function iEr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function sEr(r){var e=iEr(r,"string");return typeof e=="symbol"?e:String(e)}function Gyt(r,e,t){return e=sEr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var oEr=wt.z.string().refine(r=>$yt.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Sbe=wt.z.date().transform(r=>$yt.BigNumber.from(Math.floor(r.getTime()/1e3))),Qyt=wt.z.union([wt.z.literal("evm"),wt.z.literal("solana")]),cEr=wt.z.union([wt.z.string(),wt.z.number(),wt.z.boolean(),wt.z.null()]),Pbe=wt.z.lazy(()=>wt.z.union([cEr,wt.z.array(Pbe),wt.z.record(Pbe)]),{invalid_type_error:"Provided value was not valid JSON"}),Jyt=wt.z.object({domain:wt.z.string().optional(),statement:wt.z.string().optional(),uri:wt.z.string().optional(),version:wt.z.string().optional(),chainId:wt.z.string().optional(),nonce:wt.z.string().optional(),expirationTime:wt.z.date().optional(),invalidBefore:wt.z.date().optional(),resources:wt.z.array(wt.z.string()).optional()}).optional(),Rbe=wt.z.object({type:Qyt,domain:wt.z.string(),address:wt.z.string(),statement:wt.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:wt.z.string().optional(),version:wt.z.string().default("1"),chain_id:wt.z.string().optional(),nonce:wt.z.string().default(Yyt.v4()),issued_at:wt.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:wt.z.date().transform(r=>r.toISOString()),invalid_before:wt.z.date().default(new Date).transform(r=>r.toISOString()),resources:wt.z.array(wt.z.string()).optional()}),Zyt=wt.z.object({payload:Rbe,signature:wt.z.string()}),Xyt=wt.z.object({domain:wt.z.string().optional(),statement:wt.z.string().optional(),uri:wt.z.string().optional(),version:wt.z.string().optional(),chainId:wt.z.string().optional(),validateNonce:wt.z.function().args(wt.z.string()).optional(),resources:wt.z.array(wt.z.string()).optional()}),ebt=Xyt.optional(),tbt=wt.z.object({domain:wt.z.string().optional(),tokenId:wt.z.string().optional(),expirationTime:wt.z.date().optional(),invalidBefore:wt.z.date().optional(),session:wt.z.union([Pbe,wt.z.function().args(wt.z.string())]).optional(),verifyOptions:Xyt.omit({domain:!0}).optional()}).optional(),_Pe=wt.z.object({iss:wt.z.string(),sub:wt.z.string(),aud:wt.z.string(),exp:Sbe.transform(r=>r.toNumber()),nbf:Sbe.transform(r=>r.toNumber()),iat:Sbe.transform(r=>r.toNumber()),jti:wt.z.string().default(Yyt.v4()),ctx:Pbe.optional()}),uEr=wt.z.object({payload:_Pe,signature:wt.z.string()}),rbt=wt.z.object({domain:wt.z.string().optional(),validateTokenId:wt.z.function().args(wt.z.string()).optional()}).optional(),lEr=Zyt.extend({payload:Rbe.extend({issued_at:wt.z.string(),expiration_time:wt.z.string(),invalid_before:wt.z.string()})}),Vyt=()=>typeof window<"u",xPe=class{constructor(e,t){Gyt(this,"domain",void 0),Gyt(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=Jyt.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=Rbe.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri,chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=ebt.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(Vyt())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=tbt.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let P=await n.session(i);P&&(s=P)}else s=n?.session;let o=await this.wallet.getAddress(),c=_Pe.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),p={alg:"ES256",typ:"JWT"},h=v.Buffer.from(JSON.stringify(p)).toString("base64"),m=v.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=v.Buffer.from(l).toString("base64");return`${h}.${m}.${y}`}async authenticate(e,t){if(Vyt())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=rbt.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(v.Buffer.from(i,"base64").toString()),c=v.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let p;if(this.wallet.getChainId)try{p=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,p))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` `);a=[a,e.statement].join(` `),e.statement&&(a+=` -`);let i=[];if(e.uri){let h=`URI: ${e.uri}`;i.push(h)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let h="Chain ID: "+e.chain_id||"1";i.push(h)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let h=`Not Before: ${e.invalid_before}`;i.push(h)}e.resources&&i.push(["Resources:",...e.resources.map(h=>`- ${h}`)].join(` +`);let i=[];if(e.uri){let p=`URI: ${e.uri}`;i.push(p)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let p="Chain ID: "+e.chain_id||"1";i.push(p)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let p=`Not Before: ${e.invalid_before}`;i.push(p)}e.resources&&i.push(["Resources:",...e.resources.map(p=>`- ${p}`)].join(` `));let l=i.join(` `);return[a,l].join(` -`)}};gl.AccountTypeSchema=AXe;gl.AddressSchema=TXt;gl.AuthenticateOptionsSchema=BXe;gl.AuthenticationPayloadDataSchema=u_e;gl.AuthenticationPayloadSchema=EXt;gl.GenerateOptionsSchema=NXe;gl.LoginOptionsSchema=PXe;gl.LoginPayloadDataSchema=sle;gl.LoginPayloadOutputSchema=CXt;gl.LoginPayloadSchema=SXe;gl.RawDateSchema=ale;gl.ThirdwebAuth=c_e;gl.VerifyOptionsSchema=MXe});var LXe=_(Fu=>{"use strict";d();p();Object.defineProperty(Fu,"__esModule",{value:!0});var ed=DXe();je();Fr();kr();Fu.AccountTypeSchema=ed.AccountTypeSchema;Fu.AddressSchema=ed.AddressSchema;Fu.AuthenticateOptionsSchema=ed.AuthenticateOptionsSchema;Fu.AuthenticationPayloadDataSchema=ed.AuthenticationPayloadDataSchema;Fu.AuthenticationPayloadSchema=ed.AuthenticationPayloadSchema;Fu.GenerateOptionsSchema=ed.GenerateOptionsSchema;Fu.LoginOptionsSchema=ed.LoginOptionsSchema;Fu.LoginPayloadDataSchema=ed.LoginPayloadDataSchema;Fu.LoginPayloadOutputSchema=ed.LoginPayloadOutputSchema;Fu.LoginPayloadSchema=ed.LoginPayloadSchema;Fu.RawDateSchema=ed.RawDateSchema;Fu.ThirdwebAuth=ed.ThirdwebAuth;Fu.VerifyOptionsSchema=ed.VerifyOptionsSchema});var OXe=_((ZDn,l_e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?l_e.exports=IXe():l_e.exports=LXe()});var qXe=_((tLn,p_e)=>{d();p();var d_e=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(D,B,x){D[B]=x.value},a,i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(D,B,x){return Object.defineProperty(D,B,{value:x,enumerable:!0,configurable:!0,writable:!0}),D[B]}try{u({},"")}catch{u=function(B,x,N){return B[x]=N}}function l(D,B,x,N){var U=B&&B.prototype instanceof R?B:R,E=Object.create(U.prototype),z=new v(N||[]);return n(E,"_invoke",{value:q(D,x,z)}),E}r.wrap=l;function h(D,B,x){try{return{type:"normal",arg:D.call(B,x)}}catch(N){return{type:"throw",arg:N}}}var f="suspendedStart",m="suspendedYield",y="executing",I="completed",C={};function R(){}function L(){}function F(){}var W={};u(W,s,function(){return this});var V=Object.getPrototypeOf,K=V&&V(V(k([])));K&&K!==e&&t.call(K,s)&&(W=K);var H=F.prototype=R.prototype=Object.create(W);L.prototype=F,n(H,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:L,configurable:!0}),L.displayName=u(F,c,"GeneratorFunction");function G(D){["next","throw","return"].forEach(function(B){u(D,B,function(x){return this._invoke(B,x)})})}r.isGeneratorFunction=function(D){var B=typeof D=="function"&&D.constructor;return B?B===L||(B.displayName||B.name)==="GeneratorFunction":!1},r.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,u(D,c,"GeneratorFunction")),D.prototype=Object.create(H),D},r.awrap=function(D){return{__await:D}};function Q(D,B){function x(E,z,ee,j){var X=h(D[E],D,z);if(X.type==="throw")j(X.arg);else{var ie=X.arg,ue=ie.value;return ue&&typeof ue=="object"&&t.call(ue,"__await")?B.resolve(ue.__await).then(function(he){x("next",he,ee,j)},function(he){x("throw",he,ee,j)}):B.resolve(ue).then(function(he){ie.value=he,ee(ie)},function(he){return x("throw",he,ee,j)})}}var N;function U(E,z){function ee(){return new B(function(j,X){x(E,z,j,X)})}return N=N?N.then(ee,ee):ee()}n(this,"_invoke",{value:U})}G(Q.prototype),u(Q.prototype,o,function(){return this}),r.AsyncIterator=Q,r.async=function(D,B,x,N,U){U===void 0&&(U=Promise);var E=new Q(l(D,B,x,N),U);return r.isGeneratorFunction(B)?E:E.next().then(function(z){return z.done?z.value:E.next()})};function q(D,B,x){var N=f;return function(E,z){if(N===y)throw new Error("Generator is already running");if(N===I){if(E==="throw")throw z;return O()}for(x.method=E,x.arg=z;;){var ee=x.delegate;if(ee){var j=T(ee,x);if(j){if(j===C)continue;return j}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(N===f)throw N=I,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);N=y;var X=h(D,B,x);if(X.type==="normal"){if(N=x.done?I:m,X.arg===C)continue;return{value:X.arg,done:x.done}}else X.type==="throw"&&(N=I,x.method="throw",x.arg=X.arg)}}}function T(D,B){var x=B.method,N=D.iterator[x];if(N===a)return B.delegate=null,x==="throw"&&D.iterator.return&&(B.method="return",B.arg=a,T(D,B),B.method==="throw")||x!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+x+"' method")),C;var U=h(N,D.iterator,B.arg);if(U.type==="throw")return B.method="throw",B.arg=U.arg,B.delegate=null,C;var E=U.arg;if(!E)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,C;if(E.done)B[D.resultName]=E.value,B.next=D.nextLoc,B.method!=="return"&&(B.method="next",B.arg=a);else return E;return B.delegate=null,C}G(H),u(H,c,"Generator"),u(H,s,function(){return this}),u(H,"toString",function(){return"[object Generator]"});function M(D){var B={tryLoc:D[0]};1 in D&&(B.catchLoc=D[1]),2 in D&&(B.finallyLoc=D[2],B.afterLoc=D[3]),this.tryEntries.push(B)}function A(D){var B=D.completion||{};B.type="normal",delete B.arg,D.completion=B}function v(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(M,this),this.reset(!0)}r.keys=function(D){var B=Object(D),x=[];for(var N in B)x.push(N);return x.reverse(),function U(){for(;x.length;){var E=x.pop();if(E in B)return U.value=E,U.done=!1,U}return U.done=!0,U}};function k(D){if(D){var B=D[s];if(B)return B.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var x=-1,N=function U(){for(;++x=0;--N){var U=this.tryEntries[N],E=U.completion;if(U.tryLoc==="root")return x("end");if(U.tryLoc<=this.prev){var z=t.call(U,"catchLoc"),ee=t.call(U,"finallyLoc");if(z&&ee){if(this.prev=0;--x){var N=this.tryEntries[x];if(N.tryLoc<=this.prev&&t.call(N,"finallyLoc")&&this.prev=0;--B){var x=this.tryEntries[B];if(x.finallyLoc===D)return this.complete(x.completion,x.afterLoc),A(x),C}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var x=this.tryEntries[B];if(x.tryLoc===D){var N=x.completion;if(N.type==="throw"){var U=N.arg;A(x)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,B,x){return this.delegate={iterator:k(D),resultName:B,nextLoc:x},this.method==="next"&&(this.arg=a),C}},r}(typeof p_e=="object"?p_e.exports:{});try{regeneratorRuntime=d_e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=d_e:Function("r","regeneratorRuntime = r")(d_e)}});var QZ=_(Jf=>{"use strict";d();p();Object.defineProperty(Jf,"__esModule",{value:!0});var FXe=SXt(qXe());function h_e(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function BXt(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i=0)&&(t[a]=r[a]);return t}function KXe(r){return kXt(r)||RXt(r)||LXt(r)||MXt()}var DXt=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};function LXt(r,e){if(!!r){if(typeof r=="string")return h_e(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return h_e(r,e)}}Object.defineProperty(Jf,"__esModule",{value:!0});function _n(r){for(var e=void 0,t=r[0],n=1;n"u"?"undefined":DXt(e))!=="symbol"?e+"":e,t),t},VXe="https://pay.coinbase.com",YXe=en(function(r){var e=r.host,t=e===void 0?VXe:e,n=r.destinationWallets,a=zXe(r,["host","destinationWallets"]),i=new URL(t);return i.pathname="/buy/select-asset",i.searchParams.append("destinationWallets",JSON.stringify(n)),Object.keys(a).forEach(function(s){var o=a[s];o!==void 0&&i.searchParams.append(s,o.toString())}),i.searchParams.sort(),i.toString()},"generateOnRampURL"),$Xe="cbpay-embedded-onramp",qXt=en(function(r){var e=r.url,t=r.width,n=t===void 0?"100%":t,a=r.height,i=a===void 0?"100%":a,s=r.position,o=s===void 0?"fixed":s,c=r.top,u=c===void 0?"0px":c,l=document.createElement("iframe");return l.style.border="unset",l.style.borderWidth="0",l.style.width=n.toString(),l.style.height=i.toString(),l.style.position=o,l.style.top=u,l.id=$Xe,l.src=e,l},"createEmbeddedContent"),UXe;(function(r){r.LaunchEmbedded="launch_embedded",r.AppReady="app_ready",r.AppParams="app_params",r.SigninSuccess="signin_success",r.Success="success",r.Exit="exit",r.Event="event",r.Error="error",r.PixelReady="pixel_ready",r.OnAppParamsNonce="on_app_params_nonce"})(UXe||(UXe={}));var QXe=en(function(r,e){var t=e.onMessage,n=e.shouldUnsubscribe,a=n===void 0?!0:n,i=e.allowedOrigin,s=e.onValidateOrigin,o=s===void 0?en(function(){return Promise.resolve(!0)},"onValidateOrigin"):s,c=en(function(u){var l=UXt(u.data),h=l.eventName,f=l.data,m=!i||u.origin===i;h===r&&AXt(FXe.default.mark(function y(){return FXe.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(C.t0=m,!C.t0){C.next=5;break}return C.next=4,o(u.origin);case 4:C.t0=C.sent;case 5:if(!C.t0){C.next=7;break}t(f),a&&window.removeEventListener("message",c);case 7:case"end":return C.stop()}},y)}))()},"onMessage");return window.addEventListener("message",c),function(){window.removeEventListener("message",c)}},"onBroadcastedPostMessage"),FXt=en(function(r){return r!==window?r:WXt(r)?{postMessage:function(e){return r.ReactNativeWebView.postMessage(e)}}:r.opener?r.opener:r.parent!==r.self?r.parent:void 0},"getSdkTarget"),WXt=en(function(r){try{return _n([r,"access",function(e){return e.ReactNativeWebView},"optionalAccess",function(e){return e.postMessage}])!==void 0}catch{return!1}},"isMobileSdkTarget"),y_e=en(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allowedOrigin,a=n===void 0?"*":n,i=t.data,s=HXt(e,i);r.postMessage(s,a)},"broadcastPostMessage"),UXt=en(function(r){try{return JSON.parse(r)}catch{return{eventName:r}}},"parsePostMessage"),HXt=en(function(r,e){return e?JSON.stringify({eventName:r,data:e}):r},"formatPostMessage"),jXt="/embed",zXt=5e3,f_e="coinbase-sdk-connect",yg={signin:{width:460,height:730},widget:{width:430,height:600}},JXe=function r(e){var t=e.host,n=t===void 0?VXe:t,a=e.appId,i=e.appParams,s=e.onReady,o=e.onFallbackOpen,c=e.debug,u=this;HXe(this,r),_s(this,"state","loading"),_s(this,"nonce",""),_s(this,"eventStreamListeners",{}),_s(this,"unsubs",[]),_s(this,"isLoggedIn",!1),_s(this,"openExperience",en(function(l){if(u.log("Attempting to open experience",{state:u.state}),u.state!=="waiting_for_response"&&u.state!=="loading"){if(u.state==="failed"){_n([u,"access",function(V){return V.onFallbackOpen},"optionalCall",function(V){return V()}]);return}if(!u.nonce)throw new Error("Attempted to open CB Pay experience without nonce");var h=u.nonce;u.nonce="",u.setupExperienceListeners(l);var f=l.path,m=l.experienceLoggedIn,y=l.experienceLoggedOut,I=l.embeddedContentStyles,C=new URL("".concat(u.host).concat(f));C.searchParams.append("appId",u.appId),C.searchParams.append("type","secure_standalone");var R=u.isLoggedIn?m:y||m;C.searchParams.append("nonce",h);var L=C.toString();if(u.log("Opening experience",{experience:R,isLoggedIn:u.isLoggedIn}),R==="embedded"){var F=en(function(){var V=qXt(Lx({url:L},I));_n([I,"optionalAccess",function(K){return K.target}])?_n([document,"access",function(K){return K.querySelector},"call",function(K){return K(_n([I,"optionalAccess",function(H){return H.target}]))},"optionalAccess",function(K){return K.replaceChildren},"call",function(K){return K(V)}]):document.body.appendChild(V)},"openEmbeddedExperience");u.isLoggedIn?F():u.startDirectSignin(F)}else R==="popup"&&_n([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.windows},"optionalAccess",function(V){return V.create}])?window.chrome.windows.create({url:L,setSelfAsOpener:!0,type:"popup",focused:!0,width:yg.signin.width,height:yg.signin.height,left:window.screenLeft-yg.signin.width-10,top:window.screenTop},function(V){u.addEventStreamListener("open",function(){_n([V,"optionalAccess",function(K){return K.id}])&&chrome.windows.update(V.id,{width:yg.widget.width,height:yg.widget.height,left:window.screenLeft-yg.widget.width-10,top:window.screenTop})})}):R==="new_tab"&&_n([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.tabs},"optionalAccess",function(V){return V.create}])?window.chrome.tabs.create({url:L}):m_e(L,R);var W=en(function(){u.sendAppParams(),u.removeEventStreamListener("open",W)},"onOpen");u.addEventStreamListener("open",W)}},"openExperience")),_s(this,"endExperience",en(function(){_n([document,"access",function(l){return l.getElementById},"call",function(l){return l($Xe)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}])},"endExperience")),_s(this,"destroy",en(function(){_n([document,"access",function(l){return l.getElementById},"call",function(l){return l(f_e)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}]),u.unsubs.forEach(function(l){return l()})},"destroy")),_s(this,"addPixelReadyListener",en(function(){u.onMessage("pixel_ready",{shouldUnsubscribe:!1,onMessage:function(l){u.log("Received message: pixel_ready"),u.isLoggedIn=!!_n([l,"optionalAccess",function(h){return h.isLoggedIn}]),_n([u,"access",function(h){return h.removeErrorListener},"optionalCall",function(h){return h()}]),u.sendAppParams(function(){_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}])})}})},"addPixelReadyListener")),_s(this,"addErrorListener",en(function(){u.removeErrorListener=u.onMessage("error",{shouldUnsubscribe:!0,onMessage:function(l){if(u.log("Received message: error"),l){var h=typeof l=="string"?l:JSON.stringify(l);_n([u,"access",function(f){return f.onReadyCallback},"optionalCall",function(f){return f(new Error(h))}])}}})},"addErrorListener")),_s(this,"embedPixel",en(function(){_n([document,"access",function(h){return h.getElementById},"call",function(h){return h(f_e)},"optionalAccess",function(h){return h.remove},"call",function(h){return h()}]);var l=ZXe({host:u.host,appId:u.appId});l.onerror=u.onFailedToLoad,u.pixelIframe=l,document.body.appendChild(l)},"embedPixel")),_s(this,"onFailedToLoad",en(function(){if(u.state="failed",u.onFallbackOpen)u.debug&&console.warn("Failed to load CB Pay pixel. Falling back to opening in new tab."),_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}]);else{var l=new Error("Failed to load CB Pay pixel");u.debug&&console.error(l),_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h(l)}])}},"onFailedToLoad")),_s(this,"sendAppParams",en(function(l){_n([u,"access",function(h){return h.pixelIframe},"optionalAccess",function(h){return h.contentWindow}])?(u.log("Sending message: app_params"),u.onMessage("on_app_params_nonce",{onMessage:function(h){u.state="ready",u.nonce=_n([h,"optionalAccess",function(f){return f.nonce}])||"",_n([l,"optionalCall",function(f){return f()}])}}),u.state="waiting_for_response",y_e(u.pixelIframe.contentWindow,"app_params",{data:u.appParams})):(console.error("Failed to find pixel content window"),u.state="failed",_n([u,"access",function(h){return h.onFallbackOpen},"optionalCall",function(h){return h()}]))},"sendAppParams")),_s(this,"setupExperienceListeners",en(function(l){var h=l.onSuccess,f=l.onExit,m=l.onEvent;u.onMessage("event",{shouldUnsubscribe:!1,onMessage:function(y){var I=y;_n([u,"access",function(C){return C.eventStreamListeners},"access",function(C){return C[I.eventName]},"optionalAccess",function(C){return C.forEach},"call",function(C){return C(function(R){return _n([R,"optionalCall",function(L){return L()}])})}]),I.eventName==="success"&&_n([h,"optionalCall",function(C){return C()}]),I.eventName==="exit"&&_n([f,"optionalCall",function(C){return C(I.error)}]),_n([m,"optionalCall",function(C){return C(y)}])}})},"setupExperienceListeners")),_s(this,"startDirectSignin",en(function(l){var h=new URLSearchParams;h.set("appId",u.appId),h.set("type","direct");var f="".concat(u.host,"/signin?").concat(h.toString()),m=m_e(f,"popup");u.onMessage("signin_success",{onMessage:function(){_n([m,"optionalAccess",function(y){return y.close},"call",function(y){return y()}]),l()}})},"startDirectSignin")),_s(this,"addEventStreamListener",en(function(l,h){u.eventStreamListeners[l]?_n([u,"access",function(f){return f.eventStreamListeners},"access",function(f){return f[l]},"optionalAccess",function(f){return f.push},"call",function(f){return f(h)}]):u.eventStreamListeners[l]=[h]},"addEventStreamListener")),_s(this,"removeEventStreamListener",en(function(l,h){if(u.eventStreamListeners[l]){var f=_n([u,"access",function(m){return m.eventStreamListeners},"access",function(m){return m[l]},"optionalAccess",function(m){return m.filter},"call",function(m){return m(function(y){return y!==h})}]);u.eventStreamListeners[l]=f}},"removeEventStreamListener")),_s(this,"onMessage",en(function(){for(var l=arguments.length,h=new Array(l),f=0;f{"use strict";d();p();Object.defineProperty(w_e,"__esModule",{value:!0});var VXt=QZ();function YXt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function $Xt(r,e,t){YXt(r,e),e.set(r,t)}function QXt(r,e){return e.get?e.get.call(r):e.value}function eet(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function JXt(r,e){var t=eet(r,e,"get");return QXt(r,t)}function ZXt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function XXt(r,e,t){var n=eet(r,e,"set");return ZXt(r,n,t),t}var eer={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},b_e=new WeakMap,v_e=class{constructor(e){$Xt(this,b_e,{writable:!0,value:void 0}),XXt(this,b_e,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{VXt.initOnRamp({appId:JXt(this,b_e),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[eer[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};w_e.CoinbasePayIntegration=v_e});var ret=_(x_e=>{"use strict";d();p();Object.defineProperty(x_e,"__esModule",{value:!0});var ter=tet();QZ();x_e.CoinbasePayIntegration=ter.CoinbasePayIntegration});var aet=_(I_e=>{"use strict";d();p();Object.defineProperty(I_e,"__esModule",{value:!0});var rer=QZ();function ner(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function aer(r,e,t){ner(r,e),e.set(r,t)}function ier(r,e){return e.get?e.get.call(r):e.value}function net(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function ser(r,e){var t=net(r,e,"get");return ier(r,t)}function oer(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function cer(r,e,t){var n=net(r,e,"set");return oer(r,n,t),t}var uer={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},__e=new WeakMap,T_e=class{constructor(e){aer(this,__e,{writable:!0,value:void 0}),cer(this,__e,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{rer.initOnRamp({appId:ser(this,__e),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[uer[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};I_e.CoinbasePayIntegration=T_e});var iet=_(E_e=>{"use strict";d();p();Object.defineProperty(E_e,"__esModule",{value:!0});var ler=aet();QZ();E_e.CoinbasePayIntegration=ler.CoinbasePayIntegration});var set=_((vLn,C_e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?C_e.exports=ret():C_e.exports=iet()});var bi=_(hu=>{"use strict";d();p();var der=Cr(),Ox=je(),ct=kr();function per(r){return r&&r.__esModule?r:{default:r}}var qx=per(der),det="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function her(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:det;return`https://${r}.rpc.thirdweb.com/${e}`}var fer=()=>typeof window<"u",oet=fer()?ct.z.instanceof(File):ct.z.instanceof(b.Buffer),mer=ct.z.union([oet,ct.z.object({data:ct.z.union([oet,ct.z.string()]),name:ct.z.string()})]),ole=ct.z.union([mer,ct.z.string()]),pet=1e4,yer=ct.z.union([ct.z.array(ct.z.number()),ct.z.string()]),ger=ct.z.union([ct.z.string(),ct.z.number(),ct.z.bigint(),ct.z.custom(r=>Ox.BigNumber.isBigNumber(r)),ct.z.custom(r=>qx.default.isBN(r))]).transform(r=>{let e=qx.default.isBN(r)?new qx.default(r).toString():Ox.BigNumber.from(r).toString();return Ox.BigNumber.from(e)});ger.transform(r=>r.toString());var het=ct.z.union([ct.z.bigint(),ct.z.custom(r=>Ox.BigNumber.isBigNumber(r)),ct.z.custom(r=>qx.default.isBN(r))]).transform(r=>qx.default.isBN(r)?new qx.default(r).toString():Ox.BigNumber.from(r).toString()),ber=ct.z.number().max(pet,"Cannot exceed 100%").min(0,"Cannot be below 0%"),ver=ct.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),wer=ct.z.union([ct.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),ct.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),ct.z.string().length(0)]),fet=ct.z.union([ct.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),ct.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),xer=ct.z.union([fet,ct.z.literal("unlimited")]).default("unlimited"),met=ct.z.date().transform(r=>Ox.BigNumber.from(Math.floor(r.getTime()/1e3)));met.default(new Date(0));met.default(new Date(Date.now()+1e3*60*60*24*365*10));function _er(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ter(r){var e=_er(r,"string");return typeof e=="symbol"?e:String(e)}function Ier(r,e,t){return e=Ter(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var cet=ct.z.object({}).catchall(ct.z.union([het,ct.z.unknown()])),uet=ct.z.union([ct.z.array(cet),cet]).optional().nullable(),A_e=ct.z.object({name:ct.z.union([ct.z.string(),ct.z.number()]).optional().nullable(),description:ct.z.string().nullable().optional().nullable(),image:ole.nullable().optional(),external_url:ole.nullable().optional(),animation_url:ole.optional().nullable(),background_color:wer.optional().nullable(),properties:uet,attributes:uet}).catchall(ct.z.union([het,ct.z.unknown()])),Eer=ct.z.union([A_e,ct.z.string()]),Cer=A_e.extend({id:ct.z.string(),uri:ct.z.string(),image:ct.z.string().nullable().optional(),external_url:ct.z.string().nullable().optional(),animation_url:ct.z.string().nullable().optional()}),k_e=100,ker=ct.z.object({start:ct.z.number().default(0),count:ct.z.number().default(k_e)}).default({start:0,count:k_e});hu.AmountSchema=fet;hu.BasisPointsSchema=ber;hu.BytesLikeSchema=yer;hu.CommonNFTInput=A_e;hu.CommonNFTOutput=Cer;hu.DEFAULT_API_KEY=det;hu.DEFAULT_QUERY_ALL_COUNT=k_e;hu.FileOrBufferOrStringSchema=ole;hu.MAX_BPS=pet;hu.NFTInputOrUriSchema=Eer;hu.PercentSchema=ver;hu.QuantitySchema=xer;hu.QueryAllParamsSchema=ker;hu._defineProperty=Ier;hu.getRpcUrl=her});var Tn=_((ELn,Aer)=>{Aer.exports=[{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var In=_((CLn,Per)=>{Per.exports=[{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var En=_((kLn,Ser)=>{Ser.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Cn=_((ALn,Rer)=>{Rer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var kn=_((PLn,Mer)=>{Mer.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var An=_((SLn,Ner)=>{Ner.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Pn=_((RLn,Ber)=>{Ber.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Sn=_((MLn,Der)=>{Der.exports=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Rn=_((NLn,Ler)=>{Ler.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Mn=_((BLn,Oer)=>{Oer.exports=[{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"}]});var Nn=_((DLn,qer)=>{qer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Bn=_((LLn,Fer)=>{Fer.exports=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Dn=_((OLn,Wer)=>{Wer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Ln=_((qLn,Uer)=>{Uer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var On=_((FLn,Her)=>{Her.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var pn=_((WLn,jer)=>{jer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var qn=_((ULn,zer)=>{zer.exports=[{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Fn=_((HLn,Ker)=>{Ker.exports=[{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Wn=_((jLn,Ger)=>{Ger.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"extraData",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Un=_((zLn,Ver)=>{Ver.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Hn=_((KLn,Yer)=>{Yer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var jn=_((GLn,$er)=>{$er.exports=[{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var zn=_((VLn,Qer)=>{Qer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"tier",type:"string"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMetadataForAllTiers",outputs:[{components:[{internalType:"string",name:"tier",type:"string"},{components:[{internalType:"uint256",name:"startIdInclusive",type:"uint256"},{internalType:"uint256",name:"endIdNonInclusive",type:"uint256"}],internalType:"struct LazyMintWithTier.TokenRange[]",name:"ranges",type:"tuple[]"},{internalType:"string[]",name:"baseURIs",type:"string[]"}],internalType:"struct LazyMintWithTier.TierMetadata[]",name:"metadataForAllTiers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"string",name:"_tier",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Kn=_((YLn,Jer)=>{Jer.exports=[{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Gn=_(($Ln,Zer)=>{Zer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Vn=_((QLn,Xer)=>{Xer.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Yn=_((JLn,etr)=>{etr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var $n=_((ZLn,ttr)=>{ttr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Qn=_((XLn,rtr)=>{rtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase1155_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var hn=_((eOn,ntr)=>{ntr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_owner",type:"address"},{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!1,internalType:"bool",name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"_ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256",name:"_id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"_value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_value",type:"string"},{indexed:!0,internalType:"uint256",name:"_id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Jn=_((tOn,atr)=>{atr.exports=[{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Zn=_((rOn,itr)=>{itr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Xn=_((nOn,str)=>{str.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var ea=_((aOn,otr)=>{otr.exports=[{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ta=_((iOn,ctr)=>{ctr.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"AppURIUpdated",type:"event"},{inputs:[],name:"appURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setAppURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ra=_((sOn,utr)=>{utr.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var na=_((oOn,ltr)=>{ltr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"BuyerApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"}],name:"CancelledListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"currency",type:"address"},{indexed:!1,internalType:"uint256",name:"pricePerToken",type:"uint256"}],name:"CurrencyApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"NewListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"UpdatedListing",type:"event"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyer",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveBuyerForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerTokenInCurrency",type:"uint256"}],name:"approveCurrencyForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_expectedTotalPrice",type:"uint256"}],name:"buyFromListing",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"getListing",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"}]});var aa=_((cOn,dtr)=>{dtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"}],name:"CancelledAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"bidder",type:"address"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"bidAmount",type:"uint256"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewBid",type:"event"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"bidInAuction",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"cancelAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionPayout",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"}],internalType:"struct IEnglishAuctions.AuctionParameters",name:"_params",type:"tuple"}],name:"createAuction",outputs:[{internalType:"uint256",name:"auctionId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getAuction",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getWinningBid",outputs:[{internalType:"address",name:"bidder",type:"address"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"bidAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"isAuctionExpired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"isNewWinningBid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ia=_((uOn,ptr)=>{ptr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"AcceptedOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"}],name:"CancelledOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],name:"NewOffer",type:"event"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"cancelOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"getOffer",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],internalType:"struct IOffers.OfferParams",name:"_params",type:"tuple"}],name:"makeOffer",outputs:[{internalType:"uint256",name:"offerId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var sa=_((lOn,htr)=>{htr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountToOpen",type:"uint256"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackOpenRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackRandomnessFulfilled",type:"event"},{inputs:[{internalType:"address",name:"_opener",type:"address"}],name:"canClaimRewards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimRewards",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"rewardUnits",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"packUri",type:"string"},{internalType:"uint128",name:"openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"amountToOpen",type:"uint256"}],name:"openPack",outputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"},{internalType:"uint32",name:"_callBackGasLimit",type:"uint32"}],name:"openPackAndClaimRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var oa=_((dOn,ftr)=>{ftr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ca=_((pOn,mtr)=>{mtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ua=_((hOn,ytr)=>{ytr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var la=_((fOn,gtr)=>{gtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"}]});var da=_((mOn,btr)=>{btr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var pa=_((yOn,vtr)=>{vtr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}]});var bet=_(P=>{"use strict";d();p();Object.defineProperty(P,"__esModule",{value:!0});var wtr={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},xtr={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},_tr={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},Ttr={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},Itr={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"goerli"},Etr={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},Ctr={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},ktr={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},Atr={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Ptr={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"optimism"},Str={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},Rtr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},Mtr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},Ntr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},Btr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},Dtr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},Ltr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},Otr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},qtr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},Ftr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},Wtr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},Utr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},Htr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},jtr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},ztr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},Ktr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},Gtr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},Vtr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},Ytr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},$tr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},Qtr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},Jtr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},Ztr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},Xtr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},err={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},trr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},rrr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},nrr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},arr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},irr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},testnet:!1,slug:"telos-evm"},srr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},slug:"telos-evm-testnet"},orr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},crr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},urr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},lrr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},drr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},prr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},hrr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},frr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},mrr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},yrr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},grr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},brr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},vrr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},wrr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"binance"},xrr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},_rr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},Trr={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Irr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Err={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},Crr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},krr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},Arr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Prr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Srr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Rrr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Mrr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},Nrr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},Brr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},Drr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},Lrr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},Orr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy"},qrr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},Frr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},Wrr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},Urr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},Hrr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},jrr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},zrr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},Krr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},Grr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},Vrr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},Yrr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},$rr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},Qrr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},Jrr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},Zrr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},Xrr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},enr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},tnr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},rnr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},nnr={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},anr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},inr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"binance-testnet"},snr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},onr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"gnosis"},cnr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},unr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},lnr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},dnr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},pnr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},hnr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},fnr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},mnr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},ynr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},gnr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},bnr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},vnr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},wnr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},xnr={name:"Uptick Mainnet",chain:"Uptick",rpc:["https://uptick.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.uptick.network"],faucets:[],nativeCurrency:{name:"Uptick",symbol:"UPTICK",decimals:18},infoURL:"https://www.uptick.network",shortName:"auptick",chainId:117,networkId:117,icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},explorers:[{name:"Uptick Explorer",url:"https://evm-explorer.uptick.network",icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"uptick"},_nr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},Tnr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"enuls"},Inr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},Enr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},Cnr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},knr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},Anr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},Pnr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},Snr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},Rnr={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},Mnr={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},Nnr={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},Bnr={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},Dnr={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},Lnr={name:"WoopChain Mainnet",chain:"WOOP",icon:{url:"ipfs://Qma7LpnkGjAN1dwL6VTXUYqzySNxjLg4br7J8UE4yZWYec",width:310,height:310,format:"png"},rpc:["https://woopchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.woop.ai/rpc"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"WoopCoin",symbol:"WOOC",decimals:18},infoURL:"https://wikiwoop.com",shortName:"woop",chainId:139,networkId:139,explorers:[{name:"wikiwoop",url:"https://explorer.wikiwoop.com",standard:"EIP3091"}],testnet:!1,slug:"woopchain"},Onr={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},qnr={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},Fnr={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v2"},Wnr={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},Unr={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},Hnr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},jnr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},znr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},Knr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},Gnr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},Vnr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},Ynr={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},$nr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},Qnr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},Jnr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},Znr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},Xnr={name:"OKBChain Testnet",chain:"okbchain",rpc:["https://okbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://okbtestrpc.okbchain.org"],faucets:["https://www.oklink.com/okbc-test"],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",shortName:"tokb",chainId:195,networkId:195,explorers:[{name:"OKLink",url:"https://www.oklink.com/okbc-test",standard:"EIP3091"}],status:"active",testnet:!0,slug:"okbchain-testnet"},ear={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},tar={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},rar={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},nar={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},aar={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},iar={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},sar={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},oar={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},car={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},uar={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},lar={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},dar={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"fantom"},par={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},har={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},far={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},mar={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},yar={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.era.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},gar={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},bar={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},war={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},xar={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},_ar={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},Tar={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},Iar={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},Ear={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"omax"},Car={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},kar={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Aar={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},Par={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.era.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zksync.io/"}]},testnet:!1,slug:"zksync-era"},Sar={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},Rar={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!0,slug:"dfk-chain-test"},Mar={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"shiden"},Nar={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Bar={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Dar={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Lar={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},Oar={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},qar={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},Far={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},War={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},Uar={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},Har={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},jar={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},zar={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"optimism-goerli"},Kar={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},Gar={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},Var={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},Yar={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},$ar={name:"Columbus Test Network",chain:"CAM",rpc:["https://columbus-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://columbus.camino.network/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},Qar={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},Jar={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},Zar={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},Xar={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},eir={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},tir={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},rir={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},nir={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},air={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},iir={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},sir={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"astar"},oir={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},cir={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},uir={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},lir={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!0,slug:"metis-goerli-testnet"},dir={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},pir={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},hir={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},fir={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},mir={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},yir={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},gir={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},bir={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},vir={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},wir={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},xir={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"https://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},_ir={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},Tir={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ql1"},Iir={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},Eir={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},Cir={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},kir={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},Air={name:"Lucid Blockchain",chain:"Lucid",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},Pir={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},Sir={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},Rir={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},Mir={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},Nir={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},Bir={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Dir={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},Lir={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},Oir={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},qir={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},Fir={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},Wir={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},Uir={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},Hir={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},jir={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},zir={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},Kir={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},Gir={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},Vir={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},Yir={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},$ir={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},Qir={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},Jir={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},Zir={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},Xir={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},esr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},tsr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},rsr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},nsr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},asr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},isr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},ssr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},osr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},csr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},usr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},lsr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!1,slug:"eurus"},dsr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},psr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},hsr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},fsr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},msr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},ysr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},gsr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},bsr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},vsr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!0,slug:"bronos-testnet"},wsr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!1,slug:"bronos"},xsr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!1,slug:"metis-andromeda"},_sr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},Tsr={name:"Polygon zkEVM",title:"Polygon zkEVM",chain:"Polygon",rpc:["https://polygon-zkevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zkevm-rpc.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/polygon-zkevm",shortName:"zkevm",chainId:1101,networkId:1101,icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},explorers:[{name:"blockscout",url:"https://zkevm.polygonscan.com",icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zkevm-rpc.com"}]},testnet:!1,slug:"polygon-zkevm"},Isr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},Esr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},Csr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},ksr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},Asr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Psr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Ssr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Rsr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},Msr={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},Nsr={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},Bsr={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},Dsr={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},Lsr={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},Osr={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},qsr={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},Fsr={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"enterchain"},Wsr={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},Usr={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!0,slug:"ultron-testnet"},Hsr={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"ultron"},jsr={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},zsr={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},Ksr={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},Gsr={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},Vsr={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},Ysr={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},$sr={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},Qsr={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},Jsr={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},Zsr={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},Xsr={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"TDOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},eor={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},tor={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},ror={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},nor={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},aor={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},ior={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},sor={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},oor={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},cor={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},testnet:!0,slug:"polygon-zkevm-testnet"},uor={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},lor={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},dor={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},por={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},hor={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},mor={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},yor={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},gor={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},bor={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},vor={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},wor={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},xor={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},_or={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!1,slug:"palette-chain"},Tor={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},Ior={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},Eor={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},Cor={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},kor={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},Aor={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Por={name:"Lightlink Phoenix Mainnet",chain:"Lightlink Phoenix Mainnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.phoenix.lightlink.io/rpc/v1","https://replicator-02.phoenix.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_phoenix",chainId:1890,networkId:1890,explorers:[{name:"phoenix",url:"https://phoenix.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"lightlink-phoenix"},Sor={name:"Lightlink Pegasus Testnet",chain:"Lightlink Pegasus Testnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-pegasus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.pegasus.lightlink.io/rpc/v1","https://replicator-02.pegasus.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:["https://pegasus-faucet-react.vercel.app"],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_pegasus",chainId:1891,networkId:1891,explorers:[{name:"pegasus",url:"https://pegasus.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"lightlink-pegasus-testnet"},Ror={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},Mor={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},Nor={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},Bor={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},Dor={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},Lor={name:"Dexilla Testnet",chain:"Dexilla",rpc:["https://dexilla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dexilla.com"],faucets:[],icon:{url:"ipfs://QmUBveetVibvSEWQrjyxySgUphLuoMGSVLGmYnobt5FgEZ",width:512,height:512,format:"png"},nativeCurrency:{name:"Dexilla Native Token",symbol:"DXZ",decimals:18},infoURL:"https://dexilla.com",shortName:"Dexilla",chainId:1954,networkId:1954,explorers:[{name:"dos-mainnet",url:"https://exp.dexilla.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://bridge.dexilla.com"}]},testnet:!0,slug:"dexilla-testnet"},Oor={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},qor={name:"Super Smart Chain Testnet",chain:"TSCS",rpc:["https://super-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.superexchain.com:8544"],faucets:["https://testnet.superexchain.com"],nativeCurrency:{name:"Super Chain Native Token",symbol:"TSCS",decimals:18},infoURL:"https://testnet.superexchain.com",shortName:"tscs",chainId:1969,networkId:1969,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://testnetscan.superexchain.com",standard:"EIP3091"}],testnet:!0,slug:"super-smart-chain-testnet"},For={name:"Super Smart Chain Mainnet",chain:"SCS",rpc:["https://super-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://superexchain.com:8545"],faucets:[],nativeCurrency:{name:"Super Chain Native Token",symbol:"SCS",decimals:18},infoURL:"https://superexchain.com",shortName:"scs",chainId:1970,networkId:1970,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://scan.superexchain.com",standard:"EIP3091"}],testnet:!1,slug:"super-smart-chain"},Wor={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Uor={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Hor={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!0,slug:"eurus-testnet"},jor={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},zor={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ekta"},Kor={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},Gor={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},Vor={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},Yor={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},$or={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},Qor={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},Jor={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},Zor={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},Xor={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},ecr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},tcr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"edgeware-edgeevm"},rcr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},ncr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!0,slug:"taycan-testnet"},acr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},icr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},scr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},ocr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},ccr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},ucr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},lcr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},dcr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},pcr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},hcr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bosagora"},fcr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},mcr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},ycr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},gcr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},standard:"none"}],testnet:!1,slug:"bitcoin-evm"},bcr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},vcr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!0,slug:"kava-evm-testnet"},wcr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!1,slug:"kava-evm"},xcr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},_cr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},Tcr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},Icr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},standard:"none"}],testnet:!1,slug:"altcoinchain"},Ecr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},Ccr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},kcr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"}}],testnet:!1,slug:"xodex"},Acr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},Pcr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"techpay"},Scr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},Rcr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},Mcr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},Ncr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},Bcr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},Dcr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},Lcr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},Ocr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},qcr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},Fcr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Wcr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Ucr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Hcr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},jcr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},zcr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},Kcr={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},Gcr={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},Vcr={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},Ycr={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},$cr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},Qcr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},Jcr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},Zcr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},Xcr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},eur={name:"AlveyChain Mainnet",chain:"ALV",icon:{url:"ipfs://QmSwczpPLBG6ob1a8WLoujthiCPzwEyJNp7WdKRi52qbWX",width:310,height:310,format:"png"},rpc:["https://alveychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alveychain.com/rpc","https://rpc2.alvey.io/rpc"],faucets:[],nativeCurrency:{name:"AlveyCoin",symbol:"ALV",decimals:18},infoURL:"https://alveyscan.com/rpc",shortName:"alv",chainId:3797,networkId:3797,explorers:[{name:"AlveyScan",url:"https://alveyscan.com",standard:"EIP3091"}],testnet:!1,slug:"alveychain"},tur={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},rur={name:"DOS Tesnet",chain:"DOS",rpc:["https://dos-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"dost",chainId:3939,networkId:3939,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan-Test",url:"https://test.doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"dos-tesnet"},nur={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},aur={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},iur={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},sur={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},our={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},cur={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},uur={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},lur={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitindi.org","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},dur={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}"," https://rpc-mainnet.bitindi.org","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},pur={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},hur={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},fur={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v1"},mur={name:"Nexi Mainnet",chain:"Nexi",icon:{url:"ipfs://bafybeifxqd7zel2m237kq5enavnh2s6cshaavswigogyvae2wevxy5k2ti",width:512,height:578,format:"png"},rpc:["https://nexi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chain.nexi.technology/","https://chain.nexilix.com","https://chain.nexi.evmnode.online"],faucets:[],nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},infoURL:"https://www.nexi.technology/",shortName:"nexi",chainId:4242,networkId:4242,slip44:2500,explorers:[{name:"nexiscan",url:"https://www.nexiscan.com",standard:"EIP3091"}],testnet:!1,slug:"nexi"},yur={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},gur={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},standard:"none"}],testnet:!1,slug:"htmlcoin"},bur={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},vur={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},wur={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},xur={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},_ur={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},Tur={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},Iur={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},Eur={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},Cur={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},kur={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},Aur={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},Pur={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},Sur={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},Rur={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},Mur={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},Nur={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},Bur={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},Dur={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},Lur={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},Our={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},qur={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},Fur={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"tres"},Wur={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},Uur={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},Hur={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},jur={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},zur={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},Kur={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},Gur={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},Vur={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},Yur={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},$ur={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},Qur={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},Jur={name:"ADIL Testnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.adilchain-rpc.io"],faucets:["https://testnet-faucet.adil-scan.io"],nativeCurrency:{name:"Testnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"tadil",chainId:7575,networkId:7575,explorers:[{name:"ADIL Testnet Explorer",url:"https://testnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!0,slug:"adil-testnet"},Zur={name:"The Root Network - Mainnet",chain:"TRN",rpc:["https://the-root-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://root.rootnet.live/archive","wss://root.rootnet.live/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-mainnet",chainId:7668,networkId:7668,explorers:[{name:"rootnet",url:"https://explorer.rootnet.live",standard:"none"}],testnet:!1,slug:"the-root-network"},Xur={name:"The Root Network - Porcini Testnet",chain:"TRN",rpc:["https://the-root-network-porcini-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://porcini.rootnet.app/archive","wss://porcini.rootnet.app/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-porcini",chainId:7672,networkId:7672,explorers:[{name:"rootnet",url:"https://explorer.rootnet.cloud",standard:"none"}],testnet:!0,slug:"the-root-network-porcini-testnet"},elr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},tlr={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},rlr={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},nlr={name:"DOS Chain",chain:"DOS",rpc:["https://dos-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"https://doschain.io",shortName:"dos",chainId:7979,networkId:7979,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan",url:"https://doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"dos-chain"},alr={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!1,slug:"teleport"},ilr={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!0,slug:"teleport-testnet"},slr={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},olr={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},clr={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},ulr={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},llr={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},dlr={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},plr={name:"Qitmeer Network Mixnext",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meermix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8132,networkId:8132,status:"incubating",testnet:!1,slug:"qitmeer-network-mixnext"},hlr={name:"Qitmeer Network Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meerpriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8133,networkId:8133,status:"incubating",testnet:!1,slug:"qitmeer-network-privnet"},flr={name:"Amana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8134,networkId:8134,status:"incubating",testnet:!1,slug:"amana"},mlr={name:"Flana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8135,networkId:8135,status:"incubating",testnet:!1,slug:"flana"},ylr={name:"Mizana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8136,networkId:8136,status:"incubating",testnet:!1,slug:"mizana"},glr={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},blr={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},vlr={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},wlr={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},xlr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},_lr={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},Tlr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},Ilr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},Elr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},Clr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},klr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},Alr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},Plr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},Slr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},Rlr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},Mlr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},Nlr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},Blr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},Dlr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},Llr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"}}],testnet:!1,slug:"mammoth"},Olr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},qlr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"}}],testnet:!1,slug:"giant-mammoth"},Flr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},Wlr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!0,slug:"evmos-testnet"},Ulr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!1,slug:"evmos"},Hlr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},jlr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},zlr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},Klr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},Glr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Vlr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},Ylr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},$lr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},Qlr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Jlr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Zlr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Xlr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},edr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},tdr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},rdr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},ndr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},adr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},idr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},sdr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},odr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},cdr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},udr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!1,slug:"astra"},ldr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},ddr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!0,slug:"astra-testnet"},pdr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},hdr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},fdr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},mdr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},ydr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},gdr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},bdr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},vdr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},wdr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},xdr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},_dr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},Tdr={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},Idr={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Edr={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},Cdr={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},kdr={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},Adr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},Pdr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},Sdr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},Rdr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},Mdr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},Ndr={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},Bdr={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},Ddr={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},Ldr={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},Odr={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},qdr={name:"Camelark Mainnet",chainId:20001,shortName:"Camelark",chain:"ETHW",icon:{url:"ipfs://QmbXDcCWHh8jExE1tAUkUKzXyTb8srpC75ogZq1QYkMMRW",width:128,height:128,format:"svg"},networkId:20001,nativeCurrency:{name:"EthereumPoW",symbol:"ETHW",decimals:18},rpc:["https://camelark.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-http-rpc.camelark.com"],faucets:[],explorers:[{name:"CamelarkScan",url:"https://scan.camelark.com",standard:"EIP3091"}],infoURL:"https://www.camelark.com",testnet:!1,slug:"camelark"},Fdr={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},Wdr={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},Udr={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},Hdr={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},jdr={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!1,slug:"taycan"},zdr={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},Kdr={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},Gdr={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},Vdr={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},Ydr={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},$dr={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},Qdr={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},Jdr={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},Zdr={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],testnet:!0,slug:"bitkub-chain-testnet"},Xdr={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},epr={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},tpr={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},rpr={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},npr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},apr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},ipr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},spr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},opr={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},cpr={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bitgert"},upr={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"fusion"},lpr={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},dpr={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"aves"},ppr={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:{url:"ipfs://QmdUYi8fjnvdM9iFQ7dwE2YvmhDtavSB3bKhCD2GhPxPks",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},hpr={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"q"},fpr={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},mpr={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},ypr={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"oho"},gpr={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},bpr={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},vpr={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"arbitrum"},wpr={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},xpr={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},_pr={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},Tpr={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},Ipr={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},Epr={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax.network/","https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},Cpr={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},kpr={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},Apr={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"frenchain"},Ppr={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},Spr={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},Rpr={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},Mpr={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},Npr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},Bpr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},Dpr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},Lpr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},Opr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},qpr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},Fpr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!1,slug:"dfk-chain"},Wpr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},Upr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},Hpr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},jpr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},zpr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},Kpr={name:"Linea Testnet",title:"Linea Testnet",chain:"ETH",rpc:["https://linea-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goerli.linea.build"],faucets:["https://faucetlink.to/goerli"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://linea.build",shortName:"linea-testnet",chainId:59140,networkId:59140,icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"},parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea"}]},explorers:[{name:"Linea Testnet Explorer",url:"https://explorer.goerli.linea.build",standard:"EIP3091",icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"}}],status:"active",testnet:!0,slug:"linea-testnet"},Gpr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},Vpr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},Ypr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},$pr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},Qpr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},Jpr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},Zpr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},Xpr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},ehr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ecredits"},thr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},rhr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},nhr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},ahr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},ihr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},shr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},ohr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},chr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},uhr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},lhr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},dhr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},phr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},hhr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},fhr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},mhr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},yhr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},ghr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},bhr={name:"Amana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81341,networkId:81341,status:"incubating",testnet:!0,slug:"amana-testnet"},vhr={name:"Amana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81342,networkId:81342,status:"incubating",testnet:!1,slug:"amana-mixnet"},whr={name:"Amana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81343,networkId:81343,status:"incubating",testnet:!1,slug:"amana-privnet"},xhr={name:"Flana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81351,networkId:81351,status:"incubating",testnet:!0,slug:"flana-testnet"},_hr={name:"Flana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81352,networkId:81352,status:"incubating",testnet:!1,slug:"flana-mixnet"},Thr={name:"Flana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81353,networkId:81353,status:"incubating",testnet:!1,slug:"flana-privnet"},Ihr={name:"Mizana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81361,networkId:81361,status:"incubating",testnet:!0,slug:"mizana-testnet"},Ehr={name:"Mizana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81362,networkId:81362,status:"incubating",testnet:!1,slug:"mizana-mixnet"},Chr={name:"Mizana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81363,networkId:81363,status:"incubating",testnet:!1,slug:"mizana-privnet"},khr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},Ahr={name:"CYBERTRUST",chain:"CYBER",rpc:["https://cybertrust.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cybertrust.space:48501"],faucets:[],nativeCurrency:{name:"Cyber Trust",symbol:"CYBER",decimals:18},infoURL:"https://cybertrust.space",shortName:"Cyber",chainId:85449,networkId:48501,testnet:!0,slug:"cybertrust"},Phr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},Shr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},Rhr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},Mhr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"}}],testnet:!0,slug:"lambda-testnet"},Nhr={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},Bhr={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},Dhr={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},Lhr={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},Ohr={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},qhr={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},Fhr={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},Whr={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},Uhr={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},Hhr={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},jhr={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},zhr={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},Khr={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},Ghr={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},Vhr={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},Yhr={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},$hr={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},Qhr={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},Jhr={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},Zhr={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},Xhr={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},efr={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},tfr={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},rfr={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},nfr={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},afr={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},ifr={name:"ADIL Devnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"Devnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"dadil",chainId:123456,networkId:123456,explorers:[{name:"ADIL Devnet Explorer",url:"https://devnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-devnet"},sfr={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},standard:"none"}],testnet:!1,slug:"etnd-chain-s"},ofr={name:"Taiko (Alpha-2 Testnet)",chain:"ETH",icon:{url:"ipfs://QmWMUDmNHzCtism9dYK1JooerZJ4da6kGt67HAQmLiEykc",width:1001,height:1001,format:"png"},rpc:["https://taiko-alpha-2-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.a2.taiko.xyz"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://taiko.xyz",shortName:"taiko-a2",chainId:167004,networkId:167004,explorers:[{name:"blockscout",url:"https://explorer.a2.taiko.xyz",standard:"EIP3091"}],testnet:!0,slug:"taiko-alpha-2-testnet"},cfr={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},ufr={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},lfr={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},dfr={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},pfr={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},hfr={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},ffr={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},mfr={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},yfr={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"}}],testnet:!0,slug:"jellie"},gfr={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},bfr={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},vfr={name:"HashKey Chain Testnet",chain:"HashKey",rpc:["https://hashkey-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashkeychain/rpc"],faucets:["https://testnet.hashkeychain/faucet"],nativeCurrency:{name:"HashKey Token",symbol:"tHSK",decimals:18},infoURL:"https://www.hashkey.com",shortName:"hsktest",chainId:230315,networkId:230315,icon:{url:"ipfs://QmNU11AqYB2htrrSyBSP9ct7bPtuZTP7Hrz21PrEcB9nYE",width:1440,height:448,format:"png"},explorers:[{name:"HashKey Chain Testnet Explorer",url:"https://testnet.hashkeyscan.io",standard:"none"}],testnet:!0,slug:"hashkey-chain-testnet"},wfr={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},xfr={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},_fr={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},Tfr={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},Ifr={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},Efr={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},Cfr={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},kfr={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},Afr={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},Pfr={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},Sfr={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},Rfr={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!0,slug:"hapchain-testnet"},Mfr={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},Nfr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},Bfr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},Dfr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"kekchain"},Lfr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},Ofr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},qfr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"arbitrum-goerli"},Ffr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},Wfr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},Ufr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},Hfr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},jfr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},zfr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},Kfr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"ethf",chain:"ETHF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://www.oklink.com/ethf",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},Gfr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},Vfr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},Yfr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},$fr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},Qfr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},Jfr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},Zfr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},Xfr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"octaspace"},emr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},tmr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},rmr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},nmr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},amr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},imr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},smr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},omr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},cmr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},umr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},lmr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},dmr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kiln"},pmr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},hmr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},fmr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},mmr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},ymr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"imversed"},gmr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!0,slug:"imversed-testnet"},bmr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},vmr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},wmr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},xmr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},_mr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},Tmr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!1,slug:"hapchain"},Imr={name:"Quarix Testnet",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix-testnet",chainId:8888881,networkId:8888881,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!0,slug:"quarix-testnet"},Emr={name:"Quarix",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix",chainId:8888888,networkId:8888888,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"quarix"},Cmr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},kmr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},Amr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},Pmr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},Smr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:{url:"ipfs://bafkreiapaxokh2p4j7hg43ug2inomixiwrdhni4kpqazvqifssnez7efze",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"anduschain"},Rmr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},Mmr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},Nmr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},Bmr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},Dmr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},Lmr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},Omr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},qmr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},Fmr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},Wmr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},Umr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},Hmr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},jmr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},zmr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},Kmr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},Gmr={name:"T.E.A.M Blockchain",chain:"TEAM",icon:{url:"ipfs://QmcnA15BLE9uvznbugXKjqquizZs1eLPeEEkc92DSmvhmt",width:248,height:248,format:"png"},rpc:["https://t-e-a-m-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.teamblockchain.team"],faucets:[],nativeCurrency:{name:"TEAM",symbol:"$TEAM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://teamblockchain.team",shortName:"team",chainId:88888888,networkId:88888888,explorers:[{name:"teamscan",url:"https://teamblockchain.team",standard:"EIP3091"}],testnet:!1,slug:"t-e-a-m-blockchain"},Vmr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},Ymr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},$mr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},Qmr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},Jmr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},Zmr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},Xmr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},e0r={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},t0r={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},r0r={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},n0r={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},a0r={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},standard:"none"}],testnet:!1,slug:"cyberdecknet"},i0r={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmT5KKrpNt6duU8QfwaYw3xf4ifTBPtjahpWsMi3gsFmcS",width:440,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},s0r={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},o0r={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},c0r={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},u0r={name:"RaptorChain",chain:"RPTR",rpc:["https://raptorchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.raptorchain.io/web3"],faucets:[],nativeCurrency:{name:"Raptor",symbol:"RPTR",decimals:18},features:[{name:"EIP155"}],infoURL:"https://raptorchain.io",shortName:"rptr",chainId:1380996178,networkId:1380996178,icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},explorers:[{name:"RaptorChain Explorer",url:"https://explorer.raptorchain.io",icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"raptorchain"},l0r={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula"},d0r={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},p0r={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},h0r={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},f0r={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},m0r={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},y0r={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},g0r={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},b0r={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},v0r={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},w0r={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},x0r={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},_0r={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},T0r={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},I0r={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},E0r={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},C0r={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},k0r={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"ntity"},A0r={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},P0r={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},S0r={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},R0r={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},M0r={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},N0r={mode:"http"};function yet(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...N0r,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function B0r(r,e){return yet(r,e)[0]}function D0r(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function L0r(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var mv=wtr,Fx=xtr,Wx=_tr,Ux=Ttr,yv=Itr,Hx=Etr,jx=Ctr,zx=ktr,Kx=Atr,gv=Ptr,Gx=Str,Vx=Rtr,Yx=Mtr,$x=Ntr,Qx=Btr,Jx=Dtr,Zx=Ltr,Xx=Otr,e_=qtr,t_=Ftr,r_=Wtr,n_=Utr,a_=Htr,i_=jtr,s_=ztr,o_=Ktr,c_=Gtr,u_=Vtr,l_=Ytr,d_=$tr,p_=Qtr,h_=Jtr,f_=Ztr,m_=Xtr,y_=err,g_=trr,b_=rrr,v_=nrr,w_=arr,x_=irr,__=srr,T_=orr,I_=crr,E_=urr,C_=lrr,k_=drr,A_=prr,P_=hrr,S_=frr,R_=mrr,M_=yrr,N_=grr,B_=brr,D_=vrr,bv=wrr,L_=xrr,O_=_rr,q_=Trr,F_=Irr,W_=Err,U_=Crr,H_=krr,j_=Arr,z_=Prr,K_=Srr,G_=Rrr,V_=Mrr,Y_=Nrr,$_=Brr,Q_=Drr,J_=Lrr,Z_=Orr,X_=qrr,eT=Frr,tT=Wrr,rT=Urr,nT=Hrr,aT=jrr,iT=zrr,sT=Krr,oT=Grr,cT=Vrr,uT=Yrr,lT=$rr,dT=Qrr,pT=Jrr,hT=Zrr,fT=Xrr,mT=enr,yT=tnr,gT=rnr,bT=nnr,vT=anr,vv=inr,wT=snr,xT=onr,_T=cnr,TT=unr,IT=lnr,ET=dnr,CT=pnr,kT=hnr,AT=fnr,PT=mnr,ST=ynr,RT=gnr,MT=bnr,NT=vnr,BT=wnr,DT=xnr,LT=_nr,OT=Tnr,qT=Inr,FT=Enr,WT=Cnr,UT=knr,HT=Anr,jT=Pnr,zT=Snr,KT=Rnr,GT=Mnr,VT=Nnr,YT=Bnr,wv=Dnr,$T=Lnr,QT=Onr,JT=qnr,ZT=Fnr,XT=Wnr,e6=Unr,t6=Hnr,r6=jnr,n6=znr,a6=Knr,i6=Gnr,s6=Vnr,o6=Ynr,c6=$nr,u6=Qnr,l6=Jnr,d6=Znr,p6=Xnr,h6=ear,f6=tar,m6=rar,y6=nar,g6=aar,b6=iar,v6=sar,w6=oar,x6=car,_6=uar,T6=lar,xv=dar,I6=par,E6=har,C6=far,k6=mar,A6=yar,P6=gar,S6=bar,R6=war,M6=xar,N6=_ar,B6=Tar,D6=Iar,L6=Ear,O6=Car,q6=kar,F6=Aar,W6=Par,U6=Sar,H6=Rar,j6=Mar,z6=Nar,K6=Bar,G6=Dar,V6=Lar,Y6=Oar,$6=qar,Q6=Far,J6=War,Z6=Uar,X6=Har,eI=jar,_v=zar,tI=Kar,rI=Gar,nI=Var,aI=Yar,iI=$ar,sI=Qar,oI=Jar,cI=Zar,uI=Xar,lI=eir,dI=tir,pI=rir,hI=nir,fI=air,mI=iir,yI=sir,gI=oir,bI=cir,vI=uir,wI=lir,xI=dir,_I=pir,TI=hir,II=fir,EI=mir,CI=yir,kI=gir,AI=bir,PI=vir,SI=wir,RI=xir,MI=_ir,NI=Tir,BI=Iir,DI=Eir,LI=Cir,OI=kir,qI=Air,FI=Pir,WI=Sir,UI=Rir,HI=Mir,jI=Nir,zI=Bir,KI=Dir,GI=Lir,VI=Oir,YI=qir,$I=Fir,QI=Wir,JI=Uir,ZI=Hir,XI=jir,eE=zir,tE=Kir,rE=Gir,nE=Vir,aE=Yir,iE=$ir,sE=Qir,oE=Jir,cE=Zir,uE=Xir,lE=esr,dE=tsr,pE=rsr,hE=nsr,fE=asr,mE=isr,yE=ssr,gE=osr,bE=csr,vE=usr,wE=lsr,xE=dsr,_E=psr,TE=hsr,IE=fsr,EE=msr,CE=ysr,kE=gsr,AE=bsr,PE=vsr,SE=wsr,RE=xsr,ME=_sr,NE=Tsr,BE=Isr,DE=Esr,LE=Csr,OE=ksr,qE=Asr,FE=Psr,WE=Ssr,UE=Rsr,HE=Msr,jE=Nsr,zE=Bsr,KE=Dsr,GE=Lsr,VE=Osr,YE=qsr,$E=Fsr,QE=Wsr,JE=Usr,ZE=Hsr,XE=jsr,eC=zsr,tC=Ksr,rC=Gsr,nC=Vsr,aC=Ysr,iC=$sr,sC=Qsr,oC=Jsr,cC=Zsr,uC=Xsr,lC=eor,dC=tor,pC=ror,hC=nor,fC=aor,mC=ior,yC=sor,gC=oor,bC=cor,vC=uor,wC=lor,xC=dor,_C=por,TC=hor,IC=mor,EC=yor,CC=gor,kC=bor,AC=vor,PC=wor,SC=xor,RC=_or,MC=Tor,NC=Ior,BC=Eor,DC=Cor,LC=kor,OC=Aor,qC=Por,FC=Sor,WC=Ror,UC=Mor,HC=Nor,jC=Bor,zC=Dor,KC=Lor,GC=Oor,VC=qor,YC=For,$C=Wor,QC=Uor,JC=Hor,ZC=jor,XC=zor,e8=Kor,t8=Gor,r8=Vor,n8=Yor,a8=$or,i8=Qor,s8=Jor,o8=Zor,c8=Xor,u8=ecr,l8=tcr,d8=rcr,p8=ncr,h8=acr,f8=icr,m8=scr,y8=ocr,g8=ccr,b8=ucr,v8=lcr,w8=dcr,x8=pcr,_8=hcr,T8=fcr,I8=mcr,E8=ycr,C8=gcr,k8=bcr,A8=vcr,P8=wcr,S8=xcr,R8=_cr,M8=Tcr,N8=Icr,B8=Ecr,D8=Ccr,L8=kcr,O8=Acr,q8=Pcr,F8=Scr,W8=Rcr,U8=Mcr,H8=Ncr,j8=Bcr,z8=Dcr,K8=Lcr,G8=Ocr,V8=qcr,Y8=Fcr,$8=Wcr,Q8=Ucr,J8=Hcr,Z8=jcr,X8=zcr,e4=Kcr,t4=Gcr,r4=Vcr,n4=Ycr,a4=$cr,i4=Qcr,s4=Jcr,o4=Zcr,c4=Xcr,u4=eur,l4=tur,d4=rur,p4=nur,h4=aur,f4=iur,Tv=sur,m4=our,y4=cur,g4=uur,b4=lur,v4=dur,w4=pur,x4=hur,_4=fur,T4=mur,I4=yur,E4=gur,C4=bur,k4=vur,A4=wur,P4=xur,S4=_ur,R4=Tur,M4=Iur,N4=Eur,B4=Cur,D4=kur,L4=Aur,O4=Pur,q4=Sur,F4=Rur,W4=Mur,U4=Nur,H4=Bur,j4=Dur,z4=Lur,K4=Our,G4=qur,V4=Fur,Y4=Wur,$4=Uur,Q4=Hur,J4=jur,Z4=zur,X4=Kur,ek=Gur,tk=Vur,rk=Yur,nk=$ur,ak=Qur,ik=Jur,sk=Zur,ok=Xur,ck=elr,uk=tlr,lk=rlr,dk=nlr,pk=alr,hk=ilr,fk=slr,mk=olr,yk=clr,gk=ulr,bk=llr,vk=dlr,wk=plr,xk=hlr,_k=flr,Tk=mlr,Ik=ylr,Ek=glr,Ck=blr,kk=vlr,Ak=wlr,Pk=xlr,Sk=_lr,Rk=Tlr,Mk=Ilr,Nk=Elr,Bk=Clr,Dk=klr,Lk=Alr,Ok=Plr,qk=Slr,Fk=Rlr,Wk=Mlr,Uk=Nlr,Hk=Blr,jk=Dlr,zk=Llr,Kk=Olr,Gk=qlr,Vk=Flr,Yk=Wlr,$k=Ulr,Qk=Hlr,Jk=jlr,Zk=zlr,Xk=Klr,eA=Glr,tA=Vlr,rA=Ylr,nA=$lr,aA=Qlr,iA=Jlr,sA=Zlr,oA=Xlr,cA=edr,uA=tdr,lA=rdr,dA=ndr,pA=adr,hA=idr,fA=sdr,mA=odr,yA=cdr,gA=udr,bA=ldr,vA=ddr,wA=pdr,xA=hdr,_A=fdr,TA=mdr,IA=ydr,EA=gdr,CA=bdr,kA=vdr,AA=wdr,PA=xdr,SA=_dr,RA=Tdr,MA=Idr,NA=Edr,BA=Cdr,DA=kdr,LA=Adr,OA=Pdr,qA=Sdr,FA=Rdr,WA=Mdr,UA=Ndr,HA=Bdr,jA=Ddr,zA=Ldr,KA=Odr,GA=qdr,VA=Fdr,YA=Wdr,$A=Udr,QA=Hdr,JA=jdr,ZA=zdr,XA=Kdr,eP=Gdr,tP=Vdr,rP=Ydr,nP=$dr,aP=Qdr,iP=Jdr,sP=Zdr,oP=Xdr,cP=epr,uP=tpr,lP=rpr,dP=npr,pP=apr,hP=ipr,fP=spr,mP=opr,yP=cpr,gP=upr,bP=lpr,vP=dpr,wP=ppr,xP=hpr,_P=fpr,TP=mpr,IP=ypr,EP=gpr,CP=bpr,Iv=vpr,kP=wpr,AP=xpr,PP=_pr,SP=Tpr,RP=Ipr,Ev=Epr,Cv=Cpr,MP=kpr,NP=Apr,BP=Ppr,DP=Spr,LP=Rpr,OP=Mpr,qP=Npr,FP=Bpr,WP=Dpr,UP=Lpr,HP=Opr,jP=qpr,zP=Fpr,KP=Wpr,GP=Upr,VP=Hpr,YP=jpr,$P=zpr,QP=Kpr,JP=Gpr,ZP=Vpr,XP=Ypr,eS=$pr,tS=Qpr,rS=Jpr,nS=Zpr,aS=Xpr,iS=ehr,sS=thr,oS=rhr,cS=nhr,uS=ahr,lS=ihr,dS=shr,pS=ohr,hS=chr,fS=uhr,mS=lhr,yS=dhr,gS=phr,bS=hhr,vS=fhr,wS=mhr,xS=yhr,kv=ghr,_S=bhr,TS=vhr,IS=whr,ES=xhr,CS=_hr,kS=Thr,AS=Ihr,PS=Ehr,SS=Chr,RS=khr,MS=Ahr,NS=Phr,BS=Shr,DS=Rhr,LS=Mhr,OS=Nhr,qS=Bhr,FS=Dhr,WS=Lhr,US=Ohr,HS=qhr,jS=Fhr,zS=Whr,KS=Uhr,GS=Hhr,VS=jhr,YS=zhr,$S=Khr,QS=Ghr,JS=Vhr,ZS=Yhr,XS=$hr,e7=Qhr,t7=Jhr,r7=Zhr,n7=Xhr,a7=efr,i7=tfr,s7=rfr,o7=nfr,c7=afr,u7=ifr,l7=sfr,d7=ofr,p7=cfr,h7=ufr,f7=lfr,m7=dfr,y7=pfr,g7=hfr,b7=ffr,v7=mfr,w7=yfr,x7=gfr,_7=bfr,T7=vfr,I7=wfr,E7=xfr,C7=_fr,k7=Tfr,A7=Ifr,P7=Efr,S7=Cfr,R7=kfr,M7=Afr,N7=Pfr,B7=Sfr,D7=Rfr,L7=Mfr,O7=Nfr,q7=Bfr,F7=Dfr,W7=Lfr,U7=Ofr,Av=qfr,H7=Ffr,j7=Wfr,z7=Ufr,K7=Hfr,G7=jfr,V7=zfr,Y7=Kfr,$7=Gfr,Q7=Vfr,J7=Yfr,Z7=$fr,X7=Qfr,eR=Jfr,tR=Zfr,rR=Xfr,nR=emr,aR=tmr,iR=rmr,sR=nmr,oR=amr,cR=imr,uR=smr,lR=omr,dR=cmr,pR=umr,hR=lmr,fR=dmr,mR=pmr,yR=hmr,gR=fmr,bR=mmr,vR=ymr,wR=gmr,xR=bmr,_R=vmr,TR=wmr,IR=xmr,ER=_mr,CR=Tmr,kR=Imr,AR=Emr,PR=Cmr,SR=kmr,RR=Amr,MR=Pmr,NR=Smr,BR=Rmr,DR=Mmr,LR=Nmr,OR=Bmr,qR=Dmr,FR=Lmr,WR=Omr,UR=qmr,HR=Fmr,jR=Wmr,zR=Umr,KR=Hmr,GR=jmr,VR=zmr,YR=Kmr,$R=Gmr,QR=Vmr,JR=Ymr,ZR=$mr,XR=Qmr,e9=Jmr,t9=Zmr,r9=Xmr,n9=e0r,a9=t0r,i9=r0r,s9=n0r,o9=a0r,c9=i0r,u9=s0r,l9=o0r,d9=c0r,p9=u0r,h9=l0r,f9=d0r,m9=p0r,y9=h0r,g9=f0r,b9=m0r,v9=y0r,w9=g0r,x9=b0r,_9=v0r,T9=w0r,I9=x0r,E9=_0r,C9=T0r,k9=I0r,A9=E0r,P9=C0r,S9=k0r,R9=A0r,M9=P0r,N9=S0r,B9=R0r,Pv=M0r,O0r=[mv,yv,wv,kv,Iv,Av,gv,_v,bv,vv,xv,Tv,Cv,Ev,Pv],q0r=[mv,Fx,Wx,Ux,yv,Hx,jx,zx,Kx,gv,Gx,Vx,Yx,$x,Qx,Jx,Zx,Xx,e_,t_,r_,n_,a_,i_,s_,o_,c_,u_,l_,d_,p_,h_,f_,m_,y_,g_,b_,v_,w_,x_,__,T_,I_,E_,C_,k_,A_,P_,S_,R_,M_,N_,B_,D_,bv,L_,O_,q_,F_,W_,U_,H_,j_,z_,K_,G_,V_,Y_,$_,Q_,J_,Z_,X_,eT,tT,rT,nT,aT,iT,sT,oT,cT,uT,lT,dT,pT,hT,fT,mT,yT,gT,bT,vT,vv,wT,xT,_T,TT,IT,ET,CT,kT,AT,PT,ST,RT,MT,NT,BT,DT,LT,OT,qT,FT,WT,UT,HT,jT,zT,KT,GT,VT,YT,wv,$T,QT,JT,ZT,XT,e6,t6,r6,n6,a6,i6,s6,o6,c6,u6,l6,d6,p6,h6,f6,m6,y6,g6,b6,v6,w6,x6,_6,T6,xv,I6,E6,C6,k6,A6,P6,S6,R6,M6,N6,B6,D6,L6,O6,q6,F6,W6,U6,H6,j6,z6,K6,G6,V6,Y6,$6,Q6,J6,Z6,X6,eI,_v,tI,rI,nI,aI,iI,sI,oI,cI,uI,lI,dI,pI,hI,fI,mI,yI,gI,bI,vI,wI,xI,_I,TI,II,EI,CI,kI,AI,PI,SI,RI,MI,NI,BI,DI,LI,OI,qI,FI,WI,UI,HI,jI,zI,KI,GI,VI,YI,$I,QI,JI,ZI,XI,eE,tE,rE,nE,aE,iE,sE,oE,cE,uE,lE,dE,pE,hE,fE,mE,yE,gE,bE,vE,wE,xE,_E,TE,IE,EE,CE,kE,AE,PE,SE,RE,ME,NE,BE,DE,LE,OE,qE,FE,WE,UE,HE,jE,zE,KE,GE,VE,YE,$E,QE,JE,ZE,XE,eC,tC,rC,nC,aC,iC,sC,oC,cC,uC,lC,dC,pC,hC,fC,mC,yC,gC,bC,vC,wC,xC,_C,TC,IC,EC,CC,kC,AC,PC,SC,RC,MC,NC,BC,DC,LC,OC,qC,FC,WC,UC,HC,jC,zC,KC,GC,VC,YC,$C,QC,JC,ZC,XC,e8,t8,r8,n8,a8,i8,s8,o8,c8,u8,l8,d8,p8,h8,f8,m8,y8,g8,b8,v8,w8,x8,_8,T8,I8,E8,C8,k8,A8,P8,S8,R8,M8,N8,B8,D8,L8,O8,q8,F8,W8,U8,H8,j8,z8,K8,G8,V8,Y8,$8,Q8,J8,Z8,X8,e4,t4,r4,n4,a4,i4,s4,o4,c4,u4,l4,d4,p4,h4,f4,Tv,m4,y4,g4,b4,v4,w4,x4,_4,T4,I4,E4,C4,k4,A4,P4,S4,R4,M4,N4,B4,D4,L4,O4,q4,F4,W4,U4,H4,j4,z4,K4,G4,V4,Y4,$4,Q4,J4,Z4,X4,ek,tk,rk,nk,ak,ik,sk,ok,ck,uk,lk,dk,pk,hk,fk,mk,yk,gk,bk,vk,wk,xk,_k,Tk,Ik,Ek,Ck,kk,Ak,Pk,Sk,Rk,Mk,Nk,Bk,Dk,Lk,Ok,qk,Fk,Wk,Uk,Hk,jk,zk,Kk,Gk,Vk,Yk,$k,Qk,Jk,Zk,Xk,eA,tA,rA,nA,aA,iA,sA,oA,cA,uA,lA,dA,pA,hA,fA,mA,yA,gA,bA,vA,wA,xA,_A,TA,IA,EA,CA,kA,AA,PA,SA,RA,MA,NA,BA,DA,LA,OA,qA,FA,WA,UA,HA,jA,zA,KA,GA,VA,YA,$A,QA,JA,ZA,XA,eP,tP,rP,nP,aP,iP,sP,oP,cP,uP,lP,dP,pP,hP,fP,mP,yP,gP,bP,vP,wP,xP,_P,TP,IP,EP,CP,Iv,kP,AP,PP,SP,RP,Ev,Cv,MP,NP,BP,DP,LP,OP,qP,FP,WP,UP,HP,jP,zP,KP,GP,VP,YP,$P,QP,JP,ZP,XP,eS,tS,rS,nS,aS,iS,sS,oS,cS,uS,lS,dS,pS,hS,fS,mS,yS,gS,bS,vS,wS,xS,kv,_S,TS,IS,ES,CS,kS,AS,PS,SS,RS,MS,NS,BS,DS,LS,OS,qS,FS,WS,US,HS,jS,zS,KS,GS,VS,YS,$S,QS,JS,ZS,XS,e7,t7,r7,n7,a7,i7,s7,o7,c7,u7,l7,d7,p7,h7,f7,m7,y7,g7,b7,v7,w7,x7,_7,T7,I7,E7,C7,k7,A7,P7,S7,R7,M7,N7,B7,D7,L7,O7,q7,F7,W7,U7,Av,H7,j7,z7,K7,G7,V7,Y7,$7,Q7,J7,Z7,X7,eR,tR,rR,nR,aR,iR,sR,oR,cR,uR,lR,dR,pR,hR,fR,mR,yR,gR,bR,vR,wR,xR,_R,TR,IR,ER,CR,kR,AR,PR,SR,RR,MR,NR,BR,DR,LR,OR,qR,FR,WR,UR,HR,jR,zR,KR,GR,VR,YR,$R,QR,JR,ZR,XR,e9,t9,r9,n9,a9,i9,s9,o9,c9,u9,l9,d9,p9,h9,f9,m9,y9,g9,b9,v9,w9,x9,_9,T9,I9,E9,C9,k9,A9,P9,S9,R9,M9,N9,B9,Pv],P_e={[mv.chainId]:mv,[Fx.chainId]:Fx,[Wx.chainId]:Wx,[Ux.chainId]:Ux,[yv.chainId]:yv,[Hx.chainId]:Hx,[jx.chainId]:jx,[zx.chainId]:zx,[Kx.chainId]:Kx,[gv.chainId]:gv,[Gx.chainId]:Gx,[Vx.chainId]:Vx,[Yx.chainId]:Yx,[$x.chainId]:$x,[Qx.chainId]:Qx,[Jx.chainId]:Jx,[Zx.chainId]:Zx,[Xx.chainId]:Xx,[e_.chainId]:e_,[t_.chainId]:t_,[r_.chainId]:r_,[n_.chainId]:n_,[a_.chainId]:a_,[i_.chainId]:i_,[s_.chainId]:s_,[o_.chainId]:o_,[c_.chainId]:c_,[u_.chainId]:u_,[l_.chainId]:l_,[d_.chainId]:d_,[p_.chainId]:p_,[h_.chainId]:h_,[f_.chainId]:f_,[m_.chainId]:m_,[y_.chainId]:y_,[g_.chainId]:g_,[b_.chainId]:b_,[v_.chainId]:v_,[w_.chainId]:w_,[x_.chainId]:x_,[__.chainId]:__,[T_.chainId]:T_,[I_.chainId]:I_,[E_.chainId]:E_,[C_.chainId]:C_,[k_.chainId]:k_,[A_.chainId]:A_,[P_.chainId]:P_,[S_.chainId]:S_,[R_.chainId]:R_,[M_.chainId]:M_,[N_.chainId]:N_,[B_.chainId]:B_,[D_.chainId]:D_,[bv.chainId]:bv,[L_.chainId]:L_,[O_.chainId]:O_,[q_.chainId]:q_,[F_.chainId]:F_,[W_.chainId]:W_,[U_.chainId]:U_,[H_.chainId]:H_,[j_.chainId]:j_,[z_.chainId]:z_,[K_.chainId]:K_,[G_.chainId]:G_,[V_.chainId]:V_,[Y_.chainId]:Y_,[$_.chainId]:$_,[Q_.chainId]:Q_,[J_.chainId]:J_,[Z_.chainId]:Z_,[X_.chainId]:X_,[eT.chainId]:eT,[tT.chainId]:tT,[rT.chainId]:rT,[nT.chainId]:nT,[aT.chainId]:aT,[iT.chainId]:iT,[sT.chainId]:sT,[oT.chainId]:oT,[cT.chainId]:cT,[uT.chainId]:uT,[lT.chainId]:lT,[dT.chainId]:dT,[pT.chainId]:pT,[hT.chainId]:hT,[fT.chainId]:fT,[mT.chainId]:mT,[yT.chainId]:yT,[gT.chainId]:gT,[bT.chainId]:bT,[vT.chainId]:vT,[vv.chainId]:vv,[wT.chainId]:wT,[xT.chainId]:xT,[_T.chainId]:_T,[TT.chainId]:TT,[IT.chainId]:IT,[ET.chainId]:ET,[CT.chainId]:CT,[kT.chainId]:kT,[AT.chainId]:AT,[PT.chainId]:PT,[ST.chainId]:ST,[RT.chainId]:RT,[MT.chainId]:MT,[NT.chainId]:NT,[BT.chainId]:BT,[DT.chainId]:DT,[LT.chainId]:LT,[OT.chainId]:OT,[qT.chainId]:qT,[FT.chainId]:FT,[WT.chainId]:WT,[UT.chainId]:UT,[HT.chainId]:HT,[jT.chainId]:jT,[zT.chainId]:zT,[KT.chainId]:KT,[GT.chainId]:GT,[VT.chainId]:VT,[YT.chainId]:YT,[wv.chainId]:wv,[$T.chainId]:$T,[QT.chainId]:QT,[JT.chainId]:JT,[ZT.chainId]:ZT,[XT.chainId]:XT,[e6.chainId]:e6,[t6.chainId]:t6,[r6.chainId]:r6,[n6.chainId]:n6,[a6.chainId]:a6,[i6.chainId]:i6,[s6.chainId]:s6,[o6.chainId]:o6,[c6.chainId]:c6,[u6.chainId]:u6,[l6.chainId]:l6,[d6.chainId]:d6,[p6.chainId]:p6,[h6.chainId]:h6,[f6.chainId]:f6,[m6.chainId]:m6,[y6.chainId]:y6,[g6.chainId]:g6,[b6.chainId]:b6,[v6.chainId]:v6,[w6.chainId]:w6,[x6.chainId]:x6,[_6.chainId]:_6,[T6.chainId]:T6,[xv.chainId]:xv,[I6.chainId]:I6,[E6.chainId]:E6,[C6.chainId]:C6,[k6.chainId]:k6,[A6.chainId]:A6,[P6.chainId]:P6,[S6.chainId]:S6,[R6.chainId]:R6,[M6.chainId]:M6,[N6.chainId]:N6,[B6.chainId]:B6,[D6.chainId]:D6,[L6.chainId]:L6,[O6.chainId]:O6,[q6.chainId]:q6,[F6.chainId]:F6,[W6.chainId]:W6,[U6.chainId]:U6,[H6.chainId]:H6,[j6.chainId]:j6,[z6.chainId]:z6,[K6.chainId]:K6,[G6.chainId]:G6,[V6.chainId]:V6,[Y6.chainId]:Y6,[$6.chainId]:$6,[Q6.chainId]:Q6,[J6.chainId]:J6,[Z6.chainId]:Z6,[X6.chainId]:X6,[eI.chainId]:eI,[_v.chainId]:_v,[tI.chainId]:tI,[rI.chainId]:rI,[nI.chainId]:nI,[aI.chainId]:aI,[iI.chainId]:iI,[sI.chainId]:sI,[oI.chainId]:oI,[cI.chainId]:cI,[uI.chainId]:uI,[lI.chainId]:lI,[dI.chainId]:dI,[pI.chainId]:pI,[hI.chainId]:hI,[fI.chainId]:fI,[mI.chainId]:mI,[yI.chainId]:yI,[gI.chainId]:gI,[bI.chainId]:bI,[vI.chainId]:vI,[wI.chainId]:wI,[xI.chainId]:xI,[_I.chainId]:_I,[TI.chainId]:TI,[II.chainId]:II,[EI.chainId]:EI,[CI.chainId]:CI,[kI.chainId]:kI,[AI.chainId]:AI,[PI.chainId]:PI,[SI.chainId]:SI,[RI.chainId]:RI,[MI.chainId]:MI,[NI.chainId]:NI,[BI.chainId]:BI,[DI.chainId]:DI,[LI.chainId]:LI,[OI.chainId]:OI,[qI.chainId]:qI,[FI.chainId]:FI,[WI.chainId]:WI,[UI.chainId]:UI,[HI.chainId]:HI,[jI.chainId]:jI,[zI.chainId]:zI,[KI.chainId]:KI,[GI.chainId]:GI,[VI.chainId]:VI,[YI.chainId]:YI,[$I.chainId]:$I,[QI.chainId]:QI,[JI.chainId]:JI,[ZI.chainId]:ZI,[XI.chainId]:XI,[eE.chainId]:eE,[tE.chainId]:tE,[rE.chainId]:rE,[nE.chainId]:nE,[aE.chainId]:aE,[iE.chainId]:iE,[sE.chainId]:sE,[oE.chainId]:oE,[cE.chainId]:cE,[uE.chainId]:uE,[lE.chainId]:lE,[dE.chainId]:dE,[pE.chainId]:pE,[hE.chainId]:hE,[fE.chainId]:fE,[mE.chainId]:mE,[yE.chainId]:yE,[gE.chainId]:gE,[bE.chainId]:bE,[vE.chainId]:vE,[wE.chainId]:wE,[xE.chainId]:xE,[_E.chainId]:_E,[TE.chainId]:TE,[IE.chainId]:IE,[EE.chainId]:EE,[CE.chainId]:CE,[kE.chainId]:kE,[AE.chainId]:AE,[PE.chainId]:PE,[SE.chainId]:SE,[RE.chainId]:RE,[ME.chainId]:ME,[NE.chainId]:NE,[BE.chainId]:BE,[DE.chainId]:DE,[LE.chainId]:LE,[OE.chainId]:OE,[qE.chainId]:qE,[FE.chainId]:FE,[WE.chainId]:WE,[UE.chainId]:UE,[HE.chainId]:HE,[jE.chainId]:jE,[zE.chainId]:zE,[KE.chainId]:KE,[GE.chainId]:GE,[VE.chainId]:VE,[YE.chainId]:YE,[$E.chainId]:$E,[QE.chainId]:QE,[JE.chainId]:JE,[ZE.chainId]:ZE,[XE.chainId]:XE,[eC.chainId]:eC,[tC.chainId]:tC,[rC.chainId]:rC,[nC.chainId]:nC,[aC.chainId]:aC,[iC.chainId]:iC,[sC.chainId]:sC,[oC.chainId]:oC,[cC.chainId]:cC,[uC.chainId]:uC,[lC.chainId]:lC,[dC.chainId]:dC,[pC.chainId]:pC,[hC.chainId]:hC,[fC.chainId]:fC,[mC.chainId]:mC,[yC.chainId]:yC,[gC.chainId]:gC,[bC.chainId]:bC,[vC.chainId]:vC,[wC.chainId]:wC,[xC.chainId]:xC,[_C.chainId]:_C,[TC.chainId]:TC,[IC.chainId]:IC,[EC.chainId]:EC,[CC.chainId]:CC,[kC.chainId]:kC,[AC.chainId]:AC,[PC.chainId]:PC,[SC.chainId]:SC,[RC.chainId]:RC,[MC.chainId]:MC,[NC.chainId]:NC,[BC.chainId]:BC,[DC.chainId]:DC,[LC.chainId]:LC,[OC.chainId]:OC,[qC.chainId]:qC,[FC.chainId]:FC,[WC.chainId]:WC,[UC.chainId]:UC,[HC.chainId]:HC,[jC.chainId]:jC,[zC.chainId]:zC,[KC.chainId]:KC,[GC.chainId]:GC,[VC.chainId]:VC,[YC.chainId]:YC,[$C.chainId]:$C,[QC.chainId]:QC,[JC.chainId]:JC,[ZC.chainId]:ZC,[XC.chainId]:XC,[e8.chainId]:e8,[t8.chainId]:t8,[r8.chainId]:r8,[n8.chainId]:n8,[a8.chainId]:a8,[i8.chainId]:i8,[s8.chainId]:s8,[o8.chainId]:o8,[c8.chainId]:c8,[u8.chainId]:u8,[l8.chainId]:l8,[d8.chainId]:d8,[p8.chainId]:p8,[h8.chainId]:h8,[f8.chainId]:f8,[m8.chainId]:m8,[y8.chainId]:y8,[g8.chainId]:g8,[b8.chainId]:b8,[v8.chainId]:v8,[w8.chainId]:w8,[x8.chainId]:x8,[_8.chainId]:_8,[T8.chainId]:T8,[I8.chainId]:I8,[E8.chainId]:E8,[C8.chainId]:C8,[k8.chainId]:k8,[A8.chainId]:A8,[P8.chainId]:P8,[S8.chainId]:S8,[R8.chainId]:R8,[M8.chainId]:M8,[N8.chainId]:N8,[B8.chainId]:B8,[D8.chainId]:D8,[L8.chainId]:L8,[O8.chainId]:O8,[q8.chainId]:q8,[F8.chainId]:F8,[W8.chainId]:W8,[U8.chainId]:U8,[H8.chainId]:H8,[j8.chainId]:j8,[z8.chainId]:z8,[K8.chainId]:K8,[G8.chainId]:G8,[V8.chainId]:V8,[Y8.chainId]:Y8,[$8.chainId]:$8,[Q8.chainId]:Q8,[J8.chainId]:J8,[Z8.chainId]:Z8,[X8.chainId]:X8,[e4.chainId]:e4,[t4.chainId]:t4,[r4.chainId]:r4,[n4.chainId]:n4,[a4.chainId]:a4,[i4.chainId]:i4,[s4.chainId]:s4,[o4.chainId]:o4,[c4.chainId]:c4,[u4.chainId]:u4,[l4.chainId]:l4,[d4.chainId]:d4,[p4.chainId]:p4,[h4.chainId]:h4,[f4.chainId]:f4,[Tv.chainId]:Tv,[m4.chainId]:m4,[y4.chainId]:y4,[g4.chainId]:g4,[b4.chainId]:b4,[v4.chainId]:v4,[w4.chainId]:w4,[x4.chainId]:x4,[_4.chainId]:_4,[T4.chainId]:T4,[I4.chainId]:I4,[E4.chainId]:E4,[C4.chainId]:C4,[k4.chainId]:k4,[A4.chainId]:A4,[P4.chainId]:P4,[S4.chainId]:S4,[R4.chainId]:R4,[M4.chainId]:M4,[N4.chainId]:N4,[B4.chainId]:B4,[D4.chainId]:D4,[L4.chainId]:L4,[O4.chainId]:O4,[q4.chainId]:q4,[F4.chainId]:F4,[W4.chainId]:W4,[U4.chainId]:U4,[H4.chainId]:H4,[j4.chainId]:j4,[z4.chainId]:z4,[K4.chainId]:K4,[G4.chainId]:G4,[V4.chainId]:V4,[Y4.chainId]:Y4,[$4.chainId]:$4,[Q4.chainId]:Q4,[J4.chainId]:J4,[Z4.chainId]:Z4,[X4.chainId]:X4,[ek.chainId]:ek,[tk.chainId]:tk,[rk.chainId]:rk,[nk.chainId]:nk,[ak.chainId]:ak,[ik.chainId]:ik,[sk.chainId]:sk,[ok.chainId]:ok,[ck.chainId]:ck,[uk.chainId]:uk,[lk.chainId]:lk,[dk.chainId]:dk,[pk.chainId]:pk,[hk.chainId]:hk,[fk.chainId]:fk,[mk.chainId]:mk,[yk.chainId]:yk,[gk.chainId]:gk,[bk.chainId]:bk,[vk.chainId]:vk,[wk.chainId]:wk,[xk.chainId]:xk,[_k.chainId]:_k,[Tk.chainId]:Tk,[Ik.chainId]:Ik,[Ek.chainId]:Ek,[Ck.chainId]:Ck,[kk.chainId]:kk,[Ak.chainId]:Ak,[Pk.chainId]:Pk,[Sk.chainId]:Sk,[Rk.chainId]:Rk,[Mk.chainId]:Mk,[Nk.chainId]:Nk,[Bk.chainId]:Bk,[Dk.chainId]:Dk,[Lk.chainId]:Lk,[Ok.chainId]:Ok,[qk.chainId]:qk,[Fk.chainId]:Fk,[Wk.chainId]:Wk,[Uk.chainId]:Uk,[Hk.chainId]:Hk,[jk.chainId]:jk,[zk.chainId]:zk,[Kk.chainId]:Kk,[Gk.chainId]:Gk,[Vk.chainId]:Vk,[Yk.chainId]:Yk,[$k.chainId]:$k,[Qk.chainId]:Qk,[Jk.chainId]:Jk,[Zk.chainId]:Zk,[Xk.chainId]:Xk,[eA.chainId]:eA,[tA.chainId]:tA,[rA.chainId]:rA,[nA.chainId]:nA,[aA.chainId]:aA,[iA.chainId]:iA,[sA.chainId]:sA,[oA.chainId]:oA,[cA.chainId]:cA,[uA.chainId]:uA,[lA.chainId]:lA,[dA.chainId]:dA,[pA.chainId]:pA,[hA.chainId]:hA,[fA.chainId]:fA,[mA.chainId]:mA,[yA.chainId]:yA,[gA.chainId]:gA,[bA.chainId]:bA,[vA.chainId]:vA,[wA.chainId]:wA,[xA.chainId]:xA,[_A.chainId]:_A,[TA.chainId]:TA,[IA.chainId]:IA,[EA.chainId]:EA,[CA.chainId]:CA,[kA.chainId]:kA,[AA.chainId]:AA,[PA.chainId]:PA,[SA.chainId]:SA,[RA.chainId]:RA,[MA.chainId]:MA,[NA.chainId]:NA,[BA.chainId]:BA,[DA.chainId]:DA,[LA.chainId]:LA,[OA.chainId]:OA,[qA.chainId]:qA,[FA.chainId]:FA,[WA.chainId]:WA,[UA.chainId]:UA,[HA.chainId]:HA,[jA.chainId]:jA,[zA.chainId]:zA,[KA.chainId]:KA,[GA.chainId]:GA,[VA.chainId]:VA,[YA.chainId]:YA,[$A.chainId]:$A,[QA.chainId]:QA,[JA.chainId]:JA,[ZA.chainId]:ZA,[XA.chainId]:XA,[eP.chainId]:eP,[tP.chainId]:tP,[rP.chainId]:rP,[nP.chainId]:nP,[aP.chainId]:aP,[iP.chainId]:iP,[sP.chainId]:sP,[oP.chainId]:oP,[cP.chainId]:cP,[uP.chainId]:uP,[lP.chainId]:lP,[dP.chainId]:dP,[pP.chainId]:pP,[hP.chainId]:hP,[fP.chainId]:fP,[mP.chainId]:mP,[yP.chainId]:yP,[gP.chainId]:gP,[bP.chainId]:bP,[vP.chainId]:vP,[wP.chainId]:wP,[xP.chainId]:xP,[_P.chainId]:_P,[TP.chainId]:TP,[IP.chainId]:IP,[EP.chainId]:EP,[CP.chainId]:CP,[Iv.chainId]:Iv,[kP.chainId]:kP,[AP.chainId]:AP,[PP.chainId]:PP,[SP.chainId]:SP,[RP.chainId]:RP,[Ev.chainId]:Ev,[Cv.chainId]:Cv,[MP.chainId]:MP,[NP.chainId]:NP,[BP.chainId]:BP,[DP.chainId]:DP,[LP.chainId]:LP,[OP.chainId]:OP,[qP.chainId]:qP,[FP.chainId]:FP,[WP.chainId]:WP,[UP.chainId]:UP,[HP.chainId]:HP,[jP.chainId]:jP,[zP.chainId]:zP,[KP.chainId]:KP,[GP.chainId]:GP,[VP.chainId]:VP,[YP.chainId]:YP,[$P.chainId]:$P,[QP.chainId]:QP,[JP.chainId]:JP,[ZP.chainId]:ZP,[XP.chainId]:XP,[eS.chainId]:eS,[tS.chainId]:tS,[rS.chainId]:rS,[nS.chainId]:nS,[aS.chainId]:aS,[iS.chainId]:iS,[sS.chainId]:sS,[oS.chainId]:oS,[cS.chainId]:cS,[uS.chainId]:uS,[lS.chainId]:lS,[dS.chainId]:dS,[pS.chainId]:pS,[hS.chainId]:hS,[fS.chainId]:fS,[mS.chainId]:mS,[yS.chainId]:yS,[gS.chainId]:gS,[bS.chainId]:bS,[vS.chainId]:vS,[wS.chainId]:wS,[xS.chainId]:xS,[kv.chainId]:kv,[_S.chainId]:_S,[TS.chainId]:TS,[IS.chainId]:IS,[ES.chainId]:ES,[CS.chainId]:CS,[kS.chainId]:kS,[AS.chainId]:AS,[PS.chainId]:PS,[SS.chainId]:SS,[RS.chainId]:RS,[MS.chainId]:MS,[NS.chainId]:NS,[BS.chainId]:BS,[DS.chainId]:DS,[LS.chainId]:LS,[OS.chainId]:OS,[qS.chainId]:qS,[FS.chainId]:FS,[WS.chainId]:WS,[US.chainId]:US,[HS.chainId]:HS,[jS.chainId]:jS,[zS.chainId]:zS,[KS.chainId]:KS,[GS.chainId]:GS,[VS.chainId]:VS,[YS.chainId]:YS,[$S.chainId]:$S,[QS.chainId]:QS,[JS.chainId]:JS,[ZS.chainId]:ZS,[XS.chainId]:XS,[e7.chainId]:e7,[t7.chainId]:t7,[r7.chainId]:r7,[n7.chainId]:n7,[a7.chainId]:a7,[i7.chainId]:i7,[s7.chainId]:s7,[o7.chainId]:o7,[c7.chainId]:c7,[u7.chainId]:u7,[l7.chainId]:l7,[d7.chainId]:d7,[p7.chainId]:p7,[h7.chainId]:h7,[f7.chainId]:f7,[m7.chainId]:m7,[y7.chainId]:y7,[g7.chainId]:g7,[b7.chainId]:b7,[v7.chainId]:v7,[w7.chainId]:w7,[x7.chainId]:x7,[_7.chainId]:_7,[T7.chainId]:T7,[I7.chainId]:I7,[E7.chainId]:E7,[C7.chainId]:C7,[k7.chainId]:k7,[A7.chainId]:A7,[P7.chainId]:P7,[S7.chainId]:S7,[R7.chainId]:R7,[M7.chainId]:M7,[N7.chainId]:N7,[B7.chainId]:B7,[D7.chainId]:D7,[L7.chainId]:L7,[O7.chainId]:O7,[q7.chainId]:q7,[F7.chainId]:F7,[W7.chainId]:W7,[U7.chainId]:U7,[Av.chainId]:Av,[H7.chainId]:H7,[j7.chainId]:j7,[z7.chainId]:z7,[K7.chainId]:K7,[G7.chainId]:G7,[V7.chainId]:V7,[Y7.chainId]:Y7,[$7.chainId]:$7,[Q7.chainId]:Q7,[J7.chainId]:J7,[Z7.chainId]:Z7,[X7.chainId]:X7,[eR.chainId]:eR,[tR.chainId]:tR,[rR.chainId]:rR,[nR.chainId]:nR,[aR.chainId]:aR,[iR.chainId]:iR,[sR.chainId]:sR,[oR.chainId]:oR,[cR.chainId]:cR,[uR.chainId]:uR,[lR.chainId]:lR,[dR.chainId]:dR,[pR.chainId]:pR,[hR.chainId]:hR,[fR.chainId]:fR,[mR.chainId]:mR,[yR.chainId]:yR,[gR.chainId]:gR,[bR.chainId]:bR,[vR.chainId]:vR,[wR.chainId]:wR,[xR.chainId]:xR,[_R.chainId]:_R,[TR.chainId]:TR,[IR.chainId]:IR,[ER.chainId]:ER,[CR.chainId]:CR,[kR.chainId]:kR,[AR.chainId]:AR,[PR.chainId]:PR,[SR.chainId]:SR,[RR.chainId]:RR,[MR.chainId]:MR,[NR.chainId]:NR,[BR.chainId]:BR,[DR.chainId]:DR,[LR.chainId]:LR,[OR.chainId]:OR,[qR.chainId]:qR,[FR.chainId]:FR,[WR.chainId]:WR,[UR.chainId]:UR,[HR.chainId]:HR,[jR.chainId]:jR,[zR.chainId]:zR,[KR.chainId]:KR,[GR.chainId]:GR,[VR.chainId]:VR,[YR.chainId]:YR,[$R.chainId]:$R,[QR.chainId]:QR,[JR.chainId]:JR,[ZR.chainId]:ZR,[XR.chainId]:XR,[e9.chainId]:e9,[t9.chainId]:t9,[r9.chainId]:r9,[n9.chainId]:n9,[a9.chainId]:a9,[i9.chainId]:i9,[s9.chainId]:s9,[o9.chainId]:o9,[c9.chainId]:c9,[u9.chainId]:u9,[l9.chainId]:l9,[d9.chainId]:d9,[p9.chainId]:p9,[h9.chainId]:h9,[f9.chainId]:f9,[m9.chainId]:m9,[y9.chainId]:y9,[g9.chainId]:g9,[b9.chainId]:b9,[v9.chainId]:v9,[w9.chainId]:w9,[x9.chainId]:x9,[_9.chainId]:_9,[T9.chainId]:T9,[I9.chainId]:I9,[E9.chainId]:E9,[C9.chainId]:C9,[k9.chainId]:k9,[A9.chainId]:A9,[P9.chainId]:P9,[S9.chainId]:S9,[R9.chainId]:R9,[M9.chainId]:M9,[N9.chainId]:N9,[B9.chainId]:B9,[Pv.chainId]:Pv},get={[mv.slug]:mv.chainId,[Fx.slug]:Fx.chainId,[Wx.slug]:Wx.chainId,[Ux.slug]:Ux.chainId,[yv.slug]:yv.chainId,[Hx.slug]:Hx.chainId,[jx.slug]:jx.chainId,[zx.slug]:zx.chainId,[Kx.slug]:Kx.chainId,[gv.slug]:gv.chainId,[Gx.slug]:Gx.chainId,[Vx.slug]:Vx.chainId,[Yx.slug]:Yx.chainId,[$x.slug]:$x.chainId,[Qx.slug]:Qx.chainId,[Jx.slug]:Jx.chainId,[Zx.slug]:Zx.chainId,[Xx.slug]:Xx.chainId,[e_.slug]:e_.chainId,[t_.slug]:t_.chainId,[r_.slug]:r_.chainId,[n_.slug]:n_.chainId,[a_.slug]:a_.chainId,[i_.slug]:i_.chainId,[s_.slug]:s_.chainId,[o_.slug]:o_.chainId,[c_.slug]:c_.chainId,[u_.slug]:u_.chainId,[l_.slug]:l_.chainId,[d_.slug]:d_.chainId,[p_.slug]:p_.chainId,[h_.slug]:h_.chainId,[f_.slug]:f_.chainId,[m_.slug]:m_.chainId,[y_.slug]:y_.chainId,[g_.slug]:g_.chainId,[b_.slug]:b_.chainId,[v_.slug]:v_.chainId,[w_.slug]:w_.chainId,[x_.slug]:x_.chainId,[__.slug]:__.chainId,[T_.slug]:T_.chainId,[I_.slug]:I_.chainId,[E_.slug]:E_.chainId,[C_.slug]:C_.chainId,[k_.slug]:k_.chainId,[A_.slug]:A_.chainId,[P_.slug]:P_.chainId,[S_.slug]:S_.chainId,[R_.slug]:R_.chainId,[M_.slug]:M_.chainId,[N_.slug]:N_.chainId,[B_.slug]:B_.chainId,[D_.slug]:D_.chainId,[bv.slug]:bv.chainId,[L_.slug]:L_.chainId,[O_.slug]:O_.chainId,[q_.slug]:q_.chainId,[F_.slug]:F_.chainId,[W_.slug]:W_.chainId,[U_.slug]:U_.chainId,[H_.slug]:H_.chainId,[j_.slug]:j_.chainId,[z_.slug]:z_.chainId,[K_.slug]:K_.chainId,[G_.slug]:G_.chainId,[V_.slug]:V_.chainId,[Y_.slug]:Y_.chainId,[$_.slug]:$_.chainId,[Q_.slug]:Q_.chainId,[J_.slug]:J_.chainId,[Z_.slug]:Z_.chainId,[X_.slug]:X_.chainId,[eT.slug]:eT.chainId,[tT.slug]:tT.chainId,[rT.slug]:rT.chainId,[nT.slug]:nT.chainId,[aT.slug]:aT.chainId,[iT.slug]:iT.chainId,[sT.slug]:sT.chainId,[oT.slug]:oT.chainId,[cT.slug]:cT.chainId,[uT.slug]:uT.chainId,[lT.slug]:lT.chainId,[dT.slug]:dT.chainId,[pT.slug]:pT.chainId,[hT.slug]:hT.chainId,[fT.slug]:fT.chainId,[mT.slug]:mT.chainId,[yT.slug]:yT.chainId,[gT.slug]:gT.chainId,[bT.slug]:bT.chainId,[vT.slug]:vT.chainId,[vv.slug]:vv.chainId,[wT.slug]:wT.chainId,[xT.slug]:xT.chainId,[_T.slug]:_T.chainId,[TT.slug]:TT.chainId,[IT.slug]:IT.chainId,[ET.slug]:ET.chainId,[CT.slug]:CT.chainId,[kT.slug]:kT.chainId,[AT.slug]:AT.chainId,[PT.slug]:PT.chainId,[ST.slug]:ST.chainId,[RT.slug]:RT.chainId,[MT.slug]:MT.chainId,[NT.slug]:NT.chainId,[BT.slug]:BT.chainId,[DT.slug]:DT.chainId,[LT.slug]:LT.chainId,[OT.slug]:OT.chainId,[qT.slug]:qT.chainId,[FT.slug]:FT.chainId,[WT.slug]:WT.chainId,[UT.slug]:UT.chainId,[HT.slug]:HT.chainId,[jT.slug]:jT.chainId,[zT.slug]:zT.chainId,[KT.slug]:KT.chainId,[GT.slug]:GT.chainId,[VT.slug]:VT.chainId,[YT.slug]:YT.chainId,[wv.slug]:wv.chainId,[$T.slug]:$T.chainId,[QT.slug]:QT.chainId,[JT.slug]:JT.chainId,[ZT.slug]:ZT.chainId,[XT.slug]:XT.chainId,[e6.slug]:e6.chainId,[t6.slug]:t6.chainId,[r6.slug]:r6.chainId,[n6.slug]:n6.chainId,[a6.slug]:a6.chainId,[i6.slug]:i6.chainId,[s6.slug]:s6.chainId,[o6.slug]:o6.chainId,[c6.slug]:c6.chainId,[u6.slug]:u6.chainId,[l6.slug]:l6.chainId,[d6.slug]:d6.chainId,[p6.slug]:p6.chainId,[h6.slug]:h6.chainId,[f6.slug]:f6.chainId,[m6.slug]:m6.chainId,[y6.slug]:y6.chainId,[g6.slug]:g6.chainId,[b6.slug]:b6.chainId,[v6.slug]:v6.chainId,[w6.slug]:w6.chainId,[x6.slug]:x6.chainId,[_6.slug]:_6.chainId,[T6.slug]:T6.chainId,[xv.slug]:xv.chainId,[I6.slug]:I6.chainId,[E6.slug]:E6.chainId,[C6.slug]:C6.chainId,[k6.slug]:k6.chainId,[A6.slug]:A6.chainId,[P6.slug]:P6.chainId,[S6.slug]:S6.chainId,[R6.slug]:R6.chainId,[M6.slug]:M6.chainId,[N6.slug]:N6.chainId,[B6.slug]:B6.chainId,[D6.slug]:D6.chainId,[L6.slug]:L6.chainId,[O6.slug]:O6.chainId,[q6.slug]:q6.chainId,[F6.slug]:F6.chainId,[W6.slug]:W6.chainId,[U6.slug]:U6.chainId,[H6.slug]:H6.chainId,[j6.slug]:j6.chainId,[z6.slug]:z6.chainId,[K6.slug]:K6.chainId,[G6.slug]:G6.chainId,[V6.slug]:V6.chainId,[Y6.slug]:Y6.chainId,[$6.slug]:$6.chainId,[Q6.slug]:Q6.chainId,[J6.slug]:J6.chainId,[Z6.slug]:Z6.chainId,[X6.slug]:X6.chainId,[eI.slug]:eI.chainId,[_v.slug]:_v.chainId,[tI.slug]:tI.chainId,[rI.slug]:rI.chainId,[nI.slug]:nI.chainId,[aI.slug]:aI.chainId,[iI.slug]:iI.chainId,[sI.slug]:sI.chainId,[oI.slug]:oI.chainId,[cI.slug]:cI.chainId,[uI.slug]:uI.chainId,[lI.slug]:lI.chainId,[dI.slug]:dI.chainId,[pI.slug]:pI.chainId,[hI.slug]:hI.chainId,[fI.slug]:fI.chainId,[mI.slug]:mI.chainId,[yI.slug]:yI.chainId,[gI.slug]:gI.chainId,[bI.slug]:bI.chainId,[vI.slug]:vI.chainId,[wI.slug]:wI.chainId,[xI.slug]:xI.chainId,[_I.slug]:_I.chainId,[TI.slug]:TI.chainId,[II.slug]:II.chainId,[EI.slug]:EI.chainId,[CI.slug]:CI.chainId,[kI.slug]:kI.chainId,[AI.slug]:AI.chainId,[PI.slug]:PI.chainId,[SI.slug]:SI.chainId,[RI.slug]:RI.chainId,[MI.slug]:MI.chainId,[NI.slug]:NI.chainId,[BI.slug]:BI.chainId,[DI.slug]:DI.chainId,[LI.slug]:LI.chainId,[OI.slug]:OI.chainId,[qI.slug]:qI.chainId,[FI.slug]:FI.chainId,[WI.slug]:WI.chainId,[UI.slug]:UI.chainId,[HI.slug]:HI.chainId,[jI.slug]:jI.chainId,[zI.slug]:zI.chainId,[KI.slug]:KI.chainId,[GI.slug]:GI.chainId,[VI.slug]:VI.chainId,[YI.slug]:YI.chainId,[$I.slug]:$I.chainId,[QI.slug]:QI.chainId,[JI.slug]:JI.chainId,[ZI.slug]:ZI.chainId,[XI.slug]:XI.chainId,[eE.slug]:eE.chainId,[tE.slug]:tE.chainId,[rE.slug]:rE.chainId,[nE.slug]:nE.chainId,[aE.slug]:aE.chainId,[iE.slug]:iE.chainId,[sE.slug]:sE.chainId,[oE.slug]:oE.chainId,[cE.slug]:cE.chainId,[uE.slug]:uE.chainId,[lE.slug]:lE.chainId,[dE.slug]:dE.chainId,[pE.slug]:pE.chainId,[hE.slug]:hE.chainId,[fE.slug]:fE.chainId,[mE.slug]:mE.chainId,[yE.slug]:yE.chainId,[gE.slug]:gE.chainId,[bE.slug]:bE.chainId,[vE.slug]:vE.chainId,[wE.slug]:wE.chainId,[xE.slug]:xE.chainId,[_E.slug]:_E.chainId,[TE.slug]:TE.chainId,[IE.slug]:IE.chainId,[EE.slug]:EE.chainId,[CE.slug]:CE.chainId,[kE.slug]:kE.chainId,[AE.slug]:AE.chainId,[PE.slug]:PE.chainId,[SE.slug]:SE.chainId,[RE.slug]:RE.chainId,[ME.slug]:ME.chainId,[NE.slug]:NE.chainId,[BE.slug]:BE.chainId,[DE.slug]:DE.chainId,[LE.slug]:LE.chainId,[OE.slug]:OE.chainId,[qE.slug]:qE.chainId,[FE.slug]:FE.chainId,[WE.slug]:WE.chainId,[UE.slug]:UE.chainId,[HE.slug]:HE.chainId,[jE.slug]:jE.chainId,[zE.slug]:zE.chainId,[KE.slug]:KE.chainId,[GE.slug]:GE.chainId,[VE.slug]:VE.chainId,[YE.slug]:YE.chainId,[$E.slug]:$E.chainId,[QE.slug]:QE.chainId,[JE.slug]:JE.chainId,[ZE.slug]:ZE.chainId,[XE.slug]:XE.chainId,[eC.slug]:eC.chainId,[tC.slug]:tC.chainId,[rC.slug]:rC.chainId,[nC.slug]:nC.chainId,[aC.slug]:aC.chainId,[iC.slug]:iC.chainId,[sC.slug]:sC.chainId,[oC.slug]:oC.chainId,[cC.slug]:cC.chainId,[uC.slug]:uC.chainId,[lC.slug]:lC.chainId,[dC.slug]:dC.chainId,[pC.slug]:pC.chainId,[hC.slug]:hC.chainId,[fC.slug]:fC.chainId,[mC.slug]:mC.chainId,[yC.slug]:yC.chainId,[gC.slug]:gC.chainId,[bC.slug]:bC.chainId,[vC.slug]:vC.chainId,[wC.slug]:wC.chainId,[xC.slug]:xC.chainId,[_C.slug]:_C.chainId,[TC.slug]:TC.chainId,[IC.slug]:IC.chainId,[EC.slug]:EC.chainId,[CC.slug]:CC.chainId,[kC.slug]:kC.chainId,[AC.slug]:AC.chainId,[PC.slug]:PC.chainId,[SC.slug]:SC.chainId,[RC.slug]:RC.chainId,[MC.slug]:MC.chainId,[NC.slug]:NC.chainId,[BC.slug]:BC.chainId,[DC.slug]:DC.chainId,[LC.slug]:LC.chainId,[OC.slug]:OC.chainId,[qC.slug]:qC.chainId,[FC.slug]:FC.chainId,[WC.slug]:WC.chainId,[UC.slug]:UC.chainId,[HC.slug]:HC.chainId,[jC.slug]:jC.chainId,[zC.slug]:zC.chainId,[KC.slug]:KC.chainId,[GC.slug]:GC.chainId,[VC.slug]:VC.chainId,[YC.slug]:YC.chainId,[$C.slug]:$C.chainId,[QC.slug]:QC.chainId,[JC.slug]:JC.chainId,[ZC.slug]:ZC.chainId,[XC.slug]:XC.chainId,[e8.slug]:e8.chainId,[t8.slug]:t8.chainId,[r8.slug]:r8.chainId,[n8.slug]:n8.chainId,[a8.slug]:a8.chainId,[i8.slug]:i8.chainId,[s8.slug]:s8.chainId,[o8.slug]:o8.chainId,[c8.slug]:c8.chainId,[u8.slug]:u8.chainId,[l8.slug]:l8.chainId,[d8.slug]:d8.chainId,[p8.slug]:p8.chainId,[h8.slug]:h8.chainId,[f8.slug]:f8.chainId,[m8.slug]:m8.chainId,[y8.slug]:y8.chainId,[g8.slug]:g8.chainId,[b8.slug]:b8.chainId,[v8.slug]:v8.chainId,[w8.slug]:w8.chainId,[x8.slug]:x8.chainId,[_8.slug]:_8.chainId,[T8.slug]:T8.chainId,[I8.slug]:I8.chainId,[E8.slug]:E8.chainId,[C8.slug]:C8.chainId,[k8.slug]:k8.chainId,[A8.slug]:A8.chainId,[P8.slug]:P8.chainId,[S8.slug]:S8.chainId,[R8.slug]:R8.chainId,[M8.slug]:M8.chainId,[N8.slug]:N8.chainId,[B8.slug]:B8.chainId,[D8.slug]:D8.chainId,[L8.slug]:L8.chainId,[O8.slug]:O8.chainId,[q8.slug]:q8.chainId,[F8.slug]:F8.chainId,[W8.slug]:W8.chainId,[U8.slug]:U8.chainId,[H8.slug]:H8.chainId,[j8.slug]:j8.chainId,[z8.slug]:z8.chainId,[K8.slug]:K8.chainId,[G8.slug]:G8.chainId,[V8.slug]:V8.chainId,[Y8.slug]:Y8.chainId,[$8.slug]:$8.chainId,[Q8.slug]:Q8.chainId,[J8.slug]:J8.chainId,[Z8.slug]:Z8.chainId,[X8.slug]:X8.chainId,[e4.slug]:e4.chainId,[t4.slug]:t4.chainId,[r4.slug]:r4.chainId,[n4.slug]:n4.chainId,[a4.slug]:a4.chainId,[i4.slug]:i4.chainId,[s4.slug]:s4.chainId,[o4.slug]:o4.chainId,[c4.slug]:c4.chainId,[u4.slug]:u4.chainId,[l4.slug]:l4.chainId,[d4.slug]:d4.chainId,[p4.slug]:p4.chainId,[h4.slug]:h4.chainId,[f4.slug]:f4.chainId,[Tv.slug]:Tv.chainId,[m4.slug]:m4.chainId,[y4.slug]:y4.chainId,[g4.slug]:g4.chainId,[b4.slug]:b4.chainId,[v4.slug]:v4.chainId,[w4.slug]:w4.chainId,[x4.slug]:x4.chainId,[_4.slug]:_4.chainId,[T4.slug]:T4.chainId,[I4.slug]:I4.chainId,[E4.slug]:E4.chainId,[C4.slug]:C4.chainId,[k4.slug]:k4.chainId,[A4.slug]:A4.chainId,[P4.slug]:P4.chainId,[S4.slug]:S4.chainId,[R4.slug]:R4.chainId,[M4.slug]:M4.chainId,[N4.slug]:N4.chainId,[B4.slug]:B4.chainId,[D4.slug]:D4.chainId,[L4.slug]:L4.chainId,[O4.slug]:O4.chainId,[q4.slug]:q4.chainId,[F4.slug]:F4.chainId,[W4.slug]:W4.chainId,[U4.slug]:U4.chainId,[H4.slug]:H4.chainId,[j4.slug]:j4.chainId,[z4.slug]:z4.chainId,[K4.slug]:K4.chainId,[G4.slug]:G4.chainId,[V4.slug]:V4.chainId,[Y4.slug]:Y4.chainId,[$4.slug]:$4.chainId,[Q4.slug]:Q4.chainId,[J4.slug]:J4.chainId,[Z4.slug]:Z4.chainId,[X4.slug]:X4.chainId,[ek.slug]:ek.chainId,[tk.slug]:tk.chainId,[rk.slug]:rk.chainId,[nk.slug]:nk.chainId,[ak.slug]:ak.chainId,[ik.slug]:ik.chainId,[sk.slug]:sk.chainId,[ok.slug]:ok.chainId,[ck.slug]:ck.chainId,[uk.slug]:uk.chainId,[lk.slug]:lk.chainId,[dk.slug]:dk.chainId,[pk.slug]:pk.chainId,[hk.slug]:hk.chainId,[fk.slug]:fk.chainId,[mk.slug]:mk.chainId,[yk.slug]:yk.chainId,[gk.slug]:gk.chainId,[bk.slug]:bk.chainId,[vk.slug]:vk.chainId,[wk.slug]:wk.chainId,[xk.slug]:xk.chainId,[_k.slug]:_k.chainId,[Tk.slug]:Tk.chainId,[Ik.slug]:Ik.chainId,[Ek.slug]:Ek.chainId,[Ck.slug]:Ck.chainId,[kk.slug]:kk.chainId,[Ak.slug]:Ak.chainId,[Pk.slug]:Pk.chainId,[Sk.slug]:Sk.chainId,[Rk.slug]:Rk.chainId,[Mk.slug]:Mk.chainId,[Nk.slug]:Nk.chainId,[Bk.slug]:Bk.chainId,[Dk.slug]:Dk.chainId,[Lk.slug]:Lk.chainId,[Ok.slug]:Ok.chainId,[qk.slug]:qk.chainId,[Fk.slug]:Fk.chainId,[Wk.slug]:Wk.chainId,[Uk.slug]:Uk.chainId,[Hk.slug]:Hk.chainId,[jk.slug]:jk.chainId,[zk.slug]:zk.chainId,[Kk.slug]:Kk.chainId,[Gk.slug]:Gk.chainId,[Vk.slug]:Vk.chainId,[Yk.slug]:Yk.chainId,[$k.slug]:$k.chainId,[Qk.slug]:Qk.chainId,[Jk.slug]:Jk.chainId,[Zk.slug]:Zk.chainId,[Xk.slug]:Xk.chainId,[eA.slug]:eA.chainId,[tA.slug]:tA.chainId,[rA.slug]:rA.chainId,[nA.slug]:nA.chainId,[aA.slug]:aA.chainId,[iA.slug]:iA.chainId,[sA.slug]:sA.chainId,[oA.slug]:oA.chainId,[cA.slug]:cA.chainId,[uA.slug]:uA.chainId,[lA.slug]:lA.chainId,[dA.slug]:dA.chainId,[pA.slug]:pA.chainId,[hA.slug]:hA.chainId,[fA.slug]:fA.chainId,[mA.slug]:mA.chainId,[yA.slug]:yA.chainId,[gA.slug]:gA.chainId,[bA.slug]:bA.chainId,[vA.slug]:vA.chainId,[wA.slug]:wA.chainId,[xA.slug]:xA.chainId,[_A.slug]:_A.chainId,[TA.slug]:TA.chainId,[IA.slug]:IA.chainId,[EA.slug]:EA.chainId,[CA.slug]:CA.chainId,[kA.slug]:kA.chainId,[AA.slug]:AA.chainId,[PA.slug]:PA.chainId,[SA.slug]:SA.chainId,[RA.slug]:RA.chainId,[MA.slug]:MA.chainId,[NA.slug]:NA.chainId,[BA.slug]:BA.chainId,[DA.slug]:DA.chainId,[LA.slug]:LA.chainId,[OA.slug]:OA.chainId,[qA.slug]:qA.chainId,[FA.slug]:FA.chainId,[WA.slug]:WA.chainId,[UA.slug]:UA.chainId,[HA.slug]:HA.chainId,[jA.slug]:jA.chainId,[zA.slug]:zA.chainId,[KA.slug]:KA.chainId,[GA.slug]:GA.chainId,[VA.slug]:VA.chainId,[YA.slug]:YA.chainId,[$A.slug]:$A.chainId,[QA.slug]:QA.chainId,[JA.slug]:JA.chainId,[ZA.slug]:ZA.chainId,[XA.slug]:XA.chainId,[eP.slug]:eP.chainId,[tP.slug]:tP.chainId,[rP.slug]:rP.chainId,[nP.slug]:nP.chainId,[aP.slug]:aP.chainId,[iP.slug]:iP.chainId,[sP.slug]:sP.chainId,[oP.slug]:oP.chainId,[cP.slug]:cP.chainId,[uP.slug]:uP.chainId,[lP.slug]:lP.chainId,[dP.slug]:dP.chainId,[pP.slug]:pP.chainId,[hP.slug]:hP.chainId,[fP.slug]:fP.chainId,[mP.slug]:mP.chainId,[yP.slug]:yP.chainId,[gP.slug]:gP.chainId,[bP.slug]:bP.chainId,[vP.slug]:vP.chainId,[wP.slug]:wP.chainId,[xP.slug]:xP.chainId,[_P.slug]:_P.chainId,[TP.slug]:TP.chainId,[IP.slug]:IP.chainId,[EP.slug]:EP.chainId,[CP.slug]:CP.chainId,[Iv.slug]:Iv.chainId,[kP.slug]:kP.chainId,[AP.slug]:AP.chainId,[PP.slug]:PP.chainId,[SP.slug]:SP.chainId,[RP.slug]:RP.chainId,[Ev.slug]:Ev.chainId,[Cv.slug]:Cv.chainId,[MP.slug]:MP.chainId,[NP.slug]:NP.chainId,[BP.slug]:BP.chainId,[DP.slug]:DP.chainId,[LP.slug]:LP.chainId,[OP.slug]:OP.chainId,[qP.slug]:qP.chainId,[FP.slug]:FP.chainId,[WP.slug]:WP.chainId,[UP.slug]:UP.chainId,[HP.slug]:HP.chainId,[jP.slug]:jP.chainId,[zP.slug]:zP.chainId,[KP.slug]:KP.chainId,[GP.slug]:GP.chainId,[VP.slug]:VP.chainId,[YP.slug]:YP.chainId,[$P.slug]:$P.chainId,[QP.slug]:QP.chainId,[JP.slug]:JP.chainId,[ZP.slug]:ZP.chainId,[XP.slug]:XP.chainId,[eS.slug]:eS.chainId,[tS.slug]:tS.chainId,[rS.slug]:rS.chainId,[nS.slug]:nS.chainId,[aS.slug]:aS.chainId,[iS.slug]:iS.chainId,[sS.slug]:sS.chainId,[oS.slug]:oS.chainId,[cS.slug]:cS.chainId,[uS.slug]:uS.chainId,[lS.slug]:lS.chainId,[dS.slug]:dS.chainId,[pS.slug]:pS.chainId,[hS.slug]:hS.chainId,[fS.slug]:fS.chainId,[mS.slug]:mS.chainId,[yS.slug]:yS.chainId,[gS.slug]:gS.chainId,[bS.slug]:bS.chainId,[vS.slug]:vS.chainId,[wS.slug]:wS.chainId,[xS.slug]:xS.chainId,[kv.slug]:kv.chainId,[_S.slug]:_S.chainId,[TS.slug]:TS.chainId,[IS.slug]:IS.chainId,[ES.slug]:ES.chainId,[CS.slug]:CS.chainId,[kS.slug]:kS.chainId,[AS.slug]:AS.chainId,[PS.slug]:PS.chainId,[SS.slug]:SS.chainId,[RS.slug]:RS.chainId,[MS.slug]:MS.chainId,[NS.slug]:NS.chainId,[BS.slug]:BS.chainId,[DS.slug]:DS.chainId,[LS.slug]:LS.chainId,[OS.slug]:OS.chainId,[qS.slug]:qS.chainId,[FS.slug]:FS.chainId,[WS.slug]:WS.chainId,[US.slug]:US.chainId,[HS.slug]:HS.chainId,[jS.slug]:jS.chainId,[zS.slug]:zS.chainId,[KS.slug]:KS.chainId,[GS.slug]:GS.chainId,[VS.slug]:VS.chainId,[YS.slug]:YS.chainId,[$S.slug]:$S.chainId,[QS.slug]:QS.chainId,[JS.slug]:JS.chainId,[ZS.slug]:ZS.chainId,[XS.slug]:XS.chainId,[e7.slug]:e7.chainId,[t7.slug]:t7.chainId,[r7.slug]:r7.chainId,[n7.slug]:n7.chainId,[a7.slug]:a7.chainId,[i7.slug]:i7.chainId,[s7.slug]:s7.chainId,[o7.slug]:o7.chainId,[c7.slug]:c7.chainId,[u7.slug]:u7.chainId,[l7.slug]:l7.chainId,[d7.slug]:d7.chainId,[p7.slug]:p7.chainId,[h7.slug]:h7.chainId,[f7.slug]:f7.chainId,[m7.slug]:m7.chainId,[y7.slug]:y7.chainId,[g7.slug]:g7.chainId,[b7.slug]:b7.chainId,[v7.slug]:v7.chainId,[w7.slug]:w7.chainId,[x7.slug]:x7.chainId,[_7.slug]:_7.chainId,[T7.slug]:T7.chainId,[I7.slug]:I7.chainId,[E7.slug]:E7.chainId,[C7.slug]:C7.chainId,[k7.slug]:k7.chainId,[A7.slug]:A7.chainId,[P7.slug]:P7.chainId,[S7.slug]:S7.chainId,[R7.slug]:R7.chainId,[M7.slug]:M7.chainId,[N7.slug]:N7.chainId,[B7.slug]:B7.chainId,[D7.slug]:D7.chainId,[L7.slug]:L7.chainId,[O7.slug]:O7.chainId,[q7.slug]:q7.chainId,[F7.slug]:F7.chainId,[W7.slug]:W7.chainId,[U7.slug]:U7.chainId,[Av.slug]:Av.chainId,[H7.slug]:H7.chainId,[j7.slug]:j7.chainId,[z7.slug]:z7.chainId,[K7.slug]:K7.chainId,[G7.slug]:G7.chainId,[V7.slug]:V7.chainId,[Y7.slug]:Y7.chainId,[$7.slug]:$7.chainId,[Q7.slug]:Q7.chainId,[J7.slug]:J7.chainId,[Z7.slug]:Z7.chainId,[X7.slug]:X7.chainId,[eR.slug]:eR.chainId,[tR.slug]:tR.chainId,[rR.slug]:rR.chainId,[nR.slug]:nR.chainId,[aR.slug]:aR.chainId,[iR.slug]:iR.chainId,[sR.slug]:sR.chainId,[oR.slug]:oR.chainId,[cR.slug]:cR.chainId,[uR.slug]:uR.chainId,[lR.slug]:lR.chainId,[dR.slug]:dR.chainId,[pR.slug]:pR.chainId,[hR.slug]:hR.chainId,[fR.slug]:fR.chainId,[mR.slug]:mR.chainId,[yR.slug]:yR.chainId,[gR.slug]:gR.chainId,[bR.slug]:bR.chainId,[vR.slug]:vR.chainId,[wR.slug]:wR.chainId,[xR.slug]:xR.chainId,[_R.slug]:_R.chainId,[TR.slug]:TR.chainId,[IR.slug]:IR.chainId,[ER.slug]:ER.chainId,[CR.slug]:CR.chainId,[kR.slug]:kR.chainId,[AR.slug]:AR.chainId,[PR.slug]:PR.chainId,[SR.slug]:SR.chainId,[RR.slug]:RR.chainId,[MR.slug]:MR.chainId,[NR.slug]:NR.chainId,[BR.slug]:BR.chainId,[DR.slug]:DR.chainId,[LR.slug]:LR.chainId,[OR.slug]:OR.chainId,[qR.slug]:qR.chainId,[FR.slug]:FR.chainId,[WR.slug]:WR.chainId,[UR.slug]:UR.chainId,[HR.slug]:HR.chainId,[jR.slug]:jR.chainId,[zR.slug]:zR.chainId,[KR.slug]:KR.chainId,[GR.slug]:GR.chainId,[VR.slug]:VR.chainId,[YR.slug]:YR.chainId,[$R.slug]:$R.chainId,[QR.slug]:QR.chainId,[JR.slug]:JR.chainId,[ZR.slug]:ZR.chainId,[XR.slug]:XR.chainId,[e9.slug]:e9.chainId,[t9.slug]:t9.chainId,[r9.slug]:r9.chainId,[n9.slug]:n9.chainId,[a9.slug]:a9.chainId,[i9.slug]:i9.chainId,[s9.slug]:s9.chainId,[o9.slug]:o9.chainId,[c9.slug]:c9.chainId,[u9.slug]:u9.chainId,[l9.slug]:l9.chainId,[d9.slug]:d9.chainId,[p9.slug]:p9.chainId,[h9.slug]:h9.chainId,[f9.slug]:f9.chainId,[m9.slug]:m9.chainId,[y9.slug]:y9.chainId,[g9.slug]:g9.chainId,[b9.slug]:b9.chainId,[v9.slug]:v9.chainId,[w9.slug]:w9.chainId,[x9.slug]:x9.chainId,[_9.slug]:_9.chainId,[T9.slug]:T9.chainId,[I9.slug]:I9.chainId,[E9.slug]:E9.chainId,[C9.slug]:C9.chainId,[k9.slug]:k9.chainId,[A9.slug]:A9.chainId,[P9.slug]:P9.chainId,[S9.slug]:S9.chainId,[R9.slug]:R9.chainId,[M9.slug]:M9.chainId,[N9.slug]:N9.chainId,[B9.slug]:B9.chainId,[Pv.slug]:Pv.chainId};function F0r(r){return r in P_e}function W0r(r){return r in get}function U0r(r){if(F0r(r))return P_e[r];throw new Error(`Chain with chainId "${r}" not found`)}function H0r(r){if(W0r(r))return P_e[get[r]];throw new Error(`Chain with slug "${r}" not found`)}P.AcalaMandalaTestnet=gI;P.AcalaNetwork=LI;P.AcalaNetworkTestnet=vI;P.AdilDevnet=u7;P.AdilTestnet=ik;P.AerochainTestnet=OI;P.AiozNetwork=a6;P.AiozNetworkTestnet=w4;P.Airdao=WA;P.AirdaoTestnet=ZA;P.Aitd=dC;P.AitdTestnet=pC;P.Akroma=m7;P.Alaya=y7;P.AlayaDevTestnet=g7;P.AlphNetwork=Dk;P.Altcoinchain=N8;P.Alveychain=u4;P.Alyx=lC;P.AlyxChainTestnet=YT;P.Amana=_k;P.AmanaMixnet=TS;P.AmanaPrivnet=IS;P.AmanaTestnet=_S;P.AmbrosChain=$I;P.AmeChain=o6;P.Amstar=yC;P.AmstarTestnet=UE;P.Anduschain=NR;P.AnytypeEvmChain=AC;P.Aquachain=GR;P.Arbitrum=Iv;P.ArbitrumGoerli=Av;P.ArbitrumNova=kP;P.ArbitrumOnXdai=m6;P.ArbitrumRinkeby=U7;P.ArcologyTestnet=LT;P.Arevia=M8;P.ArmoniaEvaChain=XT;P.ArmoniaEvaChainTestnet=e6;P.ArtisSigma1=E7;P.ArtisTestnetTau1=C7;P.Astar=yI;P.Astra=gA;P.AstraTestnet=vA;P.Atelier=$C;P.Atheios=IC;P.Athereum=RP;P.AtoshiTestnet=n6;P.Aurora=u9;P.AuroraBetanet=d9;P.AuroraTestnet=l9;P.AutobahnNetwork=DP;P.AutonityBakerlooThamesTestnet=VR;P.AutonityPiccadillyThamesTestnet=YR;P.AuxiliumNetwork=UR;P.Avalanche=Cv;P.AvalancheFuji=Ev;P.Aves=vP;P.BandaiNamcoResearchVerse=VI;P.Base=Sk;P.BaseGoerli=RS;P.BeagleMessagingChain=_C;P.BeanecoSmartchain=Z7;P.BearNetworkChain=X7;P.BearNetworkChainTestnet=tR;P.BeoneChainTestnet=Ek;P.BeresheetBereevmTestnet=d8;P.Berylbit=Qk;P.BeverlyHills=DS;P.Bifrost=Y8;P.BifrostTestnet=FP;P.Binance=bv;P.BinanceTestnet=vv;P.Bitcichain=UC;P.BitcichainTestnet=HC;P.BitcoinEvm=C8;P.Bitgert=yP;P.Bitindi=v4;P.BitindiTestnet=b4;P.BitkubChain=vT;P.BitkubChainTestnet=sP;P.Bittex=s4;P.BittorrentChain=f6;P.BittorrentChainTestnet=CE;P.Bityuan=z8;P.BlackfortExchangeNetwork=R4;P.BlackfortExchangeNetworkTestnet=A4;P.BlgTestnet=AA;P.BlockchainGenesis=uA;P.BlockchainStation=AI;P.BlockchainStationTestnet=PI;P.BlocktonBlockchain=kk;P.Bloxberg=Vk;P.Bmc=u6;P.BmcTestnet=l6;P.BobaAvax=MP;P.BobaBnb=YP;P.BobaBnbTestnet=rA;P.BobaNetwork=P6;P.BobaNetworkGoerliTestnet=j8;P.BobaNetworkRinkebyTestnet=u_;P.BobabaseTestnet=cC;P.Bobabeam=oC;P.BobafujiTestnet=I4;P.Bobaopera=D6;P.BobaoperaTestnet=m4;P.BombChain=R8;P.BombChainTestnet=B8;P.BonNetwork=WC;P.Bosagora=_8;P.Brochain=ZS;P.Bronos=SE;P.BronosTestnet=PE;P.Btachain=EC;P.BtcixNetwork=KA;P.Callisto=HI;P.CallistoTestnet=VA;P.CalypsoNftHubSkale=f9;P.CalypsoNftHubSkaleTestnet=r9;P.Camelark=GA;P.CaminoCChain=aI;P.Candle=pI;P.Canto=ck;P.CantoTestnet=RI;P.CatecoinChain=TC;P.Celo=AP;P.CeloAlfajoresTestnet=BP;P.CeloBaklavaTestnet=nS;P.CennznetAzalea=$A;P.CennznetNikau=G8;P.CennznetRata=K8;P.ChainVerse=W4;P.Cheapeth=DI;P.ChiadoTestnet=lA;P.ChilizScovilleTestnet=NS;P.CicChain=mC;P.CicChainTestnet=tC;P.Cloudtx=pP;P.CloudtxTestnet=hP;P.Cloudwalk=i8;P.CloudwalkTestnet=a8;P.CloverTestnet=IE;P.ClvParachain=EE;P.Cmp=A7;P.CmpTestnet=V7;P.CoinexSmartChain=M_;P.CoinexSmartChainTestnet=N_;P.ColumbusTestNetwork=iI;P.CondorTestNetwork=p7;P.Condrieu=cS;P.ConfluxEspace=kE;P.ConfluxEspaceTestnet=Q_;P.ConstaTestnet=Q6;P.CoreBlockchain=OE;P.CoreBlockchainTestnet=LE;P.CreditSmartchain=MA;P.CronosBeta=s_;P.CronosTestnet=z6;P.Crossbell=c4;P.CryptoEmergency=d6;P.Cryptocoinpay=fA;P.CryptokylinTestnet=bT;P.Crystaleum=JS;P.CtexScanBlockchain=vC;P.CubeChain=BC;P.CubeChainTestnet=DC;P.Cyberdecknet=o9;P.Cybertrust=MS;P.DChain=zC;P.DarwiniaCrabNetwork=E_;P.DarwiniaNetwork=k_;P.DarwiniaPangolinTestnet=I_;P.DarwiniaPangoroTestnet=C_;P.Datahopper=I9;P.DaxChain=JT;P.DbchainTestnet=G_;P.Debank=BT;P.DebankTestnet=NT;P.DebounceSubnetTestnet=Q8;P.DecentralizedWeb=HT;P.DecimalSmartChain=eT;P.DecimalSmartChainTestnet=v7;P.DefichainEvmNetwork=FE;P.DefichainEvmNetworkTestnet=WE;P.Dehvo=RT;P.DexalotSubnet=z7;P.DexalotSubnetTestnet=j7;P.DexillaTestnet=KC;P.DexitNetwork=YI;P.DfkChain=zP;P.DfkChainTest=H6;P.DiodePrenet=Qx;P.DiodeTestnetStaging=Yx;P.DithereumTestnet=m_;P.Dogcoin=qE;P.DogcoinTestnet=Zk;P.Dogechain=t8;P.DogechainTestnet=mI;P.DokenSuperChain=rS;P.DosChain=dk;P.DosFujiSubnet=uC;P.DosTesnet=d4;P.DoubleAChain=sI;P.DoubleAChainTestnet=oI;P.DracNetwork=l4;P.DraconesFinancialServices=Pk;P.Dxchain=g_;P.DxchainTestnet=J_;P.Dyno=p4;P.DynoTestnet=h4;P.Ecoball=b8;P.EcoballTestnetEspuma=v8;P.Ecredits=iS;P.EcreditsTestnet=sS;P.EdexaTestnet=e8;P.EdgewareEdgeevm=l8;P.Ekta=XC;P.ElaDidSidechain=n_;P.ElaDidSidechainTestnet=a_;P.ElastosSmartChain=t_;P.ElastosSmartChainTestnet=r_;P.Eleanor=GC;P.EllaTheHeart=tk;P.Ellaism=j_;P.EluvioContentFabric=lR;P.Elysium=fC;P.ElysiumTestnet=hC;P.EmpireNetwork=o4;P.EnduranceSmartChain=II;P.Energi=TP;P.EnergiTestnet=WP;P.EnergyWebChain=_6;P.EnergyWebVoltaTestnet=yS;P.EnnothemProterozoic=A_;P.EnnothemTestnetPioneer=P_;P.Enterchain=$E;P.Enuls=OT;P.EnulsTestnet=qT;P.Eos=q_;P.Eraswap=D4;P.Ethereum=mv;P.EthereumClassic=W_;P.EthereumClassicTestnetKotti=Hx;P.EthereumClassicTestnetMorden=U_;P.EthereumClassicTestnetMordor=H_;P.EthereumFair=Y7;P.Ethergem=ZC;P.Etherinc=_T;P.EtherliteChain=ST;P.EthersocialNetwork=dP;P.EthoProtocol=dR;P.Etica=tS;P.EtndChainS=l7;P.EuropaSkaleChain=E9;P.Eurus=wE;P.EurusTestnet=JC;P.Evanesco=k8;P.EvanescoTestnet=GE;P.Evmos=$k;P.EvmosTestnet=Yk;P.EvriceNetwork=xE;P.Excelon=qR;P.ExcoincialChain=WR;P.ExcoincialChainVoltaTestnet=FR;P.ExosamaNetwork=w8;P.ExpanseNetwork=Fx;P.ExzoNetwork=QE;P.EzchainCChain=U8;P.EzchainCChainTestnet=H8;P.FXCoreNetwork=dI;P.Factory127=KT;P.FantasiaChain=GI;P.Fantom=xv;P.FantomTestnet=Tv;P.FastexChainTestnet=H7;P.Fibonacci=kA;P.Filecoin=O6;P.FilecoinButterflyTestnet=bR;P.FilecoinCalibrationTestnet=R7;P.FilecoinHyperspaceTestnet=$8;P.FilecoinLocalTestnet=jR;P.FilecoinWallabyTestnet=mP;P.Findora=T8;P.FindoraForge=E8;P.FindoraTestnet=I8;P.Firechain=lI;P.FirenzeTestNetwork=wS;P.Flachain=HR;P.Flana=Tk;P.FlanaMixnet=CS;P.FlanaPrivnet=kS;P.FlanaTestnet=ES;P.Flare=$x;P.FlareTestnetCoston=Jx;P.FlareTestnetCoston2=MT;P.Floripa=qP;P.Fncy=Z_;P.FncyTestnet=uR;P.FreightTrustNetwork=g6;P.Frenchain=NP;P.FrenchainTestnet=rI;P.FrontierOfDreamsTestnet=HA;P.Fuse=WT;P.FuseSparknet=UT;P.Fusion=gP;P.FusionTestnet=LP;P.Ganache=j4;P.GarizonStage0=fT;P.GarizonStage1=mT;P.GarizonStage2=yT;P.GarizonStage3=gT;P.GarizonTestnetStage0=JI;P.GarizonTestnetStage1=ZI;P.GarizonTestnetStage2=XI;P.GarizonTestnetStage3=eE;P.Gatechain=lT;P.GatechainTestnet=uT;P.GatherDevnetNetwork=a9;P.GatherNetwork=JR;P.GatherTestnetNetwork=n9;P.GearZeroNetwork=cI;P.GearZeroNetworkTestnet=P7;P.Genechain=iT;P.GenesisCoin=Jk;P.GenesisL1=l_;P.GenesisL1Testnet=o_;P.GiantMammoth=Gk;P.GitshockCartenzTestnet=OC;P.Gnosis=xT;P.Gochain=F_;P.GochainTestnet=fP;P.Godwoken=mS;P.GodwokenTestnetV1=fS;P.Goerli=yv;P.GoldSmartChain=Q4;P.GoldSmartChainTestnet=xS;P.GonChain=oA;P.Gooddata=f_;P.GooddataTestnet=h_;P.GraphlinqBlockchain=_I;P.Gton=yE;P.GtonTestnet=HP;P.Haic=FI;P.Halo=rC;P.HammerChain=iP;P.Hapchain=CR;P.HapchainTestnet=D7;P.HaqqChainTestnet=KP;P.HaqqNetwork=xA;P.HaradevTestnet=R9;P.HarmonyDevnetShard0=T9;P.HarmonyShard0=m9;P.HarmonyShard1=y9;P.HarmonyShard2=g9;P.HarmonyShard3=b9;P.HarmonyTestnetShard0=v9;P.HarmonyTestnetShard1=w9;P.HarmonyTestnetShard2=x9;P.HarmonyTestnetShard3=_9;P.Hashbit=wA;P.HashkeyChainTestnet=T7;P.HaymoTestnet=I7;P.HazlorTestnet=lk;P.Hedera=S6;P.HederaLocalnet=N6;P.HederaPreviewnet=M6;P.HederaTestnet=R6;P.HertzNetwork=oP;P.HighPerformanceBlockchain=k6;P.HikaNetworkTestnet=H4;P.HomeVerse=zA;P.HooSmartChain=$_;P.HooSmartChainTestnet=i6;P.HorizenYumaTestnet=CC;P.Htmlcoin=E4;P.HumanProtocol=c9;P.Humanode=L4;P.HuobiEcoChain=GT;P.HuobiEcoChainTestnet=I6;P.HyperonchainTestnet=Z6;P.Idchain=X_;P.IexecSidechain=VT;P.Imversed=vR;P.ImversedTestnet=wR;P.Iolite=DR;P.IoraChain=KE;P.IotexNetwork=C4;P.IotexNetworkTestnet=k4;P.IposNetwork=s9;P.IvarChain=BS;P.IvarChainTestnet=UA;P.J2oTaro=wP;P.Jellie=w7;P.JfinChain=r4;P.JibchainL1=Kk;P.JoysDigital=zR;P.JoysDigitalTestnet=QR;P.KaibaLightningChainTestnet=IT;P.Kardiachain=i_;P.KaruraNetwork=CI;P.KaruraNetworkTestnet=bI;P.KavaEvm=P8;P.KavaEvmTestnet=A8;P.Kcc=q6;P.KccTestnet=F6;P.Kekchain=F7;P.KekchainKektest=W7;P.Kerleano=MC;P.Kiln=fR;P.Kintsugi=hR;P.KlaytnCypress=Ck;P.KlaytnTestnetBaobab=gE;P.Klyntar=nk;P.Kortho=O8;P.Korthotest=Ak;P.Kovan=T_;P.LaTestnet=eI;P.Lachain=w6;P.LachainTestnet=x6;P.LambdaTestnet=LS;P.LatamBlockchainResilTestnet=s6;P.LightlinkPegasusTestnet=FC;P.LightlinkPhoenix=qC;P.Lightstreams=r6;P.LightstreamsTestnet=t6;P.LineaTestnet=QP;P.Lisinski=J6;P.LiveplexOracleevm=UP;P.Localhost=Pv;P.Loopnetwork=LA;P.LucidBlockchain=qI;P.LuckyNetwork=fE;P.Ludan=kC;P.LycanChain=SI;P.Maistestsubnet=KR;P.Mammoth=zk;P.Mantle=M4;P.MantleTestnet=N4;P.Map=XA;P.MapMakalu=b6;P.MaroBlockchain=Ok;P.Mas=_7;P.Mathchain=HE;P.MathchainTestnet=jE;P.MdglTestnet=fk;P.MemoSmartChain=pE;P.MeshnyanTestnet=xI;P.Metacodechain=i4;P.Metadium=Gx;P.MetadiumTestnet=Vx;P.Metadot=qA;P.MetadotTestnet=FA;P.MetalCChain=L7;P.MetalTahoeCChain=O7;P.Metaplayerone=x8;P.Meter=oT;P.MeterTestnet=cT;P.MetisAndromeda=RE;P.MetisGoerliTestnet=wI;P.MilkomedaA1=n8;P.MilkomedaA1Testnet=f7;P.MilkomedaC1=r8;P.MilkomedaC1Testnet=h7;P.MintmeComCoin=aP;P.Mix=tT;P.MixinVirtualMachine=gS;P.Mizana=Ik;P.MizanaMixnet=PS;P.MizanaPrivnet=SS;P.MizanaTestnet=AS;P.Moac=ME;P.MoacTestnet=y6;P.MolereumNetwork=B9;P.MoonbaseAlpha=iC;P.Moonbeam=nC;P.Moonriver=aC;P.Moonrock=sC;P.Multivac=aS;P.Mumbai=kv;P.MunodeTestnet=sE;P.Musicoin=IR;P.MyownTestnet=aA;P.MythicalChain=b7;P.Nahmii=q4;P.Nahmii3=y4;P.Nahmii3Testnet=g4;P.NahmiiTestnet=F4;P.Nebula=h9;P.NebulaStaging=i9;P.NebulaTestnet=kT;P.NeonEvm=XR;P.NeonEvmDevnet=ZR;P.NeonEvmTestnet=e9;P.NepalBlockchainNetwork=lE;P.Newton=_E;P.NewtonTestnet=vE;P.Nexi=T4;P.NovaNetwork=dT;P.Ntity=S9;P.Numbers=pA;P.NumbersTestnet=hA;P.OasisEmerald=SP;P.OasisEmeraldTestnet=PP;P.OasisSapphire=tP;P.OasisSapphireTestnet=rP;P.Oasischain=cP;P.Oasys=T6;P.Octaspace=rR;P.Oho=IP;P.Okbchain=h6;P.OkbchainTestnet=p6;P.OkexchainTestnet=z_;P.Okxchain=K_;P.OmPlatform=eC;P.Omax=L6;P.Omchain=QA;P.Oneledger=t9;P.OneledgerTestnetFrankenstein=k9;P.Ontology=O_;P.OntologyTestnet=z4;P.OnusChain=QC;P.OnusChainTestnet=jC;P.OoneChainTestnet=M7;P.Oort=oE;P.OortAscraeus=uE;P.OortDev=tA;P.OortHuygens=cE;P.OpalTestnetByUnique=Wk;P.Openchain=G7;P.OpenchainTestnet=BI;P.Openpiece=B_;P.OpenpieceTestnet=QT;P.Openvessel=_R;P.OpsideTestnet=eP;P.Optimism=gv;P.OptimismBedrockGoerliAlphaTestnet=uP;P.OptimismGoerli=_v;P.OptimismKovan=Y_;P.OptimismOnGnosis=B6;P.OpulentXBeta=EP;P.OrigintrailParachain=f8;P.OrlandoChain=V8;P.Oychain=zT;P.OychainTestnet=jT;P.P12Chain=YA;P.PaletteChain=RC;P.Palm=P9;P.PalmTestnet=A9;P.Pandoproject=n4;P.PandoprojectTestnet=a4;P.ParibuNet=e4;P.ParibuNetTestnet=t4;P.Pdc=N9;P.Pegglecoin=CP;P.PepchainChurchill=MR;P.PhiNetworkV1=_4;P.PhiNetworkV2=ZT;P.Phoenix=NA;P.PieceTestnet=lP;P.Pirl=C9;P.PixieChain=$4;P.PixieChainTestnet=EI;P.Planq=rk;P.Platon=x7;P.PlatonDevTestnet2=gR;P.PlianMain=yR;P.PlianSubchain1=ER;P.PlianTestnetMain=BR;P.PlianTestnetSubchain1=PR;P.PoaNetworkCore=wT;P.PoaNetworkSokol=rT;P.Pocrnet=F8;P.Polis=B7;P.PolisTestnet=N7;P.Polygon=wv;P.PolygonZkevm=NE;P.PolygonZkevmTestnet=bC;P.PolyjuiceTestnet=hS;P.Polysmartchain=Z4;P.Popcateum=YE;P.PortalFantasyChain=tE;P.PortalFantasyChainTest=WI;P.PosichainDevnetShard0=oR;P.PosichainDevnetShard1=cR;P.PosichainShard0=iR;P.PosichainTestnetShard0=sR;P.Primuschain=nT;P.ProofOfMemes=jA;P.ProtonTestnet=PT;P.ProxyNetworkTestnet=AE;P.Publicmint=u8;P.PublicmintDevnet=o8;P.PublicmintTestnet=c8;P.Pulsechain=$6;P.PulsechainTestnet=nE;P.PulsechainTestnetV2b=aE;P.PulsechainTestnetV3=iE;P.Q=xP;P.QTestnet=_P;P.Qeasyweb3Testnet=eA;P.Qitmeer=UI;P.QitmeerNetworkMixnext=wk;P.QitmeerNetworkPrivnet=xk;P.QitmeerNetworkTestnet=vk;P.Ql1=NI;P.Ql1Testnet=TR;P.QuadransBlockchain=mA;P.QuadransBlockchainTestnet=yA;P.Quarix=AR;P.QuarixTestnet=kR;P.Quarkblockchain=OR;P.QuarkchainDevnetRoot=XS;P.QuarkchainDevnetShard0=e7;P.QuarkchainDevnetShard1=t7;P.QuarkchainDevnetShard2=r7;P.QuarkchainDevnetShard3=n7;P.QuarkchainDevnetShard4=a7;P.QuarkchainDevnetShard5=i7;P.QuarkchainDevnetShard6=s7;P.QuarkchainDevnetShard7=o7;P.QuarkchainRoot=FS;P.QuarkchainShard0=WS;P.QuarkchainShard1=US;P.QuarkchainShard2=HS;P.QuarkchainShard3=jS;P.QuarkchainShard4=zS;P.QuarkchainShard5=KS;P.QuarkchainShard6=GS;P.QuarkchainShard7=VS;P.QuartzByUnique=Fk;P.Quokkacoin=g8;P.RabbitAnalogTestnetChain=NC;P.RangersProtocol=h8;P.RangersProtocolTestnetRobin=Xk;P.Raptorchain=p9;P.Realchain=FT;P.RedlightChain=W8;P.ReiChain=GP;P.ReiChainTestnet=VP;P.ReiNetwork=OP;P.Resincoin=bS;P.RikezaNetwork=gC;P.RikezaNetworkTestnet=SA;P.RiniaTestnet=rE;P.Rinkeby=Ux;P.RiseOfTheWarbotsTestnet=uk;P.Ropsten=Wx;P.Rsk=d_;P.RskTestnet=p_;P.Rupaya=nI;P.Saakuru=xR;P.SaakuruTestnet=k7;P.Sakura=TE;P.SanrChain=IA;P.SapphireByUnique=Uk;P.Sardis=jP;P.SardisTestnet=TA;P.Scolcoin=oS;P.ScolcoinWeichainTestnet=Y4;P.Scroll=$7;P.ScrollAlphaTestnet=Q7;P.ScrollPreAlphaTestnet=J7;P.SeedcoinNetwork=b_;P.Seele=c6;P.Sepolia=RR;P.Setheum=E6;P.ShardeumLiberty1X=mk;P.ShardeumLiberty2X=yk;P.ShardeumSphinx1X=gk;P.Sherpax=wC;P.SherpaxTestnet=xC;P.Shibachain=c_;P.Shiden=j6;P.Shyft=ak;P.ShyftTestnet=_A;P.SiberiumNetwork=c7;P.SingularityZero=CA;P.SingularityZeroTestnet=EA;P.SiriusnetV2=v6;P.Sjatsh=cA;P.SmartBitcoinCash=iA;P.SmartBitcoinCashTestnet=sA;P.SmartHostTeknolojiTestnet=zE;P.Smartmesh=LR;P.SocialSmartChain=S7;P.SongbirdCanaryNetwork=e_;P.Soterone=V_;P.Soverun=SR;P.SoverunTestnet=QS;P.Sps=RA;P.SpsTestnet=DA;P.StarSocialTestnet=kI;P.StepNetwork=XE;P.StepTestnet=PA;P.Stratos=y8;P.StratosTestnet=m8;P.StreamuxBlockchain=bk;P.SuperSmartChain=YC;P.SuperSmartChainTestnet=VC;P.SurBlockchainNetwork=C6;P.Susono=BA;P.SxNetwork=X6;P.SxNetworkTestnet=TI;P.Syscoin=L_;P.SyscoinRolluxTestnet=$P;P.SyscoinTanenbaumTestnet=U4;P.TEAMBlockchain=$R;P.TEkta=bE;P.TaikoAlpha2Testnet=d7;P.TaoNetwork=fI;P.Taraxa=jI;P.TaraxaTestnet=zI;P.Taycan=JA;P.TaycanTestnet=p8;P.Tbsi=PC;P.TbsiTestnet=SC;P.TbwgChain=y_;P.TcgVerse=D8;P.Techpay=q8;P.Teleport=pk;P.TeleportTestnet=hk;P.TelosEvm=x_;P.TelosEvmTestnet=__;P.Teslafunds=LC;P.Thaichain=jx;P.Thaichain20Thaifi=Zx;P.TheRootNetwork=sk;P.TheRootNetworkPorciniTestnet=ok;P.Theta=K6;P.ThetaAmberTestnet=V6;P.ThetaSapphireTestnet=G6;P.ThetaTestnet=Y6;P.ThinkiumChain0=uS;P.ThinkiumChain1=lS;P.ThinkiumChain103=pS;P.ThinkiumChain2=dS;P.ThinkiumTestnetChain0=JP;P.ThinkiumTestnetChain1=ZP;P.ThinkiumTestnetChain103=eS;P.ThinkiumTestnetChain2=XP;P.Thundercore=AT;P.ThundercoreTestnet=Xx;P.Tipboxcoin=q7;P.TipboxcoinTestnet=x4;P.TlchainNetwork=B4;P.TmyChain=Lk;P.TokiNetwork=Rk;P.TokiTestnet=Mk;P.TombChain=J4;P.Tomochain=pT;P.TomochainTestnet=hT;P.ToolGlobal=Nk;P.ToolGlobalTestnet=Bk;P.Top=hE;P.TopEvm=dE;P.Tres=V4;P.TresTestnet=G4;P.TrustEvmTestnet=OA;P.UbSmartChain=qS;P.UbSmartChainTestnet=OS;P.Ubiq=zx;P.UbiqNetworkTestnet=Kx;P.Ultron=ZE;P.UltronTestnet=JE;P.UnicornUltraTestnet=w_;P.Unique=qk;P.Uptick=DT;P.UzmiNetwork=O4;P.Valorbit=v_;P.Vchain=S8;P.Vechain=YS;P.VechainTestnet=$S;P.Vela1Chain=hI;P.VelasEvm=CT;P.Venidium=S4;P.VenidiumTestnet=P4;P.VentionSmartChain=vS;P.VentionSmartChainTestnet=MI;P.Vision=aR;P.VisionVpioneerTestChain=eR;P.VyvoSmartChain=jk;P.Wagmi=bA;P.Wanchain=QI;P.WanchainTestnet=mE;P.Web3gamesDevnet=ET;P.Web3gamesTestnet=TT;P.Web3q=U6;P.Web3qGalileo=X8;P.Web3qTestnet=Z8;P.Webchain=nP;P.WeelinkTestnet=K7;P.WegochainRubidium=K4;P.Wemix30=BE;P.Wemix30Testnet=DE;P.Woopchain=$T;P.WorldTradeTechnicalChain=VE;P.Xanachain=Hk;P.XdcApothemNetwork=R_;P.Xerom=pR;P.XinfinXdcNetwork=S_;P.Xodex=L8;P.XtSmartChain=uI;P.Yuanchain=f4;P.ZMainnet=s8;P.ZTestnet=nA;P.ZcoreTestnet=J8;P.ZeethChain=tI;P.ZeethChainDev=KI;P.Zeniq=M9;P.Zenith=aT;P.ZenithTestnetVilnius=sT;P.Zetachain=X4;P.ZetachainAthensTestnet=ek;P.Zhejiang=mR;P.ZilliqaEvmTestnet=bP;P.ZksyncEra=W6;P.ZksyncEraTestnet=A6;P.Zyx=D_;P._0xtade=dA;P._4goodnetwork=nR;P.allChains=q0r;P.configureChain=L0r;P.defaultChains=O0r;P.getChainByChainId=U0r;P.getChainBySlug=H0r;P.getChainRPC=B0r;P.getChainRPCs=yet;P.minimizeChain=D0r});var xet=_(S=>{"use strict";d();p();Object.defineProperty(S,"__esModule",{value:!0});var j0r={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},z0r={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},K0r={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},G0r={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},V0r={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"goerli"},Y0r={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},$0r={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},Q0r={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},J0r={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Z0r={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"optimism"},X0r={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},eyr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},tyr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},ryr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},nyr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},ayr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},iyr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},syr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},oyr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},cyr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},uyr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},lyr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},dyr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},pyr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},hyr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},fyr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},myr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},yyr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},gyr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},byr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},vyr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},wyr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},xyr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},_yr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},Tyr={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},Iyr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},Eyr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},Cyr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},kyr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},Ayr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},testnet:!1,slug:"telos-evm"},Pyr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},slug:"telos-evm-testnet"},Syr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},Ryr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},Myr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},Nyr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},Byr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},Dyr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},Lyr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},Oyr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},qyr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},Fyr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},Wyr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},Uyr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},Hyr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},jyr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"binance"},zyr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},Kyr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},Gyr={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Vyr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Yyr={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},$yr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},Qyr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},Jyr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Zyr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Xyr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},egr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},tgr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},rgr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},ngr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},agr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},igr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},sgr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy"},ogr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},cgr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},ugr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},lgr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},dgr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},pgr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},hgr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},fgr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},mgr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},ygr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},ggr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},bgr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},vgr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},wgr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},xgr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},_gr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},Tgr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},Igr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},Egr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},Cgr={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},kgr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},Agr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"binance-testnet"},Pgr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},Sgr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"gnosis"},Rgr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},Mgr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},Ngr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},Bgr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},Dgr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},Lgr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},Ogr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},qgr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},Fgr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},Wgr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},Ugr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},Hgr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},jgr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},zgr={name:"Uptick Mainnet",chain:"Uptick",rpc:["https://uptick.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.uptick.network"],faucets:[],nativeCurrency:{name:"Uptick",symbol:"UPTICK",decimals:18},infoURL:"https://www.uptick.network",shortName:"auptick",chainId:117,networkId:117,icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},explorers:[{name:"Uptick Explorer",url:"https://evm-explorer.uptick.network",icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"uptick"},Kgr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},Ggr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"enuls"},Vgr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},Ygr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},$gr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},Qgr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},Jgr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},Zgr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},Xgr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},e1r={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},t1r={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},r1r={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},n1r={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},a1r={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},i1r={name:"WoopChain Mainnet",chain:"WOOP",icon:{url:"ipfs://Qma7LpnkGjAN1dwL6VTXUYqzySNxjLg4br7J8UE4yZWYec",width:310,height:310,format:"png"},rpc:["https://woopchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.woop.ai/rpc"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"WoopCoin",symbol:"WOOC",decimals:18},infoURL:"https://wikiwoop.com",shortName:"woop",chainId:139,networkId:139,explorers:[{name:"wikiwoop",url:"https://explorer.wikiwoop.com",standard:"EIP3091"}],testnet:!1,slug:"woopchain"},s1r={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},o1r={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},c1r={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v2"},u1r={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},l1r={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},d1r={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},p1r={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},h1r={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},f1r={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},m1r={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},y1r={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},g1r={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},b1r={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},v1r={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},w1r={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},x1r={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},_1r={name:"OKBChain Testnet",chain:"okbchain",rpc:["https://okbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://okbtestrpc.okbchain.org"],faucets:["https://www.oklink.com/okbc-test"],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",shortName:"tokb",chainId:195,networkId:195,explorers:[{name:"OKLink",url:"https://www.oklink.com/okbc-test",standard:"EIP3091"}],status:"active",testnet:!0,slug:"okbchain-testnet"},T1r={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},I1r={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},E1r={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},C1r={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},k1r={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},A1r={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},P1r={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},S1r={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},R1r={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},M1r={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},N1r={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},B1r={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"fantom"},D1r={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},L1r={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},O1r={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},q1r={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},F1r={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.era.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},W1r={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},U1r={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},H1r={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},j1r={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},z1r={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},K1r={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},G1r={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},V1r={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"omax"},Y1r={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},$1r={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Q1r={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},J1r={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.era.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zksync.io/"}]},testnet:!1,slug:"zksync-era"},Z1r={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},X1r={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!0,slug:"dfk-chain-test"},ebr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"shiden"},tbr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},rbr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},nbr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},abr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},ibr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},sbr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},obr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},cbr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},ubr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},lbr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},dbr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},pbr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"optimism-goerli"},hbr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},fbr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},mbr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},ybr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},gbr={name:"Columbus Test Network",chain:"CAM",rpc:["https://columbus-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://columbus.camino.network/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},bbr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},vbr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},wbr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},xbr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},_br={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},Tbr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},Ibr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},Ebr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},Cbr={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},kbr={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},Abr={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"astar"},Pbr={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},Sbr={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},Rbr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},Mbr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!0,slug:"metis-goerli-testnet"},Nbr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},Bbr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},Dbr={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},Lbr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},Obr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},qbr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},Fbr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},Wbr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},Ubr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},Hbr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},jbr={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"https://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},zbr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},Kbr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ql1"},Gbr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},Vbr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},Ybr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},$br={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},Qbr={name:"Lucid Blockchain",chain:"Lucid",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},Jbr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},Zbr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},Xbr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},evr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},tvr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},rvr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},nvr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},avr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},ivr={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},svr={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},ovr={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},cvr={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},uvr={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},lvr={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},dvr={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},pvr={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},hvr={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},fvr={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},mvr={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},yvr={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},gvr={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},bvr={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},vvr={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},wvr={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},xvr={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},_vr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},Tvr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},Ivr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},Evr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},Cvr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},kvr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},Avr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},Pvr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},Svr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},Rvr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},Mvr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!1,slug:"eurus"},Nvr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},Bvr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},Dvr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},Lvr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},Ovr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},qvr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},Fvr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},Wvr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},Uvr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!0,slug:"bronos-testnet"},Hvr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!1,slug:"bronos"},jvr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!1,slug:"metis-andromeda"},zvr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},Kvr={name:"Polygon zkEVM",title:"Polygon zkEVM",chain:"Polygon",rpc:["https://polygon-zkevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zkevm-rpc.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/polygon-zkevm",shortName:"zkevm",chainId:1101,networkId:1101,icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},explorers:[{name:"blockscout",url:"https://zkevm.polygonscan.com",icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zkevm-rpc.com"}]},testnet:!1,slug:"polygon-zkevm"},Gvr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},Vvr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},Yvr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},$vr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},Qvr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Jvr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Zvr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Xvr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},e2r={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},t2r={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},r2r={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},n2r={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},a2r={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},i2r={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},s2r={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},o2r={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"enterchain"},c2r={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},u2r={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!0,slug:"ultron-testnet"},l2r={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"ultron"},d2r={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},p2r={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},h2r={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},f2r={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},m2r={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},y2r={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},g2r={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},b2r={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},v2r={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},w2r={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},x2r={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"TDOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},_2r={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},T2r={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},I2r={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},E2r={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},C2r={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},k2r={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},A2r={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},P2r={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},S2r={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},testnet:!0,slug:"polygon-zkevm-testnet"},R2r={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},M2r={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},N2r={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},B2r={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},D2r={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},L2r={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},O2r={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},q2r={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},F2r={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},W2r={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},U2r={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},H2r={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},j2r={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!1,slug:"palette-chain"},z2r={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},K2r={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},G2r={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},V2r={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},Y2r={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},$2r={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Q2r={name:"Lightlink Phoenix Mainnet",chain:"Lightlink Phoenix Mainnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.phoenix.lightlink.io/rpc/v1","https://replicator-02.phoenix.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_phoenix",chainId:1890,networkId:1890,explorers:[{name:"phoenix",url:"https://phoenix.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"lightlink-phoenix"},J2r={name:"Lightlink Pegasus Testnet",chain:"Lightlink Pegasus Testnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-pegasus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.pegasus.lightlink.io/rpc/v1","https://replicator-02.pegasus.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:["https://pegasus-faucet-react.vercel.app"],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_pegasus",chainId:1891,networkId:1891,explorers:[{name:"pegasus",url:"https://pegasus.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"lightlink-pegasus-testnet"},Z2r={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},X2r={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},ewr={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},twr={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},rwr={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},nwr={name:"Dexilla Testnet",chain:"Dexilla",rpc:["https://dexilla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dexilla.com"],faucets:[],icon:{url:"ipfs://QmUBveetVibvSEWQrjyxySgUphLuoMGSVLGmYnobt5FgEZ",width:512,height:512,format:"png"},nativeCurrency:{name:"Dexilla Native Token",symbol:"DXZ",decimals:18},infoURL:"https://dexilla.com",shortName:"Dexilla",chainId:1954,networkId:1954,explorers:[{name:"dos-mainnet",url:"https://exp.dexilla.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://bridge.dexilla.com"}]},testnet:!0,slug:"dexilla-testnet"},awr={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},iwr={name:"Super Smart Chain Testnet",chain:"TSCS",rpc:["https://super-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.superexchain.com:8544"],faucets:["https://testnet.superexchain.com"],nativeCurrency:{name:"Super Chain Native Token",symbol:"TSCS",decimals:18},infoURL:"https://testnet.superexchain.com",shortName:"tscs",chainId:1969,networkId:1969,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://testnetscan.superexchain.com",standard:"EIP3091"}],testnet:!0,slug:"super-smart-chain-testnet"},swr={name:"Super Smart Chain Mainnet",chain:"SCS",rpc:["https://super-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://superexchain.com:8545"],faucets:[],nativeCurrency:{name:"Super Chain Native Token",symbol:"SCS",decimals:18},infoURL:"https://superexchain.com",shortName:"scs",chainId:1970,networkId:1970,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://scan.superexchain.com",standard:"EIP3091"}],testnet:!1,slug:"super-smart-chain"},owr={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},cwr={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},uwr={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!0,slug:"eurus-testnet"},lwr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},dwr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ekta"},pwr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},hwr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},fwr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},mwr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},ywr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},gwr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},bwr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},vwr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},wwr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},xwr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},_wr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"edgeware-edgeevm"},Twr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},Iwr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!0,slug:"taycan-testnet"},Ewr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},Cwr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},kwr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},Awr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},Pwr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},Swr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},Rwr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},Mwr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},Nwr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},Bwr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bosagora"},Dwr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},Lwr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},Owr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},qwr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},standard:"none"}],testnet:!1,slug:"bitcoin-evm"},Fwr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},Wwr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!0,slug:"kava-evm-testnet"},Uwr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!1,slug:"kava-evm"},Hwr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},jwr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},zwr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},Kwr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},standard:"none"}],testnet:!1,slug:"altcoinchain"},Gwr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},Vwr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},Ywr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"}}],testnet:!1,slug:"xodex"},$wr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},Qwr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"techpay"},Jwr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},Zwr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},Xwr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},e5r={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},t5r={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},r5r={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},n5r={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},a5r={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},i5r={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},s5r={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},o5r={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},c5r={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},u5r={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},l5r={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},d5r={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},p5r={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},h5r={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},f5r={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},m5r={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},y5r={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},g5r={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},b5r={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},v5r={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},w5r={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},x5r={name:"AlveyChain Mainnet",chain:"ALV",icon:{url:"ipfs://QmSwczpPLBG6ob1a8WLoujthiCPzwEyJNp7WdKRi52qbWX",width:310,height:310,format:"png"},rpc:["https://alveychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alveychain.com/rpc","https://rpc2.alvey.io/rpc"],faucets:[],nativeCurrency:{name:"AlveyCoin",symbol:"ALV",decimals:18},infoURL:"https://alveyscan.com/rpc",shortName:"alv",chainId:3797,networkId:3797,explorers:[{name:"AlveyScan",url:"https://alveyscan.com",standard:"EIP3091"}],testnet:!1,slug:"alveychain"},_5r={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},T5r={name:"DOS Tesnet",chain:"DOS",rpc:["https://dos-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"dost",chainId:3939,networkId:3939,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan-Test",url:"https://test.doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"dos-tesnet"},I5r={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},E5r={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},C5r={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},k5r={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},A5r={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},P5r={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},S5r={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},R5r={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitindi.org","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},M5r={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}"," https://rpc-mainnet.bitindi.org","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},N5r={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},B5r={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},D5r={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v1"},L5r={name:"Nexi Mainnet",chain:"Nexi",icon:{url:"ipfs://bafybeifxqd7zel2m237kq5enavnh2s6cshaavswigogyvae2wevxy5k2ti",width:512,height:578,format:"png"},rpc:["https://nexi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chain.nexi.technology/","https://chain.nexilix.com","https://chain.nexi.evmnode.online"],faucets:[],nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},infoURL:"https://www.nexi.technology/",shortName:"nexi",chainId:4242,networkId:4242,slip44:2500,explorers:[{name:"nexiscan",url:"https://www.nexiscan.com",standard:"EIP3091"}],testnet:!1,slug:"nexi"},O5r={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},q5r={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},standard:"none"}],testnet:!1,slug:"htmlcoin"},F5r={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},W5r={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},U5r={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},H5r={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},j5r={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},z5r={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},K5r={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},G5r={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},V5r={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},Y5r={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},$5r={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},Q5r={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},J5r={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},Z5r={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},X5r={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},e3r={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},t3r={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},r3r={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},n3r={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},a3r={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},i3r={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},s3r={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"tres"},o3r={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},c3r={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},u3r={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},l3r={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},d3r={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},p3r={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},h3r={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},f3r={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},m3r={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},y3r={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},g3r={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},b3r={name:"ADIL Testnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.adilchain-rpc.io"],faucets:["https://testnet-faucet.adil-scan.io"],nativeCurrency:{name:"Testnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"tadil",chainId:7575,networkId:7575,explorers:[{name:"ADIL Testnet Explorer",url:"https://testnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!0,slug:"adil-testnet"},v3r={name:"The Root Network - Mainnet",chain:"TRN",rpc:["https://the-root-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://root.rootnet.live/archive","wss://root.rootnet.live/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-mainnet",chainId:7668,networkId:7668,explorers:[{name:"rootnet",url:"https://explorer.rootnet.live",standard:"none"}],testnet:!1,slug:"the-root-network"},w3r={name:"The Root Network - Porcini Testnet",chain:"TRN",rpc:["https://the-root-network-porcini-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://porcini.rootnet.app/archive","wss://porcini.rootnet.app/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-porcini",chainId:7672,networkId:7672,explorers:[{name:"rootnet",url:"https://explorer.rootnet.cloud",standard:"none"}],testnet:!0,slug:"the-root-network-porcini-testnet"},x3r={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},_3r={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},T3r={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},I3r={name:"DOS Chain",chain:"DOS",rpc:["https://dos-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"https://doschain.io",shortName:"dos",chainId:7979,networkId:7979,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan",url:"https://doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"dos-chain"},E3r={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!1,slug:"teleport"},C3r={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!0,slug:"teleport-testnet"},k3r={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},A3r={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},P3r={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},S3r={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},R3r={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},M3r={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},N3r={name:"Qitmeer Network Mixnext",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meermix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8132,networkId:8132,status:"incubating",testnet:!1,slug:"qitmeer-network-mixnext"},B3r={name:"Qitmeer Network Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meerpriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8133,networkId:8133,status:"incubating",testnet:!1,slug:"qitmeer-network-privnet"},D3r={name:"Amana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8134,networkId:8134,status:"incubating",testnet:!1,slug:"amana"},L3r={name:"Flana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8135,networkId:8135,status:"incubating",testnet:!1,slug:"flana"},O3r={name:"Mizana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8136,networkId:8136,status:"incubating",testnet:!1,slug:"mizana"},q3r={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},F3r={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},W3r={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},U3r={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},H3r={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},j3r={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},z3r={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},K3r={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},G3r={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},V3r={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},Y3r={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},$3r={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},Q3r={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},J3r={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},Z3r={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},X3r={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},exr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},txr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},rxr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},nxr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"}}],testnet:!1,slug:"mammoth"},axr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},ixr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"}}],testnet:!1,slug:"giant-mammoth"},sxr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},oxr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!0,slug:"evmos-testnet"},cxr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!1,slug:"evmos"},uxr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},lxr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},dxr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},pxr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},hxr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},fxr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},mxr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},yxr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},gxr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},bxr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},vxr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},wxr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},xxr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},_xr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},Txr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},Ixr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},Exr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},Cxr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},kxr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},Axr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},Pxr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},Sxr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!1,slug:"astra"},Rxr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},Mxr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!0,slug:"astra-testnet"},Nxr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},Bxr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},Dxr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},Lxr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},Oxr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},qxr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},Fxr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},Wxr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},Uxr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},Hxr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},jxr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},zxr={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},Kxr={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Gxr={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},Vxr={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},Yxr={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},$xr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},Qxr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},Jxr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},Zxr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},Xxr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},e_r={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},t_r={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},r_r={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},n_r={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},a_r={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},i_r={name:"Camelark Mainnet",chainId:20001,shortName:"Camelark",chain:"ETHW",icon:{url:"ipfs://QmbXDcCWHh8jExE1tAUkUKzXyTb8srpC75ogZq1QYkMMRW",width:128,height:128,format:"svg"},networkId:20001,nativeCurrency:{name:"EthereumPoW",symbol:"ETHW",decimals:18},rpc:["https://camelark.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-http-rpc.camelark.com"],faucets:[],explorers:[{name:"CamelarkScan",url:"https://scan.camelark.com",standard:"EIP3091"}],infoURL:"https://www.camelark.com",testnet:!1,slug:"camelark"},s_r={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},o_r={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},c_r={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},u_r={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},l_r={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!1,slug:"taycan"},d_r={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},p_r={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},h_r={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},f_r={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},m_r={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},y_r={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},g_r={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},b_r={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},v_r={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],testnet:!0,slug:"bitkub-chain-testnet"},w_r={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},x_r={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},__r={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},T_r={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},I_r={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},E_r={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},C_r={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},k_r={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},A_r={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},P_r={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bitgert"},S_r={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"fusion"},R_r={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},M_r={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"aves"},N_r={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:{url:"ipfs://QmdUYi8fjnvdM9iFQ7dwE2YvmhDtavSB3bKhCD2GhPxPks",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},B_r={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"q"},D_r={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},L_r={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},O_r={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"oho"},q_r={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},F_r={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},W_r={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"arbitrum"},U_r={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},H_r={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},j_r={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},z_r={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},K_r={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},G_r={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax.network/","https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},V_r={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},Y_r={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},$_r={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"frenchain"},Q_r={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},J_r={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},Z_r={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},X_r={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},eTr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},tTr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},rTr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},nTr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},aTr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},iTr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},sTr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!1,slug:"dfk-chain"},oTr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},cTr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},uTr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},lTr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},dTr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},pTr={name:"Linea Testnet",title:"Linea Testnet",chain:"ETH",rpc:["https://linea-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goerli.linea.build"],faucets:["https://faucetlink.to/goerli"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://linea.build",shortName:"linea-testnet",chainId:59140,networkId:59140,icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"},parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea"}]},explorers:[{name:"Linea Testnet Explorer",url:"https://explorer.goerli.linea.build",standard:"EIP3091",icon:{url:"ipfs://QmP6rcphqMTeByPxomeYeR5XRPZaFpwGbZxHkGQKyao4Le",width:115,height:115,format:"svg"}}],status:"active",testnet:!0,slug:"linea-testnet"},hTr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},fTr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},mTr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},yTr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},gTr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},bTr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},vTr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},wTr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},xTr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ecredits"},_Tr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},TTr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},ITr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},ETr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},CTr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},kTr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},ATr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},PTr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},STr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},RTr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},MTr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},NTr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},BTr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},DTr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},LTr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},OTr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},qTr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},FTr={name:"Amana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81341,networkId:81341,status:"incubating",testnet:!0,slug:"amana-testnet"},WTr={name:"Amana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81342,networkId:81342,status:"incubating",testnet:!1,slug:"amana-mixnet"},UTr={name:"Amana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81343,networkId:81343,status:"incubating",testnet:!1,slug:"amana-privnet"},HTr={name:"Flana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81351,networkId:81351,status:"incubating",testnet:!0,slug:"flana-testnet"},jTr={name:"Flana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81352,networkId:81352,status:"incubating",testnet:!1,slug:"flana-mixnet"},zTr={name:"Flana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81353,networkId:81353,status:"incubating",testnet:!1,slug:"flana-privnet"},KTr={name:"Mizana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Testnet",symbol:"MEER-t",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81361,networkId:81361,status:"incubating",testnet:!0,slug:"mizana-testnet"},GTr={name:"Mizana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mixnet",symbol:"MEER-m",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81362,networkId:81362,status:"incubating",testnet:!1,slug:"mizana-mixnet"},VTr={name:"Mizana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Privnet",symbol:"MEER-p",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81363,networkId:81363,status:"incubating",testnet:!1,slug:"mizana-privnet"},YTr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},$Tr={name:"CYBERTRUST",chain:"CYBER",rpc:["https://cybertrust.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cybertrust.space:48501"],faucets:[],nativeCurrency:{name:"Cyber Trust",symbol:"CYBER",decimals:18},infoURL:"https://cybertrust.space",shortName:"Cyber",chainId:85449,networkId:48501,testnet:!0,slug:"cybertrust"},QTr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},JTr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},ZTr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},XTr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"}}],testnet:!0,slug:"lambda-testnet"},e6r={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},t6r={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},r6r={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},n6r={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},a6r={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},i6r={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},s6r={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},o6r={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},c6r={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},u6r={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},l6r={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},d6r={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},p6r={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},h6r={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},f6r={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},m6r={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},y6r={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},g6r={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},b6r={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},v6r={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},w6r={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},x6r={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},_6r={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},T6r={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},I6r={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},E6r={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},C6r={name:"ADIL Devnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"Devnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"dadil",chainId:123456,networkId:123456,explorers:[{name:"ADIL Devnet Explorer",url:"https://devnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-devnet"},k6r={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},standard:"none"}],testnet:!1,slug:"etnd-chain-s"},A6r={name:"Taiko (Alpha-2 Testnet)",chain:"ETH",icon:{url:"ipfs://QmWMUDmNHzCtism9dYK1JooerZJ4da6kGt67HAQmLiEykc",width:1001,height:1001,format:"png"},rpc:["https://taiko-alpha-2-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.a2.taiko.xyz"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://taiko.xyz",shortName:"taiko-a2",chainId:167004,networkId:167004,explorers:[{name:"blockscout",url:"https://explorer.a2.taiko.xyz",standard:"EIP3091"}],testnet:!0,slug:"taiko-alpha-2-testnet"},P6r={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},S6r={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},R6r={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},M6r={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},N6r={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},B6r={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},D6r={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},L6r={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},O6r={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"}}],testnet:!0,slug:"jellie"},q6r={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},F6r={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},W6r={name:"HashKey Chain Testnet",chain:"HashKey",rpc:["https://hashkey-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashkeychain/rpc"],faucets:["https://testnet.hashkeychain/faucet"],nativeCurrency:{name:"HashKey Token",symbol:"tHSK",decimals:18},infoURL:"https://www.hashkey.com",shortName:"hsktest",chainId:230315,networkId:230315,icon:{url:"ipfs://QmNU11AqYB2htrrSyBSP9ct7bPtuZTP7Hrz21PrEcB9nYE",width:1440,height:448,format:"png"},explorers:[{name:"HashKey Chain Testnet Explorer",url:"https://testnet.hashkeyscan.io",standard:"none"}],testnet:!0,slug:"hashkey-chain-testnet"},U6r={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},H6r={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},j6r={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},z6r={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},K6r={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},G6r={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},V6r={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},Y6r={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},$6r={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},Q6r={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},J6r={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},Z6r={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!0,slug:"hapchain-testnet"},X6r={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},eIr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},tIr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},rIr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"kekchain"},nIr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},aIr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},iIr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"arbitrum-goerli"},sIr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},oIr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},cIr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},uIr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},lIr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},dIr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},pIr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"ethf",chain:"ETHF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://www.oklink.com/ethf",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},hIr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},fIr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},mIr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},yIr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},gIr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},bIr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},vIr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},wIr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"octaspace"},xIr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},_Ir={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},TIr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},IIr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},EIr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},CIr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},kIr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},AIr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},PIr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},SIr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},RIr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},MIr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kiln"},NIr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},BIr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},DIr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},LIr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},OIr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"imversed"},qIr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!0,slug:"imversed-testnet"},FIr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},WIr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},UIr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},HIr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},jIr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},zIr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!1,slug:"hapchain"},KIr={name:"Quarix Testnet",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix-testnet",chainId:8888881,networkId:8888881,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!0,slug:"quarix-testnet"},GIr={name:"Quarix",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix",chainId:8888888,networkId:8888888,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"quarix"},VIr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},YIr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},$Ir={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},QIr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},JIr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:{url:"ipfs://bafkreiapaxokh2p4j7hg43ug2inomixiwrdhni4kpqazvqifssnez7efze",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"anduschain"},ZIr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},XIr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},eEr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},tEr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},rEr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},nEr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},aEr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},iEr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},sEr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},oEr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},cEr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},uEr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},lEr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},dEr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},pEr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},hEr={name:"T.E.A.M Blockchain",chain:"TEAM",icon:{url:"ipfs://QmcnA15BLE9uvznbugXKjqquizZs1eLPeEEkc92DSmvhmt",width:248,height:248,format:"png"},rpc:["https://t-e-a-m-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.teamblockchain.team"],faucets:[],nativeCurrency:{name:"TEAM",symbol:"$TEAM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://teamblockchain.team",shortName:"team",chainId:88888888,networkId:88888888,explorers:[{name:"teamscan",url:"https://teamblockchain.team",standard:"EIP3091"}],testnet:!1,slug:"t-e-a-m-blockchain"},fEr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},mEr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},yEr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},gEr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},bEr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},vEr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},wEr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},xEr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},_Er={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},TEr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},IEr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},EEr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},standard:"none"}],testnet:!1,slug:"cyberdecknet"},CEr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmT5KKrpNt6duU8QfwaYw3xf4ifTBPtjahpWsMi3gsFmcS",width:440,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},kEr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},AEr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},PEr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},SEr={name:"RaptorChain",chain:"RPTR",rpc:["https://raptorchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.raptorchain.io/web3"],faucets:[],nativeCurrency:{name:"Raptor",symbol:"RPTR",decimals:18},features:[{name:"EIP155"}],infoURL:"https://raptorchain.io",shortName:"rptr",chainId:1380996178,networkId:1380996178,icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},explorers:[{name:"RaptorChain Explorer",url:"https://explorer.raptorchain.io",icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"raptorchain"},REr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula"},MEr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},NEr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},BEr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},DEr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},LEr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},OEr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},qEr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},FEr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},WEr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},UEr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},HEr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},jEr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},zEr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},KEr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},GEr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},VEr={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},YEr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"ntity"},$Er={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},QEr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},JEr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},ZEr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},XEr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},eCr={mode:"http"};function vet(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...eCr,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function tCr(r,e){return vet(r,e)[0]}function rCr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function nCr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var Sv=j0r,D9=z0r,L9=K0r,O9=G0r,Rv=V0r,q9=Y0r,F9=$0r,W9=Q0r,U9=J0r,Mv=Z0r,H9=X0r,j9=eyr,z9=tyr,K9=ryr,G9=nyr,V9=ayr,Y9=iyr,$9=syr,Q9=oyr,J9=cyr,Z9=uyr,X9=lyr,eM=dyr,tM=pyr,rM=hyr,nM=fyr,aM=myr,iM=yyr,sM=gyr,oM=byr,cM=vyr,uM=wyr,lM=xyr,dM=_yr,pM=Tyr,hM=Iyr,fM=Eyr,mM=Cyr,yM=kyr,gM=Ayr,bM=Pyr,vM=Syr,wM=Ryr,xM=Myr,_M=Nyr,TM=Byr,IM=Dyr,EM=Lyr,CM=Oyr,kM=qyr,AM=Fyr,PM=Wyr,SM=Uyr,RM=Hyr,Nv=jyr,MM=zyr,NM=Kyr,BM=Gyr,DM=Vyr,LM=Yyr,OM=$yr,qM=Qyr,FM=Jyr,WM=Zyr,UM=Xyr,HM=egr,jM=tgr,zM=rgr,KM=ngr,GM=agr,VM=igr,YM=sgr,$M=ogr,QM=cgr,JM=ugr,ZM=lgr,XM=dgr,eN=pgr,tN=hgr,rN=fgr,nN=mgr,aN=ygr,iN=ggr,sN=bgr,oN=vgr,cN=wgr,uN=xgr,lN=_gr,dN=Tgr,pN=Igr,hN=Egr,fN=Cgr,mN=kgr,Bv=Agr,yN=Pgr,gN=Sgr,bN=Rgr,vN=Mgr,wN=Ngr,xN=Bgr,_N=Dgr,TN=Lgr,IN=Ogr,EN=qgr,CN=Fgr,kN=Wgr,AN=Ugr,PN=Hgr,SN=jgr,RN=zgr,MN=Kgr,NN=Ggr,BN=Vgr,DN=Ygr,LN=$gr,ON=Qgr,qN=Jgr,FN=Zgr,WN=Xgr,UN=e1r,HN=t1r,jN=r1r,zN=n1r,Dv=a1r,KN=i1r,GN=s1r,VN=o1r,YN=c1r,$N=u1r,QN=l1r,JN=d1r,ZN=p1r,XN=h1r,eB=f1r,tB=m1r,rB=y1r,nB=g1r,aB=b1r,iB=v1r,sB=w1r,oB=x1r,cB=_1r,uB=T1r,lB=I1r,dB=E1r,pB=C1r,hB=k1r,fB=A1r,mB=P1r,yB=S1r,gB=R1r,bB=M1r,vB=N1r,Lv=B1r,wB=D1r,xB=L1r,_B=O1r,TB=q1r,IB=F1r,EB=W1r,CB=U1r,kB=H1r,AB=j1r,PB=z1r,SB=K1r,RB=G1r,MB=V1r,NB=Y1r,BB=$1r,DB=Q1r,LB=J1r,OB=Z1r,qB=X1r,FB=ebr,WB=tbr,UB=rbr,HB=nbr,jB=abr,zB=ibr,KB=sbr,GB=obr,VB=cbr,YB=ubr,$B=lbr,QB=dbr,Ov=pbr,JB=hbr,ZB=fbr,XB=mbr,eD=ybr,tD=gbr,rD=bbr,nD=vbr,aD=wbr,iD=xbr,sD=_br,oD=Tbr,cD=Ibr,uD=Ebr,lD=Cbr,dD=kbr,pD=Abr,hD=Pbr,fD=Sbr,mD=Rbr,yD=Mbr,gD=Nbr,bD=Bbr,vD=Dbr,wD=Lbr,xD=Obr,_D=qbr,TD=Fbr,ID=Wbr,ED=Ubr,CD=Hbr,kD=jbr,AD=zbr,PD=Kbr,SD=Gbr,RD=Vbr,MD=Ybr,ND=$br,BD=Qbr,DD=Jbr,LD=Zbr,OD=Xbr,qD=evr,FD=tvr,WD=rvr,UD=nvr,HD=avr,jD=ivr,zD=svr,KD=ovr,GD=cvr,VD=uvr,YD=lvr,$D=dvr,QD=pvr,JD=hvr,ZD=fvr,XD=mvr,eL=yvr,tL=gvr,rL=bvr,nL=vvr,aL=wvr,iL=xvr,sL=_vr,oL=Tvr,cL=Ivr,uL=Evr,lL=Cvr,dL=kvr,pL=Avr,hL=Pvr,fL=Svr,mL=Rvr,yL=Mvr,gL=Nvr,bL=Bvr,vL=Dvr,wL=Lvr,xL=Ovr,_L=qvr,TL=Fvr,IL=Wvr,EL=Uvr,CL=Hvr,kL=jvr,AL=zvr,PL=Kvr,SL=Gvr,RL=Vvr,ML=Yvr,NL=$vr,BL=Qvr,DL=Jvr,LL=Zvr,OL=Xvr,qL=e2r,FL=t2r,WL=r2r,UL=n2r,HL=a2r,jL=i2r,zL=s2r,KL=o2r,GL=c2r,VL=u2r,YL=l2r,$L=d2r,QL=p2r,JL=h2r,ZL=f2r,XL=m2r,eO=y2r,tO=g2r,rO=b2r,nO=v2r,aO=w2r,iO=x2r,sO=_2r,oO=T2r,cO=I2r,uO=E2r,lO=C2r,dO=k2r,pO=A2r,hO=P2r,fO=S2r,mO=R2r,yO=M2r,gO=N2r,bO=B2r,vO=D2r,wO=L2r,xO=O2r,_O=q2r,TO=F2r,IO=W2r,EO=U2r,CO=H2r,kO=j2r,AO=z2r,PO=K2r,SO=G2r,RO=V2r,MO=Y2r,NO=$2r,BO=Q2r,DO=J2r,LO=Z2r,OO=X2r,qO=ewr,FO=twr,WO=rwr,UO=nwr,HO=awr,jO=iwr,zO=swr,KO=owr,GO=cwr,VO=uwr,YO=lwr,$O=dwr,QO=pwr,JO=hwr,ZO=fwr,XO=mwr,eq=ywr,tq=gwr,rq=bwr,nq=vwr,aq=wwr,iq=xwr,sq=_wr,oq=Twr,cq=Iwr,uq=Ewr,lq=Cwr,dq=kwr,pq=Awr,hq=Pwr,fq=Swr,mq=Rwr,yq=Mwr,gq=Nwr,bq=Bwr,vq=Dwr,wq=Lwr,xq=Owr,_q=qwr,Tq=Fwr,Iq=Wwr,Eq=Uwr,Cq=Hwr,kq=jwr,Aq=zwr,Pq=Kwr,Sq=Gwr,Rq=Vwr,Mq=Ywr,Nq=$wr,Bq=Qwr,Dq=Jwr,Lq=Zwr,Oq=Xwr,qq=e5r,Fq=t5r,Wq=r5r,Uq=n5r,Hq=a5r,jq=i5r,zq=s5r,Kq=o5r,Gq=c5r,Vq=u5r,Yq=l5r,$q=d5r,Qq=p5r,Jq=h5r,Zq=f5r,Xq=m5r,eF=y5r,tF=g5r,rF=b5r,nF=v5r,aF=w5r,iF=x5r,sF=_5r,oF=T5r,cF=I5r,uF=E5r,lF=C5r,qv=k5r,dF=A5r,pF=P5r,hF=S5r,fF=R5r,mF=M5r,yF=N5r,gF=B5r,bF=D5r,vF=L5r,wF=O5r,xF=q5r,_F=F5r,TF=W5r,IF=U5r,EF=H5r,CF=j5r,kF=z5r,AF=K5r,PF=G5r,SF=V5r,RF=Y5r,MF=$5r,NF=Q5r,BF=J5r,DF=Z5r,LF=X5r,OF=e3r,qF=t3r,FF=r3r,WF=n3r,UF=a3r,HF=i3r,jF=s3r,zF=o3r,KF=c3r,GF=u3r,VF=l3r,YF=d3r,$F=p3r,QF=h3r,JF=f3r,ZF=m3r,XF=y3r,eW=g3r,tW=b3r,rW=v3r,nW=w3r,aW=x3r,iW=_3r,sW=T3r,oW=I3r,cW=E3r,uW=C3r,lW=k3r,dW=A3r,pW=P3r,hW=S3r,fW=R3r,mW=M3r,yW=N3r,gW=B3r,bW=D3r,vW=L3r,wW=O3r,xW=q3r,_W=F3r,TW=W3r,IW=U3r,EW=H3r,CW=j3r,kW=z3r,AW=K3r,PW=G3r,SW=V3r,RW=Y3r,MW=$3r,NW=Q3r,BW=J3r,DW=Z3r,LW=X3r,OW=exr,qW=txr,FW=rxr,WW=nxr,UW=axr,HW=ixr,jW=sxr,zW=oxr,KW=cxr,GW=uxr,VW=lxr,YW=dxr,$W=pxr,QW=hxr,JW=fxr,ZW=mxr,XW=yxr,eU=gxr,tU=bxr,rU=vxr,nU=wxr,aU=xxr,iU=_xr,sU=Txr,oU=Ixr,cU=Exr,uU=Cxr,lU=kxr,dU=Axr,pU=Pxr,hU=Sxr,fU=Rxr,mU=Mxr,yU=Nxr,gU=Bxr,bU=Dxr,vU=Lxr,wU=Oxr,xU=qxr,_U=Fxr,TU=Wxr,IU=Uxr,EU=Hxr,CU=jxr,kU=zxr,AU=Kxr,PU=Gxr,SU=Vxr,RU=Yxr,MU=$xr,NU=Qxr,BU=Jxr,DU=Zxr,LU=Xxr,OU=e_r,qU=t_r,FU=r_r,WU=n_r,UU=a_r,HU=i_r,jU=s_r,zU=o_r,KU=c_r,GU=u_r,VU=l_r,YU=d_r,$U=p_r,QU=h_r,JU=f_r,ZU=m_r,XU=y_r,eH=g_r,tH=b_r,rH=v_r,nH=w_r,aH=x_r,iH=__r,sH=T_r,oH=I_r,cH=E_r,uH=C_r,lH=k_r,dH=A_r,pH=P_r,hH=S_r,fH=R_r,mH=M_r,yH=N_r,gH=B_r,bH=D_r,vH=L_r,wH=O_r,xH=q_r,_H=F_r,Fv=W_r,TH=U_r,IH=H_r,EH=j_r,CH=z_r,kH=K_r,Wv=G_r,Uv=V_r,AH=Y_r,PH=$_r,SH=Q_r,RH=J_r,MH=Z_r,NH=X_r,BH=eTr,DH=tTr,LH=rTr,OH=nTr,qH=aTr,FH=iTr,WH=sTr,UH=oTr,HH=cTr,jH=uTr,zH=lTr,KH=dTr,GH=pTr,VH=hTr,YH=fTr,$H=mTr,QH=yTr,JH=gTr,ZH=bTr,XH=vTr,ej=wTr,tj=xTr,rj=_Tr,nj=TTr,aj=ITr,ij=ETr,sj=CTr,oj=kTr,cj=ATr,uj=PTr,lj=STr,dj=RTr,pj=MTr,hj=NTr,fj=BTr,mj=DTr,yj=LTr,gj=OTr,Hv=qTr,bj=FTr,vj=WTr,wj=UTr,xj=HTr,_j=jTr,Tj=zTr,Ij=KTr,Ej=GTr,Cj=VTr,kj=YTr,Aj=$Tr,Pj=QTr,Sj=JTr,Rj=ZTr,Mj=XTr,Nj=e6r,Bj=t6r,Dj=r6r,Lj=n6r,Oj=a6r,qj=i6r,Fj=s6r,Wj=o6r,Uj=c6r,Hj=u6r,jj=l6r,zj=d6r,Kj=p6r,Gj=h6r,Vj=f6r,Yj=m6r,$j=y6r,Qj=g6r,Jj=b6r,Zj=v6r,Xj=w6r,ez=x6r,tz=_6r,rz=T6r,nz=I6r,az=E6r,iz=C6r,sz=k6r,oz=A6r,cz=P6r,uz=S6r,lz=R6r,dz=M6r,pz=N6r,hz=B6r,fz=D6r,mz=L6r,yz=O6r,gz=q6r,bz=F6r,vz=W6r,wz=U6r,xz=H6r,_z=j6r,Tz=z6r,Iz=K6r,Ez=G6r,Cz=V6r,kz=Y6r,Az=$6r,Pz=Q6r,Sz=J6r,Rz=Z6r,Mz=X6r,Nz=eIr,Bz=tIr,Dz=rIr,Lz=nIr,Oz=aIr,jv=iIr,qz=sIr,Fz=oIr,Wz=cIr,Uz=uIr,Hz=lIr,jz=dIr,zz=pIr,Kz=hIr,Gz=fIr,Vz=mIr,Yz=yIr,$z=gIr,Qz=bIr,Jz=vIr,Zz=wIr,Xz=xIr,eK=_Ir,tK=TIr,rK=IIr,nK=EIr,aK=CIr,iK=kIr,sK=AIr,oK=PIr,cK=SIr,uK=RIr,lK=MIr,dK=NIr,pK=BIr,hK=DIr,fK=LIr,mK=OIr,yK=qIr,gK=FIr,bK=WIr,vK=UIr,wK=HIr,xK=jIr,_K=zIr,TK=KIr,IK=GIr,EK=VIr,CK=YIr,kK=$Ir,AK=QIr,PK=JIr,SK=ZIr,RK=XIr,MK=eEr,NK=tEr,BK=rEr,DK=nEr,LK=aEr,OK=iEr,qK=sEr,FK=oEr,WK=cEr,UK=uEr,HK=lEr,jK=dEr,zK=pEr,KK=hEr,GK=fEr,VK=mEr,YK=yEr,$K=gEr,QK=bEr,JK=vEr,ZK=wEr,XK=xEr,eG=_Er,tG=TEr,rG=IEr,nG=EEr,aG=CEr,iG=kEr,sG=AEr,oG=PEr,cG=SEr,uG=REr,lG=MEr,dG=NEr,pG=BEr,hG=DEr,fG=LEr,mG=OEr,yG=qEr,gG=FEr,bG=WEr,vG=UEr,wG=HEr,xG=jEr,_G=zEr,TG=KEr,IG=GEr,EG=VEr,CG=YEr,kG=$Er,AG=QEr,PG=JEr,SG=ZEr,zv=XEr,aCr=[Sv,Rv,Dv,Hv,Fv,jv,Mv,Ov,Nv,Bv,Lv,qv,Uv,Wv,zv],iCr=[Sv,D9,L9,O9,Rv,q9,F9,W9,U9,Mv,H9,j9,z9,K9,G9,V9,Y9,$9,Q9,J9,Z9,X9,eM,tM,rM,nM,aM,iM,sM,oM,cM,uM,lM,dM,pM,hM,fM,mM,yM,gM,bM,vM,wM,xM,_M,TM,IM,EM,CM,kM,AM,PM,SM,RM,Nv,MM,NM,BM,DM,LM,OM,qM,FM,WM,UM,HM,jM,zM,KM,GM,VM,YM,$M,QM,JM,ZM,XM,eN,tN,rN,nN,aN,iN,sN,oN,cN,uN,lN,dN,pN,hN,fN,mN,Bv,yN,gN,bN,vN,wN,xN,_N,TN,IN,EN,CN,kN,AN,PN,SN,RN,MN,NN,BN,DN,LN,ON,qN,FN,WN,UN,HN,jN,zN,Dv,KN,GN,VN,YN,$N,QN,JN,ZN,XN,eB,tB,rB,nB,aB,iB,sB,oB,cB,uB,lB,dB,pB,hB,fB,mB,yB,gB,bB,vB,Lv,wB,xB,_B,TB,IB,EB,CB,kB,AB,PB,SB,RB,MB,NB,BB,DB,LB,OB,qB,FB,WB,UB,HB,jB,zB,KB,GB,VB,YB,$B,QB,Ov,JB,ZB,XB,eD,tD,rD,nD,aD,iD,sD,oD,cD,uD,lD,dD,pD,hD,fD,mD,yD,gD,bD,vD,wD,xD,_D,TD,ID,ED,CD,kD,AD,PD,SD,RD,MD,ND,BD,DD,LD,OD,qD,FD,WD,UD,HD,jD,zD,KD,GD,VD,YD,$D,QD,JD,ZD,XD,eL,tL,rL,nL,aL,iL,sL,oL,cL,uL,lL,dL,pL,hL,fL,mL,yL,gL,bL,vL,wL,xL,_L,TL,IL,EL,CL,kL,AL,PL,SL,RL,ML,NL,BL,DL,LL,OL,qL,FL,WL,UL,HL,jL,zL,KL,GL,VL,YL,$L,QL,JL,ZL,XL,eO,tO,rO,nO,aO,iO,sO,oO,cO,uO,lO,dO,pO,hO,fO,mO,yO,gO,bO,vO,wO,xO,_O,TO,IO,EO,CO,kO,AO,PO,SO,RO,MO,NO,BO,DO,LO,OO,qO,FO,WO,UO,HO,jO,zO,KO,GO,VO,YO,$O,QO,JO,ZO,XO,eq,tq,rq,nq,aq,iq,sq,oq,cq,uq,lq,dq,pq,hq,fq,mq,yq,gq,bq,vq,wq,xq,_q,Tq,Iq,Eq,Cq,kq,Aq,Pq,Sq,Rq,Mq,Nq,Bq,Dq,Lq,Oq,qq,Fq,Wq,Uq,Hq,jq,zq,Kq,Gq,Vq,Yq,$q,Qq,Jq,Zq,Xq,eF,tF,rF,nF,aF,iF,sF,oF,cF,uF,lF,qv,dF,pF,hF,fF,mF,yF,gF,bF,vF,wF,xF,_F,TF,IF,EF,CF,kF,AF,PF,SF,RF,MF,NF,BF,DF,LF,OF,qF,FF,WF,UF,HF,jF,zF,KF,GF,VF,YF,$F,QF,JF,ZF,XF,eW,tW,rW,nW,aW,iW,sW,oW,cW,uW,lW,dW,pW,hW,fW,mW,yW,gW,bW,vW,wW,xW,_W,TW,IW,EW,CW,kW,AW,PW,SW,RW,MW,NW,BW,DW,LW,OW,qW,FW,WW,UW,HW,jW,zW,KW,GW,VW,YW,$W,QW,JW,ZW,XW,eU,tU,rU,nU,aU,iU,sU,oU,cU,uU,lU,dU,pU,hU,fU,mU,yU,gU,bU,vU,wU,xU,_U,TU,IU,EU,CU,kU,AU,PU,SU,RU,MU,NU,BU,DU,LU,OU,qU,FU,WU,UU,HU,jU,zU,KU,GU,VU,YU,$U,QU,JU,ZU,XU,eH,tH,rH,nH,aH,iH,sH,oH,cH,uH,lH,dH,pH,hH,fH,mH,yH,gH,bH,vH,wH,xH,_H,Fv,TH,IH,EH,CH,kH,Wv,Uv,AH,PH,SH,RH,MH,NH,BH,DH,LH,OH,qH,FH,WH,UH,HH,jH,zH,KH,GH,VH,YH,$H,QH,JH,ZH,XH,ej,tj,rj,nj,aj,ij,sj,oj,cj,uj,lj,dj,pj,hj,fj,mj,yj,gj,Hv,bj,vj,wj,xj,_j,Tj,Ij,Ej,Cj,kj,Aj,Pj,Sj,Rj,Mj,Nj,Bj,Dj,Lj,Oj,qj,Fj,Wj,Uj,Hj,jj,zj,Kj,Gj,Vj,Yj,$j,Qj,Jj,Zj,Xj,ez,tz,rz,nz,az,iz,sz,oz,cz,uz,lz,dz,pz,hz,fz,mz,yz,gz,bz,vz,wz,xz,_z,Tz,Iz,Ez,Cz,kz,Az,Pz,Sz,Rz,Mz,Nz,Bz,Dz,Lz,Oz,jv,qz,Fz,Wz,Uz,Hz,jz,zz,Kz,Gz,Vz,Yz,$z,Qz,Jz,Zz,Xz,eK,tK,rK,nK,aK,iK,sK,oK,cK,uK,lK,dK,pK,hK,fK,mK,yK,gK,bK,vK,wK,xK,_K,TK,IK,EK,CK,kK,AK,PK,SK,RK,MK,NK,BK,DK,LK,OK,qK,FK,WK,UK,HK,jK,zK,KK,GK,VK,YK,$K,QK,JK,ZK,XK,eG,tG,rG,nG,aG,iG,sG,oG,cG,uG,lG,dG,pG,hG,fG,mG,yG,gG,bG,vG,wG,xG,_G,TG,IG,EG,CG,kG,AG,PG,SG,zv],S_e={[Sv.chainId]:Sv,[D9.chainId]:D9,[L9.chainId]:L9,[O9.chainId]:O9,[Rv.chainId]:Rv,[q9.chainId]:q9,[F9.chainId]:F9,[W9.chainId]:W9,[U9.chainId]:U9,[Mv.chainId]:Mv,[H9.chainId]:H9,[j9.chainId]:j9,[z9.chainId]:z9,[K9.chainId]:K9,[G9.chainId]:G9,[V9.chainId]:V9,[Y9.chainId]:Y9,[$9.chainId]:$9,[Q9.chainId]:Q9,[J9.chainId]:J9,[Z9.chainId]:Z9,[X9.chainId]:X9,[eM.chainId]:eM,[tM.chainId]:tM,[rM.chainId]:rM,[nM.chainId]:nM,[aM.chainId]:aM,[iM.chainId]:iM,[sM.chainId]:sM,[oM.chainId]:oM,[cM.chainId]:cM,[uM.chainId]:uM,[lM.chainId]:lM,[dM.chainId]:dM,[pM.chainId]:pM,[hM.chainId]:hM,[fM.chainId]:fM,[mM.chainId]:mM,[yM.chainId]:yM,[gM.chainId]:gM,[bM.chainId]:bM,[vM.chainId]:vM,[wM.chainId]:wM,[xM.chainId]:xM,[_M.chainId]:_M,[TM.chainId]:TM,[IM.chainId]:IM,[EM.chainId]:EM,[CM.chainId]:CM,[kM.chainId]:kM,[AM.chainId]:AM,[PM.chainId]:PM,[SM.chainId]:SM,[RM.chainId]:RM,[Nv.chainId]:Nv,[MM.chainId]:MM,[NM.chainId]:NM,[BM.chainId]:BM,[DM.chainId]:DM,[LM.chainId]:LM,[OM.chainId]:OM,[qM.chainId]:qM,[FM.chainId]:FM,[WM.chainId]:WM,[UM.chainId]:UM,[HM.chainId]:HM,[jM.chainId]:jM,[zM.chainId]:zM,[KM.chainId]:KM,[GM.chainId]:GM,[VM.chainId]:VM,[YM.chainId]:YM,[$M.chainId]:$M,[QM.chainId]:QM,[JM.chainId]:JM,[ZM.chainId]:ZM,[XM.chainId]:XM,[eN.chainId]:eN,[tN.chainId]:tN,[rN.chainId]:rN,[nN.chainId]:nN,[aN.chainId]:aN,[iN.chainId]:iN,[sN.chainId]:sN,[oN.chainId]:oN,[cN.chainId]:cN,[uN.chainId]:uN,[lN.chainId]:lN,[dN.chainId]:dN,[pN.chainId]:pN,[hN.chainId]:hN,[fN.chainId]:fN,[mN.chainId]:mN,[Bv.chainId]:Bv,[yN.chainId]:yN,[gN.chainId]:gN,[bN.chainId]:bN,[vN.chainId]:vN,[wN.chainId]:wN,[xN.chainId]:xN,[_N.chainId]:_N,[TN.chainId]:TN,[IN.chainId]:IN,[EN.chainId]:EN,[CN.chainId]:CN,[kN.chainId]:kN,[AN.chainId]:AN,[PN.chainId]:PN,[SN.chainId]:SN,[RN.chainId]:RN,[MN.chainId]:MN,[NN.chainId]:NN,[BN.chainId]:BN,[DN.chainId]:DN,[LN.chainId]:LN,[ON.chainId]:ON,[qN.chainId]:qN,[FN.chainId]:FN,[WN.chainId]:WN,[UN.chainId]:UN,[HN.chainId]:HN,[jN.chainId]:jN,[zN.chainId]:zN,[Dv.chainId]:Dv,[KN.chainId]:KN,[GN.chainId]:GN,[VN.chainId]:VN,[YN.chainId]:YN,[$N.chainId]:$N,[QN.chainId]:QN,[JN.chainId]:JN,[ZN.chainId]:ZN,[XN.chainId]:XN,[eB.chainId]:eB,[tB.chainId]:tB,[rB.chainId]:rB,[nB.chainId]:nB,[aB.chainId]:aB,[iB.chainId]:iB,[sB.chainId]:sB,[oB.chainId]:oB,[cB.chainId]:cB,[uB.chainId]:uB,[lB.chainId]:lB,[dB.chainId]:dB,[pB.chainId]:pB,[hB.chainId]:hB,[fB.chainId]:fB,[mB.chainId]:mB,[yB.chainId]:yB,[gB.chainId]:gB,[bB.chainId]:bB,[vB.chainId]:vB,[Lv.chainId]:Lv,[wB.chainId]:wB,[xB.chainId]:xB,[_B.chainId]:_B,[TB.chainId]:TB,[IB.chainId]:IB,[EB.chainId]:EB,[CB.chainId]:CB,[kB.chainId]:kB,[AB.chainId]:AB,[PB.chainId]:PB,[SB.chainId]:SB,[RB.chainId]:RB,[MB.chainId]:MB,[NB.chainId]:NB,[BB.chainId]:BB,[DB.chainId]:DB,[LB.chainId]:LB,[OB.chainId]:OB,[qB.chainId]:qB,[FB.chainId]:FB,[WB.chainId]:WB,[UB.chainId]:UB,[HB.chainId]:HB,[jB.chainId]:jB,[zB.chainId]:zB,[KB.chainId]:KB,[GB.chainId]:GB,[VB.chainId]:VB,[YB.chainId]:YB,[$B.chainId]:$B,[QB.chainId]:QB,[Ov.chainId]:Ov,[JB.chainId]:JB,[ZB.chainId]:ZB,[XB.chainId]:XB,[eD.chainId]:eD,[tD.chainId]:tD,[rD.chainId]:rD,[nD.chainId]:nD,[aD.chainId]:aD,[iD.chainId]:iD,[sD.chainId]:sD,[oD.chainId]:oD,[cD.chainId]:cD,[uD.chainId]:uD,[lD.chainId]:lD,[dD.chainId]:dD,[pD.chainId]:pD,[hD.chainId]:hD,[fD.chainId]:fD,[mD.chainId]:mD,[yD.chainId]:yD,[gD.chainId]:gD,[bD.chainId]:bD,[vD.chainId]:vD,[wD.chainId]:wD,[xD.chainId]:xD,[_D.chainId]:_D,[TD.chainId]:TD,[ID.chainId]:ID,[ED.chainId]:ED,[CD.chainId]:CD,[kD.chainId]:kD,[AD.chainId]:AD,[PD.chainId]:PD,[SD.chainId]:SD,[RD.chainId]:RD,[MD.chainId]:MD,[ND.chainId]:ND,[BD.chainId]:BD,[DD.chainId]:DD,[LD.chainId]:LD,[OD.chainId]:OD,[qD.chainId]:qD,[FD.chainId]:FD,[WD.chainId]:WD,[UD.chainId]:UD,[HD.chainId]:HD,[jD.chainId]:jD,[zD.chainId]:zD,[KD.chainId]:KD,[GD.chainId]:GD,[VD.chainId]:VD,[YD.chainId]:YD,[$D.chainId]:$D,[QD.chainId]:QD,[JD.chainId]:JD,[ZD.chainId]:ZD,[XD.chainId]:XD,[eL.chainId]:eL,[tL.chainId]:tL,[rL.chainId]:rL,[nL.chainId]:nL,[aL.chainId]:aL,[iL.chainId]:iL,[sL.chainId]:sL,[oL.chainId]:oL,[cL.chainId]:cL,[uL.chainId]:uL,[lL.chainId]:lL,[dL.chainId]:dL,[pL.chainId]:pL,[hL.chainId]:hL,[fL.chainId]:fL,[mL.chainId]:mL,[yL.chainId]:yL,[gL.chainId]:gL,[bL.chainId]:bL,[vL.chainId]:vL,[wL.chainId]:wL,[xL.chainId]:xL,[_L.chainId]:_L,[TL.chainId]:TL,[IL.chainId]:IL,[EL.chainId]:EL,[CL.chainId]:CL,[kL.chainId]:kL,[AL.chainId]:AL,[PL.chainId]:PL,[SL.chainId]:SL,[RL.chainId]:RL,[ML.chainId]:ML,[NL.chainId]:NL,[BL.chainId]:BL,[DL.chainId]:DL,[LL.chainId]:LL,[OL.chainId]:OL,[qL.chainId]:qL,[FL.chainId]:FL,[WL.chainId]:WL,[UL.chainId]:UL,[HL.chainId]:HL,[jL.chainId]:jL,[zL.chainId]:zL,[KL.chainId]:KL,[GL.chainId]:GL,[VL.chainId]:VL,[YL.chainId]:YL,[$L.chainId]:$L,[QL.chainId]:QL,[JL.chainId]:JL,[ZL.chainId]:ZL,[XL.chainId]:XL,[eO.chainId]:eO,[tO.chainId]:tO,[rO.chainId]:rO,[nO.chainId]:nO,[aO.chainId]:aO,[iO.chainId]:iO,[sO.chainId]:sO,[oO.chainId]:oO,[cO.chainId]:cO,[uO.chainId]:uO,[lO.chainId]:lO,[dO.chainId]:dO,[pO.chainId]:pO,[hO.chainId]:hO,[fO.chainId]:fO,[mO.chainId]:mO,[yO.chainId]:yO,[gO.chainId]:gO,[bO.chainId]:bO,[vO.chainId]:vO,[wO.chainId]:wO,[xO.chainId]:xO,[_O.chainId]:_O,[TO.chainId]:TO,[IO.chainId]:IO,[EO.chainId]:EO,[CO.chainId]:CO,[kO.chainId]:kO,[AO.chainId]:AO,[PO.chainId]:PO,[SO.chainId]:SO,[RO.chainId]:RO,[MO.chainId]:MO,[NO.chainId]:NO,[BO.chainId]:BO,[DO.chainId]:DO,[LO.chainId]:LO,[OO.chainId]:OO,[qO.chainId]:qO,[FO.chainId]:FO,[WO.chainId]:WO,[UO.chainId]:UO,[HO.chainId]:HO,[jO.chainId]:jO,[zO.chainId]:zO,[KO.chainId]:KO,[GO.chainId]:GO,[VO.chainId]:VO,[YO.chainId]:YO,[$O.chainId]:$O,[QO.chainId]:QO,[JO.chainId]:JO,[ZO.chainId]:ZO,[XO.chainId]:XO,[eq.chainId]:eq,[tq.chainId]:tq,[rq.chainId]:rq,[nq.chainId]:nq,[aq.chainId]:aq,[iq.chainId]:iq,[sq.chainId]:sq,[oq.chainId]:oq,[cq.chainId]:cq,[uq.chainId]:uq,[lq.chainId]:lq,[dq.chainId]:dq,[pq.chainId]:pq,[hq.chainId]:hq,[fq.chainId]:fq,[mq.chainId]:mq,[yq.chainId]:yq,[gq.chainId]:gq,[bq.chainId]:bq,[vq.chainId]:vq,[wq.chainId]:wq,[xq.chainId]:xq,[_q.chainId]:_q,[Tq.chainId]:Tq,[Iq.chainId]:Iq,[Eq.chainId]:Eq,[Cq.chainId]:Cq,[kq.chainId]:kq,[Aq.chainId]:Aq,[Pq.chainId]:Pq,[Sq.chainId]:Sq,[Rq.chainId]:Rq,[Mq.chainId]:Mq,[Nq.chainId]:Nq,[Bq.chainId]:Bq,[Dq.chainId]:Dq,[Lq.chainId]:Lq,[Oq.chainId]:Oq,[qq.chainId]:qq,[Fq.chainId]:Fq,[Wq.chainId]:Wq,[Uq.chainId]:Uq,[Hq.chainId]:Hq,[jq.chainId]:jq,[zq.chainId]:zq,[Kq.chainId]:Kq,[Gq.chainId]:Gq,[Vq.chainId]:Vq,[Yq.chainId]:Yq,[$q.chainId]:$q,[Qq.chainId]:Qq,[Jq.chainId]:Jq,[Zq.chainId]:Zq,[Xq.chainId]:Xq,[eF.chainId]:eF,[tF.chainId]:tF,[rF.chainId]:rF,[nF.chainId]:nF,[aF.chainId]:aF,[iF.chainId]:iF,[sF.chainId]:sF,[oF.chainId]:oF,[cF.chainId]:cF,[uF.chainId]:uF,[lF.chainId]:lF,[qv.chainId]:qv,[dF.chainId]:dF,[pF.chainId]:pF,[hF.chainId]:hF,[fF.chainId]:fF,[mF.chainId]:mF,[yF.chainId]:yF,[gF.chainId]:gF,[bF.chainId]:bF,[vF.chainId]:vF,[wF.chainId]:wF,[xF.chainId]:xF,[_F.chainId]:_F,[TF.chainId]:TF,[IF.chainId]:IF,[EF.chainId]:EF,[CF.chainId]:CF,[kF.chainId]:kF,[AF.chainId]:AF,[PF.chainId]:PF,[SF.chainId]:SF,[RF.chainId]:RF,[MF.chainId]:MF,[NF.chainId]:NF,[BF.chainId]:BF,[DF.chainId]:DF,[LF.chainId]:LF,[OF.chainId]:OF,[qF.chainId]:qF,[FF.chainId]:FF,[WF.chainId]:WF,[UF.chainId]:UF,[HF.chainId]:HF,[jF.chainId]:jF,[zF.chainId]:zF,[KF.chainId]:KF,[GF.chainId]:GF,[VF.chainId]:VF,[YF.chainId]:YF,[$F.chainId]:$F,[QF.chainId]:QF,[JF.chainId]:JF,[ZF.chainId]:ZF,[XF.chainId]:XF,[eW.chainId]:eW,[tW.chainId]:tW,[rW.chainId]:rW,[nW.chainId]:nW,[aW.chainId]:aW,[iW.chainId]:iW,[sW.chainId]:sW,[oW.chainId]:oW,[cW.chainId]:cW,[uW.chainId]:uW,[lW.chainId]:lW,[dW.chainId]:dW,[pW.chainId]:pW,[hW.chainId]:hW,[fW.chainId]:fW,[mW.chainId]:mW,[yW.chainId]:yW,[gW.chainId]:gW,[bW.chainId]:bW,[vW.chainId]:vW,[wW.chainId]:wW,[xW.chainId]:xW,[_W.chainId]:_W,[TW.chainId]:TW,[IW.chainId]:IW,[EW.chainId]:EW,[CW.chainId]:CW,[kW.chainId]:kW,[AW.chainId]:AW,[PW.chainId]:PW,[SW.chainId]:SW,[RW.chainId]:RW,[MW.chainId]:MW,[NW.chainId]:NW,[BW.chainId]:BW,[DW.chainId]:DW,[LW.chainId]:LW,[OW.chainId]:OW,[qW.chainId]:qW,[FW.chainId]:FW,[WW.chainId]:WW,[UW.chainId]:UW,[HW.chainId]:HW,[jW.chainId]:jW,[zW.chainId]:zW,[KW.chainId]:KW,[GW.chainId]:GW,[VW.chainId]:VW,[YW.chainId]:YW,[$W.chainId]:$W,[QW.chainId]:QW,[JW.chainId]:JW,[ZW.chainId]:ZW,[XW.chainId]:XW,[eU.chainId]:eU,[tU.chainId]:tU,[rU.chainId]:rU,[nU.chainId]:nU,[aU.chainId]:aU,[iU.chainId]:iU,[sU.chainId]:sU,[oU.chainId]:oU,[cU.chainId]:cU,[uU.chainId]:uU,[lU.chainId]:lU,[dU.chainId]:dU,[pU.chainId]:pU,[hU.chainId]:hU,[fU.chainId]:fU,[mU.chainId]:mU,[yU.chainId]:yU,[gU.chainId]:gU,[bU.chainId]:bU,[vU.chainId]:vU,[wU.chainId]:wU,[xU.chainId]:xU,[_U.chainId]:_U,[TU.chainId]:TU,[IU.chainId]:IU,[EU.chainId]:EU,[CU.chainId]:CU,[kU.chainId]:kU,[AU.chainId]:AU,[PU.chainId]:PU,[SU.chainId]:SU,[RU.chainId]:RU,[MU.chainId]:MU,[NU.chainId]:NU,[BU.chainId]:BU,[DU.chainId]:DU,[LU.chainId]:LU,[OU.chainId]:OU,[qU.chainId]:qU,[FU.chainId]:FU,[WU.chainId]:WU,[UU.chainId]:UU,[HU.chainId]:HU,[jU.chainId]:jU,[zU.chainId]:zU,[KU.chainId]:KU,[GU.chainId]:GU,[VU.chainId]:VU,[YU.chainId]:YU,[$U.chainId]:$U,[QU.chainId]:QU,[JU.chainId]:JU,[ZU.chainId]:ZU,[XU.chainId]:XU,[eH.chainId]:eH,[tH.chainId]:tH,[rH.chainId]:rH,[nH.chainId]:nH,[aH.chainId]:aH,[iH.chainId]:iH,[sH.chainId]:sH,[oH.chainId]:oH,[cH.chainId]:cH,[uH.chainId]:uH,[lH.chainId]:lH,[dH.chainId]:dH,[pH.chainId]:pH,[hH.chainId]:hH,[fH.chainId]:fH,[mH.chainId]:mH,[yH.chainId]:yH,[gH.chainId]:gH,[bH.chainId]:bH,[vH.chainId]:vH,[wH.chainId]:wH,[xH.chainId]:xH,[_H.chainId]:_H,[Fv.chainId]:Fv,[TH.chainId]:TH,[IH.chainId]:IH,[EH.chainId]:EH,[CH.chainId]:CH,[kH.chainId]:kH,[Wv.chainId]:Wv,[Uv.chainId]:Uv,[AH.chainId]:AH,[PH.chainId]:PH,[SH.chainId]:SH,[RH.chainId]:RH,[MH.chainId]:MH,[NH.chainId]:NH,[BH.chainId]:BH,[DH.chainId]:DH,[LH.chainId]:LH,[OH.chainId]:OH,[qH.chainId]:qH,[FH.chainId]:FH,[WH.chainId]:WH,[UH.chainId]:UH,[HH.chainId]:HH,[jH.chainId]:jH,[zH.chainId]:zH,[KH.chainId]:KH,[GH.chainId]:GH,[VH.chainId]:VH,[YH.chainId]:YH,[$H.chainId]:$H,[QH.chainId]:QH,[JH.chainId]:JH,[ZH.chainId]:ZH,[XH.chainId]:XH,[ej.chainId]:ej,[tj.chainId]:tj,[rj.chainId]:rj,[nj.chainId]:nj,[aj.chainId]:aj,[ij.chainId]:ij,[sj.chainId]:sj,[oj.chainId]:oj,[cj.chainId]:cj,[uj.chainId]:uj,[lj.chainId]:lj,[dj.chainId]:dj,[pj.chainId]:pj,[hj.chainId]:hj,[fj.chainId]:fj,[mj.chainId]:mj,[yj.chainId]:yj,[gj.chainId]:gj,[Hv.chainId]:Hv,[bj.chainId]:bj,[vj.chainId]:vj,[wj.chainId]:wj,[xj.chainId]:xj,[_j.chainId]:_j,[Tj.chainId]:Tj,[Ij.chainId]:Ij,[Ej.chainId]:Ej,[Cj.chainId]:Cj,[kj.chainId]:kj,[Aj.chainId]:Aj,[Pj.chainId]:Pj,[Sj.chainId]:Sj,[Rj.chainId]:Rj,[Mj.chainId]:Mj,[Nj.chainId]:Nj,[Bj.chainId]:Bj,[Dj.chainId]:Dj,[Lj.chainId]:Lj,[Oj.chainId]:Oj,[qj.chainId]:qj,[Fj.chainId]:Fj,[Wj.chainId]:Wj,[Uj.chainId]:Uj,[Hj.chainId]:Hj,[jj.chainId]:jj,[zj.chainId]:zj,[Kj.chainId]:Kj,[Gj.chainId]:Gj,[Vj.chainId]:Vj,[Yj.chainId]:Yj,[$j.chainId]:$j,[Qj.chainId]:Qj,[Jj.chainId]:Jj,[Zj.chainId]:Zj,[Xj.chainId]:Xj,[ez.chainId]:ez,[tz.chainId]:tz,[rz.chainId]:rz,[nz.chainId]:nz,[az.chainId]:az,[iz.chainId]:iz,[sz.chainId]:sz,[oz.chainId]:oz,[cz.chainId]:cz,[uz.chainId]:uz,[lz.chainId]:lz,[dz.chainId]:dz,[pz.chainId]:pz,[hz.chainId]:hz,[fz.chainId]:fz,[mz.chainId]:mz,[yz.chainId]:yz,[gz.chainId]:gz,[bz.chainId]:bz,[vz.chainId]:vz,[wz.chainId]:wz,[xz.chainId]:xz,[_z.chainId]:_z,[Tz.chainId]:Tz,[Iz.chainId]:Iz,[Ez.chainId]:Ez,[Cz.chainId]:Cz,[kz.chainId]:kz,[Az.chainId]:Az,[Pz.chainId]:Pz,[Sz.chainId]:Sz,[Rz.chainId]:Rz,[Mz.chainId]:Mz,[Nz.chainId]:Nz,[Bz.chainId]:Bz,[Dz.chainId]:Dz,[Lz.chainId]:Lz,[Oz.chainId]:Oz,[jv.chainId]:jv,[qz.chainId]:qz,[Fz.chainId]:Fz,[Wz.chainId]:Wz,[Uz.chainId]:Uz,[Hz.chainId]:Hz,[jz.chainId]:jz,[zz.chainId]:zz,[Kz.chainId]:Kz,[Gz.chainId]:Gz,[Vz.chainId]:Vz,[Yz.chainId]:Yz,[$z.chainId]:$z,[Qz.chainId]:Qz,[Jz.chainId]:Jz,[Zz.chainId]:Zz,[Xz.chainId]:Xz,[eK.chainId]:eK,[tK.chainId]:tK,[rK.chainId]:rK,[nK.chainId]:nK,[aK.chainId]:aK,[iK.chainId]:iK,[sK.chainId]:sK,[oK.chainId]:oK,[cK.chainId]:cK,[uK.chainId]:uK,[lK.chainId]:lK,[dK.chainId]:dK,[pK.chainId]:pK,[hK.chainId]:hK,[fK.chainId]:fK,[mK.chainId]:mK,[yK.chainId]:yK,[gK.chainId]:gK,[bK.chainId]:bK,[vK.chainId]:vK,[wK.chainId]:wK,[xK.chainId]:xK,[_K.chainId]:_K,[TK.chainId]:TK,[IK.chainId]:IK,[EK.chainId]:EK,[CK.chainId]:CK,[kK.chainId]:kK,[AK.chainId]:AK,[PK.chainId]:PK,[SK.chainId]:SK,[RK.chainId]:RK,[MK.chainId]:MK,[NK.chainId]:NK,[BK.chainId]:BK,[DK.chainId]:DK,[LK.chainId]:LK,[OK.chainId]:OK,[qK.chainId]:qK,[FK.chainId]:FK,[WK.chainId]:WK,[UK.chainId]:UK,[HK.chainId]:HK,[jK.chainId]:jK,[zK.chainId]:zK,[KK.chainId]:KK,[GK.chainId]:GK,[VK.chainId]:VK,[YK.chainId]:YK,[$K.chainId]:$K,[QK.chainId]:QK,[JK.chainId]:JK,[ZK.chainId]:ZK,[XK.chainId]:XK,[eG.chainId]:eG,[tG.chainId]:tG,[rG.chainId]:rG,[nG.chainId]:nG,[aG.chainId]:aG,[iG.chainId]:iG,[sG.chainId]:sG,[oG.chainId]:oG,[cG.chainId]:cG,[uG.chainId]:uG,[lG.chainId]:lG,[dG.chainId]:dG,[pG.chainId]:pG,[hG.chainId]:hG,[fG.chainId]:fG,[mG.chainId]:mG,[yG.chainId]:yG,[gG.chainId]:gG,[bG.chainId]:bG,[vG.chainId]:vG,[wG.chainId]:wG,[xG.chainId]:xG,[_G.chainId]:_G,[TG.chainId]:TG,[IG.chainId]:IG,[EG.chainId]:EG,[CG.chainId]:CG,[kG.chainId]:kG,[AG.chainId]:AG,[PG.chainId]:PG,[SG.chainId]:SG,[zv.chainId]:zv},wet={[Sv.slug]:Sv.chainId,[D9.slug]:D9.chainId,[L9.slug]:L9.chainId,[O9.slug]:O9.chainId,[Rv.slug]:Rv.chainId,[q9.slug]:q9.chainId,[F9.slug]:F9.chainId,[W9.slug]:W9.chainId,[U9.slug]:U9.chainId,[Mv.slug]:Mv.chainId,[H9.slug]:H9.chainId,[j9.slug]:j9.chainId,[z9.slug]:z9.chainId,[K9.slug]:K9.chainId,[G9.slug]:G9.chainId,[V9.slug]:V9.chainId,[Y9.slug]:Y9.chainId,[$9.slug]:$9.chainId,[Q9.slug]:Q9.chainId,[J9.slug]:J9.chainId,[Z9.slug]:Z9.chainId,[X9.slug]:X9.chainId,[eM.slug]:eM.chainId,[tM.slug]:tM.chainId,[rM.slug]:rM.chainId,[nM.slug]:nM.chainId,[aM.slug]:aM.chainId,[iM.slug]:iM.chainId,[sM.slug]:sM.chainId,[oM.slug]:oM.chainId,[cM.slug]:cM.chainId,[uM.slug]:uM.chainId,[lM.slug]:lM.chainId,[dM.slug]:dM.chainId,[pM.slug]:pM.chainId,[hM.slug]:hM.chainId,[fM.slug]:fM.chainId,[mM.slug]:mM.chainId,[yM.slug]:yM.chainId,[gM.slug]:gM.chainId,[bM.slug]:bM.chainId,[vM.slug]:vM.chainId,[wM.slug]:wM.chainId,[xM.slug]:xM.chainId,[_M.slug]:_M.chainId,[TM.slug]:TM.chainId,[IM.slug]:IM.chainId,[EM.slug]:EM.chainId,[CM.slug]:CM.chainId,[kM.slug]:kM.chainId,[AM.slug]:AM.chainId,[PM.slug]:PM.chainId,[SM.slug]:SM.chainId,[RM.slug]:RM.chainId,[Nv.slug]:Nv.chainId,[MM.slug]:MM.chainId,[NM.slug]:NM.chainId,[BM.slug]:BM.chainId,[DM.slug]:DM.chainId,[LM.slug]:LM.chainId,[OM.slug]:OM.chainId,[qM.slug]:qM.chainId,[FM.slug]:FM.chainId,[WM.slug]:WM.chainId,[UM.slug]:UM.chainId,[HM.slug]:HM.chainId,[jM.slug]:jM.chainId,[zM.slug]:zM.chainId,[KM.slug]:KM.chainId,[GM.slug]:GM.chainId,[VM.slug]:VM.chainId,[YM.slug]:YM.chainId,[$M.slug]:$M.chainId,[QM.slug]:QM.chainId,[JM.slug]:JM.chainId,[ZM.slug]:ZM.chainId,[XM.slug]:XM.chainId,[eN.slug]:eN.chainId,[tN.slug]:tN.chainId,[rN.slug]:rN.chainId,[nN.slug]:nN.chainId,[aN.slug]:aN.chainId,[iN.slug]:iN.chainId,[sN.slug]:sN.chainId,[oN.slug]:oN.chainId,[cN.slug]:cN.chainId,[uN.slug]:uN.chainId,[lN.slug]:lN.chainId,[dN.slug]:dN.chainId,[pN.slug]:pN.chainId,[hN.slug]:hN.chainId,[fN.slug]:fN.chainId,[mN.slug]:mN.chainId,[Bv.slug]:Bv.chainId,[yN.slug]:yN.chainId,[gN.slug]:gN.chainId,[bN.slug]:bN.chainId,[vN.slug]:vN.chainId,[wN.slug]:wN.chainId,[xN.slug]:xN.chainId,[_N.slug]:_N.chainId,[TN.slug]:TN.chainId,[IN.slug]:IN.chainId,[EN.slug]:EN.chainId,[CN.slug]:CN.chainId,[kN.slug]:kN.chainId,[AN.slug]:AN.chainId,[PN.slug]:PN.chainId,[SN.slug]:SN.chainId,[RN.slug]:RN.chainId,[MN.slug]:MN.chainId,[NN.slug]:NN.chainId,[BN.slug]:BN.chainId,[DN.slug]:DN.chainId,[LN.slug]:LN.chainId,[ON.slug]:ON.chainId,[qN.slug]:qN.chainId,[FN.slug]:FN.chainId,[WN.slug]:WN.chainId,[UN.slug]:UN.chainId,[HN.slug]:HN.chainId,[jN.slug]:jN.chainId,[zN.slug]:zN.chainId,[Dv.slug]:Dv.chainId,[KN.slug]:KN.chainId,[GN.slug]:GN.chainId,[VN.slug]:VN.chainId,[YN.slug]:YN.chainId,[$N.slug]:$N.chainId,[QN.slug]:QN.chainId,[JN.slug]:JN.chainId,[ZN.slug]:ZN.chainId,[XN.slug]:XN.chainId,[eB.slug]:eB.chainId,[tB.slug]:tB.chainId,[rB.slug]:rB.chainId,[nB.slug]:nB.chainId,[aB.slug]:aB.chainId,[iB.slug]:iB.chainId,[sB.slug]:sB.chainId,[oB.slug]:oB.chainId,[cB.slug]:cB.chainId,[uB.slug]:uB.chainId,[lB.slug]:lB.chainId,[dB.slug]:dB.chainId,[pB.slug]:pB.chainId,[hB.slug]:hB.chainId,[fB.slug]:fB.chainId,[mB.slug]:mB.chainId,[yB.slug]:yB.chainId,[gB.slug]:gB.chainId,[bB.slug]:bB.chainId,[vB.slug]:vB.chainId,[Lv.slug]:Lv.chainId,[wB.slug]:wB.chainId,[xB.slug]:xB.chainId,[_B.slug]:_B.chainId,[TB.slug]:TB.chainId,[IB.slug]:IB.chainId,[EB.slug]:EB.chainId,[CB.slug]:CB.chainId,[kB.slug]:kB.chainId,[AB.slug]:AB.chainId,[PB.slug]:PB.chainId,[SB.slug]:SB.chainId,[RB.slug]:RB.chainId,[MB.slug]:MB.chainId,[NB.slug]:NB.chainId,[BB.slug]:BB.chainId,[DB.slug]:DB.chainId,[LB.slug]:LB.chainId,[OB.slug]:OB.chainId,[qB.slug]:qB.chainId,[FB.slug]:FB.chainId,[WB.slug]:WB.chainId,[UB.slug]:UB.chainId,[HB.slug]:HB.chainId,[jB.slug]:jB.chainId,[zB.slug]:zB.chainId,[KB.slug]:KB.chainId,[GB.slug]:GB.chainId,[VB.slug]:VB.chainId,[YB.slug]:YB.chainId,[$B.slug]:$B.chainId,[QB.slug]:QB.chainId,[Ov.slug]:Ov.chainId,[JB.slug]:JB.chainId,[ZB.slug]:ZB.chainId,[XB.slug]:XB.chainId,[eD.slug]:eD.chainId,[tD.slug]:tD.chainId,[rD.slug]:rD.chainId,[nD.slug]:nD.chainId,[aD.slug]:aD.chainId,[iD.slug]:iD.chainId,[sD.slug]:sD.chainId,[oD.slug]:oD.chainId,[cD.slug]:cD.chainId,[uD.slug]:uD.chainId,[lD.slug]:lD.chainId,[dD.slug]:dD.chainId,[pD.slug]:pD.chainId,[hD.slug]:hD.chainId,[fD.slug]:fD.chainId,[mD.slug]:mD.chainId,[yD.slug]:yD.chainId,[gD.slug]:gD.chainId,[bD.slug]:bD.chainId,[vD.slug]:vD.chainId,[wD.slug]:wD.chainId,[xD.slug]:xD.chainId,[_D.slug]:_D.chainId,[TD.slug]:TD.chainId,[ID.slug]:ID.chainId,[ED.slug]:ED.chainId,[CD.slug]:CD.chainId,[kD.slug]:kD.chainId,[AD.slug]:AD.chainId,[PD.slug]:PD.chainId,[SD.slug]:SD.chainId,[RD.slug]:RD.chainId,[MD.slug]:MD.chainId,[ND.slug]:ND.chainId,[BD.slug]:BD.chainId,[DD.slug]:DD.chainId,[LD.slug]:LD.chainId,[OD.slug]:OD.chainId,[qD.slug]:qD.chainId,[FD.slug]:FD.chainId,[WD.slug]:WD.chainId,[UD.slug]:UD.chainId,[HD.slug]:HD.chainId,[jD.slug]:jD.chainId,[zD.slug]:zD.chainId,[KD.slug]:KD.chainId,[GD.slug]:GD.chainId,[VD.slug]:VD.chainId,[YD.slug]:YD.chainId,[$D.slug]:$D.chainId,[QD.slug]:QD.chainId,[JD.slug]:JD.chainId,[ZD.slug]:ZD.chainId,[XD.slug]:XD.chainId,[eL.slug]:eL.chainId,[tL.slug]:tL.chainId,[rL.slug]:rL.chainId,[nL.slug]:nL.chainId,[aL.slug]:aL.chainId,[iL.slug]:iL.chainId,[sL.slug]:sL.chainId,[oL.slug]:oL.chainId,[cL.slug]:cL.chainId,[uL.slug]:uL.chainId,[lL.slug]:lL.chainId,[dL.slug]:dL.chainId,[pL.slug]:pL.chainId,[hL.slug]:hL.chainId,[fL.slug]:fL.chainId,[mL.slug]:mL.chainId,[yL.slug]:yL.chainId,[gL.slug]:gL.chainId,[bL.slug]:bL.chainId,[vL.slug]:vL.chainId,[wL.slug]:wL.chainId,[xL.slug]:xL.chainId,[_L.slug]:_L.chainId,[TL.slug]:TL.chainId,[IL.slug]:IL.chainId,[EL.slug]:EL.chainId,[CL.slug]:CL.chainId,[kL.slug]:kL.chainId,[AL.slug]:AL.chainId,[PL.slug]:PL.chainId,[SL.slug]:SL.chainId,[RL.slug]:RL.chainId,[ML.slug]:ML.chainId,[NL.slug]:NL.chainId,[BL.slug]:BL.chainId,[DL.slug]:DL.chainId,[LL.slug]:LL.chainId,[OL.slug]:OL.chainId,[qL.slug]:qL.chainId,[FL.slug]:FL.chainId,[WL.slug]:WL.chainId,[UL.slug]:UL.chainId,[HL.slug]:HL.chainId,[jL.slug]:jL.chainId,[zL.slug]:zL.chainId,[KL.slug]:KL.chainId,[GL.slug]:GL.chainId,[VL.slug]:VL.chainId,[YL.slug]:YL.chainId,[$L.slug]:$L.chainId,[QL.slug]:QL.chainId,[JL.slug]:JL.chainId,[ZL.slug]:ZL.chainId,[XL.slug]:XL.chainId,[eO.slug]:eO.chainId,[tO.slug]:tO.chainId,[rO.slug]:rO.chainId,[nO.slug]:nO.chainId,[aO.slug]:aO.chainId,[iO.slug]:iO.chainId,[sO.slug]:sO.chainId,[oO.slug]:oO.chainId,[cO.slug]:cO.chainId,[uO.slug]:uO.chainId,[lO.slug]:lO.chainId,[dO.slug]:dO.chainId,[pO.slug]:pO.chainId,[hO.slug]:hO.chainId,[fO.slug]:fO.chainId,[mO.slug]:mO.chainId,[yO.slug]:yO.chainId,[gO.slug]:gO.chainId,[bO.slug]:bO.chainId,[vO.slug]:vO.chainId,[wO.slug]:wO.chainId,[xO.slug]:xO.chainId,[_O.slug]:_O.chainId,[TO.slug]:TO.chainId,[IO.slug]:IO.chainId,[EO.slug]:EO.chainId,[CO.slug]:CO.chainId,[kO.slug]:kO.chainId,[AO.slug]:AO.chainId,[PO.slug]:PO.chainId,[SO.slug]:SO.chainId,[RO.slug]:RO.chainId,[MO.slug]:MO.chainId,[NO.slug]:NO.chainId,[BO.slug]:BO.chainId,[DO.slug]:DO.chainId,[LO.slug]:LO.chainId,[OO.slug]:OO.chainId,[qO.slug]:qO.chainId,[FO.slug]:FO.chainId,[WO.slug]:WO.chainId,[UO.slug]:UO.chainId,[HO.slug]:HO.chainId,[jO.slug]:jO.chainId,[zO.slug]:zO.chainId,[KO.slug]:KO.chainId,[GO.slug]:GO.chainId,[VO.slug]:VO.chainId,[YO.slug]:YO.chainId,[$O.slug]:$O.chainId,[QO.slug]:QO.chainId,[JO.slug]:JO.chainId,[ZO.slug]:ZO.chainId,[XO.slug]:XO.chainId,[eq.slug]:eq.chainId,[tq.slug]:tq.chainId,[rq.slug]:rq.chainId,[nq.slug]:nq.chainId,[aq.slug]:aq.chainId,[iq.slug]:iq.chainId,[sq.slug]:sq.chainId,[oq.slug]:oq.chainId,[cq.slug]:cq.chainId,[uq.slug]:uq.chainId,[lq.slug]:lq.chainId,[dq.slug]:dq.chainId,[pq.slug]:pq.chainId,[hq.slug]:hq.chainId,[fq.slug]:fq.chainId,[mq.slug]:mq.chainId,[yq.slug]:yq.chainId,[gq.slug]:gq.chainId,[bq.slug]:bq.chainId,[vq.slug]:vq.chainId,[wq.slug]:wq.chainId,[xq.slug]:xq.chainId,[_q.slug]:_q.chainId,[Tq.slug]:Tq.chainId,[Iq.slug]:Iq.chainId,[Eq.slug]:Eq.chainId,[Cq.slug]:Cq.chainId,[kq.slug]:kq.chainId,[Aq.slug]:Aq.chainId,[Pq.slug]:Pq.chainId,[Sq.slug]:Sq.chainId,[Rq.slug]:Rq.chainId,[Mq.slug]:Mq.chainId,[Nq.slug]:Nq.chainId,[Bq.slug]:Bq.chainId,[Dq.slug]:Dq.chainId,[Lq.slug]:Lq.chainId,[Oq.slug]:Oq.chainId,[qq.slug]:qq.chainId,[Fq.slug]:Fq.chainId,[Wq.slug]:Wq.chainId,[Uq.slug]:Uq.chainId,[Hq.slug]:Hq.chainId,[jq.slug]:jq.chainId,[zq.slug]:zq.chainId,[Kq.slug]:Kq.chainId,[Gq.slug]:Gq.chainId,[Vq.slug]:Vq.chainId,[Yq.slug]:Yq.chainId,[$q.slug]:$q.chainId,[Qq.slug]:Qq.chainId,[Jq.slug]:Jq.chainId,[Zq.slug]:Zq.chainId,[Xq.slug]:Xq.chainId,[eF.slug]:eF.chainId,[tF.slug]:tF.chainId,[rF.slug]:rF.chainId,[nF.slug]:nF.chainId,[aF.slug]:aF.chainId,[iF.slug]:iF.chainId,[sF.slug]:sF.chainId,[oF.slug]:oF.chainId,[cF.slug]:cF.chainId,[uF.slug]:uF.chainId,[lF.slug]:lF.chainId,[qv.slug]:qv.chainId,[dF.slug]:dF.chainId,[pF.slug]:pF.chainId,[hF.slug]:hF.chainId,[fF.slug]:fF.chainId,[mF.slug]:mF.chainId,[yF.slug]:yF.chainId,[gF.slug]:gF.chainId,[bF.slug]:bF.chainId,[vF.slug]:vF.chainId,[wF.slug]:wF.chainId,[xF.slug]:xF.chainId,[_F.slug]:_F.chainId,[TF.slug]:TF.chainId,[IF.slug]:IF.chainId,[EF.slug]:EF.chainId,[CF.slug]:CF.chainId,[kF.slug]:kF.chainId,[AF.slug]:AF.chainId,[PF.slug]:PF.chainId,[SF.slug]:SF.chainId,[RF.slug]:RF.chainId,[MF.slug]:MF.chainId,[NF.slug]:NF.chainId,[BF.slug]:BF.chainId,[DF.slug]:DF.chainId,[LF.slug]:LF.chainId,[OF.slug]:OF.chainId,[qF.slug]:qF.chainId,[FF.slug]:FF.chainId,[WF.slug]:WF.chainId,[UF.slug]:UF.chainId,[HF.slug]:HF.chainId,[jF.slug]:jF.chainId,[zF.slug]:zF.chainId,[KF.slug]:KF.chainId,[GF.slug]:GF.chainId,[VF.slug]:VF.chainId,[YF.slug]:YF.chainId,[$F.slug]:$F.chainId,[QF.slug]:QF.chainId,[JF.slug]:JF.chainId,[ZF.slug]:ZF.chainId,[XF.slug]:XF.chainId,[eW.slug]:eW.chainId,[tW.slug]:tW.chainId,[rW.slug]:rW.chainId,[nW.slug]:nW.chainId,[aW.slug]:aW.chainId,[iW.slug]:iW.chainId,[sW.slug]:sW.chainId,[oW.slug]:oW.chainId,[cW.slug]:cW.chainId,[uW.slug]:uW.chainId,[lW.slug]:lW.chainId,[dW.slug]:dW.chainId,[pW.slug]:pW.chainId,[hW.slug]:hW.chainId,[fW.slug]:fW.chainId,[mW.slug]:mW.chainId,[yW.slug]:yW.chainId,[gW.slug]:gW.chainId,[bW.slug]:bW.chainId,[vW.slug]:vW.chainId,[wW.slug]:wW.chainId,[xW.slug]:xW.chainId,[_W.slug]:_W.chainId,[TW.slug]:TW.chainId,[IW.slug]:IW.chainId,[EW.slug]:EW.chainId,[CW.slug]:CW.chainId,[kW.slug]:kW.chainId,[AW.slug]:AW.chainId,[PW.slug]:PW.chainId,[SW.slug]:SW.chainId,[RW.slug]:RW.chainId,[MW.slug]:MW.chainId,[NW.slug]:NW.chainId,[BW.slug]:BW.chainId,[DW.slug]:DW.chainId,[LW.slug]:LW.chainId,[OW.slug]:OW.chainId,[qW.slug]:qW.chainId,[FW.slug]:FW.chainId,[WW.slug]:WW.chainId,[UW.slug]:UW.chainId,[HW.slug]:HW.chainId,[jW.slug]:jW.chainId,[zW.slug]:zW.chainId,[KW.slug]:KW.chainId,[GW.slug]:GW.chainId,[VW.slug]:VW.chainId,[YW.slug]:YW.chainId,[$W.slug]:$W.chainId,[QW.slug]:QW.chainId,[JW.slug]:JW.chainId,[ZW.slug]:ZW.chainId,[XW.slug]:XW.chainId,[eU.slug]:eU.chainId,[tU.slug]:tU.chainId,[rU.slug]:rU.chainId,[nU.slug]:nU.chainId,[aU.slug]:aU.chainId,[iU.slug]:iU.chainId,[sU.slug]:sU.chainId,[oU.slug]:oU.chainId,[cU.slug]:cU.chainId,[uU.slug]:uU.chainId,[lU.slug]:lU.chainId,[dU.slug]:dU.chainId,[pU.slug]:pU.chainId,[hU.slug]:hU.chainId,[fU.slug]:fU.chainId,[mU.slug]:mU.chainId,[yU.slug]:yU.chainId,[gU.slug]:gU.chainId,[bU.slug]:bU.chainId,[vU.slug]:vU.chainId,[wU.slug]:wU.chainId,[xU.slug]:xU.chainId,[_U.slug]:_U.chainId,[TU.slug]:TU.chainId,[IU.slug]:IU.chainId,[EU.slug]:EU.chainId,[CU.slug]:CU.chainId,[kU.slug]:kU.chainId,[AU.slug]:AU.chainId,[PU.slug]:PU.chainId,[SU.slug]:SU.chainId,[RU.slug]:RU.chainId,[MU.slug]:MU.chainId,[NU.slug]:NU.chainId,[BU.slug]:BU.chainId,[DU.slug]:DU.chainId,[LU.slug]:LU.chainId,[OU.slug]:OU.chainId,[qU.slug]:qU.chainId,[FU.slug]:FU.chainId,[WU.slug]:WU.chainId,[UU.slug]:UU.chainId,[HU.slug]:HU.chainId,[jU.slug]:jU.chainId,[zU.slug]:zU.chainId,[KU.slug]:KU.chainId,[GU.slug]:GU.chainId,[VU.slug]:VU.chainId,[YU.slug]:YU.chainId,[$U.slug]:$U.chainId,[QU.slug]:QU.chainId,[JU.slug]:JU.chainId,[ZU.slug]:ZU.chainId,[XU.slug]:XU.chainId,[eH.slug]:eH.chainId,[tH.slug]:tH.chainId,[rH.slug]:rH.chainId,[nH.slug]:nH.chainId,[aH.slug]:aH.chainId,[iH.slug]:iH.chainId,[sH.slug]:sH.chainId,[oH.slug]:oH.chainId,[cH.slug]:cH.chainId,[uH.slug]:uH.chainId,[lH.slug]:lH.chainId,[dH.slug]:dH.chainId,[pH.slug]:pH.chainId,[hH.slug]:hH.chainId,[fH.slug]:fH.chainId,[mH.slug]:mH.chainId,[yH.slug]:yH.chainId,[gH.slug]:gH.chainId,[bH.slug]:bH.chainId,[vH.slug]:vH.chainId,[wH.slug]:wH.chainId,[xH.slug]:xH.chainId,[_H.slug]:_H.chainId,[Fv.slug]:Fv.chainId,[TH.slug]:TH.chainId,[IH.slug]:IH.chainId,[EH.slug]:EH.chainId,[CH.slug]:CH.chainId,[kH.slug]:kH.chainId,[Wv.slug]:Wv.chainId,[Uv.slug]:Uv.chainId,[AH.slug]:AH.chainId,[PH.slug]:PH.chainId,[SH.slug]:SH.chainId,[RH.slug]:RH.chainId,[MH.slug]:MH.chainId,[NH.slug]:NH.chainId,[BH.slug]:BH.chainId,[DH.slug]:DH.chainId,[LH.slug]:LH.chainId,[OH.slug]:OH.chainId,[qH.slug]:qH.chainId,[FH.slug]:FH.chainId,[WH.slug]:WH.chainId,[UH.slug]:UH.chainId,[HH.slug]:HH.chainId,[jH.slug]:jH.chainId,[zH.slug]:zH.chainId,[KH.slug]:KH.chainId,[GH.slug]:GH.chainId,[VH.slug]:VH.chainId,[YH.slug]:YH.chainId,[$H.slug]:$H.chainId,[QH.slug]:QH.chainId,[JH.slug]:JH.chainId,[ZH.slug]:ZH.chainId,[XH.slug]:XH.chainId,[ej.slug]:ej.chainId,[tj.slug]:tj.chainId,[rj.slug]:rj.chainId,[nj.slug]:nj.chainId,[aj.slug]:aj.chainId,[ij.slug]:ij.chainId,[sj.slug]:sj.chainId,[oj.slug]:oj.chainId,[cj.slug]:cj.chainId,[uj.slug]:uj.chainId,[lj.slug]:lj.chainId,[dj.slug]:dj.chainId,[pj.slug]:pj.chainId,[hj.slug]:hj.chainId,[fj.slug]:fj.chainId,[mj.slug]:mj.chainId,[yj.slug]:yj.chainId,[gj.slug]:gj.chainId,[Hv.slug]:Hv.chainId,[bj.slug]:bj.chainId,[vj.slug]:vj.chainId,[wj.slug]:wj.chainId,[xj.slug]:xj.chainId,[_j.slug]:_j.chainId,[Tj.slug]:Tj.chainId,[Ij.slug]:Ij.chainId,[Ej.slug]:Ej.chainId,[Cj.slug]:Cj.chainId,[kj.slug]:kj.chainId,[Aj.slug]:Aj.chainId,[Pj.slug]:Pj.chainId,[Sj.slug]:Sj.chainId,[Rj.slug]:Rj.chainId,[Mj.slug]:Mj.chainId,[Nj.slug]:Nj.chainId,[Bj.slug]:Bj.chainId,[Dj.slug]:Dj.chainId,[Lj.slug]:Lj.chainId,[Oj.slug]:Oj.chainId,[qj.slug]:qj.chainId,[Fj.slug]:Fj.chainId,[Wj.slug]:Wj.chainId,[Uj.slug]:Uj.chainId,[Hj.slug]:Hj.chainId,[jj.slug]:jj.chainId,[zj.slug]:zj.chainId,[Kj.slug]:Kj.chainId,[Gj.slug]:Gj.chainId,[Vj.slug]:Vj.chainId,[Yj.slug]:Yj.chainId,[$j.slug]:$j.chainId,[Qj.slug]:Qj.chainId,[Jj.slug]:Jj.chainId,[Zj.slug]:Zj.chainId,[Xj.slug]:Xj.chainId,[ez.slug]:ez.chainId,[tz.slug]:tz.chainId,[rz.slug]:rz.chainId,[nz.slug]:nz.chainId,[az.slug]:az.chainId,[iz.slug]:iz.chainId,[sz.slug]:sz.chainId,[oz.slug]:oz.chainId,[cz.slug]:cz.chainId,[uz.slug]:uz.chainId,[lz.slug]:lz.chainId,[dz.slug]:dz.chainId,[pz.slug]:pz.chainId,[hz.slug]:hz.chainId,[fz.slug]:fz.chainId,[mz.slug]:mz.chainId,[yz.slug]:yz.chainId,[gz.slug]:gz.chainId,[bz.slug]:bz.chainId,[vz.slug]:vz.chainId,[wz.slug]:wz.chainId,[xz.slug]:xz.chainId,[_z.slug]:_z.chainId,[Tz.slug]:Tz.chainId,[Iz.slug]:Iz.chainId,[Ez.slug]:Ez.chainId,[Cz.slug]:Cz.chainId,[kz.slug]:kz.chainId,[Az.slug]:Az.chainId,[Pz.slug]:Pz.chainId,[Sz.slug]:Sz.chainId,[Rz.slug]:Rz.chainId,[Mz.slug]:Mz.chainId,[Nz.slug]:Nz.chainId,[Bz.slug]:Bz.chainId,[Dz.slug]:Dz.chainId,[Lz.slug]:Lz.chainId,[Oz.slug]:Oz.chainId,[jv.slug]:jv.chainId,[qz.slug]:qz.chainId,[Fz.slug]:Fz.chainId,[Wz.slug]:Wz.chainId,[Uz.slug]:Uz.chainId,[Hz.slug]:Hz.chainId,[jz.slug]:jz.chainId,[zz.slug]:zz.chainId,[Kz.slug]:Kz.chainId,[Gz.slug]:Gz.chainId,[Vz.slug]:Vz.chainId,[Yz.slug]:Yz.chainId,[$z.slug]:$z.chainId,[Qz.slug]:Qz.chainId,[Jz.slug]:Jz.chainId,[Zz.slug]:Zz.chainId,[Xz.slug]:Xz.chainId,[eK.slug]:eK.chainId,[tK.slug]:tK.chainId,[rK.slug]:rK.chainId,[nK.slug]:nK.chainId,[aK.slug]:aK.chainId,[iK.slug]:iK.chainId,[sK.slug]:sK.chainId,[oK.slug]:oK.chainId,[cK.slug]:cK.chainId,[uK.slug]:uK.chainId,[lK.slug]:lK.chainId,[dK.slug]:dK.chainId,[pK.slug]:pK.chainId,[hK.slug]:hK.chainId,[fK.slug]:fK.chainId,[mK.slug]:mK.chainId,[yK.slug]:yK.chainId,[gK.slug]:gK.chainId,[bK.slug]:bK.chainId,[vK.slug]:vK.chainId,[wK.slug]:wK.chainId,[xK.slug]:xK.chainId,[_K.slug]:_K.chainId,[TK.slug]:TK.chainId,[IK.slug]:IK.chainId,[EK.slug]:EK.chainId,[CK.slug]:CK.chainId,[kK.slug]:kK.chainId,[AK.slug]:AK.chainId,[PK.slug]:PK.chainId,[SK.slug]:SK.chainId,[RK.slug]:RK.chainId,[MK.slug]:MK.chainId,[NK.slug]:NK.chainId,[BK.slug]:BK.chainId,[DK.slug]:DK.chainId,[LK.slug]:LK.chainId,[OK.slug]:OK.chainId,[qK.slug]:qK.chainId,[FK.slug]:FK.chainId,[WK.slug]:WK.chainId,[UK.slug]:UK.chainId,[HK.slug]:HK.chainId,[jK.slug]:jK.chainId,[zK.slug]:zK.chainId,[KK.slug]:KK.chainId,[GK.slug]:GK.chainId,[VK.slug]:VK.chainId,[YK.slug]:YK.chainId,[$K.slug]:$K.chainId,[QK.slug]:QK.chainId,[JK.slug]:JK.chainId,[ZK.slug]:ZK.chainId,[XK.slug]:XK.chainId,[eG.slug]:eG.chainId,[tG.slug]:tG.chainId,[rG.slug]:rG.chainId,[nG.slug]:nG.chainId,[aG.slug]:aG.chainId,[iG.slug]:iG.chainId,[sG.slug]:sG.chainId,[oG.slug]:oG.chainId,[cG.slug]:cG.chainId,[uG.slug]:uG.chainId,[lG.slug]:lG.chainId,[dG.slug]:dG.chainId,[pG.slug]:pG.chainId,[hG.slug]:hG.chainId,[fG.slug]:fG.chainId,[mG.slug]:mG.chainId,[yG.slug]:yG.chainId,[gG.slug]:gG.chainId,[bG.slug]:bG.chainId,[vG.slug]:vG.chainId,[wG.slug]:wG.chainId,[xG.slug]:xG.chainId,[_G.slug]:_G.chainId,[TG.slug]:TG.chainId,[IG.slug]:IG.chainId,[EG.slug]:EG.chainId,[CG.slug]:CG.chainId,[kG.slug]:kG.chainId,[AG.slug]:AG.chainId,[PG.slug]:PG.chainId,[SG.slug]:SG.chainId,[zv.slug]:zv.chainId};function sCr(r){return r in S_e}function oCr(r){return r in wet}function cCr(r){if(sCr(r))return S_e[r];throw new Error(`Chain with chainId "${r}" not found`)}function uCr(r){if(oCr(r))return S_e[wet[r]];throw new Error(`Chain with slug "${r}" not found`)}S.AcalaMandalaTestnet=hD;S.AcalaNetwork=MD;S.AcalaNetworkTestnet=mD;S.AdilDevnet=iz;S.AdilTestnet=tW;S.AerochainTestnet=ND;S.AiozNetwork=eB;S.AiozNetworkTestnet=yF;S.Airdao=LU;S.AirdaoTestnet=YU;S.Aitd=oO;S.AitdTestnet=cO;S.Akroma=dz;S.Alaya=pz;S.AlayaDevTestnet=hz;S.AlphNetwork=RW;S.Altcoinchain=Pq;S.Alveychain=iF;S.Alyx=sO;S.AlyxChainTestnet=zN;S.Amana=bW;S.AmanaMixnet=vj;S.AmanaPrivnet=wj;S.AmanaTestnet=bj;S.AmbrosChain=KD;S.AmeChain=nB;S.Amstar=pO;S.AmstarTestnet=OL;S.Anduschain=PK;S.AnytypeEvmChain=IO;S.Aquachain=HK;S.Arbitrum=Fv;S.ArbitrumGoerli=jv;S.ArbitrumNova=TH;S.ArbitrumOnXdai=dB;S.ArbitrumRinkeby=Oz;S.ArcologyTestnet=MN;S.Arevia=Aq;S.ArmoniaEvaChain=$N;S.ArmoniaEvaChainTestnet=QN;S.ArtisSigma1=xz;S.ArtisTestnetTau1=_z;S.Astar=pD;S.Astra=hU;S.AstraTestnet=mU;S.Atelier=KO;S.Atheios=wO;S.Athereum=kH;S.AtoshiTestnet=XN;S.Aurora=iG;S.AuroraBetanet=oG;S.AuroraTestnet=sG;S.AutobahnNetwork=RH;S.AutonityBakerlooThamesTestnet=jK;S.AutonityPiccadillyThamesTestnet=zK;S.AuxiliumNetwork=OK;S.Avalanche=Uv;S.AvalancheFuji=Wv;S.Aves=mH;S.BandaiNamcoResearchVerse=jD;S.Base=CW;S.BaseGoerli=kj;S.BeagleMessagingChain=bO;S.BeanecoSmartchain=Yz;S.BearNetworkChain=$z;S.BearNetworkChainTestnet=Jz;S.BeoneChainTestnet=xW;S.BeresheetBereevmTestnet=oq;S.Berylbit=GW;S.BeverlyHills=Rj;S.Bifrost=zq;S.BifrostTestnet=DH;S.Binance=Nv;S.BinanceTestnet=Bv;S.Bitcichain=OO;S.BitcichainTestnet=qO;S.BitcoinEvm=_q;S.Bitgert=pH;S.Bitindi=mF;S.BitindiTestnet=fF;S.BitkubChain=mN;S.BitkubChainTestnet=rH;S.Bittex=rF;S.BittorrentChain=lB;S.BittorrentChainTestnet=_L;S.Bityuan=Wq;S.BlackfortExchangeNetwork=kF;S.BlackfortExchangeNetworkTestnet=IF;S.BlgTestnet=IU;S.BlockchainGenesis=iU;S.BlockchainStation=ID;S.BlockchainStationTestnet=ED;S.BlocktonBlockchain=TW;S.Bloxberg=jW;S.Bmc=iB;S.BmcTestnet=sB;S.BobaAvax=AH;S.BobaBnb=zH;S.BobaBnbTestnet=ZW;S.BobaNetwork=EB;S.BobaNetworkGoerliTestnet=Fq;S.BobaNetworkRinkebyTestnet=iM;S.BobabaseTestnet=aO;S.Bobabeam=nO;S.BobafujiTestnet=wF;S.Bobaopera=RB;S.BobaoperaTestnet=dF;S.BombChain=kq;S.BombChainTestnet=Sq;S.BonNetwork=LO;S.Bosagora=bq;S.Brochain=Yj;S.Bronos=CL;S.BronosTestnet=EL;S.Btachain=xO;S.BtcixNetwork=UU;S.Callisto=qD;S.CallistoTestnet=jU;S.CalypsoNftHubSkale=lG;S.CalypsoNftHubSkaleTestnet=ZK;S.Camelark=HU;S.CaminoCChain=eD;S.Candle=cD;S.Canto=aW;S.CantoTestnet=kD;S.CatecoinChain=vO;S.Celo=IH;S.CeloAlfajoresTestnet=SH;S.CeloBaklavaTestnet=XH;S.CennznetAzalea=KU;S.CennznetNikau=Hq;S.CennznetRata=Uq;S.ChainVerse=LF;S.Cheapeth=RD;S.ChiadoTestnet=sU;S.ChilizScovilleTestnet=Pj;S.CicChain=dO;S.CicChainTestnet=JL;S.Cloudtx=cH;S.CloudtxTestnet=uH;S.Cloudwalk=tq;S.CloudwalkTestnet=eq;S.CloverTestnet=wL;S.ClvParachain=xL;S.Cmp=Iz;S.CmpTestnet=jz;S.CoinexSmartChain=AM;S.CoinexSmartChainTestnet=PM;S.ColumbusTestNetwork=tD;S.CondorTestNetwork=cz;S.Condrieu=aj;S.ConfluxEspace=TL;S.ConfluxEspaceTestnet=GM;S.ConstaTestnet=GB;S.CoreBlockchain=NL;S.CoreBlockchainTestnet=ML;S.CreditSmartchain=AU;S.CronosBeta=rM;S.CronosTestnet=WB;S.Crossbell=aF;S.CryptoEmergency=oB;S.Cryptocoinpay=lU;S.CryptokylinTestnet=fN;S.Crystaleum=Vj;S.CtexScanBlockchain=mO;S.CubeChain=SO;S.CubeChainTestnet=RO;S.Cyberdecknet=nG;S.Cybertrust=Aj;S.DChain=WO;S.DarwiniaCrabNetwork=xM;S.DarwiniaNetwork=TM;S.DarwiniaPangolinTestnet=wM;S.DarwiniaPangoroTestnet=_M;S.Datahopper=wG;S.DaxChain=VN;S.DbchainTestnet=HM;S.Debank=SN;S.DebankTestnet=PN;S.DebounceSubnetTestnet=Gq;S.DecentralizedWeb=qN;S.DecimalSmartChain=QM;S.DecimalSmartChainTestnet=mz;S.DefichainEvmNetwork=DL;S.DefichainEvmNetworkTestnet=LL;S.Dehvo=kN;S.DexalotSubnet=Wz;S.DexalotSubnetTestnet=Fz;S.DexillaTestnet=UO;S.DexitNetwork=zD;S.DfkChain=WH;S.DfkChainTest=qB;S.DiodePrenet=G9;S.DiodeTestnetStaging=z9;S.DithereumTestnet=dM;S.Dogcoin=BL;S.DogcoinTestnet=YW;S.Dogechain=JO;S.DogechainTestnet=dD;S.DokenSuperChain=ZH;S.DosChain=oW;S.DosFujiSubnet=iO;S.DosTesnet=oF;S.DoubleAChain=rD;S.DoubleAChainTestnet=nD;S.DracNetwork=sF;S.DraconesFinancialServices=EW;S.Dxchain=hM;S.DxchainTestnet=VM;S.Dyno=cF;S.DynoTestnet=uF;S.Ecoball=fq;S.EcoballTestnetEspuma=mq;S.Ecredits=tj;S.EcreditsTestnet=rj;S.EdexaTestnet=QO;S.EdgewareEdgeevm=sq;S.Ekta=$O;S.ElaDidSidechain=X9;S.ElaDidSidechainTestnet=eM;S.ElastosSmartChain=J9;S.ElastosSmartChainTestnet=Z9;S.Eleanor=HO;S.EllaTheHeart=JF;S.Ellaism=FM;S.EluvioContentFabric=sK;S.Elysium=lO;S.ElysiumTestnet=uO;S.EmpireNetwork=nF;S.EnduranceSmartChain=wD;S.Energi=vH;S.EnergiTestnet=LH;S.EnergyWebChain=bB;S.EnergyWebVoltaTestnet=pj;S.EnnothemProterozoic=IM;S.EnnothemTestnetPioneer=EM;S.Enterchain=KL;S.Enuls=NN;S.EnulsTestnet=BN;S.Eos=BM;S.Eraswap=RF;S.Ethereum=Sv;S.EthereumClassic=LM;S.EthereumClassicTestnetKotti=q9;S.EthereumClassicTestnetMorden=OM;S.EthereumClassicTestnetMordor=qM;S.EthereumFair=zz;S.Ethergem=YO;S.Etherinc=bN;S.EtherliteChain=CN;S.EthersocialNetwork=oH;S.EthoProtocol=oK;S.Etica=JH;S.EtndChainS=sz;S.EuropaSkaleChain=xG;S.Eurus=yL;S.EurusTestnet=VO;S.Evanesco=Tq;S.EvanescoTestnet=HL;S.Evmos=KW;S.EvmosTestnet=zW;S.EvriceNetwork=gL;S.Excelon=BK;S.ExcoincialChain=LK;S.ExcoincialChainVoltaTestnet=DK;S.ExosamaNetwork=yq;S.ExpanseNetwork=D9;S.ExzoNetwork=GL;S.EzchainCChain=Oq;S.EzchainCChainTestnet=qq;S.FXCoreNetwork=oD;S.Factory127=UN;S.FantasiaChain=HD;S.Fantom=Lv;S.FantomTestnet=qv;S.FastexChainTestnet=qz;S.Fibonacci=TU;S.Filecoin=NB;S.FilecoinButterflyTestnet=fK;S.FilecoinCalibrationTestnet=kz;S.FilecoinHyperspaceTestnet=Kq;S.FilecoinLocalTestnet=FK;S.FilecoinWallabyTestnet=dH;S.Findora=vq;S.FindoraForge=xq;S.FindoraTestnet=wq;S.Firechain=sD;S.FirenzeTestNetwork=yj;S.Flachain=qK;S.Flana=vW;S.FlanaMixnet=_j;S.FlanaPrivnet=Tj;S.FlanaTestnet=xj;S.Flare=K9;S.FlareTestnetCoston=V9;S.FlareTestnetCoston2=AN;S.Floripa=BH;S.Fncy=YM;S.FncyTestnet=iK;S.FreightTrustNetwork=hB;S.Frenchain=PH;S.FrenchainTestnet=ZB;S.FrontierOfDreamsTestnet=qU;S.Fuse=LN;S.FuseSparknet=ON;S.Fusion=hH;S.FusionTestnet=MH;S.Ganache=FF;S.GarizonStage0=lN;S.GarizonStage1=dN;S.GarizonStage2=pN;S.GarizonStage3=hN;S.GarizonTestnetStage0=VD;S.GarizonTestnetStage1=YD;S.GarizonTestnetStage2=$D;S.GarizonTestnetStage3=QD;S.Gatechain=sN;S.GatechainTestnet=iN;S.GatherDevnetNetwork=eG;S.GatherNetwork=VK;S.GatherTestnetNetwork=XK;S.GearZeroNetwork=aD;S.GearZeroNetworkTestnet=Ez;S.Genechain=tN;S.GenesisCoin=VW;S.GenesisL1=sM;S.GenesisL1Testnet=nM;S.GiantMammoth=HW;S.GitshockCartenzTestnet=NO;S.Gnosis=gN;S.Gochain=DM;S.GochainTestnet=lH;S.Godwoken=dj;S.GodwokenTestnetV1=lj;S.Goerli=Rv;S.GoldSmartChain=GF;S.GoldSmartChainTestnet=gj;S.GonChain=nU;S.Gooddata=lM;S.GooddataTestnet=uM;S.GraphlinqBlockchain=bD;S.Gton=pL;S.GtonTestnet=qH;S.Haic=DD;S.Halo=ZL;S.HammerChain=tH;S.Hapchain=_K;S.HapchainTestnet=Rz;S.HaqqChainTestnet=UH;S.HaqqNetwork=gU;S.HaradevTestnet=kG;S.HarmonyDevnetShard0=vG;S.HarmonyShard0=dG;S.HarmonyShard1=pG;S.HarmonyShard2=hG;S.HarmonyShard3=fG;S.HarmonyTestnetShard0=mG;S.HarmonyTestnetShard1=yG;S.HarmonyTestnetShard2=gG;S.HarmonyTestnetShard3=bG;S.Hashbit=yU;S.HashkeyChainTestnet=vz;S.HaymoTestnet=wz;S.HazlorTestnet=sW;S.Hedera=CB;S.HederaLocalnet=PB;S.HederaPreviewnet=AB;S.HederaTestnet=kB;S.HertzNetwork=nH;S.HighPerformanceBlockchain=TB;S.HikaNetworkTestnet=qF;S.HomeVerse=WU;S.HooSmartChain=KM;S.HooSmartChainTestnet=tB;S.HorizenYumaTestnet=_O;S.Htmlcoin=xF;S.HumanProtocol=aG;S.Humanode=MF;S.HuobiEcoChain=HN;S.HuobiEcoChainTestnet=wB;S.HyperonchainTestnet=YB;S.Idchain=$M;S.IexecSidechain=jN;S.Imversed=mK;S.ImversedTestnet=yK;S.Iolite=RK;S.IoraChain=UL;S.IotexNetwork=_F;S.IotexNetworkTestnet=TF;S.IposNetwork=rG;S.IvarChain=Sj;S.IvarChainTestnet=OU;S.J2oTaro=yH;S.Jellie=yz;S.JfinChain=Zq;S.JibchainL1=UW;S.JoysDigital=WK;S.JoysDigitalTestnet=GK;S.KaibaLightningChainTestnet=wN;S.Kardiachain=tM;S.KaruraNetwork=_D;S.KaruraNetworkTestnet=fD;S.KavaEvm=Eq;S.KavaEvmTestnet=Iq;S.Kcc=BB;S.KccTestnet=DB;S.Kekchain=Dz;S.KekchainKektest=Lz;S.Kerleano=AO;S.Kiln=lK;S.Kintsugi=uK;S.KlaytnCypress=_W;S.KlaytnTestnetBaobab=hL;S.Klyntar=XF;S.Kortho=Nq;S.Korthotest=IW;S.Kovan=vM;S.LaTestnet=QB;S.Lachain=yB;S.LachainTestnet=gB;S.LambdaTestnet=Mj;S.LatamBlockchainResilTestnet=rB;S.LightlinkPegasusTestnet=DO;S.LightlinkPhoenix=BO;S.Lightstreams=ZN;S.LightstreamsTestnet=JN;S.LineaTestnet=GH;S.Lisinski=VB;S.LiveplexOracleevm=OH;S.Localhost=zv;S.Loopnetwork=MU;S.LucidBlockchain=BD;S.LuckyNetwork=lL;S.Ludan=TO;S.LycanChain=CD;S.Maistestsubnet=UK;S.Mammoth=WW;S.Mantle=AF;S.MantleTestnet=PF;S.Map=$U;S.MapMakalu=fB;S.MaroBlockchain=NW;S.Mas=bz;S.Mathchain=qL;S.MathchainTestnet=FL;S.MdglTestnet=lW;S.MemoSmartChain=cL;S.MeshnyanTestnet=gD;S.Metacodechain=tF;S.Metadium=H9;S.MetadiumTestnet=j9;S.Metadot=BU;S.MetadotTestnet=DU;S.MetalCChain=Mz;S.MetalTahoeCChain=Nz;S.Metaplayerone=gq;S.Meter=nN;S.MeterTestnet=aN;S.MetisAndromeda=kL;S.MetisGoerliTestnet=yD;S.MilkomedaA1=XO;S.MilkomedaA1Testnet=lz;S.MilkomedaC1=ZO;S.MilkomedaC1Testnet=uz;S.MintmeComCoin=eH;S.Mix=JM;S.MixinVirtualMachine=hj;S.Mizana=wW;S.MizanaMixnet=Ej;S.MizanaPrivnet=Cj;S.MizanaTestnet=Ij;S.Moac=AL;S.MoacTestnet=pB;S.MolereumNetwork=SG;S.MoonbaseAlpha=tO;S.Moonbeam=XL;S.Moonriver=eO;S.Moonrock=rO;S.Multivac=ej;S.Mumbai=Hv;S.MunodeTestnet=rL;S.Musicoin=wK;S.MyownTestnet=eU;S.MythicalChain=fz;S.Nahmii=BF;S.Nahmii3=pF;S.Nahmii3Testnet=hF;S.NahmiiTestnet=DF;S.Nebula=uG;S.NebulaStaging=tG;S.NebulaTestnet=TN;S.NeonEvm=$K;S.NeonEvmDevnet=YK;S.NeonEvmTestnet=QK;S.NepalBlockchainNetwork=sL;S.Newton=bL;S.NewtonTestnet=mL;S.Nexi=vF;S.NovaNetwork=oN;S.Ntity=CG;S.Numbers=cU;S.NumbersTestnet=uU;S.OasisEmerald=CH;S.OasisEmeraldTestnet=EH;S.OasisSapphire=JU;S.OasisSapphireTestnet=ZU;S.Oasischain=aH;S.Oasys=vB;S.Octaspace=Zz;S.Oho=wH;S.Okbchain=uB;S.OkbchainTestnet=cB;S.OkexchainTestnet=WM;S.Okxchain=UM;S.OmPlatform=QL;S.Omax=MB;S.Omchain=GU;S.Oneledger=JK;S.OneledgerTestnetFrankenstein=TG;S.Ontology=NM;S.OntologyTestnet=WF;S.OnusChain=GO;S.OnusChainTestnet=FO;S.OoneChainTestnet=Az;S.Oort=nL;S.OortAscraeus=iL;S.OortDev=JW;S.OortHuygens=aL;S.OpalTestnetByUnique=LW;S.Openchain=Hz;S.OpenchainTestnet=SD;S.Openpiece=SM;S.OpenpieceTestnet=GN;S.Openvessel=bK;S.OpsideTestnet=QU;S.Optimism=Mv;S.OptimismBedrockGoerliAlphaTestnet=iH;S.OptimismGoerli=Ov;S.OptimismKovan=zM;S.OptimismOnGnosis=SB;S.OpulentXBeta=xH;S.OrigintrailParachain=lq;S.OrlandoChain=jq;S.Oychain=WN;S.OychainTestnet=FN;S.P12Chain=zU;S.PaletteChain=kO;S.Palm=EG;S.PalmTestnet=IG;S.Pandoproject=Xq;S.PandoprojectTestnet=eF;S.ParibuNet=Qq;S.ParibuNetTestnet=Jq;S.Pdc=PG;S.Pegglecoin=_H;S.PepchainChurchill=AK;S.PhiNetworkV1=bF;S.PhiNetworkV2=YN;S.Phoenix=PU;S.PieceTestnet=sH;S.Pirl=_G;S.PixieChain=KF;S.PixieChainTestnet=xD;S.Planq=ZF;S.Platon=gz;S.PlatonDevTestnet2=hK;S.PlianMain=pK;S.PlianSubchain1=xK;S.PlianTestnetMain=SK;S.PlianTestnetSubchain1=EK;S.PoaNetworkCore=yN;S.PoaNetworkSokol=ZM;S.Pocrnet=Dq;S.Polis=Sz;S.PolisTestnet=Pz;S.Polygon=Dv;S.PolygonZkevm=PL;S.PolygonZkevmTestnet=fO;S.PolyjuiceTestnet=uj;S.Polysmartchain=YF;S.Popcateum=zL;S.PortalFantasyChain=JD;S.PortalFantasyChainTest=LD;S.PosichainDevnetShard0=nK;S.PosichainDevnetShard1=aK;S.PosichainShard0=tK;S.PosichainTestnetShard0=rK;S.Primuschain=XM;S.ProofOfMemes=FU;S.ProtonTestnet=EN;S.ProxyNetworkTestnet=IL;S.Publicmint=iq;S.PublicmintDevnet=nq;S.PublicmintTestnet=aq;S.Pulsechain=KB;S.PulsechainTestnet=XD;S.PulsechainTestnetV2b=eL;S.PulsechainTestnetV3=tL;S.Q=gH;S.QTestnet=bH;S.Qeasyweb3Testnet=QW;S.Qitmeer=OD;S.QitmeerNetworkMixnext=yW;S.QitmeerNetworkPrivnet=gW;S.QitmeerNetworkTestnet=mW;S.Ql1=PD;S.Ql1Testnet=vK;S.QuadransBlockchain=dU;S.QuadransBlockchainTestnet=pU;S.Quarix=IK;S.QuarixTestnet=TK;S.Quarkblockchain=NK;S.QuarkchainDevnetRoot=$j;S.QuarkchainDevnetShard0=Qj;S.QuarkchainDevnetShard1=Jj;S.QuarkchainDevnetShard2=Zj;S.QuarkchainDevnetShard3=Xj;S.QuarkchainDevnetShard4=ez;S.QuarkchainDevnetShard5=tz;S.QuarkchainDevnetShard6=rz;S.QuarkchainDevnetShard7=nz;S.QuarkchainRoot=Dj;S.QuarkchainShard0=Lj;S.QuarkchainShard1=Oj;S.QuarkchainShard2=qj;S.QuarkchainShard3=Fj;S.QuarkchainShard4=Wj;S.QuarkchainShard5=Uj;S.QuarkchainShard6=Hj;S.QuarkchainShard7=jj;S.QuartzByUnique=DW;S.Quokkacoin=hq;S.RabbitAnalogTestnetChain=PO;S.RangersProtocol=uq;S.RangersProtocolTestnetRobin=$W;S.Raptorchain=cG;S.Realchain=DN;S.RedlightChain=Lq;S.ReiChain=HH;S.ReiChainTestnet=jH;S.ReiNetwork=NH;S.Resincoin=fj;S.RikezaNetwork=hO;S.RikezaNetworkTestnet=CU;S.RiniaTestnet=ZD;S.Rinkeby=O9;S.RiseOfTheWarbotsTestnet=iW;S.Ropsten=L9;S.Rsk=oM;S.RskTestnet=cM;S.Rupaya=XB;S.Saakuru=gK;S.SaakuruTestnet=Tz;S.Sakura=vL;S.SanrChain=wU;S.SapphireByUnique=OW;S.Sardis=FH;S.SardisTestnet=vU;S.Scolcoin=nj;S.ScolcoinWeichainTestnet=zF;S.Scroll=Kz;S.ScrollAlphaTestnet=Gz;S.ScrollPreAlphaTestnet=Vz;S.SeedcoinNetwork=fM;S.Seele=aB;S.Sepolia=kK;S.Setheum=xB;S.ShardeumLiberty1X=dW;S.ShardeumLiberty2X=pW;S.ShardeumSphinx1X=hW;S.Sherpax=yO;S.SherpaxTestnet=gO;S.Shibachain=aM;S.Shiden=FB;S.Shyft=eW;S.ShyftTestnet=bU;S.SiberiumNetwork=az;S.SingularityZero=_U;S.SingularityZeroTestnet=xU;S.SiriusnetV2=mB;S.Sjatsh=aU;S.SmartBitcoinCash=tU;S.SmartBitcoinCashTestnet=rU;S.SmartHostTeknolojiTestnet=WL;S.Smartmesh=MK;S.SocialSmartChain=Cz;S.SongbirdCanaryNetwork=Q9;S.Soterone=jM;S.Soverun=CK;S.SoverunTestnet=Gj;S.Sps=kU;S.SpsTestnet=RU;S.StarSocialTestnet=TD;S.StepNetwork=$L;S.StepTestnet=EU;S.Stratos=pq;S.StratosTestnet=dq;S.StreamuxBlockchain=fW;S.SuperSmartChain=zO;S.SuperSmartChainTestnet=jO;S.SurBlockchainNetwork=_B;S.Susono=SU;S.SxNetwork=$B;S.SxNetworkTestnet=vD;S.Syscoin=MM;S.SyscoinRolluxTestnet=KH;S.SyscoinTanenbaumTestnet=OF;S.TEAMBlockchain=KK;S.TEkta=fL;S.TaikoAlpha2Testnet=oz;S.TaoNetwork=lD;S.Taraxa=FD;S.TaraxaTestnet=WD;S.Taycan=VU;S.TaycanTestnet=cq;S.Tbsi=EO;S.TbsiTestnet=CO;S.TbwgChain=pM;S.TcgVerse=Rq;S.Techpay=Bq;S.Teleport=cW;S.TeleportTestnet=uW;S.TelosEvm=gM;S.TelosEvmTestnet=bM;S.Teslafunds=MO;S.Thaichain=F9;S.Thaichain20Thaifi=Y9;S.TheRootNetwork=rW;S.TheRootNetworkPorciniTestnet=nW;S.Theta=UB;S.ThetaAmberTestnet=jB;S.ThetaSapphireTestnet=HB;S.ThetaTestnet=zB;S.ThinkiumChain0=ij;S.ThinkiumChain1=sj;S.ThinkiumChain103=cj;S.ThinkiumChain2=oj;S.ThinkiumTestnetChain0=VH;S.ThinkiumTestnetChain1=YH;S.ThinkiumTestnetChain103=QH;S.ThinkiumTestnetChain2=$H;S.Thundercore=IN;S.ThundercoreTestnet=$9;S.Tipboxcoin=Bz;S.TipboxcoinTestnet=gF;S.TlchainNetwork=SF;S.TmyChain=MW;S.TokiNetwork=kW;S.TokiTestnet=AW;S.TombChain=VF;S.Tomochain=cN;S.TomochainTestnet=uN;S.ToolGlobal=PW;S.ToolGlobalTestnet=SW;S.Top=uL;S.TopEvm=oL;S.Tres=jF;S.TresTestnet=HF;S.TrustEvmTestnet=NU;S.UbSmartChain=Bj;S.UbSmartChainTestnet=Nj;S.Ubiq=W9;S.UbiqNetworkTestnet=U9;S.Ultron=YL;S.UltronTestnet=VL;S.UnicornUltraTestnet=yM;S.Unique=BW;S.Uptick=RN;S.UzmiNetwork=NF;S.Valorbit=mM;S.Vchain=Cq;S.Vechain=zj;S.VechainTestnet=Kj;S.Vela1Chain=uD;S.VelasEvm=_N;S.Venidium=CF;S.VenidiumTestnet=EF;S.VentionSmartChain=mj;S.VentionSmartChainTestnet=AD;S.Vision=eK;S.VisionVpioneerTestChain=Qz;S.VyvoSmartChain=FW;S.Wagmi=fU;S.Wanchain=GD;S.WanchainTestnet=dL;S.Web3gamesDevnet=xN;S.Web3gamesTestnet=vN;S.Web3q=OB;S.Web3qGalileo=$q;S.Web3qTestnet=Yq;S.Webchain=XU;S.WeelinkTestnet=Uz;S.WegochainRubidium=UF;S.Wemix30=SL;S.Wemix30Testnet=RL;S.Woopchain=KN;S.WorldTradeTechnicalChain=jL;S.Xanachain=qW;S.XdcApothemNetwork=kM;S.Xerom=cK;S.XinfinXdcNetwork=CM;S.Xodex=Mq;S.XtSmartChain=iD;S.Yuanchain=lF;S.ZMainnet=rq;S.ZTestnet=XW;S.ZcoreTestnet=Vq;S.ZeethChain=JB;S.ZeethChainDev=UD;S.Zeniq=AG;S.Zenith=eN;S.ZenithTestnetVilnius=rN;S.Zetachain=$F;S.ZetachainAthensTestnet=QF;S.Zhejiang=dK;S.ZilliqaEvmTestnet=fH;S.ZksyncEra=LB;S.ZksyncEraTestnet=IB;S.Zyx=RM;S._0xtade=oU;S._4goodnetwork=Xz;S.allChains=iCr;S.configureChain=nCr;S.defaultChains=aCr;S.getChainByChainId=cCr;S.getChainBySlug=uCr;S.getChainRPC=tCr;S.getChainRPCs=vet;S.minimizeChain=rCr});var vt=_((TOn,R_e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?R_e.exports=bet():R_e.exports=xet()});var Tet=_((COn,_et)=>{"use strict";d();p();function lCr(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);C!==R;){for(var W=m[C],V=0,K=L-1;(W!==0||V>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");I=V,C++}for(var H=L-I;H!==L&&F[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(R);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,V=R-1;(F!==0||W>>0,L[V]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");C=W,y++}for(var K=R-C;K!==R&&L[K]===0;)K++;for(var H=new Uint8Array(I+(R-K)),G=I;K!==R;)H[G++]=L[K++];return H}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}_et.exports=lCr});var ha=_((POn,Iet)=>{d();p();var dCr=Tet(),pCr="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Iet.exports=dCr(pCr)});var tn=_((x0,Cet)=>{d();p();var Eet=typeof self<"u"?self:x0,cle=function(){function r(){this.fetch=!1,this.DOMException=Eet.DOMException}return r.prototype=Eet,new r}();(function(r){var e=function(t){var n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(q){return q&&DataView.prototype.isPrototypeOf(q)}if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(q){return q&&i.indexOf(Object.prototype.toString.call(q))>-1};function o(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(q))throw new TypeError("Invalid character in header field name");return q.toLowerCase()}function c(q){return typeof q!="string"&&(q=String(q)),q}function u(q){var T={next:function(){var M=q.shift();return{done:M===void 0,value:M}}};return n.iterable&&(T[Symbol.iterator]=function(){return T}),T}function l(q){this.map={},q instanceof l?q.forEach(function(T,M){this.append(M,T)},this):Array.isArray(q)?q.forEach(function(T){this.append(T[0],T[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(T){this.append(T,q[T])},this)}l.prototype.append=function(q,T){q=o(q),T=c(T);var M=this.map[q];this.map[q]=M?M+", "+T:T},l.prototype.delete=function(q){delete this.map[o(q)]},l.prototype.get=function(q){return q=o(q),this.has(q)?this.map[q]:null},l.prototype.has=function(q){return this.map.hasOwnProperty(o(q))},l.prototype.set=function(q,T){this.map[o(q)]=c(T)},l.prototype.forEach=function(q,T){for(var M in this.map)this.map.hasOwnProperty(M)&&q.call(T,this.map[M],M,this)},l.prototype.keys=function(){var q=[];return this.forEach(function(T,M){q.push(M)}),u(q)},l.prototype.values=function(){var q=[];return this.forEach(function(T){q.push(T)}),u(q)},l.prototype.entries=function(){var q=[];return this.forEach(function(T,M){q.push([M,T])}),u(q)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function h(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function f(q){return new Promise(function(T,M){q.onload=function(){T(q.result)},q.onerror=function(){M(q.error)}})}function m(q){var T=new FileReader,M=f(T);return T.readAsArrayBuffer(q),M}function y(q){var T=new FileReader,M=f(T);return T.readAsText(q),M}function I(q){for(var T=new Uint8Array(q),M=new Array(T.length),A=0;A-1?T:q}function W(q,T){T=T||{};var M=T.body;if(q instanceof W){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,T.headers||(this.headers=new l(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!M&&q._bodyInit!=null&&(M=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=T.credentials||this.credentials||"same-origin",(T.headers||!this.headers)&&(this.headers=new l(T.headers)),this.method=F(T.method||this.method||"GET"),this.mode=T.mode||this.mode||null,this.signal=T.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&M)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(M)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function V(q){var T=new FormData;return q.trim().split("&").forEach(function(M){if(M){var A=M.split("="),v=A.shift().replace(/\+/g," "),k=A.join("=").replace(/\+/g," ");T.append(decodeURIComponent(v),decodeURIComponent(k))}}),T}function K(q){var T=new l,M=q.replace(/\r?\n[\t ]+/g," ");return M.split(/\r?\n/).forEach(function(A){var v=A.split(":"),k=v.shift().trim();if(k){var O=v.join(":").trim();T.append(k,O)}}),T}R.call(W.prototype);function H(q,T){T||(T={}),this.type="default",this.status=T.status===void 0?200:T.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in T?T.statusText:"OK",this.headers=new l(T.headers),this.url=T.url||"",this._initBody(q)}R.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},H.error=function(){var q=new H(null,{status:0,statusText:""});return q.type="error",q};var G=[301,302,303,307,308];H.redirect=function(q,T){if(G.indexOf(T)===-1)throw new RangeError("Invalid status code");return new H(null,{status:T,headers:{location:q}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(T,M){this.message=T,this.name=M;var A=Error(T);this.stack=A.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function Q(q,T){return new Promise(function(M,A){var v=new W(q,T);if(v.signal&&v.signal.aborted)return A(new t.DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function O(){k.abort()}k.onload=function(){var D={status:k.status,statusText:k.statusText,headers:K(k.getAllResponseHeaders()||"")};D.url="responseURL"in k?k.responseURL:D.headers.get("X-Request-URL");var B="response"in k?k.response:k.responseText;M(new H(B,D))},k.onerror=function(){A(new TypeError("Network request failed"))},k.ontimeout=function(){A(new TypeError("Network request failed"))},k.onabort=function(){A(new t.DOMException("Aborted","AbortError"))},k.open(v.method,v.url,!0),v.credentials==="include"?k.withCredentials=!0:v.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&n.blob&&(k.responseType="blob"),v.headers.forEach(function(D,B){k.setRequestHeader(B,D)}),v.signal&&(v.signal.addEventListener("abort",O),k.onreadystatechange=function(){k.readyState===4&&v.signal.removeEventListener("abort",O)}),k.send(typeof v._bodyInit>"u"?null:v._bodyInit)})}return Q.polyfill=!0,r.fetch||(r.fetch=Q,r.Headers=l,r.Request=W,r.Response=H),t.Headers=l,t.Request=W,t.Response=H,t.fetch=Q,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(cle);cle.fetch.ponyfill=!0;delete cle.fetch.polyfill;var RG=cle;x0=RG.fetch;x0.default=RG.fetch;x0.fetch=RG.fetch;x0.Headers=RG.Headers;x0.Request=RG.Request;x0.Response=RG.Response;Cet.exports=x0});var Je=_((BOn,M_e)=>{"use strict";d();p();var hCr=Object.prototype.hasOwnProperty,Wu="~";function JZ(){}Object.create&&(JZ.prototype=Object.create(null),new JZ().__proto__||(Wu=!1));function fCr(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function ket(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new fCr(t,n||r,a),s=Wu?Wu+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function ule(r,e){--r._eventsCount===0?r._events=new JZ:delete r._events[e]}function fu(){this._events=new JZ,this._eventsCount=0}fu.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)hCr.call(t,n)&&e.push(Wu?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};fu.prototype.listeners=function(e){var t=Wu?Wu+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{mCr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"execute",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var lle=_((qOn,Aet)=>{"use strict";d();p();async function*yCr(r,e=1){let t=[];e<1&&(e=1);for await(let n of r)for(t.push(n);t.length>=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}Aet.exports=yCr});var N_e=_((UOn,Pet)=>{"use strict";d();p();var gCr=lle();async function*bCr(r,e=1){for await(let t of gCr(r,e)){let n=t.map(a=>a().then(i=>({ok:!0,value:i}),i=>({ok:!1,err:i})));for(let a=0;a{"use strict";d();p();Ret.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}});var qet=_((Let,Oet)=>{"use strict";d();p();var dle=Met(),{hasOwnProperty:Bet}=Object.prototype,{propertyIsEnumerable:vCr}=Object,MG=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),wCr=Let,Net={concatArrays:!1,ignoreUndefined:!1},ple=r=>{let e=[];for(let t in r)Bet.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){let t=Object.getOwnPropertySymbols(r);for(let n of t)vCr.call(r,n)&&e.push(n)}return e};function NG(r){return Array.isArray(r)?xCr(r):dle(r)?_Cr(r):r}function xCr(r){let e=r.slice(0,0);return ple(r).forEach(t=>{MG(e,t,NG(r[t]))}),e}function _Cr(r){let e=Object.getPrototypeOf(r)===null?Object.create(null):{};return ple(r).forEach(t=>{MG(e,t,NG(r[t]))}),e}var Det=(r,e,t,n)=>(t.forEach(a=>{typeof e[a]>"u"&&n.ignoreUndefined||(a in r&&r[a]!==Object.getPrototypeOf(r)?MG(r,a,B_e(r[a],e[a],n)):MG(r,a,NG(e[a])))}),r),TCr=(r,e,t)=>{let n=r.slice(0,0),a=0;return[r,e].forEach(i=>{let s=[];for(let o=0;o!s.includes(o)),t)}),n};function B_e(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?TCr(r,e,t):!dle(e)||!dle(r)?NG(e):Det(r,e,ple(e),t)}Oet.exports=function(...r){let e=B_e(NG(Net),this!==wCr&&this||{},Net),t={_:{}};for(let n of r)if(n!==void 0){if(!dle(n))throw new TypeError("`"+n+"` is not an Option Object");t=B_e(t,{_:n},e)}return t._}});var Kv=_(($On,Wet)=>{"use strict";d();p();function Fet(r,e){for(let t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function ICr(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return Fet(r,t)}catch{t.message=r.message,t.stack=r.stack;let a=function(){};return a.prototype=Object.create(Object.getPrototypeOf(r)),Fet(new a,t)}}Wet.exports=ICr});var Het=_((ZOn,Uet)=>{"use strict";d();p();function ECr(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);C!==R;){for(var W=m[C],V=0,K=L-1;(W!==0||V>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");I=V,C++}for(var H=L-I;H!==L&&F[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(R);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,V=R-1;(F!==0||W>>0,L[V]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");C=W,y++}if(m[y]!==" "){for(var K=R-C;K!==R&&L[K]===0;)K++;for(var H=new Uint8Array(I+(R-K)),G=I;K!==R;)H[G++]=L[K++];return H}}}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}Uet.exports=ECr});var hle=_((tqn,jet)=>{"use strict";d();p();var CCr=new TextDecoder,kCr=r=>CCr.decode(r),ACr=new TextEncoder,PCr=r=>ACr.encode(r);function SCr(r,e){let t=new Uint8Array(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return t}jet.exports={decodeText:kCr,encodeText:PCr,concat:SCr}});var Ket=_((aqn,zet)=>{"use strict";d();p();var{encodeText:RCr}=hle(),D_e=class{constructor(e,t,n,a){this.name=e,this.code=t,this.codeBuf=RCr(this.code),this.alphabet=a,this.codec=n(a)}encode(e){return this.codec.encode(e)}decode(e){for(let t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}};zet.exports=D_e});var Vet=_((oqn,Get)=>{"use strict";d();p();var MCr=(r,e,t)=>{let n={};for(let u=0;u=8&&(s-=8,i[c++]=255&o>>s)}if(s>=t||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return i},NCr=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<e=>({encode(t){return NCr(t,e,r)},decode(t){return MCr(t,e,r)}});Get.exports={rfc4648:BCr}});var Jet=_((lqn,Qet)=>{"use strict";d();p();var ZZ=Het(),DCr=Ket(),{rfc4648:wc}=Vet(),{decodeText:LCr,encodeText:OCr}=hle(),qCr=()=>({encode:LCr,decode:OCr}),Yet=[["identity","\0",qCr,""],["base2","0",wc(1),"01"],["base8","7",wc(3),"01234567"],["base10","9",ZZ,"0123456789"],["base16","f",wc(4),"0123456789abcdef"],["base16upper","F",wc(4),"0123456789ABCDEF"],["base32hex","v",wc(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",wc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",wc(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",wc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",wc(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",wc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",wc(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",wc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",wc(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",ZZ,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",ZZ,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",ZZ,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",ZZ,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",wc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],$et=Yet.reduce((r,e)=>(r[e[0]]=new DCr(e[0],e[1],e[2],e[3]),r),{}),FCr=Yet.reduce((r,e)=>(r[e[1]]=$et[e[0]],r),{});Qet.exports={names:$et,codes:FCr}});var L_e=_((_0,Xet)=>{"use strict";d();p();var BG=Jet(),{encodeText:WCr,decodeText:fle,concat:Zet}=hle();function UCr(r,e){if(!e)throw new Error("requires an encoded Uint8Array");let{name:t,codeBuf:n}=Gv(r);return KCr(t,e),Zet([n,e],n.length+e.length)}function HCr(r,e){let t=Gv(r),n=WCr(t.encode(e));return Zet([t.codeBuf,n],t.codeBuf.length+n.length)}function jCr(r){r instanceof Uint8Array&&(r=fle(r));let e=r[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e)&&(r=r.toLowerCase()),Gv(r[0]).decode(r.substring(1))}function zCr(r){if(r instanceof Uint8Array&&(r=fle(r)),Object.prototype.toString.call(r)!=="[object String]")return!1;try{return Gv(r[0]).name}catch{return!1}}function KCr(r,e){Gv(r).decode(fle(e))}function Gv(r){if(Object.prototype.hasOwnProperty.call(BG.names,r))return BG.names[r];if(Object.prototype.hasOwnProperty.call(BG.codes,r))return BG.codes[r];throw new Error(`Unsupported encoding: ${r}`)}function GCr(r){return r instanceof Uint8Array&&(r=fle(r)),Gv(r[0])}_0=Xet.exports=UCr;_0.encode=HCr;_0.decode=jCr;_0.isEncoded=zCr;_0.encoding=Gv;_0.encodingFromData=GCr;var VCr=Object.freeze(BG.names),YCr=Object.freeze(BG.codes);_0.names=VCr;_0.codes=YCr});var ntt=_((mqn,rtt)=>{d();p();rtt.exports=ttt;var ett=128,$Cr=127,QCr=~$Cr,JCr=Math.pow(2,31);function ttt(r,e,t){e=e||[],t=t||0;for(var n=t;r>=JCr;)e[t++]=r&255|ett,r/=128;for(;r&QCr;)e[t++]=r&255|ett,r>>>=7;return e[t]=r|0,ttt.bytes=t-n+1,e}});var stt=_((bqn,itt)=>{d();p();itt.exports=O_e;var ZCr=128,att=127;function O_e(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw O_e.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&att)<=ZCr);return O_e.bytes=i-n,t}});var ctt=_((xqn,ott)=>{d();p();var XCr=Math.pow(2,7),e8r=Math.pow(2,14),t8r=Math.pow(2,21),r8r=Math.pow(2,28),n8r=Math.pow(2,35),a8r=Math.pow(2,42),i8r=Math.pow(2,49),s8r=Math.pow(2,56),o8r=Math.pow(2,63);ott.exports=function(r){return r{d();p();utt.exports={encode:ntt(),decode:stt(),encodingLength:ctt()}});var ptt=_((kqn,dtt)=>{"use strict";d();p();var c8r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});dtt.exports={names:c8r}});function u8r(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);R!==L;){for(var V=y[R],K=0,H=F-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");C=K,R++}for(var G=F-C;G!==F&&W[G]===0;)G++;for(var Q=c.repeat(I);G>>0,F=new Uint8Array(L);y[I];){var W=t[y.charCodeAt(I)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");R=V,I++}if(y[I]!==" "){for(var H=L-R;H!==L&&F[H]===0;)H++;for(var G=new Uint8Array(C+(L-H)),Q=C;H!==L;)G[Q++]=F[H++];return G}}}function m(y){var I=f(y);if(I)return I;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var l8r,d8r,htt,ftt=ce(()=>{d();p();l8r=u8r,d8r=l8r,htt=d8r});var mle={};cr(mle,{coerce:()=>op,empty:()=>mtt,equals:()=>q_e,fromHex:()=>h8r,fromString:()=>F_e,isBinary:()=>f8r,toHex:()=>p8r,toString:()=>W_e});var mtt,p8r,h8r,q_e,op,f8r,F_e,W_e,gg=ce(()=>{d();p();mtt=new Uint8Array(0),p8r=r=>r.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),h8r=r=>{let e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):mtt},q_e=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},f8r=r=>r instanceof ArrayBuffer||ArrayBuffer.isView(r),F_e=r=>new TextEncoder().encode(r),W_e=r=>new TextDecoder().decode(r)});var U_e,H_e,j_e,ytt,z_e,DG,bg,m8r,y8r,is,xh=ce(()=>{d();p();ftt();gg();U_e=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},H_e=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){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))}else throw Error("Can only multibase decode strings")}or(e){return ytt(this,e)}},j_e=class{constructor(e){this.decoders=e}or(e){return ytt(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},ytt=(r,e)=>new j_e({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),z_e=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new U_e(e,t,n),this.decoder=new H_e(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},DG=({name:r,prefix:e,encode:t,decode:n})=>new z_e(r,e,t,n),bg=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=htt(t,e);return DG({prefix:r,name:e,encode:n,decode:i=>op(a(i))})},m8r=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},y8r=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<DG({prefix:e,name:r,encode(a){return y8r(a,n,t)},decode(a){return m8r(a,n,t,r)}})});var K_e={};cr(K_e,{identity:()=>g8r});var g8r,gtt=ce(()=>{d();p();xh();gg();g8r=DG({prefix:"\0",name:"identity",encode:r=>W_e(r),decode:r=>F_e(r)})});var G_e={};cr(G_e,{base2:()=>b8r});var b8r,btt=ce(()=>{d();p();xh();b8r=is({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var V_e={};cr(V_e,{base8:()=>v8r});var v8r,vtt=ce(()=>{d();p();xh();v8r=is({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var Y_e={};cr(Y_e,{base10:()=>w8r});var w8r,wtt=ce(()=>{d();p();xh();w8r=bg({prefix:"9",name:"base10",alphabet:"0123456789"})});var $_e={};cr($_e,{base16:()=>x8r,base16upper:()=>_8r});var x8r,_8r,xtt=ce(()=>{d();p();xh();x8r=is({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),_8r=is({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var Q_e={};cr(Q_e,{base32:()=>LG,base32hex:()=>C8r,base32hexpad:()=>A8r,base32hexpadupper:()=>P8r,base32hexupper:()=>k8r,base32pad:()=>I8r,base32padupper:()=>E8r,base32upper:()=>T8r,base32z:()=>S8r});var LG,T8r,I8r,E8r,C8r,k8r,A8r,P8r,S8r,J_e=ce(()=>{d();p();xh();LG=is({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),T8r=is({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),I8r=is({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),E8r=is({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),C8r=is({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),k8r=is({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),A8r=is({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),P8r=is({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),S8r=is({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})});var Z_e={};cr(Z_e,{base36:()=>R8r,base36upper:()=>M8r});var R8r,M8r,_tt=ce(()=>{d();p();xh();R8r=bg({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),M8r=bg({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var X_e={};cr(X_e,{base58btc:()=>Zf,base58flickr:()=>N8r});var Zf,N8r,eTe=ce(()=>{d();p();xh();Zf=bg({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),N8r=bg({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});var tTe={};cr(tTe,{base64:()=>B8r,base64pad:()=>D8r,base64url:()=>L8r,base64urlpad:()=>O8r});var B8r,D8r,L8r,O8r,Ttt=ce(()=>{d();p();xh();B8r=is({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),D8r=is({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),L8r=is({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),O8r=is({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var rTe={};cr(rTe,{base256emoji:()=>H8r});function W8r(r){return r.reduce((e,t)=>(e+=q8r[t],e),"")}function U8r(r){let e=[];for(let t of r){let n=F8r[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var Itt,q8r,F8r,H8r,Ett=ce(()=>{d();p();xh();Itt=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),q8r=Itt.reduce((r,e,t)=>(r[t]=e,r),[]),F8r=Itt.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);H8r=DG({prefix:"\u{1F680}",name:"base256emoji",encode:W8r,decode:U8r})});function Att(r,e,t){e=e||[],t=t||0;for(var n=t;r>=G8r;)e[t++]=r&255|Ctt,r/=128;for(;r&K8r;)e[t++]=r&255|Ctt,r>>>=7;return e[t]=r|0,Att.bytes=t-n+1,e}function nTe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw nTe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&ktt)<=Y8r);return nTe.bytes=i-n,t}var j8r,Ctt,z8r,K8r,G8r,V8r,Y8r,ktt,$8r,Q8r,J8r,Z8r,X8r,e4r,t4r,r4r,n4r,a4r,i4r,s4r,XZ,Ptt=ce(()=>{d();p();j8r=Att,Ctt=128,z8r=127,K8r=~z8r,G8r=Math.pow(2,31);V8r=nTe,Y8r=128,ktt=127;$8r=Math.pow(2,7),Q8r=Math.pow(2,14),J8r=Math.pow(2,21),Z8r=Math.pow(2,28),X8r=Math.pow(2,35),e4r=Math.pow(2,42),t4r=Math.pow(2,49),r4r=Math.pow(2,56),n4r=Math.pow(2,63),a4r=function(r){return r<$8r?1:rOG,encodeTo:()=>Vv,encodingLength:()=>Yv});var OG,Vv,Yv,yle=ce(()=>{d();p();Ptt();OG=(r,e=0)=>[XZ.decode(r,e),XZ.decode.bytes],Vv=(r,e,t=0)=>(XZ.encode(r,e,t),e),Yv=r=>XZ.encodingLength(r)});var Qv={};cr(Qv,{Digest:()=>$v,create:()=>vg,decode:()=>aTe,equals:()=>iTe});var vg,aTe,iTe,$v,eX=ce(()=>{d();p();gg();yle();vg=(r,e)=>{let t=e.byteLength,n=Yv(r),a=n+Yv(t),i=new Uint8Array(a+t);return Vv(r,i,0),Vv(t,i,n),i.set(e,a),new $v(r,t,e,i)},aTe=r=>{let e=op(r),[t,n]=OG(e),[a,i]=OG(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==a)throw new Error("Incorrect length");return new $v(t,a,s,e)},iTe=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&q_e(r.bytes,e.bytes),$v=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}}});var vle={};cr(vle,{Hasher:()=>gle,from:()=>ble});var ble,gle,sTe=ce(()=>{d();p();eX();ble=({name:r,code:e,encode:t})=>new gle(r,e,t),gle=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?vg(this.code,t):t.then(n=>vg(this.code,n))}else throw Error("Unknown type, must be binary type")}}});var oTe={};cr(oTe,{sha256:()=>o4r,sha512:()=>c4r});var Stt,o4r,c4r,Rtt=ce(()=>{d();p();sTe();Stt=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),o4r=ble({name:"sha2-256",code:18,encode:Stt("SHA-256")}),c4r=ble({name:"sha2-512",code:19,encode:Stt("SHA-512")})});var cTe={};cr(cTe,{identity:()=>d4r});var Mtt,u4r,Ntt,l4r,d4r,Btt=ce(()=>{d();p();gg();eX();Mtt=0,u4r="identity",Ntt=op,l4r=r=>vg(Mtt,Ntt(r)),d4r={code:Mtt,name:u4r,encode:Ntt,digest:l4r}});var uTe={};cr(uTe,{code:()=>h4r,decode:()=>m4r,encode:()=>f4r,name:()=>p4r});var p4r,h4r,f4r,m4r,Dtt=ce(()=>{d();p();gg();p4r="raw",h4r=85,f4r=r=>op(r),m4r=r=>op(r)});var lTe={};cr(lTe,{code:()=>v4r,decode:()=>x4r,encode:()=>w4r,name:()=>b4r});var y4r,g4r,b4r,v4r,w4r,x4r,Ltt=ce(()=>{d();p();y4r=new TextEncoder,g4r=new TextDecoder,b4r="json",v4r=512,w4r=r=>y4r.encode(JSON.stringify(r)),x4r=r=>JSON.parse(g4r.decode(r))});var zs,_4r,T4r,I4r,tX,E4r,Ott,qtt,wle,xle,C4r,k4r,A4r,Ftt=ce(()=>{d();p();yle();eX();eTe();J_e();gg();zs=class{constructor(e,t,n,a){this.code=t,this.version=e,this.multihash=n,this.bytes=a,this.byteOffset=a.byteOffset,this.byteLength=a.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:xle,byteLength:xle,code:wle,version:wle,multihash:wle,bytes:wle,_baseCache:xle,asCID:xle})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:t}=this;if(e!==tX)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==E4r)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return zs.createV0(t)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=vg(e,t);return zs.createV1(this.code,n)}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&&iTe(this.multihash,e.multihash)}toString(e){let{bytes:t,version:n,_baseCache:a}=this;switch(n){case 0:return T4r(t,a,e||Zf.encoder);default:return I4r(t,a,e||LG.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 k4r(/^0\.0/,A4r),!!(e&&(e[qtt]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof zs)return e;if(e!=null&&e.asCID===e){let{version:t,code:n,multihash:a,bytes:i}=e;return new zs(t,n,a,i||Ott(t,n,a.bytes))}else if(e!=null&&e[qtt]===!0){let{version:t,multihash:n,code:a}=e,i=aTe(n);return zs.create(t,a,i)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==tX)throw new Error(`Version 0 CID must use dag-pb (code: ${tX}) block encoding`);return new zs(e,t,n,n.bytes)}case 1:{let a=Ott(e,t,n.bytes);return new zs(e,t,n,a)}default:throw new Error("Invalid version")}}static createV0(e){return zs.create(0,tX,e)}static createV1(e,t){return zs.create(1,e,t)}static decode(e){let[t,n]=zs.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=zs.inspectBytes(e),n=t.size-t.multihashSize,a=op(e.subarray(n,n+t.multihashSize));if(a.byteLength!==t.multihashSize)throw new Error("Incorrect length");let i=a.subarray(t.multihashSize-t.digestSize),s=new $v(t.multihashCode,t.digestSize,i,a);return[t.version===0?zs.createV0(s):zs.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[h,f]=OG(e.subarray(t));return t+=f,h},a=n(),i=tX;if(a===18?(a=0,t=0):a===1&&(i=n()),a!==0&&a!==1)throw new RangeError(`Invalid CID version ${a}`);let s=t,o=n(),c=n(),u=t+c,l=u-s;return{version:a,codec:i,multihashCode:o,digestSize:c,multihashSize:l,size:u}}static parse(e,t){let[n,a]=_4r(e,t),i=zs.decode(a);return i._baseCache.set(n,e),i}},_4r=(r,e)=>{switch(r[0]){case"Q":{let t=e||Zf;return[Zf.prefix,t.decode(`${Zf.prefix}${r}`)]}case Zf.prefix:{let t=e||Zf;return[Zf.prefix,t.decode(r)]}case LG.prefix:{let t=e||LG;return[LG.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},T4r=(r,e,t)=>{let{prefix:n}=t;if(n!==Zf.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let a=e.get(n);if(a==null){let i=t.encode(r).slice(1);return e.set(n,i),i}else return a},I4r=(r,e,t)=>{let{prefix:n}=t,a=e.get(n);if(a==null){let i=t.encode(r);return e.set(n,i),i}else return a},tX=112,E4r=18,Ott=(r,e,t)=>{let n=Yv(r),a=n+Yv(e),i=new Uint8Array(a+t.byteLength);return Vv(r,i,0),Vv(e,i,n),i.set(t,a),i},qtt=Symbol.for("@ipld/js-cid/CID"),wle={writable:!1,configurable:!1,enumerable:!0},xle={writable:!1,enumerable:!1,configurable:!1},C4r="0.0.0-dev",k4r=(r,e)=>{if(r.test(C4r))console.warn(e);else throw new Error(e)},A4r=`CID.isCID(v) is deprecated and will be removed in the next major release. +`)}};ef.AccountTypeSchema=Qyt;ef.AddressSchema=oEr;ef.AuthenticateOptionsSchema=rbt;ef.AuthenticationPayloadDataSchema=_Pe;ef.AuthenticationPayloadSchema=uEr;ef.GenerateOptionsSchema=tbt;ef.LoginOptionsSchema=Jyt;ef.LoginPayloadDataSchema=Rbe;ef.LoginPayloadOutputSchema=lEr;ef.LoginPayloadSchema=Zyt;ef.RawDateSchema=Sbe;ef.ThirdwebAuth=xPe;ef.VerifyOptionsSchema=ebt});var abt=E(gl=>{"use strict";f();d();Object.defineProperty(gl,"__esModule",{value:!0});var Xf=nbt();ke();Cn();fn();gl.AccountTypeSchema=Xf.AccountTypeSchema;gl.AddressSchema=Xf.AddressSchema;gl.AuthenticateOptionsSchema=Xf.AuthenticateOptionsSchema;gl.AuthenticationPayloadDataSchema=Xf.AuthenticationPayloadDataSchema;gl.AuthenticationPayloadSchema=Xf.AuthenticationPayloadSchema;gl.GenerateOptionsSchema=Xf.GenerateOptionsSchema;gl.LoginOptionsSchema=Xf.LoginOptionsSchema;gl.LoginPayloadDataSchema=Xf.LoginPayloadDataSchema;gl.LoginPayloadOutputSchema=Xf.LoginPayloadOutputSchema;gl.LoginPayloadSchema=Xf.LoginPayloadSchema;gl.RawDateSchema=Xf.RawDateSchema;gl.ThirdwebAuth=Xf.ThirdwebAuth;gl.VerifyOptionsSchema=Xf.VerifyOptionsSchema});var ibt=E((mIa,TPe)=>{"use strict";f();d();g.env.NODE_ENV==="production"?TPe.exports=Kyt():TPe.exports=abt()});var sbt=E((gIa,IPe)=>{f();d();var EPe=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(D,T,x){D[T]=x.value},a,i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(D,T,x){return Object.defineProperty(D,T,{value:x,enumerable:!0,configurable:!0,writable:!0}),D[T]}try{u({},"")}catch{u=function(T,x,N){return T[x]=N}}function l(D,T,x,N){var U=T&&T.prototype instanceof A?T:A,M=Object.create(U.prototype),V=new w(N||[]);return n(M,"_invoke",{value:I(D,x,V)}),M}r.wrap=l;function p(D,T,x){try{return{type:"normal",arg:D.call(T,x)}}catch(N){return{type:"throw",arg:N}}}var h="suspendedStart",m="suspendedYield",y="executing",C="completed",P={};function A(){}function B(){}function F(){}var W={};u(W,s,function(){return this});var K=Object.getPrototypeOf,z=K&&K(K(R([])));z&&z!==e&&t.call(z,s)&&(W=z);var G=F.prototype=A.prototype=Object.create(W);B.prototype=F,n(G,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:B,configurable:!0}),B.displayName=u(F,c,"GeneratorFunction");function j(D){["next","throw","return"].forEach(function(T){u(D,T,function(x){return this._invoke(T,x)})})}r.isGeneratorFunction=function(D){var T=typeof D=="function"&&D.constructor;return T?T===B||(T.displayName||T.name)==="GeneratorFunction":!1},r.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,u(D,c,"GeneratorFunction")),D.prototype=Object.create(G),D},r.awrap=function(D){return{__await:D}};function H(D,T){function x(M,V,ee,$){var X=p(D[M],D,V);if(X.type==="throw")$(X.arg);else{var se=X.arg,ue=se.value;return ue&&typeof ue=="object"&&t.call(ue,"__await")?T.resolve(ue.__await).then(function(ye){x("next",ye,ee,$)},function(ye){x("throw",ye,ee,$)}):T.resolve(ue).then(function(ye){se.value=ye,ee(se)},function(ye){return x("throw",ye,ee,$)})}}var N;function U(M,V){function ee(){return new T(function($,X){x(M,V,$,X)})}return N=N?N.then(ee,ee):ee()}n(this,"_invoke",{value:U})}j(H.prototype),u(H.prototype,o,function(){return this}),r.AsyncIterator=H,r.async=function(D,T,x,N,U){U===void 0&&(U=Promise);var M=new H(l(D,T,x,N),U);return r.isGeneratorFunction(T)?M:M.next().then(function(V){return V.done?V.value:M.next()})};function I(D,T,x){var N=h;return function(M,V){if(N===y)throw new Error("Generator is already running");if(N===C){if(M==="throw")throw V;return O()}for(x.method=M,x.arg=V;;){var ee=x.delegate;if(ee){var $=b(ee,x);if($){if($===P)continue;return $}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(N===h)throw N=C,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);N=y;var X=p(D,T,x);if(X.type==="normal"){if(N=x.done?C:m,X.arg===P)continue;return{value:X.arg,done:x.done}}else X.type==="throw"&&(N=C,x.method="throw",x.arg=X.arg)}}}function b(D,T){var x=T.method,N=D.iterator[x];if(N===a)return T.delegate=null,x==="throw"&&D.iterator.return&&(T.method="return",T.arg=a,b(D,T),T.method==="throw")||x!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+x+"' method")),P;var U=p(N,D.iterator,T.arg);if(U.type==="throw")return T.method="throw",T.arg=U.arg,T.delegate=null,P;var M=U.arg;if(!M)return T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,P;if(M.done)T[D.resultName]=M.value,T.next=D.nextLoc,T.method!=="return"&&(T.method="next",T.arg=a);else return M;return T.delegate=null,P}j(G),u(G,c,"Generator"),u(G,s,function(){return this}),u(G,"toString",function(){return"[object Generator]"});function k(D){var T={tryLoc:D[0]};1 in D&&(T.catchLoc=D[1]),2 in D&&(T.finallyLoc=D[2],T.afterLoc=D[3]),this.tryEntries.push(T)}function S(D){var T=D.completion||{};T.type="normal",delete T.arg,D.completion=T}function w(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(k,this),this.reset(!0)}r.keys=function(D){var T=Object(D),x=[];for(var N in T)x.push(N);return x.reverse(),function U(){for(;x.length;){var M=x.pop();if(M in T)return U.value=M,U.done=!1,U}return U.done=!0,U}};function R(D){if(D){var T=D[s];if(T)return T.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var x=-1,N=function U(){for(;++x=0;--N){var U=this.tryEntries[N],M=U.completion;if(U.tryLoc==="root")return x("end");if(U.tryLoc<=this.prev){var V=t.call(U,"catchLoc"),ee=t.call(U,"finallyLoc");if(V&&ee){if(this.prev=0;--x){var N=this.tryEntries[x];if(N.tryLoc<=this.prev&&t.call(N,"finallyLoc")&&this.prev=0;--T){var x=this.tryEntries[T];if(x.finallyLoc===D)return this.complete(x.completion,x.afterLoc),S(x),P}},catch:function(D){for(var T=this.tryEntries.length-1;T>=0;--T){var x=this.tryEntries[T];if(x.tryLoc===D){var N=x.completion;if(N.type==="throw"){var U=N.arg;S(x)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,T,x){return this.delegate={iterator:R(D),resultName:T,nextLoc:x},this.method==="next"&&(this.arg=a),P}},r}(typeof IPe=="object"?IPe.exports:{});try{regeneratorRuntime=EPe}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=EPe:Function("r","regeneratorRuntime = r")(EPe)}});var bse=E(E1=>{"use strict";f();d();Object.defineProperty(E1,"__esModule",{value:!0});var obt=hEr(sbt());function CPe(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function gEr(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i=0)&&(t[a]=r[a]);return t}function pbt(r){return fEr(r)||mEr(r)||wEr(r)||yEr()}var vEr=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};function wEr(r,e){if(!!r){if(typeof r=="string")return CPe(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return CPe(r,e)}}Object.defineProperty(E1,"__esModule",{value:!0});function ga(r){for(var e=void 0,t=r[0],n=1;n"u"?"undefined":vEr(e))!=="symbol"?e+"":e,t),t},mbt="https://pay.coinbase.com",ybt=Gn(function(r){var e=r.host,t=e===void 0?mbt:e,n=r.destinationWallets,a=dbt(r,["host","destinationWallets"]),i=new URL(t);return i.pathname="/buy/select-asset",i.searchParams.append("destinationWallets",JSON.stringify(n)),Object.keys(a).forEach(function(s){var o=a[s];o!==void 0&&i.searchParams.append(s,o.toString())}),i.searchParams.sort(),i.toString()},"generateOnRampURL"),bbt="cbpay-embedded-onramp",_Er=Gn(function(r){var e=r.url,t=r.width,n=t===void 0?"100%":t,a=r.height,i=a===void 0?"100%":a,s=r.position,o=s===void 0?"fixed":s,c=r.top,u=c===void 0?"0px":c,l=document.createElement("iframe");return l.style.border="unset",l.style.borderWidth="0",l.style.width=n.toString(),l.style.height=i.toString(),l.style.position=o,l.style.top=u,l.id=bbt,l.src=e,l},"createEmbeddedContent"),ubt;(function(r){r.LaunchEmbedded="launch_embedded",r.AppReady="app_ready",r.AppParams="app_params",r.SigninSuccess="signin_success",r.Success="success",r.Exit="exit",r.Event="event",r.Error="error",r.PixelReady="pixel_ready",r.OnAppParamsNonce="on_app_params_nonce"})(ubt||(ubt={}));var gbt=Gn(function(r,e){var t=e.onMessage,n=e.shouldUnsubscribe,a=n===void 0?!0:n,i=e.allowedOrigin,s=e.onValidateOrigin,o=s===void 0?Gn(function(){return Promise.resolve(!0)},"onValidateOrigin"):s,c=Gn(function(u){var l=IEr(u.data),p=l.eventName,h=l.data,m=!i||u.origin===i;p===r&&dEr(obt.default.mark(function y(){return obt.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(P.t0=m,!P.t0){P.next=5;break}return P.next=4,o(u.origin);case 4:P.t0=P.sent;case 5:if(!P.t0){P.next=7;break}t(h),a&&window.removeEventListener("message",c);case 7:case"end":return P.stop()}},y)}))()},"onMessage");return window.addEventListener("message",c),function(){window.removeEventListener("message",c)}},"onBroadcastedPostMessage"),TEr=Gn(function(r){return r!==window?r:EEr(r)?{postMessage:function(e){return r.ReactNativeWebView.postMessage(e)}}:r.opener?r.opener:r.parent!==r.self?r.parent:void 0},"getSdkTarget"),EEr=Gn(function(r){try{return ga([r,"access",function(e){return e.ReactNativeWebView},"optionalAccess",function(e){return e.postMessage}])!==void 0}catch{return!1}},"isMobileSdkTarget"),SPe=Gn(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allowedOrigin,a=n===void 0?"*":n,i=t.data,s=CEr(e,i);r.postMessage(s,a)},"broadcastPostMessage"),IEr=Gn(function(r){try{return JSON.parse(r)}catch{return{eventName:r}}},"parsePostMessage"),CEr=Gn(function(r,e){return e?JSON.stringify({eventName:r,data:e}):r},"formatPostMessage"),AEr="/embed",kEr=5e3,APe="coinbase-sdk-connect",xg={signin:{width:460,height:730},widget:{width:430,height:600}},vbt=function r(e){var t=e.host,n=t===void 0?mbt:t,a=e.appId,i=e.appParams,s=e.onReady,o=e.onFallbackOpen,c=e.debug,u=this;lbt(this,r),Vo(this,"state","loading"),Vo(this,"nonce",""),Vo(this,"eventStreamListeners",{}),Vo(this,"unsubs",[]),Vo(this,"isLoggedIn",!1),Vo(this,"openExperience",Gn(function(l){if(u.log("Attempting to open experience",{state:u.state}),u.state!=="waiting_for_response"&&u.state!=="loading"){if(u.state==="failed"){ga([u,"access",function(K){return K.onFallbackOpen},"optionalCall",function(K){return K()}]);return}if(!u.nonce)throw new Error("Attempted to open CB Pay experience without nonce");var p=u.nonce;u.nonce="",u.setupExperienceListeners(l);var h=l.path,m=l.experienceLoggedIn,y=l.experienceLoggedOut,C=l.embeddedContentStyles,P=new URL("".concat(u.host).concat(h));P.searchParams.append("appId",u.appId),P.searchParams.append("type","secure_standalone");var A=u.isLoggedIn?m:y||m;P.searchParams.append("nonce",p);var B=P.toString();if(u.log("Opening experience",{experience:A,isLoggedIn:u.isLoggedIn}),A==="embedded"){var F=Gn(function(){var K=_Er(TT({url:B},C));ga([C,"optionalAccess",function(z){return z.target}])?ga([document,"access",function(z){return z.querySelector},"call",function(z){return z(ga([C,"optionalAccess",function(G){return G.target}]))},"optionalAccess",function(z){return z.replaceChildren},"call",function(z){return z(K)}]):document.body.appendChild(K)},"openEmbeddedExperience");u.isLoggedIn?F():u.startDirectSignin(F)}else A==="popup"&&ga([window,"access",function(K){return K.chrome},"optionalAccess",function(K){return K.windows},"optionalAccess",function(K){return K.create}])?window.chrome.windows.create({url:B,setSelfAsOpener:!0,type:"popup",focused:!0,width:xg.signin.width,height:xg.signin.height,left:window.screenLeft-xg.signin.width-10,top:window.screenTop},function(K){u.addEventStreamListener("open",function(){ga([K,"optionalAccess",function(z){return z.id}])&&chrome.windows.update(K.id,{width:xg.widget.width,height:xg.widget.height,left:window.screenLeft-xg.widget.width-10,top:window.screenTop})})}):A==="new_tab"&&ga([window,"access",function(K){return K.chrome},"optionalAccess",function(K){return K.tabs},"optionalAccess",function(K){return K.create}])?window.chrome.tabs.create({url:B}):kPe(B,A);var W=Gn(function(){u.sendAppParams(),u.removeEventStreamListener("open",W)},"onOpen");u.addEventStreamListener("open",W)}},"openExperience")),Vo(this,"endExperience",Gn(function(){ga([document,"access",function(l){return l.getElementById},"call",function(l){return l(bbt)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}])},"endExperience")),Vo(this,"destroy",Gn(function(){ga([document,"access",function(l){return l.getElementById},"call",function(l){return l(APe)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}]),u.unsubs.forEach(function(l){return l()})},"destroy")),Vo(this,"addPixelReadyListener",Gn(function(){u.onMessage("pixel_ready",{shouldUnsubscribe:!1,onMessage:function(l){u.log("Received message: pixel_ready"),u.isLoggedIn=!!ga([l,"optionalAccess",function(p){return p.isLoggedIn}]),ga([u,"access",function(p){return p.removeErrorListener},"optionalCall",function(p){return p()}]),u.sendAppParams(function(){ga([u,"access",function(p){return p.onReadyCallback},"optionalCall",function(p){return p()}])})}})},"addPixelReadyListener")),Vo(this,"addErrorListener",Gn(function(){u.removeErrorListener=u.onMessage("error",{shouldUnsubscribe:!0,onMessage:function(l){if(u.log("Received message: error"),l){var p=typeof l=="string"?l:JSON.stringify(l);ga([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h(new Error(p))}])}}})},"addErrorListener")),Vo(this,"embedPixel",Gn(function(){ga([document,"access",function(p){return p.getElementById},"call",function(p){return p(APe)},"optionalAccess",function(p){return p.remove},"call",function(p){return p()}]);var l=wbt({host:u.host,appId:u.appId});l.onerror=u.onFailedToLoad,u.pixelIframe=l,document.body.appendChild(l)},"embedPixel")),Vo(this,"onFailedToLoad",Gn(function(){if(u.state="failed",u.onFallbackOpen)u.debug&&console.warn("Failed to load CB Pay pixel. Falling back to opening in new tab."),ga([u,"access",function(p){return p.onReadyCallback},"optionalCall",function(p){return p()}]);else{var l=new Error("Failed to load CB Pay pixel");u.debug&&console.error(l),ga([u,"access",function(p){return p.onReadyCallback},"optionalCall",function(p){return p(l)}])}},"onFailedToLoad")),Vo(this,"sendAppParams",Gn(function(l){ga([u,"access",function(p){return p.pixelIframe},"optionalAccess",function(p){return p.contentWindow}])?(u.log("Sending message: app_params"),u.onMessage("on_app_params_nonce",{onMessage:function(p){u.state="ready",u.nonce=ga([p,"optionalAccess",function(h){return h.nonce}])||"",ga([l,"optionalCall",function(h){return h()}])}}),u.state="waiting_for_response",SPe(u.pixelIframe.contentWindow,"app_params",{data:u.appParams})):(console.error("Failed to find pixel content window"),u.state="failed",ga([u,"access",function(p){return p.onFallbackOpen},"optionalCall",function(p){return p()}]))},"sendAppParams")),Vo(this,"setupExperienceListeners",Gn(function(l){var p=l.onSuccess,h=l.onExit,m=l.onEvent;u.onMessage("event",{shouldUnsubscribe:!1,onMessage:function(y){var C=y;ga([u,"access",function(P){return P.eventStreamListeners},"access",function(P){return P[C.eventName]},"optionalAccess",function(P){return P.forEach},"call",function(P){return P(function(A){return ga([A,"optionalCall",function(B){return B()}])})}]),C.eventName==="success"&&ga([p,"optionalCall",function(P){return P()}]),C.eventName==="exit"&&ga([h,"optionalCall",function(P){return P(C.error)}]),ga([m,"optionalCall",function(P){return P(y)}])}})},"setupExperienceListeners")),Vo(this,"startDirectSignin",Gn(function(l){var p=new URLSearchParams;p.set("appId",u.appId),p.set("type","direct");var h="".concat(u.host,"/signin?").concat(p.toString()),m=kPe(h,"popup");u.onMessage("signin_success",{onMessage:function(){ga([m,"optionalAccess",function(y){return y.close},"call",function(y){return y()}]),l()}})},"startDirectSignin")),Vo(this,"addEventStreamListener",Gn(function(l,p){u.eventStreamListeners[l]?ga([u,"access",function(h){return h.eventStreamListeners},"access",function(h){return h[l]},"optionalAccess",function(h){return h.push},"call",function(h){return h(p)}]):u.eventStreamListeners[l]=[p]},"addEventStreamListener")),Vo(this,"removeEventStreamListener",Gn(function(l,p){if(u.eventStreamListeners[l]){var h=ga([u,"access",function(m){return m.eventStreamListeners},"access",function(m){return m[l]},"optionalAccess",function(m){return m.filter},"call",function(m){return m(function(y){return y!==p})}]);u.eventStreamListeners[l]=h}},"removeEventStreamListener")),Vo(this,"onMessage",Gn(function(){for(var l=arguments.length,p=new Array(l),h=0;h{"use strict";f();d();Object.defineProperty(BPe,"__esModule",{value:!0});var REr=bse();function MEr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function BEr(r,e,t){MEr(r,e),e.set(r,t)}function DEr(r,e){return e.get?e.get.call(r):e.value}function _bt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function NEr(r,e){var t=_bt(r,e,"get");return DEr(r,t)}function OEr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function FEr(r,e,t){var n=_bt(r,e,"set");return OEr(r,n,t),t}var LEr={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},RPe=new WeakMap,MPe=class{constructor(e){BEr(this,RPe,{writable:!0,value:void 0}),FEr(this,RPe,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{REr.initOnRamp({appId:NEr(this,RPe),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[LEr[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};BPe.CoinbasePayIntegration=MPe});var Ebt=E(DPe=>{"use strict";f();d();Object.defineProperty(DPe,"__esModule",{value:!0});var qEr=Tbt();bse();DPe.CoinbasePayIntegration=qEr.CoinbasePayIntegration});var Cbt=E(FPe=>{"use strict";f();d();Object.defineProperty(FPe,"__esModule",{value:!0});var WEr=bse();function UEr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function HEr(r,e,t){UEr(r,e),e.set(r,t)}function jEr(r,e){return e.get?e.get.call(r):e.value}function Ibt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function zEr(r,e){var t=Ibt(r,e,"get");return jEr(r,t)}function KEr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function GEr(r,e,t){var n=Ibt(r,e,"set");return KEr(r,n,t),t}var VEr={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},NPe=new WeakMap,OPe=class{constructor(e){HEr(this,NPe,{writable:!0,value:void 0}),GEr(this,NPe,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{WEr.initOnRamp({appId:zEr(this,NPe),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[VEr[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};FPe.CoinbasePayIntegration=OPe});var Abt=E(LPe=>{"use strict";f();d();Object.defineProperty(LPe,"__esModule",{value:!0});var $Er=Cbt();bse();LPe.CoinbasePayIntegration=$Er.CoinbasePayIntegration});var kbt=E((OIa,qPe)=>{"use strict";f();d();g.env.NODE_ENV==="production"?qPe.exports=Ebt():qPe.exports=Abt()});var Es=E(ju=>{"use strict";f();d();var YEr=Fr(),ET=ke(),Yt=fn();function QEr(r){return r&&r.__esModule?r:{default:r}}var IT=QEr(YEr),Mbt="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function JEr(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Mbt;return`https://${r}.rpc.thirdweb.com/${e}`}var ZEr=()=>typeof window<"u",Sbt=ZEr()?Yt.z.instanceof(File):Yt.z.instanceof(v.Buffer),XEr=Yt.z.union([Sbt,Yt.z.object({data:Yt.z.union([Sbt,Yt.z.string()]),name:Yt.z.string()})]),Mbe=Yt.z.union([XEr,Yt.z.string()]),Bbt=1e4,e9r=Yt.z.union([Yt.z.array(Yt.z.number()),Yt.z.string()]),t9r=Yt.z.union([Yt.z.string(),Yt.z.number(),Yt.z.bigint(),Yt.z.custom(r=>ET.BigNumber.isBigNumber(r)),Yt.z.custom(r=>IT.default.isBN(r))]).transform(r=>{let e=IT.default.isBN(r)?new IT.default(r).toString():ET.BigNumber.from(r).toString();return ET.BigNumber.from(e)});t9r.transform(r=>r.toString());var Dbt=Yt.z.union([Yt.z.bigint(),Yt.z.custom(r=>ET.BigNumber.isBigNumber(r)),Yt.z.custom(r=>IT.default.isBN(r))]).transform(r=>IT.default.isBN(r)?new IT.default(r).toString():ET.BigNumber.from(r).toString()),r9r=Yt.z.number().max(Bbt,"Cannot exceed 100%").min(0,"Cannot be below 0%"),n9r=Yt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),a9r=Yt.z.union([Yt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),Yt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),Yt.z.string().length(0)]),Nbt=Yt.z.union([Yt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),Yt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),i9r=Yt.z.union([Nbt,Yt.z.literal("unlimited")]).default("unlimited"),Obt=Yt.z.date().transform(r=>ET.BigNumber.from(Math.floor(r.getTime()/1e3)));Obt.default(new Date(0));Obt.default(new Date(Date.now()+1e3*60*60*24*365*10));function s9r(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function o9r(r){var e=s9r(r,"string");return typeof e=="symbol"?e:String(e)}function c9r(r,e,t){return e=o9r(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Pbt=Yt.z.object({}).catchall(Yt.z.union([Dbt,Yt.z.unknown()])),Rbt=Yt.z.union([Yt.z.array(Pbt),Pbt]).optional().nullable(),UPe=Yt.z.object({name:Yt.z.union([Yt.z.string(),Yt.z.number()]).optional().nullable(),description:Yt.z.string().nullable().optional().nullable(),image:Mbe.nullable().optional(),external_url:Mbe.nullable().optional(),animation_url:Mbe.optional().nullable(),background_color:a9r.optional().nullable(),properties:Rbt,attributes:Rbt}).catchall(Yt.z.union([Dbt,Yt.z.unknown()])),u9r=Yt.z.union([UPe,Yt.z.string()]),l9r=UPe.extend({id:Yt.z.string(),uri:Yt.z.string(),image:Yt.z.string().nullable().optional(),external_url:Yt.z.string().nullable().optional(),animation_url:Yt.z.string().nullable().optional()}),WPe=100,f9r=Yt.z.object({start:Yt.z.number().default(0),count:Yt.z.number().default(WPe)}).default({start:0,count:WPe});ju.AmountSchema=Nbt;ju.BasisPointsSchema=r9r;ju.BytesLikeSchema=e9r;ju.CommonNFTInput=UPe;ju.CommonNFTOutput=l9r;ju.DEFAULT_API_KEY=Mbt;ju.DEFAULT_QUERY_ALL_COUNT=WPe;ju.FileOrBufferOrStringSchema=Mbe;ju.MAX_BPS=Bbt;ju.NFTInputOrUriSchema=u9r;ju.PercentSchema=n9r;ju.QuantitySchema=i9r;ju.QueryAllParamsSchema=f9r;ju._defineProperty=c9r;ju.getRpcUrl=JEr});var va=E((HIa,d9r)=>{d9r.exports=[{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var wa=E((jIa,p9r)=>{p9r.exports=[{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var xa=E((zIa,h9r)=>{h9r.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var _a=E((KIa,m9r)=>{m9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Ta=E((GIa,y9r)=>{y9r.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ea=E((VIa,b9r)=>{b9r.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ia=E(($Ia,g9r)=>{g9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Ca=E((YIa,v9r)=>{v9r.exports=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Aa=E((QIa,w9r)=>{w9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ka=E((JIa,x9r)=>{x9r.exports=[{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"}]});var Sa=E((ZIa,_9r)=>{_9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Pa=E((XIa,T9r)=>{T9r.exports=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ra=E((eCa,E9r)=>{E9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Ma=E((tCa,I9r)=>{I9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var Ba=E((rCa,C9r)=>{C9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var na=E((nCa,A9r)=>{A9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Da=E((aCa,k9r)=>{k9r.exports=[{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Na=E((iCa,S9r)=>{S9r.exports=[{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Oa=E((sCa,P9r)=>{P9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"extraData",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Fa=E((oCa,R9r)=>{R9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var La=E((cCa,M9r)=>{M9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var qa=E((uCa,B9r)=>{B9r.exports=[{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var Wa=E((lCa,D9r)=>{D9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"tier",type:"string"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMetadataForAllTiers",outputs:[{components:[{internalType:"string",name:"tier",type:"string"},{components:[{internalType:"uint256",name:"startIdInclusive",type:"uint256"},{internalType:"uint256",name:"endIdNonInclusive",type:"uint256"}],internalType:"struct LazyMintWithTier.TokenRange[]",name:"ranges",type:"tuple[]"},{internalType:"string[]",name:"baseURIs",type:"string[]"}],internalType:"struct LazyMintWithTier.TierMetadata[]",name:"metadataForAllTiers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"string",name:"_tier",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Ua=E((fCa,N9r)=>{N9r.exports=[{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ha=E((dCa,O9r)=>{O9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var ja=E((pCa,F9r)=>{F9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var za=E((hCa,L9r)=>{L9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ka=E((mCa,q9r)=>{q9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ga=E((yCa,W9r)=>{W9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase1155_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var aa=E((bCa,U9r)=>{U9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_owner",type:"address"},{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!1,internalType:"bool",name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"_ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256",name:"_id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"_value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_value",type:"string"},{indexed:!0,internalType:"uint256",name:"_id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Va=E((gCa,H9r)=>{H9r.exports=[{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var $a=E((vCa,j9r)=>{j9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ya=E((wCa,z9r)=>{z9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Qa=E((xCa,K9r)=>{K9r.exports=[{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ja=E((_Ca,G9r)=>{G9r.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"AppURIUpdated",type:"event"},{inputs:[],name:"appURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setAppURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Za=E((TCa,V9r)=>{V9r.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Xa=E((ECa,$9r)=>{$9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"BuyerApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"}],name:"CancelledListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"currency",type:"address"},{indexed:!1,internalType:"uint256",name:"pricePerToken",type:"uint256"}],name:"CurrencyApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"NewListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"UpdatedListing",type:"event"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyer",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveBuyerForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerTokenInCurrency",type:"uint256"}],name:"approveCurrencyForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_expectedTotalPrice",type:"uint256"}],name:"buyFromListing",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"getListing",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ei=E((ICa,Y9r)=>{Y9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"}],name:"CancelledAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"bidder",type:"address"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"bidAmount",type:"uint256"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewBid",type:"event"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"bidInAuction",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"cancelAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionPayout",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"}],internalType:"struct IEnglishAuctions.AuctionParameters",name:"_params",type:"tuple"}],name:"createAuction",outputs:[{internalType:"uint256",name:"auctionId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getAuction",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getWinningBid",outputs:[{internalType:"address",name:"bidder",type:"address"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"bidAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"isAuctionExpired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"isNewWinningBid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ti=E((CCa,Q9r)=>{Q9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"AcceptedOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"}],name:"CancelledOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],name:"NewOffer",type:"event"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"cancelOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"getOffer",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],internalType:"struct IOffers.OfferParams",name:"_params",type:"tuple"}],name:"makeOffer",outputs:[{internalType:"uint256",name:"offerId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var ri=E((ACa,J9r)=>{J9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountToOpen",type:"uint256"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackOpenRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackRandomnessFulfilled",type:"event"},{inputs:[{internalType:"address",name:"_opener",type:"address"}],name:"canClaimRewards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimRewards",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"rewardUnits",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"packUri",type:"string"},{internalType:"uint128",name:"openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"amountToOpen",type:"uint256"}],name:"openPack",outputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"},{internalType:"uint32",name:"_callBackGasLimit",type:"uint32"}],name:"openPackAndClaimRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var ni=E((kCa,Z9r)=>{Z9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ai=E((SCa,X9r)=>{X9r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ii=E((PCa,e7r)=>{e7r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var si=E((RCa,t7r)=>{t7r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"}]});var oi=E((MCa,r7r)=>{r7r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ci=E((BCa,n7r)=>{n7r.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}]});var qbt=E(L=>{"use strict";f();d();Object.defineProperty(L,"__esModule",{value:!0});var a7r={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},i7r={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},s7r={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},o7r={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},c7r={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"goerli"},u7r={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},l7r={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},f7r={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},d7r={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},p7r={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"optimism"},h7r={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},m7r={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},y7r={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},b7r={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},g7r={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},v7r={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},w7r={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},x7r={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},_7r={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},T7r={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},E7r={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},I7r={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},C7r={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},A7r={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},k7r={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},S7r={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},P7r={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},R7r={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},M7r={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},B7r={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},D7r={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},N7r={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},O7r={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},F7r={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},L7r={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},q7r={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},W7r={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},U7r={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},H7r={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},j7r={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},testnet:!1,slug:"telos-evm"},z7r={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},slug:"telos-evm-testnet"},K7r={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},G7r={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},V7r={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},$7r={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},Y7r={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},Q7r={name:"Acria IntelliChain",chain:"AIC",rpc:["https://acria-intellichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://aic.acria.ai"],faucets:[],nativeCurrency:{name:"ACRIA",symbol:"ACRIA",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://acria.ai",shortName:"aic",chainId:47,networkId:47,explorers:[{name:"Acria IntelliChain-Explorer",url:"https://explorer.acria.ai",standard:"EIP3091"}],testnet:!1,slug:"acria-intellichain"},J7r={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},Z7r={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},X7r={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network","https://rpc-xdc.icecreamswap.com"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},eIr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},tIr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},rIr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},nIr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},aIr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},iIr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"binance"},sIr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},oIr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},cIr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},uIr={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},lIr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},fIr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},dIr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},pIr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},hIr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},mIr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},yIr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},bIr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},gIr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},vIr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},wIr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},xIr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy"},_Ir={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},TIr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},EIr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},IIr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},CIr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},AIr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},kIr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},SIr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},PIr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},RIr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},MIr={name:"Linqto Devnet",chain:"LNQ",rpc:["https://linqto-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://linqto-dev.com"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},infoURL:"https://linqto.com",shortName:"linqto-devnet",chainId:84,networkId:84,explorers:[{name:"Linqto Devnet Explorer",url:"https://explorer.linqto-dev.com",standard:"EIP3091"}],testnet:!1,slug:"linqto-devnet"},BIr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},DIr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},NIr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},OIr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},FIr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},LIr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},qIr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},WIr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},UIr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},HIr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},jIr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"binance-testnet"},zIr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},KIr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"gnosis"},GIr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},VIr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},$Ir={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},YIr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},QIr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},JIr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},ZIr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},XIr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},eCr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},tCr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},rCr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},nCr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},aCr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},iCr={name:"Uptick Mainnet",chain:"Uptick",rpc:["https://uptick.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.uptick.network"],faucets:[],nativeCurrency:{name:"Uptick",symbol:"UPTICK",decimals:18},infoURL:"https://www.uptick.network",shortName:"auptick",chainId:117,networkId:117,icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},explorers:[{name:"Uptick Explorer",url:"https://evm-explorer.uptick.network",icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"uptick"},sCr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},oCr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"enuls"},cCr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},uCr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},lCr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},fCr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},dCr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},pCr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},hCr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},mCr={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},yCr={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},bCr={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},gCr={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},vCr={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},wCr={name:"Defi Oracle Meta Mainnet",chain:"dfiometa",icon:{url:"ipfs://QmYrMRnjQJcNkYq9AvZ2FQ9kzYj9szzP4YDmyNA1ybd8xE",width:1e3,height:1043,format:"png"},rpc:["https://defi-oracle-meta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public-0138.defi-oracle.io","wss://rpc.public-0138.defi-oracle.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://defi-oracle.io/",shortName:"dfio-meta-main",chainId:138,networkId:1,slip44:60,ens:{registry:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},explorers:[{name:"Quorum Explorer",url:"https://public-0138.defi-oracle.io",standard:"none"}],testnet:!1,slug:"defi-oracle-meta"},xCr={name:"WoopChain Mainnet",chain:"WOOP",icon:{url:"ipfs://Qma7LpnkGjAN1dwL6VTXUYqzySNxjLg4br7J8UE4yZWYec",width:310,height:310,format:"png"},rpc:["https://woopchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.woop.ai/rpc"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"WoopCoin",symbol:"WOOC",decimals:18},infoURL:"https://wikiwoop.com",shortName:"woop",chainId:139,networkId:139,explorers:[{name:"wikiwoop",url:"https://explorer.wikiwoop.com",standard:"EIP3091"}],testnet:!1,slug:"woopchain"},_Cr={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},TCr={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},ECr={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v2"},ICr={name:"Six Protocol Testnet",chain:"FIVENET",icon:{url:"ipfs://QmP93z696v8Hetu13peY2oEHDXq8Bj5CqaDRwpVkpnM15A",width:512,height:512,format:"png"},rpc:["https://six-protocol-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm.fivenet.sixprotocol.net"],faucets:["https://faucet.sixprotocol.net"],nativeCurrency:{name:"SIX testnet evm token",symbol:"tSIX",decimals:18},infoURL:"https://six.network/",shortName:"sixt",chainId:150,networkId:150,explorers:[{name:"SIX Scan fivenet",url:"https://sixscan.io/fivenet",standard:"none",icon:{url:"ipfs://QmP93z696v8Hetu13peY2oEHDXq8Bj5CqaDRwpVkpnM15A",width:512,height:512,format:"png"}}],testnet:!0,slug:"six-protocol-testnet"},CCr={name:"OEBlock Testnet",chain:"OEBt",features:[{name:"EIP155"},{name:"EIP1559"}],rpc:["https://oeblock-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.oeblock.com"],faucets:[],nativeCurrency:{name:"OEBlock",symbol:"OEB",decimals:18},infoURL:"https://www.oeblock.com/",shortName:"obe",chainId:156,networkId:156,icon:{url:"ipfs://QmdoQUfYqtkWMfjtoPv2KWDY4MxDDSsyWgwXtCx6jfkezz",width:155,height:177,format:"png"},explorers:[{name:"OEScan explorer",url:"https://testnet.oescan.io",standard:"EIP3091"}],testnet:!0,slug:"oeblock-testnet"},ACr={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},kCr={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},SCr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},PCr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},RCr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},MCr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},BCr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},DCr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},NCr={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},OCr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},FCr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},LCr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},qCr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},WCr={name:"OKBChain Testnet",chain:"okbchain",rpc:["https://okbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://okbtestrpc.okbchain.org"],faucets:["https://www.oklink.com/okbc-test"],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",shortName:"tokb",chainId:195,networkId:195,explorers:[{name:"OKLink",url:"https://www.oklink.com/okbc-test",standard:"EIP3091"}],status:"active",testnet:!0,slug:"okbchain-testnet"},UCr={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},HCr={name:"Neutrinos TestNet",chain:"NEUTR",rpc:["https://neutrinos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.neutrinoschain.com"],faucets:["https://neutrinoschain.com/faucet"],nativeCurrency:{name:"Neutrinos",symbol:"NEUTR",decimals:18},infoURL:"https://docs.neutrinoschain.com",shortName:"NEUTR",chainId:197,networkId:197,explorers:[{name:"blockscout",url:"https://testnet.neutrinoschain.com",standard:"EIP3091"}],testnet:!0,slug:"neutrinos-testnet"},jCr={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},zCr={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},KCr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},GCr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},VCr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},$Cr={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},YCr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},QCr={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},JCr={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},ZCr={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},XCr={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"fantom"},eAr={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},tAr={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},rAr={name:"Neonlink Mainnet",chain:"Neonlink",rpc:["https://neonlink.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonlink.io"],faucets:[],nativeCurrency:{name:"Neonlink Native Token",symbol:"NEON",decimals:18},infoURL:"https://neonlink.io",shortName:"neon",chainId:259,networkId:259,icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"},explorers:[{name:"Neon Blockchain Explorer",url:"https://scan.neonlink.io",standard:"EIP3091",icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"}}],testnet:!1,slug:"neonlink"},nAr={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},aAr={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},iAr={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.era.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},sAr={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},oAr={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},cAr={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},uAr={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},lAr={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},fAr={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},dAr={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},pAr={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"omax"},hAr={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},mAr={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},yAr={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},bAr={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.era.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zksync.io/"}]},testnet:!1,slug:"zksync-era"},gAr={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},vAr={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!0,slug:"dfk-chain-test"},wAr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"shiden"},xAr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},_Ar={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},TAr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},EAr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},IAr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},CAr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},AAr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},kAr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},SAr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},PAr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},RAr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},MAr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"optimism-goerli"},BAr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},DAr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},NAr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},OAr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},FAr={name:"Columbus Test Network",chain:"CAM",rpc:["https://columbus-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://columbus.camino.network/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},LAr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},qAr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},WAr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},UAr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},HAr={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},jAr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},zAr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},KAr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},GAr={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},VAr={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},$Ar={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"astar"},YAr={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},QAr={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},JAr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},ZAr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!0,slug:"metis-goerli-testnet"},XAr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},ekr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},tkr={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},rkr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},nkr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},akr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},ikr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},skr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},okr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},ckr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},ukr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},lkr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ql1"},fkr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},dkr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},pkr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},hkr={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},mkr={name:"Lucid Blockchain",chain:"Lucid",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},ykr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},bkr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},gkr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},vkr={name:"BeOne Chain Mainnet",chain:"BOC",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},rpc:["https://beone-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.beonechain.com","https://dataseed2.beonechain.com","https://dataseed-us1.beonechain.com","https://dataseed-us2.beonechain.com","https://dataseed-uk1.beonechain.com","https://dataseed-uk2.beonechain.com"],faucets:[],nativeCurrency:{name:"BeOne Chain Mainnet",symbol:"BOC",decimals:18},infoURL:"https://beonechain.com",shortName:"BOC",chainId:818,networkId:818,slip44:8181,explorers:[{name:"BeOne Chain Mainnet",url:"https://beonescan.com",standard:"EIP3091"}],testnet:!1,slug:"beone-chain"},wkr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},xkr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},_kr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Tkr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},Ekr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},Ikr={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},Ckr={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},Akr={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},kkr={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},Skr={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},Pkr={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},Rkr={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},Mkr={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},Bkr={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},Dkr={name:"DecentraBone Layer1 Testnet",chain:"DBONE",rpc:["https://decentrabone-layer1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://layer1test.decentrabone.com"],faucets:[],nativeCurrency:{name:"DecentraBone",symbol:"DBONE",decimals:18},infoURL:"https://decentrabone.com",shortName:"DBONE",chainId:910,networkId:910,testnet:!0,slug:"decentrabone-layer1-testnet"},Nkr={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},Okr={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},Fkr={name:"PulseChain Testnet v4",shortName:"t4pls",chain:"t4PLS",chainId:943,networkId:943,icon:{url:"ipfs://Qmckj9B9F3jWDk9bv9HwoPmfjrx2Ju8J2BQSNoPFdYGduj",width:433,height:402,format:"png"},infoURL:"https://pulsechain.com",rpc:["https://pulsechain-testnet-v4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v4.testnet.pulsechain.com/","wss://rpc.v4.testnet.pulsechain.com/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://faucet.v4.testnet.pulsechain.com/"],ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},status:"incubating",explorers:[],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v4"},Lkr={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},qkr={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},Wkr={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},Ukr={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},Hkr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},jkr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},zkr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},Kkr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},Gkr={name:"5ireChain Thunder",chain:"5ireChain",rpc:["https://5irechain-thunder.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.5ire.network"],faucets:["https://explorer.5ire.network/faucet"],nativeCurrency:{name:"5ire Token",symbol:"5ire",decimals:18},infoURL:"https://5ire.org",shortName:"5ire",chainId:997,networkId:997,icon:{url:"ipfs://QmaZDNDFLWESH4i3XqwEWfWBb1HPnQSNbDAr74nr2x8QAk",width:800,height:800,format:"svg"},explorers:[{name:"5ireChain Explorer",url:"https://explorer.5ire.network",standard:"none",icon:{url:"ipfs://QmaZDNDFLWESH4i3XqwEWfWBb1HPnQSNbDAr74nr2x8QAk",width:800,height:800,format:"svg"}}],testnet:!0,slug:"5irechain-thunder"},Vkr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},$kr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},Ykr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},Qkr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},Jkr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},Zkr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},Xkr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!1,slug:"eurus"},eSr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},tSr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},rSr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},nSr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},aSr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},iSr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},sSr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},oSr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},cSr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!0,slug:"bronos-testnet"},uSr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!1,slug:"bronos"},lSr={name:"ShimmerEVM Testnet",title:"ShimmerEVM Testnet",chain:"ShimmerEVM",icon:{url:"ipfs://bafkreibky2sy6qhi6arktayvologkrgu5kudpgdxfkx4uosbvmstz7v4di",width:720,height:720,format:"png"},rpc:["https://shimmerevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.evm.testnet.shimmer.network"],faucets:["https://evm-toolkit.evm.testnet.shimmer.network","https://evm-faucet.testnet.shimmer.network"],nativeCurrency:{name:"SMR",symbol:"SMR",decimals:18},infoURL:"https://shimmer.network",shortName:"shimmerevm-testnet",chainId:1071,networkId:1071,explorers:[{name:"explorer",url:"https://explorer.evm.testnet.shimmer.network",standard:"EIP3091"}],testnet:!0,slug:"shimmerevm-testnet"},fSr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!1,slug:"metis-andromeda"},dSr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},pSr={name:"Polygon zkEVM",title:"Polygon zkEVM",chain:"Polygon",rpc:["https://polygon-zkevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zkevm-rpc.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/polygon-zkevm",shortName:"zkevm",chainId:1101,networkId:1101,icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},explorers:[{name:"blockscout",url:"https://zkevm.polygonscan.com",icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zkevm-rpc.com"}]},testnet:!1,slug:"polygon-zkevm"},hSr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},mSr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},ySr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},bSr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},gSr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},vSr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},wSr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},xSr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},_Sr={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},TSr={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},ESr={name:"Symplexia Smart Chain",chain:"Plexchain",rpc:["https://symplexia-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://plex-rpc.plexfinance.us"],faucets:[],nativeCurrency:{name:"Plex Native Token",symbol:"PLEX",decimals:18},infoURL:"https://plexfinance.us/",shortName:"Plexchain",chainId:1149,networkId:1149,icon:{url:"ipfs://QmcXzfMNSQ7SZzKemNquVoXyG5ergdqCGeLWjRYETGBTUM",width:256,height:256,format:"png"},explorers:[{name:"Plexchain Explorer",url:"https://explorer.plexfinance.us",icon:{url:"ipfs://QmcXzfMNSQ7SZzKemNquVoXyG5ergdqCGeLWjRYETGBTUM",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"symplexia-smart-chain"},ISr={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},CSr={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},ASr={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},kSr={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},SSr={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},PSr={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"enterchain"},RSr={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},MSr={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!0,slug:"ultron-testnet"},BSr={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"ultron"},DSr={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},NSr={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},OSr={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},FSr={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},LSr={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},qSr={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},WSr={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},USr={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},HSr={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},jSr={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},zSr={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"TDOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},KSr={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},GSr={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},VSr={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},$Sr={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},YSr={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},QSr={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},JSr={name:"Zafirium Mainnet",chain:"ZAFIC",icon:{url:"ipfs://QmZT1Wq3P4YbgKBSUmCtgbs5ijPF5d91BzaMPh7Aub8d8t",width:192,height:192,format:"png"},rpc:["https://zafirium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.zakumi.io"],faucets:[],nativeCurrency:{name:"Zakumi Chain Native Token",symbol:"ZAFIC",decimals:18},infoURL:"https://www.zakumi.io",shortName:"zafic",chainId:1369,networkId:1369,explorers:[{name:"zafirium-explorer",url:"https://explorer.zakumi.io",standard:"none"}],testnet:!1,slug:"zafirium"},ZSr={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},XSr={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",icon:{url:"ipfs://QmfJ1Qxpzi6CSLeFeWY1Bwe435CpT5za5WfrLUE7vNzZfy",width:512,height:512,format:"png"},rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},ePr={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},testnet:!0,slug:"polygon-zkevm-testnet"},tPr={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},rPr={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},nPr={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},aPr={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},iPr={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},sPr={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},oPr={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},cPr={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},uPr={name:"Horizen Gobi Testnet",shortName:"Gobi",chain:"Gobi",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-gobi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gobi-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1663,networkId:1663,slip44:121,explorers:[{name:"Gobi Testnet Block Explorer",url:"https://gobi-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-gobi-testnet"},lPr={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},fPr={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},dPr={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},pPr={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},hPr={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PCM",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!1,slug:"palette-chain"},mPr={name:"PartyChain",chain:"mainnet",rpc:["https://partychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tea.mining4people.com/rpc","http://172.104.194.36:8545"],faucets:[],nativeCurrency:{name:"Grams",symbol:"GRAMS",decimals:18},infoURL:"TeaPartyCrypto.com",shortName:"TeaParty",chainId:1773,networkId:1773,icon:{url:"ipfs://QmerDBFoXvgev2xx9U71gAaAK4CtxaaQVaAPf9Qi6UF9MS",width:400,height:400,format:"jpg"},status:"incubating",explorers:[{name:"PartyExplorer",url:"https://partyexplorer.co",icon:{url:"ipfs://QmerDBFoXvgev2xx9U71gAaAK4CtxaaQVaAPf9Qi6UF9MS",width:400,height:400,format:"jpg"},standard:"EIP3091"}],testnet:!1,slug:"partychain"},yPr={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},bPr={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},gPr={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},vPr={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},wPr={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},xPr={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},_Pr={name:"Lightlink Phoenix Mainnet",chain:"Lightlink Phoenix Mainnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.phoenix.lightlink.io/rpc/v1","https://replicator-02.phoenix.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_phoenix",chainId:1890,networkId:1890,explorers:[{name:"phoenix",url:"https://phoenix.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"lightlink-phoenix"},TPr={name:"Lightlink Pegasus Testnet",chain:"Lightlink Pegasus Testnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-pegasus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.pegasus.lightlink.io/rpc/v1","https://replicator-02.pegasus.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:["https://pegasus-faucet-react.vercel.app"],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_pegasus",chainId:1891,networkId:1891,explorers:[{name:"pegasus",url:"https://pegasus.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"lightlink-pegasus-testnet"},EPr={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},IPr={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},CPr={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},APr={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},kPr={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},SPr={name:"Dexilla Testnet",chain:"Dexilla",rpc:["https://dexilla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dexilla.com"],faucets:[],icon:{url:"ipfs://QmUBveetVibvSEWQrjyxySgUphLuoMGSVLGmYnobt5FgEZ",width:512,height:512,format:"png"},nativeCurrency:{name:"Dexilla Native Token",symbol:"DXZ",decimals:18},infoURL:"https://dexilla.com",shortName:"Dexilla",chainId:1954,networkId:1954,explorers:[{name:"dos-mainnet",url:"https://exp.dexilla.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://bridge.dexilla.com"}]},testnet:!0,slug:"dexilla-testnet"},PPr={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},RPr={name:"Super Smart Chain Testnet",chain:"TSCS",rpc:["https://super-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.superexchain.com:8544"],faucets:["https://testnet.superexchain.com"],nativeCurrency:{name:"Super Chain Native Token",symbol:"TSCS",decimals:18},infoURL:"https://testnet.superexchain.com",shortName:"tscs",chainId:1969,networkId:1969,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://testnetscan.superexchain.com",standard:"EIP3091"}],testnet:!0,slug:"super-smart-chain-testnet"},MPr={name:"Super Smart Chain Mainnet",chain:"SCS",rpc:["https://super-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://superexchain.com:8545"],faucets:[],nativeCurrency:{name:"Super Chain Native Token",symbol:"SCS",decimals:18},infoURL:"https://superexchain.com",shortName:"scs",chainId:1970,networkId:1970,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://scan.superexchain.com",standard:"EIP3091"}],testnet:!1,slug:"super-smart-chain"},BPr={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},DPr={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},NPr={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!0,slug:"eurus-testnet"},OPr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},FPr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ekta"},LPr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.testnet.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},qPr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},WPr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},UPr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},HPr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},jPr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},zPr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},KPr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},GPr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},VPr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},$Pr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"edgeware-edgeevm"},YPr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},QPr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!0,slug:"taycan-testnet"},JPr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},ZPr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},XPr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},eRr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},tRr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},rRr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},nRr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},aRr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},iRr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},sRr={name:"Metaplayerone Network",chain:"MP1 Dubai-Testnet",icon:{url:"ipfs://QmfJKxmubJrqYWDcR2PnPvmpukxPz4fYDu3hqTaSnpJDxC",width:42,height:23,format:"svg"},rpc:["https://metaplayerone-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-dubai.mp1network.com/"],faucets:[],nativeCurrency:{name:"Metaunit",symbol:"MEU",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"MEU",chainId:2124,networkId:2124,explorers:[{name:"MP1Scan",url:"https://dubai.mp1scan.io",icon:{url:"ipfs://QmfJKxmubJrqYWDcR2PnPvmpukxPz4fYDu3hqTaSnpJDxC",width:42,height:23,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"metaplayerone-network"},oRr={name:"Defi Oracle Meta Testnet",chain:"dfiometatest",icon:{url:"ipfs://QmYrMRnjQJcNkYq9AvZ2FQ9kzYj9szzP4YDmyNA1ybd8xE",width:1e3,height:1043,format:"png"},rpc:["https://defi-oracle-meta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public-2138.defi-oracle.io","wss://rpc.public-2138.defi-oracle.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"testEther",symbol:"tETH",decimals:18},infoURL:"https://defi-oracle.io/",shortName:"dfio-meta-test",chainId:2138,networkId:21,slip44:60,ens:{registry:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},explorers:[{name:"Quorum Explorer",url:"https://public-2138.defi-oracle.io",standard:"none"}],testnet:!0,slug:"defi-oracle-meta-testnet"},cRr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bosagora"},uRr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},lRr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},fRr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},dRr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"BTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},standard:"none"}],testnet:!1,slug:"bitcoin-evm"},pRr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},hRr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!0,slug:"kava-evm-testnet"},mRr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!1,slug:"kava-evm"},yRr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},bRr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},gRr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},vRr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},standard:"none"}],testnet:!1,slug:"altcoinchain"},wRr={name:"Kroma Sepolia",title:"Kroma Testnet Sepolia",chainId:2357,shortName:"kroma-sepolia",chain:"ETH",networkId:2357,nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpc:["https://kroma-sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.sepolia.kroma.network"],faucets:[],infoURL:"https://kroma.network",icon:{url:"ipfs://QmcYafk2je5rMqgnFPDZJTaLi6dgFgq96vmX2Li6DX441B",width:320,height:320,format:"svg"},explorers:[{name:"blockscout",url:"https://blockscout.sepolia.kroma.network",icon:{url:"ipfs://QmcYafk2je5rMqgnFPDZJTaLi6dgFgq96vmX2Li6DX441B",width:320,height:320,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://kroma.network/bridge"}]},testnet:!0,slug:"kroma-sepolia"},xRr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},_Rr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},TRr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"}}],testnet:!1,slug:"xodex"},ERr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},IRr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"techpay"},CRr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},ARr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},kRr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},SRr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},PRr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},RRr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},MRr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},BRr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},DRr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},NRr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},ORr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},FRr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},LRr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},qRr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},WRr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},URr={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},HRr={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},jRr={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},zRr={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},KRr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},GRr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},VRr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},$Rr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},YRr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},QRr={name:"AlveyChain Mainnet",chain:"ALV",icon:{url:"ipfs://QmSwczpPLBG6ob1a8WLoujthiCPzwEyJNp7WdKRi52qbWX",width:310,height:310,format:"png"},rpc:["https://alveychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alveychain.com/rpc","https://rpc2.alvey.io/rpc"],faucets:[],nativeCurrency:{name:"AlveyCoin",symbol:"ALV",decimals:18},infoURL:"https://alveyscan.com/rpc",shortName:"alv",chainId:3797,networkId:3797,explorers:[{name:"AlveyScan",url:"https://alveyscan.com",standard:"EIP3091"}],testnet:!1,slug:"alveychain"},JRr={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},ZRr={name:"DOS Tesnet",chain:"DOS",rpc:["https://dos-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"dost",chainId:3939,networkId:3939,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan-Test",url:"https://test.doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"dos-tesnet"},XRr={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},eMr={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},tMr={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},rMr={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},nMr={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},aMr={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},iMr={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},sMr={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitindi.org","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},oMr={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}"," https://rpc-mainnet.bitindi.org","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},cMr={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},uMr={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},lMr={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v1"},fMr={name:"Nexi Mainnet",chain:"Nexi",icon:{url:"ipfs://bafybeifxqd7zel2m237kq5enavnh2s6cshaavswigogyvae2wevxy5k2ti",width:512,height:578,format:"png"},rpc:["https://nexi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chain.nexi.technology/","https://chain.nexilix.com","https://chain.nexi.evmnode.online"],faucets:[],nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},infoURL:"https://www.nexi.technology/",shortName:"nexi",chainId:4242,networkId:4242,slip44:2500,explorers:[{name:"nexiscan",url:"https://www.nexiscan.com",standard:"EIP3091"}],testnet:!1,slug:"nexi"},dMr={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},pMr={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},standard:"none"}],testnet:!1,slug:"htmlcoin"},hMr={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},mMr={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},yMr={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},bMr={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},gMr={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},vMr={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},wMr={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},xMr={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},_Mr={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},TMr={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},EMr={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},IMr={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},CMr={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},AMr={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},kMr={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},SMr={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},PMr={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},RMr={name:"SatoshiChain Testnet",chain:"SATS",icon:{url:"ipfs://QmRegpZQBW4o1imYNsW3d27MQjygBSU23Gf6JKje26nvs7",width:1251,height:1251,format:"png"},rpc:["https://satoshichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.satoshichain.io"],faucets:["https://faucet.satoshichain.io"],nativeCurrency:{name:"SatoshiChain Coin",symbol:"SATS",decimals:18},infoURL:"https://satoshichain.net",shortName:"sats",chainId:5758,networkId:5758,explorers:[{name:"SatoshiChain Explorer",url:"https://satoshiscan.io",standard:"EIP3091"}],testnet:!0,slug:"satoshichain-testnet"},MMr={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},BMr={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},DMr={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},NMr={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},OMr={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"tres"},FMr={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},LMr={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},qMr={name:"IRIShub",chain:"IRIShub",rpc:["https://irishub.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmrpc.irishub-1.irisnet.org"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Eris",symbol:"ERIS",decimals:18},infoURL:"https://www.irisnet.org",shortName:"iris",chainId:6688,networkId:6688,icon:{url:"ipfs://QmTKgKs7kJiWDhdjbELE4Y2HVZ36KS4bYkNCbXdsXk66sW",width:1062,height:1062,format:"png"},explorers:[{name:"IRISHub Cosmos Explorer (IOBScan)",url:"https://irishub.iobscan.io",standard:"none",icon:{url:"ipfs://QmTKgKs7kJiWDhdjbELE4Y2HVZ36KS4bYkNCbXdsXk66sW",width:1062,height:1062,format:"png"}}],testnet:!1,slug:"irishub"},WMr={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},UMr={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},HMr={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},jMr={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},zMr={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},KMr={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},GMr={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},VMr={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},$Mr={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},YMr={name:"ADIL Testnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.adilchain-rpc.io"],faucets:["https://testnet-faucet.adil-scan.io"],nativeCurrency:{name:"Testnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"tadil",chainId:7575,networkId:7575,explorers:[{name:"ADIL Testnet Explorer",url:"https://testnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!0,slug:"adil-testnet"},QMr={name:"Adil Chain V2 Mainnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-chain-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"adil",chainId:7576,networkId:7576,explorers:[{name:"ADIL Mainnet Explorer",url:"https://adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-chain-v2"},JMr={name:"The Root Network - Mainnet",chain:"TRN",rpc:["https://the-root-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://root.rootnet.live/archive","wss://root.rootnet.live/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-mainnet",chainId:7668,networkId:7668,explorers:[{name:"rootnet",url:"https://explorer.rootnet.live",standard:"EIP3091"}],testnet:!1,slug:"the-root-network"},ZMr={name:"The Root Network - Porcini Testnet",chain:"TRN",rpc:["https://the-root-network-porcini-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://porcini.rootnet.app/archive","wss://porcini.rootnet.app/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-porcini",chainId:7672,networkId:7672,explorers:[{name:"rootnet",url:"https://explorer.rootnet.cloud",standard:"EIP3091"}],testnet:!0,slug:"the-root-network-porcini-testnet"},XMr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},eBr={name:"Canto Tesnet",chain:"Canto",rpc:["https://canto-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-archive.plexnode.wtf"],faucets:[],nativeCurrency:{name:"Testnet Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"TestnetCanto",chainId:7701,networkId:7701,explorers:[{name:"Canto Testnet EVM Explorer (Blockscout)",url:"https://testnet.tuber.build",standard:"none"}],testnet:!0,slug:"canto-tesnet"},tBr={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},rBr={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},nBr={name:"DOS Chain",chain:"DOS",rpc:["https://dos-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"https://doschain.io",shortName:"dos",chainId:7979,networkId:7979,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan",url:"https://doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"dos-chain"},aBr={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!1,slug:"teleport"},iBr={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!0,slug:"teleport-testnet"},sBr={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},oBr={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},cBr={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},uBr={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},lBr={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},fBr={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},dBr={name:"Qitmeer Network Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meermix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8132,networkId:8132,status:"incubating",testnet:!1,slug:"qitmeer-network-mixnet"},pBr={name:"Qitmeer Network Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meerpriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8133,networkId:8133,status:"incubating",testnet:!1,slug:"qitmeer-network-privnet"},hBr={name:"Amana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8134,networkId:8134,status:"incubating",testnet:!1,slug:"amana"},mBr={name:"Flana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8135,networkId:8135,status:"incubating",testnet:!1,slug:"flana"},yBr={name:"Mizana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8136,networkId:8136,status:"incubating",testnet:!1,slug:"mizana"},bBr={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},gBr={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},vBr={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},wBr={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},xBr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},_Br={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},TBr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},EBr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},IBr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},CBr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},ABr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},kBr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},SBr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},PBr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},RBr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},MBr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},BBr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},DBr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},NBr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},OBr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"}}],testnet:!1,slug:"mammoth"},FBr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},LBr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"}}],testnet:!1,slug:"giant-mammoth"},qBr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},WBr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!0,slug:"evmos-testnet"},UBr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!1,slug:"evmos"},HBr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},jBr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},zBr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},KBr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},GBr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},VBr={name:"Neonlink Testnet",chain:"Neonlink",rpc:["https://neonlink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonlink.io"],faucets:["https://faucet.neonlink.io/"],nativeCurrency:{name:"Neonlink Native Token",symbol:"tNEON",decimals:18},infoURL:"https://neonlink.io",shortName:"testneon",chainId:9559,networkId:9559,icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"},explorers:[{name:"Neon Blockchain Explorer",url:"https://testnet-scan.neonlink.io",standard:"EIP3091",icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"}}],testnet:!0,slug:"neonlink-testnet"},$Br={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},YBr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},QBr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},JBr={name:"Carbon EVM",chain:"Carbon",icon:{url:"ipfs://QmQUHqi1gyuTuKmJQHqt9EyhN1FPmmmLNUK8u93nMGrxAy",width:1600,height:1600,format:"png"},rpc:["https://carbon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-api.carbon.network/"],faucets:[],nativeCurrency:{name:"swth",symbol:"SWTH",decimals:18},infoURL:"https://carbon.network/",shortName:"carbon",chainId:9790,networkId:9790,explorers:[],testnet:!1,slug:"carbon-evm"},ZBr={name:"Carbon EVM Testnet",chain:"Carbon",icon:{url:"ipfs://QmQUHqi1gyuTuKmJQHqt9EyhN1FPmmmLNUK8u93nMGrxAy",width:1600,height:1600,format:"png"},rpc:["https://carbon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-evm-api.carbon.network/"],faucets:[],nativeCurrency:{name:"swth",symbol:"SWTH",decimals:18},infoURL:"https://carbon.network/",shortName:"carbon-testnet",chainId:9792,networkId:9792,explorers:[],testnet:!0,slug:"carbon-evm-testnet"},XBr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},eDr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},tDr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},rDr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},nDr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},aDr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},iDr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},sDr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},oDr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},cDr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},uDr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},lDr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},fDr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},dDr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!1,slug:"astra"},pDr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},hDr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!0,slug:"astra-testnet"},mDr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},yDr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},bDr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},gDr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},vDr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},wDr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},xDr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},_Dr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},TDr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},EDr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},IDr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",icon:{url:"ipfs://QmfJ1Qxpzi6CSLeFeWY1Bwe435CpT5za5WfrLUE7vNzZfy",width:512,height:512,format:"png"},rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},CDr={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},ADr={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},kDr={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},SDr={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},PDr={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},RDr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},MDr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},BDr={name:"EOS EVM Network Testnet",chain:"EOS",icon:{url:"ipfs://QmXkK5D5GWizvY1FmL6pV8cYLAbhehKETubktCgh6qDJZb",width:500,height:750,format:"png"},rpc:["https://eos-evm-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet.evm.eosnetwork.com"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eosnetwork.com/eos-evm",shortName:"eos-testnet",chainId:15557,networkId:15557,explorers:[{name:"EOS EVM Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.testnet.evm.eosnetwork.com"}]},testnet:!0,slug:"eos-evm-network-testnet"},DDr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},NDr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},ODr={name:"IRIShub Testnet",chain:"IRIShub",rpc:["https://irishub-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://34.80.202.172:8545"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Eris",symbol:"ERIS",decimals:18},infoURL:"https://www.irisnet.org",shortName:"nyancat",chainId:16688,networkId:16688,icon:{url:"ipfs://QmRaSx7AX1VDgcqjwLgSDP4WZmKBHPdHhbjkcEEXPA2Fnc",width:1062,height:822,format:"png"},explorers:[{name:"IRISHub Testnet Cosmos Explorer (IOBScan)",url:"https://nyancat.iobscan.io",standard:"none",icon:{url:"ipfs://QmRaSx7AX1VDgcqjwLgSDP4WZmKBHPdHhbjkcEEXPA2Fnc",width:1062,height:822,format:"png"}}],testnet:!0,slug:"irishub-testnet"},FDr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},LDr={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},qDr={name:"Palette Chain Testnet",chain:"PLT",rpc:["https://palette-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-opennet.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PCT",chainId:17180,networkId:17180,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://testnet.palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!0,slug:"palette-chain-testnet"},WDr={name:"EOS EVM Network",chain:"EOS",icon:{url:"ipfs://QmXkK5D5GWizvY1FmL6pV8cYLAbhehKETubktCgh6qDJZb",width:500,height:750,format:"png"},rpc:["https://eos-evm-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.evm.eosnetwork.com"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eosnetwork.com/eos-evm",shortName:"eos",chainId:17777,networkId:17777,explorers:[{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.evm.eosnetwork.com"},{url:"https://app.multichain.org"}]},testnet:!1,slug:"eos-evm-network"},UDr={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},HDr={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},jDr={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},zDr={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},KDr={name:"Camelark Mainnet",chainId:20001,shortName:"Camelark",chain:"ETHW",icon:{url:"ipfs://QmeJerrsURFNt2LL7DE7TxeunjrQXiuezdfHyqmsbwX3MZ",width:128,height:128,format:"png"},networkId:20001,nativeCurrency:{name:"EthereumPoW",symbol:"ETHW",decimals:18},rpc:["https://camelark.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-http-rpc.camelark.com"],faucets:[],explorers:[{name:"CamelarkScan",url:"https://scan.camelark.com",standard:"EIP3091"}],infoURL:"https://www.camelark.com",testnet:!1,slug:"camelark"},GDr={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},VDr={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},$Dr={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},YDr={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},QDr={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!1,slug:"taycan"},JDr={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},ZDr={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},XDr={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},eNr={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},tNr={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},rNr={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},nNr={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},aNr={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},iNr={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],testnet:!0,slug:"bitkub-chain-testnet"},sNr={name:"Ferrum Testnet",chain:"tFRM",rpc:["https://ferrum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.dev.svcs.ferrumnetwork.io:9933"],faucets:["https://testnet.faucet.ferrumnetwork.io"],nativeCurrency:{name:"Ferrum",symbol:"tFRM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://ferrum.network",shortName:"frm",chainId:26026,networkId:26026,explorers:[{name:"polkadotjs",url:"https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet.dev.svcs.ferrumnetwork.io#/explorer",standard:"none"}],testnet:!0,slug:"ferrum-testnet"},oNr={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},cNr={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},uNr={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},lNr={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},fNr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},dNr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},pNr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},hNr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},mNr={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},yNr={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bitgert"},bNr={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"fusion"},gNr={name:"Zilliqa EVM",chain:"ZIL",rpc:["https://zilliqa-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.zilliqa.com"],faucets:[],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil",chainId:32769,networkId:32769,icon:{url:"ipfs://QmTREXNgGtUhSoxFsrkhTe5LUnDBTKL5byaX8kpET6UuKp",width:2048,height:2048,format:"png"},explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!1,slug:"zilliqa-evm"},vNr={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},wNr={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"aves"},xNr={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:{url:"ipfs://QmdUYi8fjnvdM9iFQ7dwE2YvmhDtavSB3bKhCD2GhPxPks",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},_Nr={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"q"},TNr={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},ENr={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},INr={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"oho"},CNr={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},ANr={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},kNr={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"arbitrum"},SNr={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},PNr={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},RNr={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},MNr={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},BNr={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},DNr={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax.network/","https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},NNr={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},ONr={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},FNr={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"frenchain"},LNr={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},qNr={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},WNr={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},UNr={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},HNr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},jNr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},zNr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},KNr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},GNr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},VNr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},$Nr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!1,slug:"dfk-chain"},YNr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},QNr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},JNr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},ZNr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},XNr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},eOr={name:"Linea Testnet",title:"Linea Goerli Testnet",chain:"ETH",rpc:["https://linea-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goerli.linea.build","wss://rpc.goerli.linea.build","https://consensys-zkevm-goerli-prealpha.infura.io/v3/${INFURA_API_KEY}","wss://consensys-zkevm-goerli-prealpha.infura.io/v3/${INFURA_API_KEY}"],faucets:["https://faucetlink.to/goerli"],nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},infoURL:"https://linea.build",shortName:"linea-testnet",chainId:59140,networkId:59140,icon:{url:"ipfs://QmURjritnHL7a8TwZgsFwp3f272DJmG5paaPtWDZ98QZwH",width:97,height:102,format:"svg"},parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea"}]},explorers:[{name:"blockscout",url:"https://explorer.goerli.linea.build",standard:"EIP3091",icon:{url:"ipfs://QmURjritnHL7a8TwZgsFwp3f272DJmG5paaPtWDZ98QZwH",width:97,height:102,format:"svg"}}],status:"active",testnet:!0,slug:"linea-testnet"},tOr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},rOr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},nOr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},aOr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},iOr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},sOr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},oOr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},cOr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},uOr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ecredits"},lOr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},fOr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},dOr={name:"Cosmic Chain",chain:"COSMIC",rpc:["https://cosmic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cosmicchain.site:3344"],faucets:[],nativeCurrency:{name:"Cosmic Chain",symbol:"COSMIC",decimals:18},infoURL:"https://cosmicchain.site",shortName:"Cosmic",chainId:67588,networkId:3344,testnet:!0,slug:"cosmic-chain"},pOr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},hOr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},mOr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},yOr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},bOr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},gOr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},vOr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},wOr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},xOr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},_Or={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},TOr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},EOr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},IOr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},COr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},AOr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},kOr={name:"Amana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81341,networkId:81341,status:"incubating",testnet:!0,slug:"amana-testnet"},SOr={name:"Amana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81342,networkId:81342,status:"incubating",testnet:!1,slug:"amana-mixnet"},POr={name:"Amana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81343,networkId:81343,status:"incubating",testnet:!1,slug:"amana-privnet"},ROr={name:"Flana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81351,networkId:81351,status:"incubating",testnet:!0,slug:"flana-testnet"},MOr={name:"Flana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81352,networkId:81352,status:"incubating",testnet:!1,slug:"flana-mixnet"},BOr={name:"Flana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81353,networkId:81353,status:"incubating",testnet:!1,slug:"flana-privnet"},DOr={name:"Mizana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81361,networkId:81361,status:"incubating",testnet:!0,slug:"mizana-testnet"},NOr={name:"Mizana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81362,networkId:81362,status:"incubating",testnet:!1,slug:"mizana-mixnet"},OOr={name:"Mizana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81363,networkId:81363,status:"incubating",testnet:!1,slug:"mizana-privnet"},FOr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},LOr={name:"CYBERTRUST",chain:"CYBER",rpc:["https://cybertrust.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cybertrust.space:48501"],faucets:[],nativeCurrency:{name:"Cyber Trust",symbol:"CYBER",decimals:18},infoURL:"https://cybertrust.space",shortName:"Cyber",chainId:85449,networkId:48501,testnet:!0,slug:"cybertrust"},qOr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},WOr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},UOr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},HOr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"}}],testnet:!0,slug:"lambda-testnet"},jOr={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},zOr={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},KOr={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},GOr={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},VOr={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},$Or={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},YOr={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},QOr={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},JOr={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},ZOr={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},XOr={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},eFr={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},tFr={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},rFr={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},nFr={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},aFr={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},iFr={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},sFr={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},oFr={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},cFr={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},uFr={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},lFr={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},fFr={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},dFr={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},pFr={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},hFr={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},mFr={name:"ADIL Devnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"Devnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"dadil",chainId:123456,networkId:123456,explorers:[{name:"ADIL Devnet Explorer",url:"https://devnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-devnet"},yFr={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},standard:"none"}],testnet:!1,slug:"etnd-chain-s"},bFr={name:"ICPlaza Mainnet",chain:"ICPlaza",icon:{url:"ipfs://QmQpKKwpqrx77VA4SJLEWhuv9eLFMcVV9uvxRCLb6gdgCX",width:847,height:906,format:"png"},rpc:["https://icplaza.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpcmainnet.ic-plaza.org/"],faucets:[],nativeCurrency:{name:"ict",symbol:"ict",decimals:18},infoURL:"https://docs.ic-plaza.org/",shortName:"ICPlaza",chainId:142857,networkId:142857,explorers:[{name:"ICPlaza",url:"https://browsemainnet.ic-plaza.org/index",standard:"none"}],testnet:!1,slug:"icplaza"},gFr={name:"Taiko (Alpha-2 Testnet)",chain:"ETH",icon:{url:"ipfs://QmWMUDmNHzCtism9dYK1JooerZJ4da6kGt67HAQmLiEykc",width:1001,height:1001,format:"png"},rpc:["https://taiko-alpha-2-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.a2.taiko.xyz"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://taiko.xyz",shortName:"taiko-a2",chainId:167004,networkId:167004,explorers:[{name:"blockscout",url:"https://explorer.a2.taiko.xyz",standard:"EIP3091"}],testnet:!0,slug:"taiko-alpha-2-testnet"},vFr={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},wFr={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},xFr={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},_Fr={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},TFr={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},EFr={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},IFr={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},CFr={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},AFr={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"}}],testnet:!0,slug:"jellie"},kFr={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},SFr={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},PFr={name:"Taf ECO Chain Mainnet",chain:"Taf ECO Chain",icon:{url:"ipfs://bafkreigpxhu7glccsislhjqpl5fnsfmj2io4cy33blhky642uiuyojossy",width:400,height:400,format:"png"},rpc:["https://taf-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.tafchain.com/v1"],faucets:[],nativeCurrency:{name:"Taf ECO Chain Mainnet",symbol:"TAFECO",decimals:18},infoURL:"https://www.tafchain.com",shortName:"TAFECO",chainId:224168,networkId:224168,explorers:[{name:"Taf ECO Chain Mainnet",url:"https://ecoscan.tafchain.com",standard:"EIP3091"}],testnet:!1,slug:"taf-eco-chain"},RFr={name:"HashKey Chain Testnet",chain:"HashKey",rpc:["https://hashkey-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashkeychain/rpc"],faucets:["https://testnet.hashkeychain/faucet"],nativeCurrency:{name:"HashKey Token",symbol:"tHSK",decimals:18},infoURL:"https://www.hashkey.com",shortName:"hsktest",chainId:230315,networkId:230315,icon:{url:"ipfs://QmNU11AqYB2htrrSyBSP9ct7bPtuZTP7Hrz21PrEcB9nYE",width:1440,height:448,format:"png"},explorers:[{name:"HashKey Chain Testnet Explorer",url:"https://testnet.hashkeyscan.io",standard:"none"}],testnet:!0,slug:"hashkey-chain-testnet"},MFr={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},BFr={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},DFr={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},NFr={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},OFr={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},FFr={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},LFr={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},qFr={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},WFr={name:"TTcoin Smart Chain Mainnet",chain:"TSC",icon:{url:"ipfs://QmS7ipvvyZ16weG1DM7AZbi1v9ixYwU2FjP25Jj5jkLiuf",width:512,height:512,format:"png"},rpc:["https://ttcoin-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tscscan.com"],faucets:["https://faucet.tscscan.com"],nativeCurrency:{name:"TTcoin",symbol:"TC",decimals:18},infoURL:"https://ttcoin.info/",shortName:"tc",chainId:330844,networkId:330844,explorers:[{name:"TTcoin Smart Chain Explorer",url:"https://tscscan.com",standard:"EIP3091",icon:{url:"ipfs://QmS7ipvvyZ16weG1DM7AZbi1v9ixYwU2FjP25Jj5jkLiuf",width:512,height:512,format:"png"}}],testnet:!1,slug:"ttcoin-smart-chain"},UFr={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},HFr={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},jFr={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},zFr={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!0,slug:"hapchain-testnet"},KFr={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},GFr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},VFr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},$Fr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"kekchain"},YFr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},QFr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},JFr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"arbitrum-goerli"},ZFr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},XFr={name:"Markr Go",chain:"Unified",icon:{url:"ipfs://QmVMBTZVPawyLBD2B5VbG68dfWLfZ1CnB8V59xduBe2kwh",width:84,height:84,format:"png"},rpc:["https://markr-go.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.markr.io/ext/"],faucets:[],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.markr.io/",shortName:"markr-go",chainId:431140,networkId:431140,explorers:[],status:"incubating",testnet:!1,slug:"markr-go"},eLr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},tLr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},rLr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},nLr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},aLr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},iLr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"ethf",chain:"ETHF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://www.oklink.com/ethf",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},sLr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},oLr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},cLr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},uLr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},lLr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},fLr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},dLr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},pLr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"octaspace"},hLr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},mLr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},yLr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},bLr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},gLr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},vLr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},wLr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},xLr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},_Lr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},TLr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},ELr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},ILr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kiln"},CLr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},ALr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},kLr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},SLr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},PLr={name:"MXC Wannsee zkEVM Testnet",chain:"MXC zkEVM",icon:{url:"ipfs://QmdGCthKA11K9kCZJdbTP5WPAyq1wiRZ3REn6KG58MrWaE",width:159,height:159,format:"png"},rpc:["https://mxc-wannsee-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wannsee-rpc.mxc.com"],faucets:[],nativeCurrency:{name:"MXC Wannsee zkEVM Testnet",symbol:"MXC",decimals:18},infoURL:"https://wannsee.mxc.com/docs/intro",shortName:"MXC",chainId:5167003,networkId:5167003,explorers:[{name:"MXC Wannsee zkEVM Testnet",url:"https://wannsee-explorer.mxc.com",standard:"EIP3091"}],testnet:!0,slug:"mxc-wannsee-zkevm-testnet"},RLr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"imversed"},MLr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!0,slug:"imversed-testnet"},BLr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},DLr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},NLr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},OLr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},FLr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},LLr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!1,slug:"hapchain"},qLr={name:"Quarix Testnet",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix-testnet",chainId:8888881,networkId:8888881,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!0,slug:"quarix-testnet"},WLr={name:"Quarix",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix",chainId:8888888,networkId:8888888,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"quarix"},ULr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},HLr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},jLr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},zLr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},KLr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:{url:"ipfs://bafkreiapaxokh2p4j7hg43ug2inomixiwrdhni4kpqazvqifssnez7efze",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"anduschain"},GLr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},VLr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},$Lr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},YLr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},QLr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},JLr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},ZLr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},XLr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},eqr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},tqr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},rqr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},nqr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},aqr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},iqr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},sqr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},oqr={name:"T.E.A.M Blockchain",chain:"TEAM",icon:{url:"ipfs://QmcnA15BLE9uvznbugXKjqquizZs1eLPeEEkc92DSmvhmt",width:248,height:248,format:"png"},rpc:["https://t-e-a-m-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.teamblockchain.team"],faucets:[],nativeCurrency:{name:"TEAM",symbol:"$TEAM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://teamblockchain.team",shortName:"team",chainId:88888888,networkId:88888888,explorers:[{name:"teamscan",url:"https://teamblockchain.team",standard:"EIP3091"}],testnet:!1,slug:"t-e-a-m-blockchain"},cqr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},uqr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},explorers:[{name:"Blockscout",url:"https://explorer.gather.network",icon:{url:"ipfs://QmTYR8CeFiNbJ1zJHnE3DK2wEN18r2y2vqSKUcLweUT2Gz",width:1080,height:1080,format:"svg"},standard:"none"}],testnet:!1,slug:"gather-network"},lqr={name:"Kanazawa",title:"Meld Testnet Kanazawa",chain:"Kanazawa",rpc:["https://kanazawa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-kanazawa.meldlabs.dev/ext/bc/2Ci7VYrUd4fTBqGA5D2HA6UPHzQ4LQyr8rZQww9MGSv9rNkRzn/rpc"],faucets:[],features:[],nativeCurrency:{name:"gMeld",symbol:"gMELD",decimals:18},icon:{url:"ipfs://QmRhB4AbjDrhvwfSAQi2JvKirFiDWxzJvKEvG8S8AdDdED",width:4e3,height:4e3,format:"png"},infoURL:"https://meld.com",shortName:"kanazawa",chainId:222000222,networkId:222000222,explorers:[],testnet:!0,slug:"kanazawa"},fqr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},dqr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},pqr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},hqr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},mqr={name:"Meld",title:"Meld Mainnet",chain:"MELD",rpc:["https://meld.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network-rpc.meld.com"],faucets:[],features:[],nativeCurrency:{name:"gMeld",symbol:"gMELD",decimals:18},icon:{url:"ipfs://QmRhB4AbjDrhvwfSAQi2JvKirFiDWxzJvKEvG8S8AdDdED",width:4e3,height:4e3,format:"png"},infoURL:"https://meld.com",shortName:"meld",chainId:333000333,networkId:333000333,explorers:[],testnet:!1,slug:"meld"},yqr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},bqr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",icon:{url:"ipfs://QmTYR8CeFiNbJ1zJHnE3DK2wEN18r2y2vqSKUcLweUT2Gz",width:1080,height:1080,format:"svg"},standard:"none"}],testnet:!0,slug:"gather-testnet-network"},gqr={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},vqr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},wqr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},xqr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},standard:"none"}],testnet:!1,slug:"cyberdecknet"},_qr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmT5KKrpNt6duU8QfwaYw3xf4ifTBPtjahpWsMi3gsFmcS",width:440,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},Tqr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},Eqr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},Iqr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},Cqr={name:"Chaos (SKALE Testnet)",title:"Chaos Testnet",chain:"staging-fast-active-bellatrix",rpc:["https://chaos-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],faucets:["https://sfuel.skale.network/staging/chaos"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://docs.skale.network/develop/",shortName:"chaos-tenet",chainId:1351057110,networkId:1351057110,explorers:[{name:"Blockscout",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmbYYCoU2G4LUfRr9ofGowF3eatfvWv9FiPVhqKndZeqwA",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chaos-skale-testnet"},Aqr={name:"RaptorChain",chain:"RPTR",rpc:["https://raptorchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.raptorchain.io/web3"],faucets:[],nativeCurrency:{name:"Raptor",symbol:"RPTR",decimals:18},features:[{name:"EIP155"}],infoURL:"https://raptorchain.io",shortName:"rptr",chainId:1380996178,networkId:1380996178,icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},explorers:[{name:"RaptorChain Explorer",url:"https://explorer.raptorchain.io",icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"raptorchain"},kqr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula"},Sqr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},Pqr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},Rqr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},Mqr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},Bqr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},Dqr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},Nqr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},Oqr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},Fqr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},Lqr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},qqr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},Wqr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},Uqr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},Hqr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},jqr={name:"Palm Testnet",chain:"Palm",icon:{url:"ipfs://bafkreihifvvbq6xzviygveivayogqiotdtpjvilu27bgqobduqemzeq7o4",width:72,height:72,format:"svg"},rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},zqr={name:"Palm",chain:"Palm",icon:{url:"ipfs://bafkreihifvvbq6xzviygveivayogqiotdtpjvilu27bgqobduqemzeq7o4",width:72,height:72,format:"svg"},rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},Kqr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"ntity"},Gqr={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},Vqr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},$qr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},Yqr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},Qqr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},Jqr={mode:"http"};function Fbt(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...Jqr,...e},s=r.rpc.filter(h=>!!(h.startsWith("http")&&i==="http"||h.startsWith("ws")&&i==="ws")),o=s.filter(h=>h.includes("${THIRDWEB_API_KEY}")&&t).map(h=>t?h.replace("${THIRDWEB_API_KEY}",t):h),c=s.filter(h=>h.includes("${ALCHEMY_API_KEY}")&&n).map(h=>n?h.replace("${ALCHEMY_API_KEY}",n):h),u=s.filter(h=>h.includes("${INFURA_API_KEY}")&&a).map(h=>a?h.replace("${INFURA_API_KEY}",a):h),l=s.filter(h=>!h.includes("${")),p=[...o,...u,...c,...l];if(p.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return p}function Zqr(r,e){return Fbt(r,e)[0]}function Xqr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function eWr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var tw=a7r,CT=i7r,AT=s7r,kT=o7r,rw=c7r,ST=u7r,PT=l7r,RT=f7r,MT=d7r,nw=p7r,BT=h7r,DT=m7r,NT=y7r,OT=b7r,FT=g7r,LT=v7r,qT=w7r,WT=x7r,UT=_7r,HT=T7r,jT=E7r,zT=I7r,KT=C7r,GT=A7r,VT=k7r,$T=S7r,YT=P7r,QT=R7r,JT=M7r,ZT=B7r,XT=D7r,eE=N7r,tE=O7r,rE=F7r,nE=L7r,aE=q7r,iE=W7r,sE=U7r,oE=H7r,cE=j7r,uE=z7r,lE=K7r,fE=G7r,dE=V7r,pE=$7r,hE=Y7r,mE=Q7r,yE=J7r,bE=Z7r,gE=X7r,vE=eIr,wE=tIr,xE=rIr,_E=nIr,TE=aIr,aw=iIr,EE=sIr,IE=oIr,CE=cIr,AE=uIr,kE=lIr,SE=fIr,PE=dIr,RE=pIr,ME=hIr,BE=mIr,DE=yIr,NE=bIr,OE=gIr,FE=vIr,LE=wIr,qE=xIr,WE=_Ir,UE=TIr,HE=EIr,jE=IIr,zE=CIr,KE=AIr,GE=kIr,VE=SIr,$E=PIr,YE=RIr,QE=MIr,JE=BIr,ZE=DIr,XE=NIr,e9=OIr,t9=FIr,r9=LIr,n9=qIr,a9=WIr,i9=UIr,s9=HIr,iw=jIr,o9=zIr,c9=KIr,u9=GIr,l9=VIr,f9=$Ir,d9=YIr,p9=QIr,h9=JIr,m9=ZIr,y9=XIr,b9=eCr,g9=tCr,v9=rCr,w9=nCr,x9=aCr,_9=iCr,T9=sCr,E9=oCr,I9=cCr,C9=uCr,A9=lCr,k9=fCr,S9=dCr,P9=pCr,R9=hCr,M9=mCr,B9=yCr,D9=bCr,N9=gCr,sw=vCr,O9=wCr,F9=xCr,L9=_Cr,q9=TCr,W9=ECr,U9=ICr,H9=CCr,j9=ACr,z9=kCr,K9=SCr,G9=PCr,V9=RCr,$9=MCr,Y9=BCr,Q9=DCr,J9=NCr,Z9=OCr,X9=FCr,e7=LCr,t7=qCr,r7=WCr,n7=UCr,a7=HCr,i7=jCr,s7=zCr,o7=KCr,c7=GCr,u7=VCr,l7=$Cr,f7=YCr,d7=QCr,p7=JCr,h7=ZCr,ow=XCr,m7=eAr,y7=tAr,b7=rAr,g7=nAr,v7=aAr,w7=iAr,x7=sAr,_7=oAr,T7=cAr,E7=uAr,I7=lAr,C7=fAr,A7=dAr,k7=pAr,S7=hAr,P7=mAr,R7=yAr,M7=bAr,B7=gAr,D7=vAr,N7=wAr,O7=xAr,F7=_Ar,L7=TAr,q7=EAr,W7=IAr,U7=CAr,H7=AAr,j7=kAr,z7=SAr,K7=PAr,G7=RAr,cw=MAr,V7=BAr,$7=DAr,Y7=NAr,Q7=OAr,J7=FAr,Z7=LAr,X7=qAr,eI=WAr,tI=UAr,rI=HAr,nI=jAr,aI=zAr,iI=KAr,sI=GAr,oI=VAr,cI=$Ar,uI=YAr,lI=QAr,fI=JAr,dI=ZAr,pI=XAr,hI=ekr,mI=tkr,yI=rkr,bI=nkr,gI=akr,vI=ikr,wI=skr,xI=okr,_I=ckr,TI=ukr,EI=lkr,II=fkr,CI=dkr,AI=pkr,kI=hkr,SI=mkr,PI=ykr,RI=bkr,MI=gkr,BI=vkr,DI=wkr,NI=xkr,OI=_kr,FI=Tkr,LI=Ekr,qI=Ikr,WI=Ckr,UI=Akr,HI=kkr,jI=Skr,zI=Pkr,KI=Rkr,GI=Mkr,VI=Bkr,$I=Dkr,YI=Nkr,QI=Okr,JI=Fkr,ZI=Lkr,XI=qkr,eC=Wkr,tC=Ukr,rC=Hkr,nC=jkr,aC=zkr,iC=Kkr,sC=Gkr,oC=Vkr,cC=$kr,uC=Ykr,lC=Qkr,fC=Jkr,dC=Zkr,pC=Xkr,hC=eSr,mC=tSr,yC=rSr,bC=nSr,gC=aSr,vC=iSr,wC=sSr,xC=oSr,_C=cSr,TC=uSr,EC=lSr,IC=fSr,CC=dSr,AC=pSr,kC=hSr,SC=mSr,PC=ySr,RC=bSr,MC=gSr,BC=vSr,DC=wSr,NC=xSr,OC=_Sr,FC=TSr,LC=ESr,qC=ISr,WC=CSr,UC=ASr,HC=kSr,jC=SSr,zC=PSr,KC=RSr,GC=MSr,VC=BSr,$C=DSr,YC=NSr,QC=OSr,JC=FSr,ZC=LSr,XC=qSr,eA=WSr,tA=USr,rA=HSr,nA=jSr,aA=zSr,iA=KSr,sA=GSr,oA=VSr,cA=$Sr,uA=YSr,lA=QSr,fA=JSr,dA=ZSr,pA=XSr,hA=ePr,mA=tPr,yA=rPr,bA=nPr,gA=aPr,vA=iPr,wA=sPr,xA=oPr,_A=cPr,TA=uPr,EA=lPr,IA=fPr,CA=dPr,AA=pPr,kA=hPr,SA=mPr,PA=yPr,RA=bPr,MA=gPr,BA=vPr,DA=wPr,NA=xPr,OA=_Pr,FA=TPr,LA=EPr,qA=IPr,WA=CPr,UA=APr,HA=kPr,jA=SPr,zA=PPr,KA=RPr,GA=MPr,VA=BPr,$A=DPr,YA=NPr,QA=OPr,JA=FPr,ZA=LPr,XA=qPr,ek=WPr,tk=UPr,rk=HPr,nk=jPr,ak=zPr,ik=KPr,sk=GPr,ok=VPr,ck=$Pr,uk=YPr,lk=QPr,fk=JPr,dk=ZPr,pk=XPr,hk=eRr,mk=tRr,yk=rRr,bk=nRr,gk=aRr,vk=iRr,wk=sRr,xk=oRr,_k=cRr,Tk=uRr,Ek=lRr,Ik=fRr,Ck=dRr,Ak=pRr,kk=hRr,Sk=mRr,Pk=yRr,Rk=bRr,Mk=gRr,Bk=vRr,Dk=wRr,Nk=xRr,Ok=_Rr,Fk=TRr,Lk=ERr,qk=IRr,Wk=CRr,Uk=ARr,Hk=kRr,jk=SRr,zk=PRr,Kk=RRr,Gk=MRr,Vk=BRr,$k=DRr,Yk=NRr,Qk=ORr,Jk=FRr,Zk=LRr,Xk=qRr,eS=WRr,tS=URr,rS=HRr,nS=jRr,aS=zRr,iS=KRr,sS=GRr,oS=VRr,cS=$Rr,uS=YRr,lS=QRr,fS=JRr,dS=ZRr,pS=XRr,hS=eMr,mS=tMr,uw=rMr,yS=nMr,bS=aMr,gS=iMr,vS=sMr,wS=oMr,xS=cMr,_S=uMr,TS=lMr,ES=fMr,IS=dMr,CS=pMr,AS=hMr,kS=mMr,SS=yMr,PS=bMr,RS=gMr,MS=vMr,BS=wMr,DS=xMr,NS=_Mr,OS=TMr,FS=EMr,LS=IMr,qS=CMr,WS=AMr,US=kMr,HS=SMr,jS=PMr,zS=RMr,KS=MMr,GS=BMr,VS=DMr,$S=NMr,YS=OMr,QS=FMr,JS=LMr,ZS=qMr,XS=WMr,eP=UMr,tP=HMr,rP=jMr,nP=zMr,aP=KMr,iP=GMr,sP=VMr,oP=$Mr,cP=YMr,uP=QMr,lP=JMr,fP=ZMr,dP=XMr,pP=eBr,hP=tBr,mP=rBr,yP=nBr,bP=aBr,gP=iBr,vP=sBr,wP=oBr,xP=cBr,_P=uBr,TP=lBr,EP=fBr,IP=dBr,CP=pBr,AP=hBr,kP=mBr,SP=yBr,PP=bBr,RP=gBr,MP=vBr,BP=wBr,DP=xBr,NP=_Br,OP=TBr,FP=EBr,LP=IBr,qP=CBr,WP=ABr,UP=kBr,HP=SBr,jP=PBr,zP=RBr,KP=MBr,GP=BBr,VP=DBr,$P=NBr,YP=OBr,QP=FBr,JP=LBr,ZP=qBr,XP=WBr,eR=UBr,tR=HBr,rR=jBr,nR=zBr,aR=KBr,iR=GBr,sR=VBr,oR=$Br,cR=YBr,uR=QBr,lR=JBr,fR=ZBr,dR=XBr,pR=eDr,hR=tDr,mR=rDr,yR=nDr,bR=aDr,gR=iDr,vR=sDr,wR=oDr,xR=cDr,_R=uDr,TR=lDr,ER=fDr,IR=dDr,CR=pDr,AR=hDr,kR=mDr,SR=yDr,PR=bDr,RR=gDr,MR=vDr,BR=wDr,DR=xDr,NR=_Dr,OR=TDr,FR=EDr,LR=IDr,qR=CDr,WR=ADr,UR=kDr,HR=SDr,jR=PDr,zR=RDr,KR=MDr,GR=BDr,VR=DDr,$R=NDr,YR=ODr,QR=FDr,JR=LDr,ZR=qDr,XR=WDr,eM=UDr,tM=HDr,rM=jDr,nM=zDr,aM=KDr,iM=GDr,sM=VDr,oM=$Dr,cM=YDr,uM=QDr,lM=JDr,fM=ZDr,dM=XDr,pM=eNr,hM=tNr,mM=rNr,yM=nNr,bM=aNr,gM=iNr,vM=sNr,wM=oNr,xM=cNr,_M=uNr,TM=lNr,EM=fNr,IM=dNr,CM=pNr,AM=hNr,kM=mNr,SM=yNr,PM=bNr,RM=gNr,MM=vNr,BM=wNr,DM=xNr,NM=_Nr,OM=TNr,FM=ENr,LM=INr,qM=CNr,WM=ANr,lw=kNr,UM=SNr,HM=PNr,jM=RNr,zM=MNr,KM=BNr,fw=DNr,dw=NNr,GM=ONr,VM=FNr,$M=LNr,YM=qNr,QM=WNr,JM=UNr,ZM=HNr,XM=jNr,eB=zNr,tB=KNr,rB=GNr,nB=VNr,aB=$Nr,iB=YNr,sB=QNr,oB=JNr,cB=ZNr,uB=XNr,lB=eOr,fB=tOr,dB=rOr,pB=nOr,hB=aOr,mB=iOr,yB=sOr,bB=oOr,gB=cOr,vB=uOr,wB=lOr,xB=fOr,_B=dOr,TB=pOr,EB=hOr,IB=mOr,CB=yOr,AB=bOr,kB=gOr,SB=vOr,PB=wOr,RB=xOr,MB=_Or,BB=TOr,DB=EOr,NB=IOr,OB=COr,pw=AOr,FB=kOr,LB=SOr,qB=POr,WB=ROr,UB=MOr,HB=BOr,jB=DOr,zB=NOr,KB=OOr,GB=FOr,VB=LOr,$B=qOr,YB=WOr,QB=UOr,JB=HOr,ZB=jOr,XB=zOr,eD=KOr,tD=GOr,rD=VOr,nD=$Or,aD=YOr,iD=QOr,sD=JOr,oD=ZOr,cD=XOr,uD=eFr,lD=tFr,fD=rFr,dD=nFr,pD=aFr,hD=iFr,mD=sFr,yD=oFr,bD=cFr,gD=uFr,vD=lFr,wD=fFr,xD=dFr,_D=pFr,TD=hFr,ED=mFr,ID=yFr,CD=bFr,AD=gFr,kD=vFr,SD=wFr,PD=xFr,RD=_Fr,MD=TFr,BD=EFr,DD=IFr,ND=CFr,OD=AFr,FD=kFr,LD=SFr,qD=PFr,WD=RFr,UD=MFr,HD=BFr,jD=DFr,zD=NFr,KD=OFr,GD=FFr,VD=LFr,$D=qFr,YD=WFr,QD=UFr,JD=HFr,ZD=jFr,XD=zFr,eN=KFr,tN=GFr,rN=VFr,nN=$Fr,aN=YFr,iN=QFr,hw=JFr,sN=ZFr,oN=XFr,cN=eLr,uN=tLr,lN=rLr,fN=nLr,dN=aLr,pN=iLr,hN=sLr,mN=oLr,yN=cLr,bN=uLr,gN=lLr,vN=fLr,wN=dLr,xN=pLr,_N=hLr,TN=mLr,EN=yLr,IN=bLr,CN=gLr,AN=vLr,kN=wLr,SN=xLr,PN=_Lr,RN=TLr,MN=ELr,BN=ILr,DN=CLr,NN=ALr,ON=kLr,FN=SLr,LN=PLr,qN=RLr,WN=MLr,UN=BLr,HN=DLr,jN=NLr,zN=OLr,KN=FLr,GN=LLr,VN=qLr,$N=WLr,YN=ULr,QN=HLr,JN=jLr,ZN=zLr,XN=KLr,eO=GLr,tO=VLr,rO=$Lr,nO=YLr,aO=QLr,iO=JLr,sO=ZLr,oO=XLr,cO=eqr,uO=tqr,lO=rqr,fO=nqr,dO=aqr,pO=iqr,hO=sqr,mO=oqr,yO=cqr,bO=uqr,gO=lqr,vO=fqr,wO=dqr,xO=pqr,_O=hqr,TO=mqr,EO=yqr,IO=bqr,CO=gqr,AO=vqr,kO=wqr,SO=xqr,PO=_qr,RO=Tqr,MO=Eqr,BO=Iqr,DO=Cqr,NO=Aqr,OO=kqr,FO=Sqr,LO=Pqr,qO=Rqr,WO=Mqr,UO=Bqr,HO=Dqr,jO=Nqr,zO=Oqr,KO=Fqr,GO=Lqr,VO=qqr,$O=Wqr,YO=Uqr,QO=Hqr,JO=jqr,ZO=zqr,XO=Kqr,eF=Gqr,tF=Vqr,rF=$qr,nF=Yqr,mw=Qqr,tWr=[tw,rw,sw,pw,lw,hw,nw,cw,aw,iw,ow,uw,dw,fw,mw],rWr=[tw,CT,AT,kT,rw,ST,PT,RT,MT,nw,BT,DT,NT,OT,FT,LT,qT,WT,UT,HT,jT,zT,KT,GT,VT,$T,YT,QT,JT,ZT,XT,eE,tE,rE,nE,aE,iE,sE,oE,cE,uE,lE,fE,dE,pE,hE,mE,yE,bE,gE,vE,wE,xE,_E,TE,aw,EE,IE,CE,AE,kE,SE,PE,RE,ME,BE,DE,NE,OE,FE,LE,qE,WE,UE,HE,jE,zE,KE,GE,VE,$E,YE,QE,JE,ZE,XE,e9,t9,r9,n9,a9,i9,s9,iw,o9,c9,u9,l9,f9,d9,p9,h9,m9,y9,b9,g9,v9,w9,x9,_9,T9,E9,I9,C9,A9,k9,S9,P9,R9,M9,B9,D9,N9,sw,O9,F9,L9,q9,W9,U9,H9,j9,z9,K9,G9,V9,$9,Y9,Q9,J9,Z9,X9,e7,t7,r7,n7,a7,i7,s7,o7,c7,u7,l7,f7,d7,p7,h7,ow,m7,y7,b7,g7,v7,w7,x7,_7,T7,E7,I7,C7,A7,k7,S7,P7,R7,M7,B7,D7,N7,O7,F7,L7,q7,W7,U7,H7,j7,z7,K7,G7,cw,V7,$7,Y7,Q7,J7,Z7,X7,eI,tI,rI,nI,aI,iI,sI,oI,cI,uI,lI,fI,dI,pI,hI,mI,yI,bI,gI,vI,wI,xI,_I,TI,EI,II,CI,AI,kI,SI,PI,RI,MI,BI,DI,NI,OI,FI,LI,qI,WI,UI,HI,jI,zI,KI,GI,VI,$I,YI,QI,JI,ZI,XI,eC,tC,rC,nC,aC,iC,sC,oC,cC,uC,lC,fC,dC,pC,hC,mC,yC,bC,gC,vC,wC,xC,_C,TC,EC,IC,CC,AC,kC,SC,PC,RC,MC,BC,DC,NC,OC,FC,LC,qC,WC,UC,HC,jC,zC,KC,GC,VC,$C,YC,QC,JC,ZC,XC,eA,tA,rA,nA,aA,iA,sA,oA,cA,uA,lA,fA,dA,pA,hA,mA,yA,bA,gA,vA,wA,xA,_A,TA,EA,IA,CA,AA,kA,SA,PA,RA,MA,BA,DA,NA,OA,FA,LA,qA,WA,UA,HA,jA,zA,KA,GA,VA,$A,YA,QA,JA,ZA,XA,ek,tk,rk,nk,ak,ik,sk,ok,ck,uk,lk,fk,dk,pk,hk,mk,yk,bk,gk,vk,wk,xk,_k,Tk,Ek,Ik,Ck,Ak,kk,Sk,Pk,Rk,Mk,Bk,Dk,Nk,Ok,Fk,Lk,qk,Wk,Uk,Hk,jk,zk,Kk,Gk,Vk,$k,Yk,Qk,Jk,Zk,Xk,eS,tS,rS,nS,aS,iS,sS,oS,cS,uS,lS,fS,dS,pS,hS,mS,uw,yS,bS,gS,vS,wS,xS,_S,TS,ES,IS,CS,AS,kS,SS,PS,RS,MS,BS,DS,NS,OS,FS,LS,qS,WS,US,HS,jS,zS,KS,GS,VS,$S,YS,QS,JS,ZS,XS,eP,tP,rP,nP,aP,iP,sP,oP,cP,uP,lP,fP,dP,pP,hP,mP,yP,bP,gP,vP,wP,xP,_P,TP,EP,IP,CP,AP,kP,SP,PP,RP,MP,BP,DP,NP,OP,FP,LP,qP,WP,UP,HP,jP,zP,KP,GP,VP,$P,YP,QP,JP,ZP,XP,eR,tR,rR,nR,aR,iR,sR,oR,cR,uR,lR,fR,dR,pR,hR,mR,yR,bR,gR,vR,wR,xR,_R,TR,ER,IR,CR,AR,kR,SR,PR,RR,MR,BR,DR,NR,OR,FR,LR,qR,WR,UR,HR,jR,zR,KR,GR,VR,$R,YR,QR,JR,ZR,XR,eM,tM,rM,nM,aM,iM,sM,oM,cM,uM,lM,fM,dM,pM,hM,mM,yM,bM,gM,vM,wM,xM,_M,TM,EM,IM,CM,AM,kM,SM,PM,RM,MM,BM,DM,NM,OM,FM,LM,qM,WM,lw,UM,HM,jM,zM,KM,fw,dw,GM,VM,$M,YM,QM,JM,ZM,XM,eB,tB,rB,nB,aB,iB,sB,oB,cB,uB,lB,fB,dB,pB,hB,mB,yB,bB,gB,vB,wB,xB,_B,TB,EB,IB,CB,AB,kB,SB,PB,RB,MB,BB,DB,NB,OB,pw,FB,LB,qB,WB,UB,HB,jB,zB,KB,GB,VB,$B,YB,QB,JB,ZB,XB,eD,tD,rD,nD,aD,iD,sD,oD,cD,uD,lD,fD,dD,pD,hD,mD,yD,bD,gD,vD,wD,xD,_D,TD,ED,ID,CD,AD,kD,SD,PD,RD,MD,BD,DD,ND,OD,FD,LD,qD,WD,UD,HD,jD,zD,KD,GD,VD,$D,YD,QD,JD,ZD,XD,eN,tN,rN,nN,aN,iN,hw,sN,oN,cN,uN,lN,fN,dN,pN,hN,mN,yN,bN,gN,vN,wN,xN,_N,TN,EN,IN,CN,AN,kN,SN,PN,RN,MN,BN,DN,NN,ON,FN,LN,qN,WN,UN,HN,jN,zN,KN,GN,VN,$N,YN,QN,JN,ZN,XN,eO,tO,rO,nO,aO,iO,sO,oO,cO,uO,lO,fO,dO,pO,hO,mO,yO,bO,gO,vO,wO,xO,_O,TO,EO,IO,CO,AO,kO,SO,PO,RO,MO,BO,DO,NO,OO,FO,LO,qO,WO,UO,HO,jO,zO,KO,GO,VO,$O,YO,QO,JO,ZO,XO,eF,tF,rF,nF,mw],HPe={[tw.chainId]:tw,[CT.chainId]:CT,[AT.chainId]:AT,[kT.chainId]:kT,[rw.chainId]:rw,[ST.chainId]:ST,[PT.chainId]:PT,[RT.chainId]:RT,[MT.chainId]:MT,[nw.chainId]:nw,[BT.chainId]:BT,[DT.chainId]:DT,[NT.chainId]:NT,[OT.chainId]:OT,[FT.chainId]:FT,[LT.chainId]:LT,[qT.chainId]:qT,[WT.chainId]:WT,[UT.chainId]:UT,[HT.chainId]:HT,[jT.chainId]:jT,[zT.chainId]:zT,[KT.chainId]:KT,[GT.chainId]:GT,[VT.chainId]:VT,[$T.chainId]:$T,[YT.chainId]:YT,[QT.chainId]:QT,[JT.chainId]:JT,[ZT.chainId]:ZT,[XT.chainId]:XT,[eE.chainId]:eE,[tE.chainId]:tE,[rE.chainId]:rE,[nE.chainId]:nE,[aE.chainId]:aE,[iE.chainId]:iE,[sE.chainId]:sE,[oE.chainId]:oE,[cE.chainId]:cE,[uE.chainId]:uE,[lE.chainId]:lE,[fE.chainId]:fE,[dE.chainId]:dE,[pE.chainId]:pE,[hE.chainId]:hE,[mE.chainId]:mE,[yE.chainId]:yE,[bE.chainId]:bE,[gE.chainId]:gE,[vE.chainId]:vE,[wE.chainId]:wE,[xE.chainId]:xE,[_E.chainId]:_E,[TE.chainId]:TE,[aw.chainId]:aw,[EE.chainId]:EE,[IE.chainId]:IE,[CE.chainId]:CE,[AE.chainId]:AE,[kE.chainId]:kE,[SE.chainId]:SE,[PE.chainId]:PE,[RE.chainId]:RE,[ME.chainId]:ME,[BE.chainId]:BE,[DE.chainId]:DE,[NE.chainId]:NE,[OE.chainId]:OE,[FE.chainId]:FE,[LE.chainId]:LE,[qE.chainId]:qE,[WE.chainId]:WE,[UE.chainId]:UE,[HE.chainId]:HE,[jE.chainId]:jE,[zE.chainId]:zE,[KE.chainId]:KE,[GE.chainId]:GE,[VE.chainId]:VE,[$E.chainId]:$E,[YE.chainId]:YE,[QE.chainId]:QE,[JE.chainId]:JE,[ZE.chainId]:ZE,[XE.chainId]:XE,[e9.chainId]:e9,[t9.chainId]:t9,[r9.chainId]:r9,[n9.chainId]:n9,[a9.chainId]:a9,[i9.chainId]:i9,[s9.chainId]:s9,[iw.chainId]:iw,[o9.chainId]:o9,[c9.chainId]:c9,[u9.chainId]:u9,[l9.chainId]:l9,[f9.chainId]:f9,[d9.chainId]:d9,[p9.chainId]:p9,[h9.chainId]:h9,[m9.chainId]:m9,[y9.chainId]:y9,[b9.chainId]:b9,[g9.chainId]:g9,[v9.chainId]:v9,[w9.chainId]:w9,[x9.chainId]:x9,[_9.chainId]:_9,[T9.chainId]:T9,[E9.chainId]:E9,[I9.chainId]:I9,[C9.chainId]:C9,[A9.chainId]:A9,[k9.chainId]:k9,[S9.chainId]:S9,[P9.chainId]:P9,[R9.chainId]:R9,[M9.chainId]:M9,[B9.chainId]:B9,[D9.chainId]:D9,[N9.chainId]:N9,[sw.chainId]:sw,[O9.chainId]:O9,[F9.chainId]:F9,[L9.chainId]:L9,[q9.chainId]:q9,[W9.chainId]:W9,[U9.chainId]:U9,[H9.chainId]:H9,[j9.chainId]:j9,[z9.chainId]:z9,[K9.chainId]:K9,[G9.chainId]:G9,[V9.chainId]:V9,[$9.chainId]:$9,[Y9.chainId]:Y9,[Q9.chainId]:Q9,[J9.chainId]:J9,[Z9.chainId]:Z9,[X9.chainId]:X9,[e7.chainId]:e7,[t7.chainId]:t7,[r7.chainId]:r7,[n7.chainId]:n7,[a7.chainId]:a7,[i7.chainId]:i7,[s7.chainId]:s7,[o7.chainId]:o7,[c7.chainId]:c7,[u7.chainId]:u7,[l7.chainId]:l7,[f7.chainId]:f7,[d7.chainId]:d7,[p7.chainId]:p7,[h7.chainId]:h7,[ow.chainId]:ow,[m7.chainId]:m7,[y7.chainId]:y7,[b7.chainId]:b7,[g7.chainId]:g7,[v7.chainId]:v7,[w7.chainId]:w7,[x7.chainId]:x7,[_7.chainId]:_7,[T7.chainId]:T7,[E7.chainId]:E7,[I7.chainId]:I7,[C7.chainId]:C7,[A7.chainId]:A7,[k7.chainId]:k7,[S7.chainId]:S7,[P7.chainId]:P7,[R7.chainId]:R7,[M7.chainId]:M7,[B7.chainId]:B7,[D7.chainId]:D7,[N7.chainId]:N7,[O7.chainId]:O7,[F7.chainId]:F7,[L7.chainId]:L7,[q7.chainId]:q7,[W7.chainId]:W7,[U7.chainId]:U7,[H7.chainId]:H7,[j7.chainId]:j7,[z7.chainId]:z7,[K7.chainId]:K7,[G7.chainId]:G7,[cw.chainId]:cw,[V7.chainId]:V7,[$7.chainId]:$7,[Y7.chainId]:Y7,[Q7.chainId]:Q7,[J7.chainId]:J7,[Z7.chainId]:Z7,[X7.chainId]:X7,[eI.chainId]:eI,[tI.chainId]:tI,[rI.chainId]:rI,[nI.chainId]:nI,[aI.chainId]:aI,[iI.chainId]:iI,[sI.chainId]:sI,[oI.chainId]:oI,[cI.chainId]:cI,[uI.chainId]:uI,[lI.chainId]:lI,[fI.chainId]:fI,[dI.chainId]:dI,[pI.chainId]:pI,[hI.chainId]:hI,[mI.chainId]:mI,[yI.chainId]:yI,[bI.chainId]:bI,[gI.chainId]:gI,[vI.chainId]:vI,[wI.chainId]:wI,[xI.chainId]:xI,[_I.chainId]:_I,[TI.chainId]:TI,[EI.chainId]:EI,[II.chainId]:II,[CI.chainId]:CI,[AI.chainId]:AI,[kI.chainId]:kI,[SI.chainId]:SI,[PI.chainId]:PI,[RI.chainId]:RI,[MI.chainId]:MI,[BI.chainId]:BI,[DI.chainId]:DI,[NI.chainId]:NI,[OI.chainId]:OI,[FI.chainId]:FI,[LI.chainId]:LI,[qI.chainId]:qI,[WI.chainId]:WI,[UI.chainId]:UI,[HI.chainId]:HI,[jI.chainId]:jI,[zI.chainId]:zI,[KI.chainId]:KI,[GI.chainId]:GI,[VI.chainId]:VI,[$I.chainId]:$I,[YI.chainId]:YI,[QI.chainId]:QI,[JI.chainId]:JI,[ZI.chainId]:ZI,[XI.chainId]:XI,[eC.chainId]:eC,[tC.chainId]:tC,[rC.chainId]:rC,[nC.chainId]:nC,[aC.chainId]:aC,[iC.chainId]:iC,[sC.chainId]:sC,[oC.chainId]:oC,[cC.chainId]:cC,[uC.chainId]:uC,[lC.chainId]:lC,[fC.chainId]:fC,[dC.chainId]:dC,[pC.chainId]:pC,[hC.chainId]:hC,[mC.chainId]:mC,[yC.chainId]:yC,[bC.chainId]:bC,[gC.chainId]:gC,[vC.chainId]:vC,[wC.chainId]:wC,[xC.chainId]:xC,[_C.chainId]:_C,[TC.chainId]:TC,[EC.chainId]:EC,[IC.chainId]:IC,[CC.chainId]:CC,[AC.chainId]:AC,[kC.chainId]:kC,[SC.chainId]:SC,[PC.chainId]:PC,[RC.chainId]:RC,[MC.chainId]:MC,[BC.chainId]:BC,[DC.chainId]:DC,[NC.chainId]:NC,[OC.chainId]:OC,[FC.chainId]:FC,[LC.chainId]:LC,[qC.chainId]:qC,[WC.chainId]:WC,[UC.chainId]:UC,[HC.chainId]:HC,[jC.chainId]:jC,[zC.chainId]:zC,[KC.chainId]:KC,[GC.chainId]:GC,[VC.chainId]:VC,[$C.chainId]:$C,[YC.chainId]:YC,[QC.chainId]:QC,[JC.chainId]:JC,[ZC.chainId]:ZC,[XC.chainId]:XC,[eA.chainId]:eA,[tA.chainId]:tA,[rA.chainId]:rA,[nA.chainId]:nA,[aA.chainId]:aA,[iA.chainId]:iA,[sA.chainId]:sA,[oA.chainId]:oA,[cA.chainId]:cA,[uA.chainId]:uA,[lA.chainId]:lA,[fA.chainId]:fA,[dA.chainId]:dA,[pA.chainId]:pA,[hA.chainId]:hA,[mA.chainId]:mA,[yA.chainId]:yA,[bA.chainId]:bA,[gA.chainId]:gA,[vA.chainId]:vA,[wA.chainId]:wA,[xA.chainId]:xA,[_A.chainId]:_A,[TA.chainId]:TA,[EA.chainId]:EA,[IA.chainId]:IA,[CA.chainId]:CA,[AA.chainId]:AA,[kA.chainId]:kA,[SA.chainId]:SA,[PA.chainId]:PA,[RA.chainId]:RA,[MA.chainId]:MA,[BA.chainId]:BA,[DA.chainId]:DA,[NA.chainId]:NA,[OA.chainId]:OA,[FA.chainId]:FA,[LA.chainId]:LA,[qA.chainId]:qA,[WA.chainId]:WA,[UA.chainId]:UA,[HA.chainId]:HA,[jA.chainId]:jA,[zA.chainId]:zA,[KA.chainId]:KA,[GA.chainId]:GA,[VA.chainId]:VA,[$A.chainId]:$A,[YA.chainId]:YA,[QA.chainId]:QA,[JA.chainId]:JA,[ZA.chainId]:ZA,[XA.chainId]:XA,[ek.chainId]:ek,[tk.chainId]:tk,[rk.chainId]:rk,[nk.chainId]:nk,[ak.chainId]:ak,[ik.chainId]:ik,[sk.chainId]:sk,[ok.chainId]:ok,[ck.chainId]:ck,[uk.chainId]:uk,[lk.chainId]:lk,[fk.chainId]:fk,[dk.chainId]:dk,[pk.chainId]:pk,[hk.chainId]:hk,[mk.chainId]:mk,[yk.chainId]:yk,[bk.chainId]:bk,[gk.chainId]:gk,[vk.chainId]:vk,[wk.chainId]:wk,[xk.chainId]:xk,[_k.chainId]:_k,[Tk.chainId]:Tk,[Ek.chainId]:Ek,[Ik.chainId]:Ik,[Ck.chainId]:Ck,[Ak.chainId]:Ak,[kk.chainId]:kk,[Sk.chainId]:Sk,[Pk.chainId]:Pk,[Rk.chainId]:Rk,[Mk.chainId]:Mk,[Bk.chainId]:Bk,[Dk.chainId]:Dk,[Nk.chainId]:Nk,[Ok.chainId]:Ok,[Fk.chainId]:Fk,[Lk.chainId]:Lk,[qk.chainId]:qk,[Wk.chainId]:Wk,[Uk.chainId]:Uk,[Hk.chainId]:Hk,[jk.chainId]:jk,[zk.chainId]:zk,[Kk.chainId]:Kk,[Gk.chainId]:Gk,[Vk.chainId]:Vk,[$k.chainId]:$k,[Yk.chainId]:Yk,[Qk.chainId]:Qk,[Jk.chainId]:Jk,[Zk.chainId]:Zk,[Xk.chainId]:Xk,[eS.chainId]:eS,[tS.chainId]:tS,[rS.chainId]:rS,[nS.chainId]:nS,[aS.chainId]:aS,[iS.chainId]:iS,[sS.chainId]:sS,[oS.chainId]:oS,[cS.chainId]:cS,[uS.chainId]:uS,[lS.chainId]:lS,[fS.chainId]:fS,[dS.chainId]:dS,[pS.chainId]:pS,[hS.chainId]:hS,[mS.chainId]:mS,[uw.chainId]:uw,[yS.chainId]:yS,[bS.chainId]:bS,[gS.chainId]:gS,[vS.chainId]:vS,[wS.chainId]:wS,[xS.chainId]:xS,[_S.chainId]:_S,[TS.chainId]:TS,[ES.chainId]:ES,[IS.chainId]:IS,[CS.chainId]:CS,[AS.chainId]:AS,[kS.chainId]:kS,[SS.chainId]:SS,[PS.chainId]:PS,[RS.chainId]:RS,[MS.chainId]:MS,[BS.chainId]:BS,[DS.chainId]:DS,[NS.chainId]:NS,[OS.chainId]:OS,[FS.chainId]:FS,[LS.chainId]:LS,[qS.chainId]:qS,[WS.chainId]:WS,[US.chainId]:US,[HS.chainId]:HS,[jS.chainId]:jS,[zS.chainId]:zS,[KS.chainId]:KS,[GS.chainId]:GS,[VS.chainId]:VS,[$S.chainId]:$S,[YS.chainId]:YS,[QS.chainId]:QS,[JS.chainId]:JS,[ZS.chainId]:ZS,[XS.chainId]:XS,[eP.chainId]:eP,[tP.chainId]:tP,[rP.chainId]:rP,[nP.chainId]:nP,[aP.chainId]:aP,[iP.chainId]:iP,[sP.chainId]:sP,[oP.chainId]:oP,[cP.chainId]:cP,[uP.chainId]:uP,[lP.chainId]:lP,[fP.chainId]:fP,[dP.chainId]:dP,[pP.chainId]:pP,[hP.chainId]:hP,[mP.chainId]:mP,[yP.chainId]:yP,[bP.chainId]:bP,[gP.chainId]:gP,[vP.chainId]:vP,[wP.chainId]:wP,[xP.chainId]:xP,[_P.chainId]:_P,[TP.chainId]:TP,[EP.chainId]:EP,[IP.chainId]:IP,[CP.chainId]:CP,[AP.chainId]:AP,[kP.chainId]:kP,[SP.chainId]:SP,[PP.chainId]:PP,[RP.chainId]:RP,[MP.chainId]:MP,[BP.chainId]:BP,[DP.chainId]:DP,[NP.chainId]:NP,[OP.chainId]:OP,[FP.chainId]:FP,[LP.chainId]:LP,[qP.chainId]:qP,[WP.chainId]:WP,[UP.chainId]:UP,[HP.chainId]:HP,[jP.chainId]:jP,[zP.chainId]:zP,[KP.chainId]:KP,[GP.chainId]:GP,[VP.chainId]:VP,[$P.chainId]:$P,[YP.chainId]:YP,[QP.chainId]:QP,[JP.chainId]:JP,[ZP.chainId]:ZP,[XP.chainId]:XP,[eR.chainId]:eR,[tR.chainId]:tR,[rR.chainId]:rR,[nR.chainId]:nR,[aR.chainId]:aR,[iR.chainId]:iR,[sR.chainId]:sR,[oR.chainId]:oR,[cR.chainId]:cR,[uR.chainId]:uR,[lR.chainId]:lR,[fR.chainId]:fR,[dR.chainId]:dR,[pR.chainId]:pR,[hR.chainId]:hR,[mR.chainId]:mR,[yR.chainId]:yR,[bR.chainId]:bR,[gR.chainId]:gR,[vR.chainId]:vR,[wR.chainId]:wR,[xR.chainId]:xR,[_R.chainId]:_R,[TR.chainId]:TR,[ER.chainId]:ER,[IR.chainId]:IR,[CR.chainId]:CR,[AR.chainId]:AR,[kR.chainId]:kR,[SR.chainId]:SR,[PR.chainId]:PR,[RR.chainId]:RR,[MR.chainId]:MR,[BR.chainId]:BR,[DR.chainId]:DR,[NR.chainId]:NR,[OR.chainId]:OR,[FR.chainId]:FR,[LR.chainId]:LR,[qR.chainId]:qR,[WR.chainId]:WR,[UR.chainId]:UR,[HR.chainId]:HR,[jR.chainId]:jR,[zR.chainId]:zR,[KR.chainId]:KR,[GR.chainId]:GR,[VR.chainId]:VR,[$R.chainId]:$R,[YR.chainId]:YR,[QR.chainId]:QR,[JR.chainId]:JR,[ZR.chainId]:ZR,[XR.chainId]:XR,[eM.chainId]:eM,[tM.chainId]:tM,[rM.chainId]:rM,[nM.chainId]:nM,[aM.chainId]:aM,[iM.chainId]:iM,[sM.chainId]:sM,[oM.chainId]:oM,[cM.chainId]:cM,[uM.chainId]:uM,[lM.chainId]:lM,[fM.chainId]:fM,[dM.chainId]:dM,[pM.chainId]:pM,[hM.chainId]:hM,[mM.chainId]:mM,[yM.chainId]:yM,[bM.chainId]:bM,[gM.chainId]:gM,[vM.chainId]:vM,[wM.chainId]:wM,[xM.chainId]:xM,[_M.chainId]:_M,[TM.chainId]:TM,[EM.chainId]:EM,[IM.chainId]:IM,[CM.chainId]:CM,[AM.chainId]:AM,[kM.chainId]:kM,[SM.chainId]:SM,[PM.chainId]:PM,[RM.chainId]:RM,[MM.chainId]:MM,[BM.chainId]:BM,[DM.chainId]:DM,[NM.chainId]:NM,[OM.chainId]:OM,[FM.chainId]:FM,[LM.chainId]:LM,[qM.chainId]:qM,[WM.chainId]:WM,[lw.chainId]:lw,[UM.chainId]:UM,[HM.chainId]:HM,[jM.chainId]:jM,[zM.chainId]:zM,[KM.chainId]:KM,[fw.chainId]:fw,[dw.chainId]:dw,[GM.chainId]:GM,[VM.chainId]:VM,[$M.chainId]:$M,[YM.chainId]:YM,[QM.chainId]:QM,[JM.chainId]:JM,[ZM.chainId]:ZM,[XM.chainId]:XM,[eB.chainId]:eB,[tB.chainId]:tB,[rB.chainId]:rB,[nB.chainId]:nB,[aB.chainId]:aB,[iB.chainId]:iB,[sB.chainId]:sB,[oB.chainId]:oB,[cB.chainId]:cB,[uB.chainId]:uB,[lB.chainId]:lB,[fB.chainId]:fB,[dB.chainId]:dB,[pB.chainId]:pB,[hB.chainId]:hB,[mB.chainId]:mB,[yB.chainId]:yB,[bB.chainId]:bB,[gB.chainId]:gB,[vB.chainId]:vB,[wB.chainId]:wB,[xB.chainId]:xB,[_B.chainId]:_B,[TB.chainId]:TB,[EB.chainId]:EB,[IB.chainId]:IB,[CB.chainId]:CB,[AB.chainId]:AB,[kB.chainId]:kB,[SB.chainId]:SB,[PB.chainId]:PB,[RB.chainId]:RB,[MB.chainId]:MB,[BB.chainId]:BB,[DB.chainId]:DB,[NB.chainId]:NB,[OB.chainId]:OB,[pw.chainId]:pw,[FB.chainId]:FB,[LB.chainId]:LB,[qB.chainId]:qB,[WB.chainId]:WB,[UB.chainId]:UB,[HB.chainId]:HB,[jB.chainId]:jB,[zB.chainId]:zB,[KB.chainId]:KB,[GB.chainId]:GB,[VB.chainId]:VB,[$B.chainId]:$B,[YB.chainId]:YB,[QB.chainId]:QB,[JB.chainId]:JB,[ZB.chainId]:ZB,[XB.chainId]:XB,[eD.chainId]:eD,[tD.chainId]:tD,[rD.chainId]:rD,[nD.chainId]:nD,[aD.chainId]:aD,[iD.chainId]:iD,[sD.chainId]:sD,[oD.chainId]:oD,[cD.chainId]:cD,[uD.chainId]:uD,[lD.chainId]:lD,[fD.chainId]:fD,[dD.chainId]:dD,[pD.chainId]:pD,[hD.chainId]:hD,[mD.chainId]:mD,[yD.chainId]:yD,[bD.chainId]:bD,[gD.chainId]:gD,[vD.chainId]:vD,[wD.chainId]:wD,[xD.chainId]:xD,[_D.chainId]:_D,[TD.chainId]:TD,[ED.chainId]:ED,[ID.chainId]:ID,[CD.chainId]:CD,[AD.chainId]:AD,[kD.chainId]:kD,[SD.chainId]:SD,[PD.chainId]:PD,[RD.chainId]:RD,[MD.chainId]:MD,[BD.chainId]:BD,[DD.chainId]:DD,[ND.chainId]:ND,[OD.chainId]:OD,[FD.chainId]:FD,[LD.chainId]:LD,[qD.chainId]:qD,[WD.chainId]:WD,[UD.chainId]:UD,[HD.chainId]:HD,[jD.chainId]:jD,[zD.chainId]:zD,[KD.chainId]:KD,[GD.chainId]:GD,[VD.chainId]:VD,[$D.chainId]:$D,[YD.chainId]:YD,[QD.chainId]:QD,[JD.chainId]:JD,[ZD.chainId]:ZD,[XD.chainId]:XD,[eN.chainId]:eN,[tN.chainId]:tN,[rN.chainId]:rN,[nN.chainId]:nN,[aN.chainId]:aN,[iN.chainId]:iN,[hw.chainId]:hw,[sN.chainId]:sN,[oN.chainId]:oN,[cN.chainId]:cN,[uN.chainId]:uN,[lN.chainId]:lN,[fN.chainId]:fN,[dN.chainId]:dN,[pN.chainId]:pN,[hN.chainId]:hN,[mN.chainId]:mN,[yN.chainId]:yN,[bN.chainId]:bN,[gN.chainId]:gN,[vN.chainId]:vN,[wN.chainId]:wN,[xN.chainId]:xN,[_N.chainId]:_N,[TN.chainId]:TN,[EN.chainId]:EN,[IN.chainId]:IN,[CN.chainId]:CN,[AN.chainId]:AN,[kN.chainId]:kN,[SN.chainId]:SN,[PN.chainId]:PN,[RN.chainId]:RN,[MN.chainId]:MN,[BN.chainId]:BN,[DN.chainId]:DN,[NN.chainId]:NN,[ON.chainId]:ON,[FN.chainId]:FN,[LN.chainId]:LN,[qN.chainId]:qN,[WN.chainId]:WN,[UN.chainId]:UN,[HN.chainId]:HN,[jN.chainId]:jN,[zN.chainId]:zN,[KN.chainId]:KN,[GN.chainId]:GN,[VN.chainId]:VN,[$N.chainId]:$N,[YN.chainId]:YN,[QN.chainId]:QN,[JN.chainId]:JN,[ZN.chainId]:ZN,[XN.chainId]:XN,[eO.chainId]:eO,[tO.chainId]:tO,[rO.chainId]:rO,[nO.chainId]:nO,[aO.chainId]:aO,[iO.chainId]:iO,[sO.chainId]:sO,[oO.chainId]:oO,[cO.chainId]:cO,[uO.chainId]:uO,[lO.chainId]:lO,[fO.chainId]:fO,[dO.chainId]:dO,[pO.chainId]:pO,[hO.chainId]:hO,[mO.chainId]:mO,[yO.chainId]:yO,[bO.chainId]:bO,[gO.chainId]:gO,[vO.chainId]:vO,[wO.chainId]:wO,[xO.chainId]:xO,[_O.chainId]:_O,[TO.chainId]:TO,[EO.chainId]:EO,[IO.chainId]:IO,[CO.chainId]:CO,[AO.chainId]:AO,[kO.chainId]:kO,[SO.chainId]:SO,[PO.chainId]:PO,[RO.chainId]:RO,[MO.chainId]:MO,[BO.chainId]:BO,[DO.chainId]:DO,[NO.chainId]:NO,[OO.chainId]:OO,[FO.chainId]:FO,[LO.chainId]:LO,[qO.chainId]:qO,[WO.chainId]:WO,[UO.chainId]:UO,[HO.chainId]:HO,[jO.chainId]:jO,[zO.chainId]:zO,[KO.chainId]:KO,[GO.chainId]:GO,[VO.chainId]:VO,[$O.chainId]:$O,[YO.chainId]:YO,[QO.chainId]:QO,[JO.chainId]:JO,[ZO.chainId]:ZO,[XO.chainId]:XO,[eF.chainId]:eF,[tF.chainId]:tF,[rF.chainId]:rF,[nF.chainId]:nF,[mw.chainId]:mw},Lbt={[tw.slug]:tw.chainId,[CT.slug]:CT.chainId,[AT.slug]:AT.chainId,[kT.slug]:kT.chainId,[rw.slug]:rw.chainId,[ST.slug]:ST.chainId,[PT.slug]:PT.chainId,[RT.slug]:RT.chainId,[MT.slug]:MT.chainId,[nw.slug]:nw.chainId,[BT.slug]:BT.chainId,[DT.slug]:DT.chainId,[NT.slug]:NT.chainId,[OT.slug]:OT.chainId,[FT.slug]:FT.chainId,[LT.slug]:LT.chainId,[qT.slug]:qT.chainId,[WT.slug]:WT.chainId,[UT.slug]:UT.chainId,[HT.slug]:HT.chainId,[jT.slug]:jT.chainId,[zT.slug]:zT.chainId,[KT.slug]:KT.chainId,[GT.slug]:GT.chainId,[VT.slug]:VT.chainId,[$T.slug]:$T.chainId,[YT.slug]:YT.chainId,[QT.slug]:QT.chainId,[JT.slug]:JT.chainId,[ZT.slug]:ZT.chainId,[XT.slug]:XT.chainId,[eE.slug]:eE.chainId,[tE.slug]:tE.chainId,[rE.slug]:rE.chainId,[nE.slug]:nE.chainId,[aE.slug]:aE.chainId,[iE.slug]:iE.chainId,[sE.slug]:sE.chainId,[oE.slug]:oE.chainId,[cE.slug]:cE.chainId,[uE.slug]:uE.chainId,[lE.slug]:lE.chainId,[fE.slug]:fE.chainId,[dE.slug]:dE.chainId,[pE.slug]:pE.chainId,[hE.slug]:hE.chainId,[mE.slug]:mE.chainId,[yE.slug]:yE.chainId,[bE.slug]:bE.chainId,[gE.slug]:gE.chainId,[vE.slug]:vE.chainId,[wE.slug]:wE.chainId,[xE.slug]:xE.chainId,[_E.slug]:_E.chainId,[TE.slug]:TE.chainId,[aw.slug]:aw.chainId,[EE.slug]:EE.chainId,[IE.slug]:IE.chainId,[CE.slug]:CE.chainId,[AE.slug]:AE.chainId,[kE.slug]:kE.chainId,[SE.slug]:SE.chainId,[PE.slug]:PE.chainId,[RE.slug]:RE.chainId,[ME.slug]:ME.chainId,[BE.slug]:BE.chainId,[DE.slug]:DE.chainId,[NE.slug]:NE.chainId,[OE.slug]:OE.chainId,[FE.slug]:FE.chainId,[LE.slug]:LE.chainId,[qE.slug]:qE.chainId,[WE.slug]:WE.chainId,[UE.slug]:UE.chainId,[HE.slug]:HE.chainId,[jE.slug]:jE.chainId,[zE.slug]:zE.chainId,[KE.slug]:KE.chainId,[GE.slug]:GE.chainId,[VE.slug]:VE.chainId,[$E.slug]:$E.chainId,[YE.slug]:YE.chainId,[QE.slug]:QE.chainId,[JE.slug]:JE.chainId,[ZE.slug]:ZE.chainId,[XE.slug]:XE.chainId,[e9.slug]:e9.chainId,[t9.slug]:t9.chainId,[r9.slug]:r9.chainId,[n9.slug]:n9.chainId,[a9.slug]:a9.chainId,[i9.slug]:i9.chainId,[s9.slug]:s9.chainId,[iw.slug]:iw.chainId,[o9.slug]:o9.chainId,[c9.slug]:c9.chainId,[u9.slug]:u9.chainId,[l9.slug]:l9.chainId,[f9.slug]:f9.chainId,[d9.slug]:d9.chainId,[p9.slug]:p9.chainId,[h9.slug]:h9.chainId,[m9.slug]:m9.chainId,[y9.slug]:y9.chainId,[b9.slug]:b9.chainId,[g9.slug]:g9.chainId,[v9.slug]:v9.chainId,[w9.slug]:w9.chainId,[x9.slug]:x9.chainId,[_9.slug]:_9.chainId,[T9.slug]:T9.chainId,[E9.slug]:E9.chainId,[I9.slug]:I9.chainId,[C9.slug]:C9.chainId,[A9.slug]:A9.chainId,[k9.slug]:k9.chainId,[S9.slug]:S9.chainId,[P9.slug]:P9.chainId,[R9.slug]:R9.chainId,[M9.slug]:M9.chainId,[B9.slug]:B9.chainId,[D9.slug]:D9.chainId,[N9.slug]:N9.chainId,[sw.slug]:sw.chainId,[O9.slug]:O9.chainId,[F9.slug]:F9.chainId,[L9.slug]:L9.chainId,[q9.slug]:q9.chainId,[W9.slug]:W9.chainId,[U9.slug]:U9.chainId,[H9.slug]:H9.chainId,[j9.slug]:j9.chainId,[z9.slug]:z9.chainId,[K9.slug]:K9.chainId,[G9.slug]:G9.chainId,[V9.slug]:V9.chainId,[$9.slug]:$9.chainId,[Y9.slug]:Y9.chainId,[Q9.slug]:Q9.chainId,[J9.slug]:J9.chainId,[Z9.slug]:Z9.chainId,[X9.slug]:X9.chainId,[e7.slug]:e7.chainId,[t7.slug]:t7.chainId,[r7.slug]:r7.chainId,[n7.slug]:n7.chainId,[a7.slug]:a7.chainId,[i7.slug]:i7.chainId,[s7.slug]:s7.chainId,[o7.slug]:o7.chainId,[c7.slug]:c7.chainId,[u7.slug]:u7.chainId,[l7.slug]:l7.chainId,[f7.slug]:f7.chainId,[d7.slug]:d7.chainId,[p7.slug]:p7.chainId,[h7.slug]:h7.chainId,[ow.slug]:ow.chainId,[m7.slug]:m7.chainId,[y7.slug]:y7.chainId,[b7.slug]:b7.chainId,[g7.slug]:g7.chainId,[v7.slug]:v7.chainId,[w7.slug]:w7.chainId,[x7.slug]:x7.chainId,[_7.slug]:_7.chainId,[T7.slug]:T7.chainId,[E7.slug]:E7.chainId,[I7.slug]:I7.chainId,[C7.slug]:C7.chainId,[A7.slug]:A7.chainId,[k7.slug]:k7.chainId,[S7.slug]:S7.chainId,[P7.slug]:P7.chainId,[R7.slug]:R7.chainId,[M7.slug]:M7.chainId,[B7.slug]:B7.chainId,[D7.slug]:D7.chainId,[N7.slug]:N7.chainId,[O7.slug]:O7.chainId,[F7.slug]:F7.chainId,[L7.slug]:L7.chainId,[q7.slug]:q7.chainId,[W7.slug]:W7.chainId,[U7.slug]:U7.chainId,[H7.slug]:H7.chainId,[j7.slug]:j7.chainId,[z7.slug]:z7.chainId,[K7.slug]:K7.chainId,[G7.slug]:G7.chainId,[cw.slug]:cw.chainId,[V7.slug]:V7.chainId,[$7.slug]:$7.chainId,[Y7.slug]:Y7.chainId,[Q7.slug]:Q7.chainId,[J7.slug]:J7.chainId,[Z7.slug]:Z7.chainId,[X7.slug]:X7.chainId,[eI.slug]:eI.chainId,[tI.slug]:tI.chainId,[rI.slug]:rI.chainId,[nI.slug]:nI.chainId,[aI.slug]:aI.chainId,[iI.slug]:iI.chainId,[sI.slug]:sI.chainId,[oI.slug]:oI.chainId,[cI.slug]:cI.chainId,[uI.slug]:uI.chainId,[lI.slug]:lI.chainId,[fI.slug]:fI.chainId,[dI.slug]:dI.chainId,[pI.slug]:pI.chainId,[hI.slug]:hI.chainId,[mI.slug]:mI.chainId,[yI.slug]:yI.chainId,[bI.slug]:bI.chainId,[gI.slug]:gI.chainId,[vI.slug]:vI.chainId,[wI.slug]:wI.chainId,[xI.slug]:xI.chainId,[_I.slug]:_I.chainId,[TI.slug]:TI.chainId,[EI.slug]:EI.chainId,[II.slug]:II.chainId,[CI.slug]:CI.chainId,[AI.slug]:AI.chainId,[kI.slug]:kI.chainId,[SI.slug]:SI.chainId,[PI.slug]:PI.chainId,[RI.slug]:RI.chainId,[MI.slug]:MI.chainId,[BI.slug]:BI.chainId,[DI.slug]:DI.chainId,[NI.slug]:NI.chainId,[OI.slug]:OI.chainId,[FI.slug]:FI.chainId,[LI.slug]:LI.chainId,[qI.slug]:qI.chainId,[WI.slug]:WI.chainId,[UI.slug]:UI.chainId,[HI.slug]:HI.chainId,[jI.slug]:jI.chainId,[zI.slug]:zI.chainId,[KI.slug]:KI.chainId,[GI.slug]:GI.chainId,[VI.slug]:VI.chainId,[$I.slug]:$I.chainId,[YI.slug]:YI.chainId,[QI.slug]:QI.chainId,[JI.slug]:JI.chainId,[ZI.slug]:ZI.chainId,[XI.slug]:XI.chainId,[eC.slug]:eC.chainId,[tC.slug]:tC.chainId,[rC.slug]:rC.chainId,[nC.slug]:nC.chainId,[aC.slug]:aC.chainId,[iC.slug]:iC.chainId,[sC.slug]:sC.chainId,[oC.slug]:oC.chainId,[cC.slug]:cC.chainId,[uC.slug]:uC.chainId,[lC.slug]:lC.chainId,[fC.slug]:fC.chainId,[dC.slug]:dC.chainId,[pC.slug]:pC.chainId,[hC.slug]:hC.chainId,[mC.slug]:mC.chainId,[yC.slug]:yC.chainId,[bC.slug]:bC.chainId,[gC.slug]:gC.chainId,[vC.slug]:vC.chainId,[wC.slug]:wC.chainId,[xC.slug]:xC.chainId,[_C.slug]:_C.chainId,[TC.slug]:TC.chainId,[EC.slug]:EC.chainId,[IC.slug]:IC.chainId,[CC.slug]:CC.chainId,[AC.slug]:AC.chainId,[kC.slug]:kC.chainId,[SC.slug]:SC.chainId,[PC.slug]:PC.chainId,[RC.slug]:RC.chainId,[MC.slug]:MC.chainId,[BC.slug]:BC.chainId,[DC.slug]:DC.chainId,[NC.slug]:NC.chainId,[OC.slug]:OC.chainId,[FC.slug]:FC.chainId,[LC.slug]:LC.chainId,[qC.slug]:qC.chainId,[WC.slug]:WC.chainId,[UC.slug]:UC.chainId,[HC.slug]:HC.chainId,[jC.slug]:jC.chainId,[zC.slug]:zC.chainId,[KC.slug]:KC.chainId,[GC.slug]:GC.chainId,[VC.slug]:VC.chainId,[$C.slug]:$C.chainId,[YC.slug]:YC.chainId,[QC.slug]:QC.chainId,[JC.slug]:JC.chainId,[ZC.slug]:ZC.chainId,[XC.slug]:XC.chainId,[eA.slug]:eA.chainId,[tA.slug]:tA.chainId,[rA.slug]:rA.chainId,[nA.slug]:nA.chainId,[aA.slug]:aA.chainId,[iA.slug]:iA.chainId,[sA.slug]:sA.chainId,[oA.slug]:oA.chainId,[cA.slug]:cA.chainId,[uA.slug]:uA.chainId,[lA.slug]:lA.chainId,[fA.slug]:fA.chainId,[dA.slug]:dA.chainId,[pA.slug]:pA.chainId,[hA.slug]:hA.chainId,[mA.slug]:mA.chainId,[yA.slug]:yA.chainId,[bA.slug]:bA.chainId,[gA.slug]:gA.chainId,[vA.slug]:vA.chainId,[wA.slug]:wA.chainId,[xA.slug]:xA.chainId,[_A.slug]:_A.chainId,[TA.slug]:TA.chainId,[EA.slug]:EA.chainId,[IA.slug]:IA.chainId,[CA.slug]:CA.chainId,[AA.slug]:AA.chainId,[kA.slug]:kA.chainId,[SA.slug]:SA.chainId,[PA.slug]:PA.chainId,[RA.slug]:RA.chainId,[MA.slug]:MA.chainId,[BA.slug]:BA.chainId,[DA.slug]:DA.chainId,[NA.slug]:NA.chainId,[OA.slug]:OA.chainId,[FA.slug]:FA.chainId,[LA.slug]:LA.chainId,[qA.slug]:qA.chainId,[WA.slug]:WA.chainId,[UA.slug]:UA.chainId,[HA.slug]:HA.chainId,[jA.slug]:jA.chainId,[zA.slug]:zA.chainId,[KA.slug]:KA.chainId,[GA.slug]:GA.chainId,[VA.slug]:VA.chainId,[$A.slug]:$A.chainId,[YA.slug]:YA.chainId,[QA.slug]:QA.chainId,[JA.slug]:JA.chainId,[ZA.slug]:ZA.chainId,[XA.slug]:XA.chainId,[ek.slug]:ek.chainId,[tk.slug]:tk.chainId,[rk.slug]:rk.chainId,[nk.slug]:nk.chainId,[ak.slug]:ak.chainId,[ik.slug]:ik.chainId,[sk.slug]:sk.chainId,[ok.slug]:ok.chainId,[ck.slug]:ck.chainId,[uk.slug]:uk.chainId,[lk.slug]:lk.chainId,[fk.slug]:fk.chainId,[dk.slug]:dk.chainId,[pk.slug]:pk.chainId,[hk.slug]:hk.chainId,[mk.slug]:mk.chainId,[yk.slug]:yk.chainId,[bk.slug]:bk.chainId,[gk.slug]:gk.chainId,[vk.slug]:vk.chainId,[wk.slug]:wk.chainId,[xk.slug]:xk.chainId,[_k.slug]:_k.chainId,[Tk.slug]:Tk.chainId,[Ek.slug]:Ek.chainId,[Ik.slug]:Ik.chainId,[Ck.slug]:Ck.chainId,[Ak.slug]:Ak.chainId,[kk.slug]:kk.chainId,[Sk.slug]:Sk.chainId,[Pk.slug]:Pk.chainId,[Rk.slug]:Rk.chainId,[Mk.slug]:Mk.chainId,[Bk.slug]:Bk.chainId,[Dk.slug]:Dk.chainId,[Nk.slug]:Nk.chainId,[Ok.slug]:Ok.chainId,[Fk.slug]:Fk.chainId,[Lk.slug]:Lk.chainId,[qk.slug]:qk.chainId,[Wk.slug]:Wk.chainId,[Uk.slug]:Uk.chainId,[Hk.slug]:Hk.chainId,[jk.slug]:jk.chainId,[zk.slug]:zk.chainId,[Kk.slug]:Kk.chainId,[Gk.slug]:Gk.chainId,[Vk.slug]:Vk.chainId,[$k.slug]:$k.chainId,[Yk.slug]:Yk.chainId,[Qk.slug]:Qk.chainId,[Jk.slug]:Jk.chainId,[Zk.slug]:Zk.chainId,[Xk.slug]:Xk.chainId,[eS.slug]:eS.chainId,[tS.slug]:tS.chainId,[rS.slug]:rS.chainId,[nS.slug]:nS.chainId,[aS.slug]:aS.chainId,[iS.slug]:iS.chainId,[sS.slug]:sS.chainId,[oS.slug]:oS.chainId,[cS.slug]:cS.chainId,[uS.slug]:uS.chainId,[lS.slug]:lS.chainId,[fS.slug]:fS.chainId,[dS.slug]:dS.chainId,[pS.slug]:pS.chainId,[hS.slug]:hS.chainId,[mS.slug]:mS.chainId,[uw.slug]:uw.chainId,[yS.slug]:yS.chainId,[bS.slug]:bS.chainId,[gS.slug]:gS.chainId,[vS.slug]:vS.chainId,[wS.slug]:wS.chainId,[xS.slug]:xS.chainId,[_S.slug]:_S.chainId,[TS.slug]:TS.chainId,[ES.slug]:ES.chainId,[IS.slug]:IS.chainId,[CS.slug]:CS.chainId,[AS.slug]:AS.chainId,[kS.slug]:kS.chainId,[SS.slug]:SS.chainId,[PS.slug]:PS.chainId,[RS.slug]:RS.chainId,[MS.slug]:MS.chainId,[BS.slug]:BS.chainId,[DS.slug]:DS.chainId,[NS.slug]:NS.chainId,[OS.slug]:OS.chainId,[FS.slug]:FS.chainId,[LS.slug]:LS.chainId,[qS.slug]:qS.chainId,[WS.slug]:WS.chainId,[US.slug]:US.chainId,[HS.slug]:HS.chainId,[jS.slug]:jS.chainId,[zS.slug]:zS.chainId,[KS.slug]:KS.chainId,[GS.slug]:GS.chainId,[VS.slug]:VS.chainId,[$S.slug]:$S.chainId,[YS.slug]:YS.chainId,[QS.slug]:QS.chainId,[JS.slug]:JS.chainId,[ZS.slug]:ZS.chainId,[XS.slug]:XS.chainId,[eP.slug]:eP.chainId,[tP.slug]:tP.chainId,[rP.slug]:rP.chainId,[nP.slug]:nP.chainId,[aP.slug]:aP.chainId,[iP.slug]:iP.chainId,[sP.slug]:sP.chainId,[oP.slug]:oP.chainId,[cP.slug]:cP.chainId,[uP.slug]:uP.chainId,[lP.slug]:lP.chainId,[fP.slug]:fP.chainId,[dP.slug]:dP.chainId,[pP.slug]:pP.chainId,[hP.slug]:hP.chainId,[mP.slug]:mP.chainId,[yP.slug]:yP.chainId,[bP.slug]:bP.chainId,[gP.slug]:gP.chainId,[vP.slug]:vP.chainId,[wP.slug]:wP.chainId,[xP.slug]:xP.chainId,[_P.slug]:_P.chainId,[TP.slug]:TP.chainId,[EP.slug]:EP.chainId,[IP.slug]:IP.chainId,[CP.slug]:CP.chainId,[AP.slug]:AP.chainId,[kP.slug]:kP.chainId,[SP.slug]:SP.chainId,[PP.slug]:PP.chainId,[RP.slug]:RP.chainId,[MP.slug]:MP.chainId,[BP.slug]:BP.chainId,[DP.slug]:DP.chainId,[NP.slug]:NP.chainId,[OP.slug]:OP.chainId,[FP.slug]:FP.chainId,[LP.slug]:LP.chainId,[qP.slug]:qP.chainId,[WP.slug]:WP.chainId,[UP.slug]:UP.chainId,[HP.slug]:HP.chainId,[jP.slug]:jP.chainId,[zP.slug]:zP.chainId,[KP.slug]:KP.chainId,[GP.slug]:GP.chainId,[VP.slug]:VP.chainId,[$P.slug]:$P.chainId,[YP.slug]:YP.chainId,[QP.slug]:QP.chainId,[JP.slug]:JP.chainId,[ZP.slug]:ZP.chainId,[XP.slug]:XP.chainId,[eR.slug]:eR.chainId,[tR.slug]:tR.chainId,[rR.slug]:rR.chainId,[nR.slug]:nR.chainId,[aR.slug]:aR.chainId,[iR.slug]:iR.chainId,[sR.slug]:sR.chainId,[oR.slug]:oR.chainId,[cR.slug]:cR.chainId,[uR.slug]:uR.chainId,[lR.slug]:lR.chainId,[fR.slug]:fR.chainId,[dR.slug]:dR.chainId,[pR.slug]:pR.chainId,[hR.slug]:hR.chainId,[mR.slug]:mR.chainId,[yR.slug]:yR.chainId,[bR.slug]:bR.chainId,[gR.slug]:gR.chainId,[vR.slug]:vR.chainId,[wR.slug]:wR.chainId,[xR.slug]:xR.chainId,[_R.slug]:_R.chainId,[TR.slug]:TR.chainId,[ER.slug]:ER.chainId,[IR.slug]:IR.chainId,[CR.slug]:CR.chainId,[AR.slug]:AR.chainId,[kR.slug]:kR.chainId,[SR.slug]:SR.chainId,[PR.slug]:PR.chainId,[RR.slug]:RR.chainId,[MR.slug]:MR.chainId,[BR.slug]:BR.chainId,[DR.slug]:DR.chainId,[NR.slug]:NR.chainId,[OR.slug]:OR.chainId,[FR.slug]:FR.chainId,[LR.slug]:LR.chainId,[qR.slug]:qR.chainId,[WR.slug]:WR.chainId,[UR.slug]:UR.chainId,[HR.slug]:HR.chainId,[jR.slug]:jR.chainId,[zR.slug]:zR.chainId,[KR.slug]:KR.chainId,[GR.slug]:GR.chainId,[VR.slug]:VR.chainId,[$R.slug]:$R.chainId,[YR.slug]:YR.chainId,[QR.slug]:QR.chainId,[JR.slug]:JR.chainId,[ZR.slug]:ZR.chainId,[XR.slug]:XR.chainId,[eM.slug]:eM.chainId,[tM.slug]:tM.chainId,[rM.slug]:rM.chainId,[nM.slug]:nM.chainId,[aM.slug]:aM.chainId,[iM.slug]:iM.chainId,[sM.slug]:sM.chainId,[oM.slug]:oM.chainId,[cM.slug]:cM.chainId,[uM.slug]:uM.chainId,[lM.slug]:lM.chainId,[fM.slug]:fM.chainId,[dM.slug]:dM.chainId,[pM.slug]:pM.chainId,[hM.slug]:hM.chainId,[mM.slug]:mM.chainId,[yM.slug]:yM.chainId,[bM.slug]:bM.chainId,[gM.slug]:gM.chainId,[vM.slug]:vM.chainId,[wM.slug]:wM.chainId,[xM.slug]:xM.chainId,[_M.slug]:_M.chainId,[TM.slug]:TM.chainId,[EM.slug]:EM.chainId,[IM.slug]:IM.chainId,[CM.slug]:CM.chainId,[AM.slug]:AM.chainId,[kM.slug]:kM.chainId,[SM.slug]:SM.chainId,[PM.slug]:PM.chainId,[RM.slug]:RM.chainId,[MM.slug]:MM.chainId,[BM.slug]:BM.chainId,[DM.slug]:DM.chainId,[NM.slug]:NM.chainId,[OM.slug]:OM.chainId,[FM.slug]:FM.chainId,[LM.slug]:LM.chainId,[qM.slug]:qM.chainId,[WM.slug]:WM.chainId,[lw.slug]:lw.chainId,[UM.slug]:UM.chainId,[HM.slug]:HM.chainId,[jM.slug]:jM.chainId,[zM.slug]:zM.chainId,[KM.slug]:KM.chainId,[fw.slug]:fw.chainId,[dw.slug]:dw.chainId,[GM.slug]:GM.chainId,[VM.slug]:VM.chainId,[$M.slug]:$M.chainId,[YM.slug]:YM.chainId,[QM.slug]:QM.chainId,[JM.slug]:JM.chainId,[ZM.slug]:ZM.chainId,[XM.slug]:XM.chainId,[eB.slug]:eB.chainId,[tB.slug]:tB.chainId,[rB.slug]:rB.chainId,[nB.slug]:nB.chainId,[aB.slug]:aB.chainId,[iB.slug]:iB.chainId,[sB.slug]:sB.chainId,[oB.slug]:oB.chainId,[cB.slug]:cB.chainId,[uB.slug]:uB.chainId,[lB.slug]:lB.chainId,[fB.slug]:fB.chainId,[dB.slug]:dB.chainId,[pB.slug]:pB.chainId,[hB.slug]:hB.chainId,[mB.slug]:mB.chainId,[yB.slug]:yB.chainId,[bB.slug]:bB.chainId,[gB.slug]:gB.chainId,[vB.slug]:vB.chainId,[wB.slug]:wB.chainId,[xB.slug]:xB.chainId,[_B.slug]:_B.chainId,[TB.slug]:TB.chainId,[EB.slug]:EB.chainId,[IB.slug]:IB.chainId,[CB.slug]:CB.chainId,[AB.slug]:AB.chainId,[kB.slug]:kB.chainId,[SB.slug]:SB.chainId,[PB.slug]:PB.chainId,[RB.slug]:RB.chainId,[MB.slug]:MB.chainId,[BB.slug]:BB.chainId,[DB.slug]:DB.chainId,[NB.slug]:NB.chainId,[OB.slug]:OB.chainId,[pw.slug]:pw.chainId,[FB.slug]:FB.chainId,[LB.slug]:LB.chainId,[qB.slug]:qB.chainId,[WB.slug]:WB.chainId,[UB.slug]:UB.chainId,[HB.slug]:HB.chainId,[jB.slug]:jB.chainId,[zB.slug]:zB.chainId,[KB.slug]:KB.chainId,[GB.slug]:GB.chainId,[VB.slug]:VB.chainId,[$B.slug]:$B.chainId,[YB.slug]:YB.chainId,[QB.slug]:QB.chainId,[JB.slug]:JB.chainId,[ZB.slug]:ZB.chainId,[XB.slug]:XB.chainId,[eD.slug]:eD.chainId,[tD.slug]:tD.chainId,[rD.slug]:rD.chainId,[nD.slug]:nD.chainId,[aD.slug]:aD.chainId,[iD.slug]:iD.chainId,[sD.slug]:sD.chainId,[oD.slug]:oD.chainId,[cD.slug]:cD.chainId,[uD.slug]:uD.chainId,[lD.slug]:lD.chainId,[fD.slug]:fD.chainId,[dD.slug]:dD.chainId,[pD.slug]:pD.chainId,[hD.slug]:hD.chainId,[mD.slug]:mD.chainId,[yD.slug]:yD.chainId,[bD.slug]:bD.chainId,[gD.slug]:gD.chainId,[vD.slug]:vD.chainId,[wD.slug]:wD.chainId,[xD.slug]:xD.chainId,[_D.slug]:_D.chainId,[TD.slug]:TD.chainId,[ED.slug]:ED.chainId,[ID.slug]:ID.chainId,[CD.slug]:CD.chainId,[AD.slug]:AD.chainId,[kD.slug]:kD.chainId,[SD.slug]:SD.chainId,[PD.slug]:PD.chainId,[RD.slug]:RD.chainId,[MD.slug]:MD.chainId,[BD.slug]:BD.chainId,[DD.slug]:DD.chainId,[ND.slug]:ND.chainId,[OD.slug]:OD.chainId,[FD.slug]:FD.chainId,[LD.slug]:LD.chainId,[qD.slug]:qD.chainId,[WD.slug]:WD.chainId,[UD.slug]:UD.chainId,[HD.slug]:HD.chainId,[jD.slug]:jD.chainId,[zD.slug]:zD.chainId,[KD.slug]:KD.chainId,[GD.slug]:GD.chainId,[VD.slug]:VD.chainId,[$D.slug]:$D.chainId,[YD.slug]:YD.chainId,[QD.slug]:QD.chainId,[JD.slug]:JD.chainId,[ZD.slug]:ZD.chainId,[XD.slug]:XD.chainId,[eN.slug]:eN.chainId,[tN.slug]:tN.chainId,[rN.slug]:rN.chainId,[nN.slug]:nN.chainId,[aN.slug]:aN.chainId,[iN.slug]:iN.chainId,[hw.slug]:hw.chainId,[sN.slug]:sN.chainId,[oN.slug]:oN.chainId,[cN.slug]:cN.chainId,[uN.slug]:uN.chainId,[lN.slug]:lN.chainId,[fN.slug]:fN.chainId,[dN.slug]:dN.chainId,[pN.slug]:pN.chainId,[hN.slug]:hN.chainId,[mN.slug]:mN.chainId,[yN.slug]:yN.chainId,[bN.slug]:bN.chainId,[gN.slug]:gN.chainId,[vN.slug]:vN.chainId,[wN.slug]:wN.chainId,[xN.slug]:xN.chainId,[_N.slug]:_N.chainId,[TN.slug]:TN.chainId,[EN.slug]:EN.chainId,[IN.slug]:IN.chainId,[CN.slug]:CN.chainId,[AN.slug]:AN.chainId,[kN.slug]:kN.chainId,[SN.slug]:SN.chainId,[PN.slug]:PN.chainId,[RN.slug]:RN.chainId,[MN.slug]:MN.chainId,[BN.slug]:BN.chainId,[DN.slug]:DN.chainId,[NN.slug]:NN.chainId,[ON.slug]:ON.chainId,[FN.slug]:FN.chainId,[LN.slug]:LN.chainId,[qN.slug]:qN.chainId,[WN.slug]:WN.chainId,[UN.slug]:UN.chainId,[HN.slug]:HN.chainId,[jN.slug]:jN.chainId,[zN.slug]:zN.chainId,[KN.slug]:KN.chainId,[GN.slug]:GN.chainId,[VN.slug]:VN.chainId,[$N.slug]:$N.chainId,[YN.slug]:YN.chainId,[QN.slug]:QN.chainId,[JN.slug]:JN.chainId,[ZN.slug]:ZN.chainId,[XN.slug]:XN.chainId,[eO.slug]:eO.chainId,[tO.slug]:tO.chainId,[rO.slug]:rO.chainId,[nO.slug]:nO.chainId,[aO.slug]:aO.chainId,[iO.slug]:iO.chainId,[sO.slug]:sO.chainId,[oO.slug]:oO.chainId,[cO.slug]:cO.chainId,[uO.slug]:uO.chainId,[lO.slug]:lO.chainId,[fO.slug]:fO.chainId,[dO.slug]:dO.chainId,[pO.slug]:pO.chainId,[hO.slug]:hO.chainId,[mO.slug]:mO.chainId,[yO.slug]:yO.chainId,[bO.slug]:bO.chainId,[gO.slug]:gO.chainId,[vO.slug]:vO.chainId,[wO.slug]:wO.chainId,[xO.slug]:xO.chainId,[_O.slug]:_O.chainId,[TO.slug]:TO.chainId,[EO.slug]:EO.chainId,[IO.slug]:IO.chainId,[CO.slug]:CO.chainId,[AO.slug]:AO.chainId,[kO.slug]:kO.chainId,[SO.slug]:SO.chainId,[PO.slug]:PO.chainId,[RO.slug]:RO.chainId,[MO.slug]:MO.chainId,[BO.slug]:BO.chainId,[DO.slug]:DO.chainId,[NO.slug]:NO.chainId,[OO.slug]:OO.chainId,[FO.slug]:FO.chainId,[LO.slug]:LO.chainId,[qO.slug]:qO.chainId,[WO.slug]:WO.chainId,[UO.slug]:UO.chainId,[HO.slug]:HO.chainId,[jO.slug]:jO.chainId,[zO.slug]:zO.chainId,[KO.slug]:KO.chainId,[GO.slug]:GO.chainId,[VO.slug]:VO.chainId,[$O.slug]:$O.chainId,[YO.slug]:YO.chainId,[QO.slug]:QO.chainId,[JO.slug]:JO.chainId,[ZO.slug]:ZO.chainId,[XO.slug]:XO.chainId,[eF.slug]:eF.chainId,[tF.slug]:tF.chainId,[rF.slug]:rF.chainId,[nF.slug]:nF.chainId,[mw.slug]:mw.chainId};function nWr(r){return r in HPe}function aWr(r){return r in Lbt}function iWr(r){if(nWr(r))return HPe[r];throw new Error(`Chain with chainId "${r}" not found`)}function sWr(r){if(aWr(r))return HPe[Lbt[r]];throw new Error(`Chain with slug "${r}" not found`)}L.AcalaMandalaTestnet=uI;L.AcalaNetwork=AI;L.AcalaNetworkTestnet=fI;L.AcriaIntellichain=mE;L.AdilChainV2=uP;L.AdilDevnet=ED;L.AdilTestnet=cP;L.AerochainTestnet=kI;L.AiozNetwork=$9;L.AiozNetworkTestnet=xS;L.Airdao=QR;L.AirdaoTestnet=lM;L.Aitd=sA;L.AitdTestnet=oA;L.Akroma=RD;L.Alaya=MD;L.AlayaDevTestnet=BD;L.AlphNetwork=WP;L.Altcoinchain=Bk;L.Alveychain=lS;L.Alyx=iA;L.AlyxChainTestnet=N9;L.Amana=AP;L.AmanaMixnet=LB;L.AmanaPrivnet=qB;L.AmanaTestnet=FB;L.AmbrosChain=UI;L.AmeChain=J9;L.Amstar=dA;L.AmstarTestnet=NC;L.Anduschain=XN;L.AnytypeEvmChain=IA;L.Aquachain=dO;L.Arbitrum=lw;L.ArbitrumGoerli=hw;L.ArbitrumNova=UM;L.ArbitrumOnXdai=s7;L.ArbitrumRinkeby=iN;L.ArcologyTestnet=T9;L.Arevia=Mk;L.ArmoniaEvaChain=j9;L.ArmoniaEvaChainTestnet=z9;L.ArtisSigma1=HD;L.ArtisTestnetTau1=jD;L.Astar=cI;L.Astra=IR;L.AstraTestnet=AR;L.Atelier=VA;L.Atheios=wA;L.Athereum=KM;L.AtoshiTestnet=V9;L.Aurora=RO;L.AuroraBetanet=BO;L.AuroraTestnet=MO;L.AutobahnNetwork=YM;L.AutonityBakerlooThamesTestnet=pO;L.AutonityPiccadillyThamesTestnet=hO;L.AuxiliumNetwork=oO;L.Avalanche=dw;L.AvalancheFuji=fw;L.Aves=BM;L.BandaiNamcoResearchVerse=qI;L.Base=NP;L.BaseGoerli=GB;L.BeagleMessagingChain=gA;L.BeanecoSmartchain=bN;L.BearNetworkChain=gN;L.BearNetworkChainTestnet=wN;L.BeoneChain=BI;L.BeoneChainTestnet=PP;L.BeresheetBereevmTestnet=uk;L.Berylbit=tR;L.BeverlyHills=QB;L.Bifrost=Yk;L.BifrostTestnet=XM;L.Binance=aw;L.BinanceTestnet=iw;L.Bitcichain=qA;L.BitcichainTestnet=WA;L.BitcoinEvm=Ck;L.Bitgert=SM;L.Bitindi=wS;L.BitindiTestnet=vS;L.BitkubChain=s9;L.BitkubChainTestnet=gM;L.Bittex=oS;L.BittorrentChain=i7;L.BittorrentChainTestnet=vC;L.Bityuan=Kk;L.BlackfortExchangeNetwork=MS;L.BlackfortExchangeNetworkTestnet=SS;L.BlgTestnet=OR;L.BlockchainGenesis=bR;L.BlockchainStation=wI;L.BlockchainStationTestnet=xI;L.BlocktonBlockchain=MP;L.Bloxberg=ZP;L.Bmc=X9;L.BmcTestnet=e7;L.BobaAvax=GM;L.BobaBnb=cB;L.BobaBnbTestnet=cR;L.BobaNetwork=x7;L.BobaNetworkGoerliTestnet=zk;L.BobaNetworkRinkebyTestnet=QT;L.BobabaseTestnet=nA;L.Bobabeam=rA;L.BobafujiTestnet=IS;L.Bobaopera=A7;L.BobaoperaTestnet=yS;L.BombChain=Rk;L.BombChainTestnet=Nk;L.BonNetwork=LA;L.Bosagora=_k;L.Brochain=pD;L.Bronos=TC;L.BronosTestnet=_C;L.Btachain=xA;L.BtcixNetwork=nM;L.Callisto=DI;L.CallistoTestnet=iM;L.CalypsoNftHubSkale=FO;L.CalypsoNftHubSkaleTestnet=EO;L.Camelark=aM;L.CaminoCChain=Q7;L.Candle=aI;L.Canto=dP;L.CantoTesnet=pP;L.CarbonEvm=lR;L.CarbonEvmTestnet=fR;L.CatecoinChain=vA;L.Celo=HM;L.CeloAlfajoresTestnet=$M;L.CeloBaklavaTestnet=bB;L.CennznetAzalea=oM;L.CennznetNikau=Vk;L.CennznetRata=Gk;L.ChainVerse=US;L.ChaosSkaleTestnet=DO;L.Cheapeth=CI;L.ChiadoTestnet=gR;L.ChilizScovilleTestnet=$B;L.CicChain=lA;L.CicChainTestnet=QC;L.Cloudtx=IM;L.CloudtxTestnet=CM;L.Cloudwalk=nk;L.CloudwalkTestnet=rk;L.CloverTestnet=bC;L.ClvParachain=gC;L.Cmp=KD;L.CmpTestnet=dN;L.CoinexSmartChain=wE;L.CoinexSmartChainTestnet=xE;L.ColumbusTestNetwork=J7;L.CondorTestNetwork=kD;L.Condrieu=TB;L.ConfluxEspace=wC;L.ConfluxEspaceTestnet=FE;L.ConstaTestnet=H7;L.CoreBlockchain=RC;L.CoreBlockchainTestnet=PC;L.CosmicChain=_B;L.CreditSmartchain=WR;L.CronosBeta=VT;L.CronosTestnet=O7;L.Crossbell=uS;L.CryptoEmergency=t7;L.Cryptocoinpay=_R;L.Crystaleum=dD;L.CtexScanBlockchain=mA;L.CubeChain=MA;L.CubeChainTestnet=BA;L.Cyberdecknet=SO;L.Cybertrust=VB;L.DChain=HA;L.DarwiniaCrabNetwork=dE;L.DarwiniaNetwork=hE;L.DarwiniaPangolinTestnet=fE;L.DarwiniaPangoroTestnet=pE;L.Datahopper=VO;L.DaxChain=q9;L.DbchainTestnet=BE;L.Debank=x9;L.DebankTestnet=w9;L.DebounceSubnetTestnet=Jk;L.DecentraboneLayer1Testnet=$I;L.DecentralizedWeb=S9;L.DecimalSmartChain=UE;L.DecimalSmartChainTestnet=ND;L.DefiOracleMeta=O9;L.DefiOracleMetaTestnet=xk;L.DefichainEvmNetwork=BC;L.DefichainEvmNetworkTestnet=DC;L.Dehvo=g9;L.DexalotSubnet=uN;L.DexalotSubnetTestnet=cN;L.DexillaTestnet=jA;L.DexitNetwork=WI;L.DfkChain=aB;L.DfkChainTest=D7;L.DiodePrenet=FT;L.DiodeTestnetStaging=NT;L.DithereumTestnet=rE;L.Dogcoin=MC;L.DogcoinTestnet=nR;L.Dogechain=XA;L.DogechainTestnet=oI;L.DokenSuperChain=yB;L.DosChain=yP;L.DosFujiSubnet=aA;L.DosTesnet=dS;L.DoubleAChain=Z7;L.DoubleAChainTestnet=X7;L.DracNetwork=fS;L.DraconesFinancialServices=DP;L.Dxchain=aE;L.DxchainTestnet=LE;L.Dyno=pS;L.DynoTestnet=hS;L.Ecoball=yk;L.EcoballTestnetEspuma=bk;L.Ecredits=vB;L.EcreditsTestnet=wB;L.EdexaTestnet=ZA;L.EdgewareEdgeevm=ck;L.Ekta=JA;L.ElaDidSidechain=zT;L.ElaDidSidechainTestnet=KT;L.ElastosSmartChain=HT;L.ElastosSmartChainTestnet=jT;L.Eleanor=zA;L.EllaTheHeart=aP;L.Ellaism=PE;L.EluvioContentFabric=SN;L.Elysium=uA;L.ElysiumTestnet=cA;L.EmpireNetwork=cS;L.EnduranceSmartChain=yI;L.Energi=FM;L.EnergiTestnet=eB;L.EnergyWebChain=p7;L.EnergyWebVoltaTestnet=RB;L.EnnothemProterozoic=yE;L.EnnothemTestnetPioneer=bE;L.Enterchain=zC;L.Enuls=E9;L.EnulsTestnet=I9;L.EosEvmNetwork=XR;L.EosEvmNetworkTestnet=GR;L.Eraswap=OS;L.Ethereum=tw;L.EthereumClassic=AE;L.EthereumClassicTestnetKotti=ST;L.EthereumClassicTestnetMorden=kE;L.EthereumClassicTestnetMordor=SE;L.EthereumFair=pN;L.Ethergem=QA;L.Etherinc=u9;L.EtherliteChain=b9;L.EthersocialNetwork=EM;L.EthoProtocol=PN;L.Etica=mB;L.EtndChainS=ID;L.EuropaSkaleChain=$O;L.Eurus=pC;L.EurusTestnet=YA;L.Evanesco=Ak;L.EvanescoTestnet=UC;L.Evmos=eR;L.EvmosTestnet=XP;L.EvriceNetwork=hC;L.Excelon=aO;L.ExcoincialChain=sO;L.ExcoincialChainVoltaTestnet=iO;L.ExosamaNetwork=gk;L.ExpanseNetwork=CT;L.ExzoNetwork=KC;L.EzchainCChain=Hk;L.EzchainCChainTestnet=jk;L.FXCoreNetwork=nI;L.Factory127=M9;L.FantasiaChain=LI;L.Fantom=ow;L.FantomTestnet=uw;L.FastexChainTestnet=sN;L.FerrumTestnet=vM;L.Fibonacci=NR;L.Filecoin=S7;L.FilecoinButterflyTestnet=FN;L.FilecoinCalibrationTestnet=$D;L.FilecoinHyperspaceTestnet=Qk;L.FilecoinLocalTestnet=uO;L.FilecoinWallabyTestnet=kM;L.Findora=Tk;L.FindoraForge=Ik;L.FindoraTestnet=Ek;L.Firechain=rI;L.FirenzeTestNetwork=NB;L.Flachain=cO;L.Flana=kP;L.FlanaMixnet=UB;L.FlanaPrivnet=HB;L.FlanaTestnet=WB;L.Flare=OT;L.FlareTestnetCoston=LT;L.FlareTestnetCoston2=v9;L.Floripa=ZM;L.Fncy=qE;L.FncyTestnet=kN;L.FreightTrustNetwork=c7;L.Frenchain=VM;L.FrenchainTestnet=$7;L.FrontierOfDreamsTestnet=eM;L.Fuse=A9;L.FuseSparknet=k9;L.Fusion=PM;L.FusionTestnet=QM;L.Ganache=KS;L.GarizonStage0=r9;L.GarizonStage1=n9;L.GarizonStage2=a9;L.GarizonStage3=i9;L.GarizonTestnetStage0=jI;L.GarizonTestnetStage1=zI;L.GarizonTestnetStage2=KI;L.GarizonTestnetStage3=GI;L.Gatechain=ZE;L.GatechainTestnet=JE;L.GatherDevnetNetwork=CO;L.GatherNetwork=bO;L.GatherTestnetNetwork=IO;L.GearZeroNetwork=eI;L.GearZeroNetworkTestnet=GD;L.Genechain=GE;L.GenesisCoin=rR;L.GenesisL1=JT;L.GenesisL1Testnet=$T;L.GiantMammoth=JP;L.GitshockCartenzTestnet=NA;L.Gnosis=c9;L.Gochain=CE;L.GochainTestnet=AM;L.Godwoken=PB;L.GodwokenTestnetV1=SB;L.Goerli=rw;L.GoldSmartChain=XS;L.GoldSmartChainTestnet=OB;L.GonChain=mR;L.Gooddata=tE;L.GooddataTestnet=eE;L.GraphlinqBlockchain=hI;L.Gton=uC;L.GtonTestnet=rB;L.Haic=PI;L.Halo=JC;L.HammerChain=bM;L.Hapchain=GN;L.HapchainTestnet=XD;L.HaqqChainTestnet=iB;L.HaqqNetwork=SR;L.HaradevTestnet=eF;L.HarmonyDevnetShard0=GO;L.HarmonyShard0=LO;L.HarmonyShard1=qO;L.HarmonyShard2=WO;L.HarmonyShard3=UO;L.HarmonyTestnetShard0=HO;L.HarmonyTestnetShard1=jO;L.HarmonyTestnetShard2=zO;L.HarmonyTestnetShard3=KO;L.Hashbit=kR;L.HashkeyChainTestnet=WD;L.HaymoTestnet=UD;L.HazlorTestnet=mP;L.Hedera=_7;L.HederaLocalnet=I7;L.HederaPreviewnet=E7;L.HederaTestnet=T7;L.HertzNetwork=wM;L.HighPerformanceBlockchain=v7;L.HikaNetworkTestnet=jS;L.HomeVerse=rM;L.HooSmartChain=OE;L.HooSmartChainTestnet=Y9;L.HorizenGobiTestnet=TA;L.HorizenYumaTestnet=_A;L.Htmlcoin=CS;L.HumanProtocol=PO;L.Humanode=FS;L.HuobiEcoChain=B9;L.HuobiEcoChainTestnet=m7;L.HyperonchainTestnet=z7;L.Icplaza=CD;L.Idchain=WE;L.IexecSidechain=D9;L.Imversed=qN;L.ImversedTestnet=WN;L.Iolite=tO;L.IoraChain=WC;L.IotexNetwork=AS;L.IotexNetworkTestnet=kS;L.IposNetwork=kO;L.Irishub=ZS;L.IrishubTestnet=YR;L.IvarChain=YB;L.IvarChainTestnet=JR;L.J2oTaro=DM;L.Jellie=OD;L.JfinChain=nS;L.JibchainL1=QP;L.JoysDigital=lO;L.JoysDigitalTestnet=yO;L.KaibaLightningChainTestnet=f9;L.Kanazawa=gO;L.Kardiachain=GT;L.KaruraNetwork=gI;L.KaruraNetworkTestnet=lI;L.KavaEvm=Sk;L.KavaEvmTestnet=kk;L.Kcc=P7;L.KccTestnet=R7;L.Kekchain=nN;L.KekchainKektest=aN;L.Kerleano=PA;L.Kiln=BN;L.Kintsugi=MN;L.KlaytnCypress=RP;L.KlaytnTestnetBaobab=lC;L.Klyntar=sP;L.Kortho=Lk;L.Korthotest=BP;L.Kovan=lE;L.KromaSepolia=Dk;L.LaTestnet=G7;L.Lachain=f7;L.LachainTestnet=d7;L.LambdaTestnet=JB;L.LatamBlockchainResilTestnet=Q9;L.LightlinkPegasusTestnet=FA;L.LightlinkPhoenix=OA;L.Lightstreams=G9;L.LightstreamsTestnet=K9;L.LineaTestnet=lB;L.LinqtoDevnet=QE;L.Lisinski=j7;L.LiveplexOracleevm=tB;L.Localhost=mw;L.Loopnetwork=zR;L.LucidBlockchain=SI;L.LuckyNetwork=oC;L.Ludan=EA;L.LycanChain=_I;L.Maistestsubnet=fO;L.Mammoth=YP;L.Mantle=BS;L.MantleTestnet=DS;L.Map=fM;L.MapMakalu=u7;L.MarkrGo=oN;L.MaroBlockchain=HP;L.Mas=LD;L.Mathchain=OC;L.MathchainTestnet=FC;L.MdglTestnet=vP;L.Meld=TO;L.MemoSmartChain=aC;L.MeshnyanTestnet=pI;L.Metacodechain=sS;L.Metadium=BT;L.MetadiumTestnet=DT;L.Metadot=VR;L.MetadotTestnet=$R;L.MetalCChain=eN;L.MetalTahoeCChain=tN;L.Metaplayerone=vk;L.MetaplayeroneNetwork=wk;L.Meter=$E;L.MeterTestnet=YE;L.MetisAndromeda=IC;L.MetisGoerliTestnet=dI;L.MilkomedaA1=tk;L.MilkomedaA1Testnet=PD;L.MilkomedaC1=ek;L.MilkomedaC1Testnet=SD;L.MintmeComCoin=yM;L.Mix=HE;L.MixinVirtualMachine=MB;L.Mizana=SP;L.MizanaMixnet=zB;L.MizanaPrivnet=KB;L.MizanaTestnet=jB;L.Moac=CC;L.MoacTestnet=o7;L.MolereumNetwork=nF;L.MoonbaseAlpha=eA;L.Moonbeam=ZC;L.Moonriver=XC;L.Moonrock=tA;L.Multivac=gB;L.Mumbai=pw;L.MunodeTestnet=ZI;L.Musicoin=zN;L.MxcWannseeZkevmTestnet=LN;L.MyownTestnet=dR;L.MythicalChain=DD;L.Nahmii=qS;L.Nahmii3=bS;L.Nahmii3Testnet=gS;L.NahmiiTestnet=WS;L.Nebula=OO;L.NebulaStaging=AO;L.NebulaTestnet=h9;L.NeonEvm=wO;L.NeonEvmDevnet=vO;L.NeonEvmTestnet=xO;L.Neonlink=b7;L.NeonlinkTestnet=sR;L.NepalBlockchainNetwork=rC;L.NeutrinosTestnet=a7;L.Newton=mC;L.NewtonTestnet=dC;L.Nexi=ES;L.NovaNetwork=XE;L.Ntity=XO;L.Numbers=wR;L.NumbersTestnet=xR;L.OasisEmerald=zM;L.OasisEmeraldTestnet=jM;L.OasisSapphire=pM;L.OasisSapphireTestnet=hM;L.Oasischain=xM;L.Oasys=h7;L.Octaspace=xN;L.OeblockTestnet=H9;L.Oho=LM;L.Okbchain=n7;L.OkbchainTestnet=r7;L.OkexchainTestnet=RE;L.Okxchain=ME;L.OmPlatform=YC;L.Omax=k7;L.Omchain=cM;L.Oneledger=_O;L.OneledgerTestnetFrankenstein=QO;L.Ontology=IE;L.OntologyTestnet=GS;L.OnusChain=$A;L.OnusChainTestnet=UA;L.OoneChainTestnet=QD;L.Oort=XI;L.OortAscraeus=tC;L.OortDev=oR;L.OortHuygens=eC;L.OpalTestnetByUnique=KP;L.Openchain=fN;L.OpenchainTestnet=II;L.Openpiece=_E;L.OpenpieceTestnet=L9;L.Openvessel=HN;L.OpsideTestnet=dM;L.Optimism=nw;L.OptimismBedrockGoerliAlphaTestnet=_M;L.OptimismGoerli=cw;L.OptimismKovan=NE;L.OptimismOnGnosis=C7;L.OpulentXBeta=qM;L.OrigintrailParachain=dk;L.OrlandoChain=$k;L.Oychain=R9;L.OychainTestnet=P9;L.P12Chain=sM;L.PaletteChain=kA;L.PaletteChainTestnet=ZR;L.Palm=ZO;L.PalmTestnet=JO;L.Pandoproject=aS;L.PandoprojectTestnet=iS;L.ParibuNet=tS;L.ParibuNetTestnet=rS;L.Partychain=SA;L.Pdc=rF;L.Pegglecoin=WM;L.PepchainChurchill=ZN;L.PhiNetworkV1=TS;L.PhiNetworkV2=W9;L.Phoenix=UR;L.PieceTestnet=TM;L.Pirl=YO;L.PixieChain=JS;L.PixieChainTestnet=bI;L.Planq=iP;L.Platon=FD;L.PlatonDevTestnet2=ON;L.PlianMain=NN;L.PlianSubchain1=KN;L.PlianTestnetMain=eO;L.PlianTestnetSubchain1=YN;L.PoaNetworkCore=o9;L.PoaNetworkSokol=jE;L.Pocrnet=Wk;L.Polis=ZD;L.PolisTestnet=JD;L.Polygon=sw;L.PolygonZkevm=AC;L.PolygonZkevmTestnet=hA;L.PolyjuiceTestnet=kB;L.Polysmartchain=tP;L.Popcateum=jC;L.PortalFantasyChain=VI;L.PortalFantasyChainTest=RI;L.PosichainDevnetShard0=CN;L.PosichainDevnetShard1=AN;L.PosichainShard0=EN;L.PosichainTestnetShard0=IN;L.Primuschain=zE;L.ProofOfMemes=tM;L.ProtonTestnet=y9;L.ProxyNetworkTestnet=xC;L.Publicmint=ok;L.PublicmintDevnet=ik;L.PublicmintTestnet=sk;L.Pulsechain=U7;L.PulsechainTestnetV3=QI;L.PulsechainTestnetV4=JI;L.Q=NM;L.QTestnet=OM;L.Qeasyweb3Testnet=iR;L.Qitmeer=MI;L.QitmeerNetworkMixnet=IP;L.QitmeerNetworkPrivnet=CP;L.QitmeerNetworkTestnet=EP;L.Ql1=EI;L.Ql1Testnet=jN;L.QuadransBlockchain=TR;L.QuadransBlockchainTestnet=ER;L.Quarix=$N;L.QuarixTestnet=VN;L.Quarkblockchain=nO;L.QuarkchainDevnetRoot=hD;L.QuarkchainDevnetShard0=mD;L.QuarkchainDevnetShard1=yD;L.QuarkchainDevnetShard2=bD;L.QuarkchainDevnetShard3=gD;L.QuarkchainDevnetShard4=vD;L.QuarkchainDevnetShard5=wD;L.QuarkchainDevnetShard6=xD;L.QuarkchainDevnetShard7=_D;L.QuarkchainRoot=eD;L.QuarkchainShard0=tD;L.QuarkchainShard1=rD;L.QuarkchainShard2=nD;L.QuarkchainShard3=aD;L.QuarkchainShard4=iD;L.QuarkchainShard5=sD;L.QuarkchainShard6=oD;L.QuarkchainShard7=cD;L.QuartzByUnique=zP;L.Quokkacoin=mk;L.RabbitAnalogTestnetChain=RA;L.RangersProtocol=fk;L.RangersProtocolTestnetRobin=aR;L.Raptorchain=NO;L.Realchain=C9;L.RedlightChain=Uk;L.ReiChain=sB;L.ReiChainTestnet=oB;L.ReiNetwork=JM;L.Resincoin=BB;L.RikezaNetwork=pA;L.RikezaNetworkTestnet=LR;L.RiniaTestnet=YI;L.Rinkeby=kT;L.RiseOfTheWarbotsTestnet=hP;L.Ropsten=AT;L.Rsk=ZT;L.RskTestnet=XT;L.Rupaya=Y7;L.Saakuru=UN;L.SaakuruTestnet=zD;L.Sakura=yC;L.SanrChain=MR;L.SapphireByUnique=GP;L.Sardis=nB;L.SardisTestnet=RR;L.SatoshichainTestnet=zS;L.Scolcoin=xB;L.ScolcoinWeichainTestnet=QS;L.Scroll=hN;L.ScrollAlphaTestnet=mN;L.ScrollPreAlphaTestnet=yN;L.SeedcoinNetwork=iE;L.Seele=Z9;L.Sepolia=JN;L.Setheum=y7;L.ShardeumLiberty1X=wP;L.ShardeumLiberty2X=xP;L.ShardeumSphinx1X=_P;L.Sherpax=yA;L.SherpaxTestnet=bA;L.Shibachain=YT;L.Shiden=N7;L.ShimmerevmTestnet=EC;L.Shyft=oP;L.ShyftTestnet=PR;L.SiberiumNetwork=TD;L.SingularityZero=DR;L.SingularityZeroTestnet=BR;L.SiriusnetV2=l7;L.SixProtocolTestnet=U9;L.Sjatsh=yR;L.SmartBitcoinCash=pR;L.SmartBitcoinCashTestnet=hR;L.SmartHostTeknolojiTestnet=qC;L.Smartmesh=rO;L.SocialSmartChain=VD;L.SongbirdCanaryNetwork=UT;L.Soterone=DE;L.Soverun=QN;L.SoverunTestnet=fD;L.Sps=qR;L.SpsTestnet=jR;L.StarSocialTestnet=vI;L.StepNetwork=$C;L.StepTestnet=FR;L.Stratos=hk;L.StratosTestnet=pk;L.StreamuxBlockchain=TP;L.SuperSmartChain=GA;L.SuperSmartChainTestnet=KA;L.SurBlockchainNetwork=g7;L.Susono=HR;L.SxNetwork=K7;L.SxNetworkTestnet=mI;L.SymplexiaSmartChain=LC;L.Syscoin=EE;L.SyscoinRolluxTestnet=uB;L.SyscoinTanenbaumTestnet=HS;L.TEAMBlockchain=mO;L.TEkta=fC;L.TafEcoChain=qD;L.TaikoAlpha2Testnet=AD;L.TaoNetwork=sI;L.Taraxa=NI;L.TaraxaTestnet=OI;L.Taycan=uM;L.TaycanTestnet=lk;L.Tbsi=CA;L.TbsiTestnet=AA;L.TbwgChain=nE;L.TcgVerse=Ok;L.Techpay=qk;L.Teleport=bP;L.TeleportTestnet=gP;L.TelosEvm=cE;L.TelosEvmTestnet=uE;L.Teslafunds=DA;L.Thaichain=PT;L.Thaichain20Thaifi=qT;L.TheRootNetwork=lP;L.TheRootNetworkPorciniTestnet=fP;L.Theta=F7;L.ThetaAmberTestnet=q7;L.ThetaSapphireTestnet=L7;L.ThetaTestnet=W7;L.ThinkiumChain0=EB;L.ThinkiumChain1=IB;L.ThinkiumChain103=AB;L.ThinkiumChain2=CB;L.ThinkiumTestnetChain0=fB;L.ThinkiumTestnetChain1=dB;L.ThinkiumTestnetChain103=hB;L.ThinkiumTestnetChain2=pB;L.Thundercore=m9;L.ThundercoreTestnet=WT;L.Tipboxcoin=rN;L.TipboxcoinTestnet=_S;L.TlchainNetwork=NS;L.TmyChain=UP;L.TokiNetwork=OP;L.TokiTestnet=FP;L.TombChain=eP;L.Tomochain=e9;L.TomochainTestnet=t9;L.ToolGlobal=LP;L.ToolGlobalTestnet=qP;L.Top=iC;L.TopEvm=nC;L.Tres=YS;L.TresTestnet=$S;L.TrustEvmTestnet=KR;L.TtcoinSmartChain=YD;L.UbSmartChain=XB;L.UbSmartChainTestnet=ZB;L.Ubiq=RT;L.UbiqNetworkTestnet=MT;L.Ultron=VC;L.UltronTestnet=GC;L.UnicornUltraTestnet=oE;L.Unique=jP;L.Uptick=_9;L.UzmiNetwork=LS;L.Valorbit=sE;L.Vchain=Pk;L.Vechain=uD;L.VechainTestnet=lD;L.Vela1Chain=iI;L.VelasEvm=p9;L.Venidium=RS;L.VenidiumTestnet=PS;L.VentionSmartChain=DB;L.VentionSmartChainTestnet=TI;L.Vision=TN;L.VisionVpioneerTestChain=vN;L.VyvoSmartChain=$P;L.Wagmi=CR;L.Wanchain=HI;L.WanchainTestnet=cC;L.Web3gamesDevnet=d9;L.Web3gamesTestnet=l9;L.Web3q=B7;L.Web3qGalileo=eS;L.Web3qTestnet=Xk;L.Webchain=mM;L.WeelinkTestnet=lN;L.WegochainRubidium=VS;L.Wemix30=kC;L.Wemix30Testnet=SC;L.Woopchain=F9;L.WorldTradeTechnicalChain=HC;L.Xanachain=VP;L.XdcApothemNetwork=vE;L.Xerom=RN;L.XinfinXdcNetwork=gE;L.Xodex=Fk;L.XtSmartChain=tI;L.Yuanchain=mS;L.ZMainnet=ak;L.ZTestnet=uR;L.Zafirium=fA;L.ZcoreTestnet=Zk;L.ZeethChain=V7;L.ZeethChainDev=FI;L.Zeniq=tF;L.Zenith=KE;L.ZenithTestnetVilnius=VE;L.Zetachain=rP;L.ZetachainAthensTestnet=nP;L.Zhejiang=DN;L.ZilliqaEvm=RM;L.ZilliqaEvmTestnet=MM;L.ZksyncEra=M7;L.ZksyncEraTestnet=w7;L.Zyx=TE;L._0xtade=vR;L._4goodnetwork=_N;L._5irechainThunder=sC;L.allChains=rWr;L.configureChain=eWr;L.defaultChains=tWr;L.getChainByChainId=iWr;L.getChainBySlug=sWr;L.getChainRPC=Zqr;L.getChainRPCs=Fbt;L.minimizeChain=Xqr});var Hbt=E(q=>{"use strict";f();d();Object.defineProperty(q,"__esModule",{value:!0});var oWr={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},cWr={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},uWr={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},lWr={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},fWr={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"goerli"},dWr={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},pWr={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},hWr={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},mWr={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},yWr={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"optimism"},bWr={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},gWr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},vWr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},wWr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},xWr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},_Wr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},TWr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},EWr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},IWr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},CWr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},AWr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},kWr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},SWr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},PWr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},RWr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},MWr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},BWr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},DWr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},NWr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},OWr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},FWr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},LWr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},qWr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},WWr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},UWr={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},HWr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},jWr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},zWr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},KWr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},GWr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},testnet:!1,slug:"telos-evm"},VWr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,icon:{url:"ipfs://QmdkgQDtDedsNNth3ZVgWfwRZPCePLA13MtLvV4CEYSuTR/TLOS.png",format:"png",width:228,height:228},slug:"telos-evm-testnet"},$Wr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},YWr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},QWr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},JWr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},ZWr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},XWr={name:"Acria IntelliChain",chain:"AIC",rpc:["https://acria-intellichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://aic.acria.ai"],faucets:[],nativeCurrency:{name:"ACRIA",symbol:"ACRIA",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://acria.ai",shortName:"aic",chainId:47,networkId:47,explorers:[{name:"Acria IntelliChain-Explorer",url:"https://explorer.acria.ai",standard:"EIP3091"}],testnet:!1,slug:"acria-intellichain"},eUr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},tUr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},rUr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network","https://rpc-xdc.icecreamswap.com"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},nUr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:{url:"ipfs://QmPzVFs16GwaD8LAcGFLCNXzEK8BHFKNXeM3nmBpnq9xy3",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},aUr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},iUr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},sUr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},oUr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},cUr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"binance"},uUr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},lUr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},fUr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},dUr={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},pUr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},hUr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},mUr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},yUr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},bUr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},gUr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},vUr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},wUr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},xUr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},_Ur={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},TUr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},EUr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy"},IUr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},CUr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},AUr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},kUr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},SUr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},PUr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},RUr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},MUr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},BUr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},DUr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},NUr={name:"Linqto Devnet",chain:"LNQ",rpc:["https://linqto-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://linqto-dev.com"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:18},infoURL:"https://linqto.com",shortName:"linqto-devnet",chainId:84,networkId:84,explorers:[{name:"Linqto Devnet Explorer",url:"https://explorer.linqto-dev.com",standard:"EIP3091"}],testnet:!1,slug:"linqto-devnet"},OUr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},FUr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},LUr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},qUr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},WUr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},UUr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},HUr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},jUr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},zUr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},KUr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},GUr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"binance-testnet"},VUr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},$Ur={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"gnosis"},YUr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},QUr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},JUr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},ZUr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},XUr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},eHr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},tHr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},rHr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},nHr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},aHr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},iHr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},sHr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},oHr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},cHr={name:"Uptick Mainnet",chain:"Uptick",rpc:["https://uptick.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.uptick.network"],faucets:[],nativeCurrency:{name:"Uptick",symbol:"UPTICK",decimals:18},infoURL:"https://www.uptick.network",shortName:"auptick",chainId:117,networkId:117,icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},explorers:[{name:"Uptick Explorer",url:"https://evm-explorer.uptick.network",icon:{url:"ipfs://QmRGJ6PqYHDTWuUQ6xfnK8S82NzRXiMjTnSGat9qtLuaLP",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"uptick"},uHr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},lHr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"enuls"},fHr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},dHr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},pHr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},hHr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},mHr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},yHr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},bHr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},gHr={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},vHr={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},wHr={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},xHr={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},_Hr={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},THr={name:"Defi Oracle Meta Mainnet",chain:"dfiometa",icon:{url:"ipfs://QmYrMRnjQJcNkYq9AvZ2FQ9kzYj9szzP4YDmyNA1ybd8xE",width:1e3,height:1043,format:"png"},rpc:["https://defi-oracle-meta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public-0138.defi-oracle.io","wss://rpc.public-0138.defi-oracle.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://defi-oracle.io/",shortName:"dfio-meta-main",chainId:138,networkId:1,slip44:60,ens:{registry:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},explorers:[{name:"Quorum Explorer",url:"https://public-0138.defi-oracle.io",standard:"none"}],testnet:!1,slug:"defi-oracle-meta"},EHr={name:"WoopChain Mainnet",chain:"WOOP",icon:{url:"ipfs://Qma7LpnkGjAN1dwL6VTXUYqzySNxjLg4br7J8UE4yZWYec",width:310,height:310,format:"png"},rpc:["https://woopchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.woop.ai/rpc"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"WoopCoin",symbol:"WOOC",decimals:18},infoURL:"https://wikiwoop.com",shortName:"woop",chainId:139,networkId:139,explorers:[{name:"wikiwoop",url:"https://explorer.wikiwoop.com",standard:"EIP3091"}],testnet:!1,slug:"woopchain"},IHr={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},CHr={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},AHr={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v2"},kHr={name:"Six Protocol Testnet",chain:"FIVENET",icon:{url:"ipfs://QmP93z696v8Hetu13peY2oEHDXq8Bj5CqaDRwpVkpnM15A",width:512,height:512,format:"png"},rpc:["https://six-protocol-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm.fivenet.sixprotocol.net"],faucets:["https://faucet.sixprotocol.net"],nativeCurrency:{name:"SIX testnet evm token",symbol:"tSIX",decimals:18},infoURL:"https://six.network/",shortName:"sixt",chainId:150,networkId:150,explorers:[{name:"SIX Scan fivenet",url:"https://sixscan.io/fivenet",standard:"none",icon:{url:"ipfs://QmP93z696v8Hetu13peY2oEHDXq8Bj5CqaDRwpVkpnM15A",width:512,height:512,format:"png"}}],testnet:!0,slug:"six-protocol-testnet"},SHr={name:"OEBlock Testnet",chain:"OEBt",features:[{name:"EIP155"},{name:"EIP1559"}],rpc:["https://oeblock-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.oeblock.com"],faucets:[],nativeCurrency:{name:"OEBlock",symbol:"OEB",decimals:18},infoURL:"https://www.oeblock.com/",shortName:"obe",chainId:156,networkId:156,icon:{url:"ipfs://QmdoQUfYqtkWMfjtoPv2KWDY4MxDDSsyWgwXtCx6jfkezz",width:155,height:177,format:"png"},explorers:[{name:"OEScan explorer",url:"https://testnet.oescan.io",standard:"EIP3091"}],testnet:!0,slug:"oeblock-testnet"},PHr={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},RHr={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},MHr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},BHr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},DHr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},NHr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},OHr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},FHr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},LHr={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},qHr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},WHr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},UHr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},HHr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},jHr={name:"OKBChain Testnet",chain:"okbchain",rpc:["https://okbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://okbtestrpc.okbchain.org"],faucets:["https://www.oklink.com/okbc-test"],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okx.com/okbc/docs/dev/quick-start/introduction/introduction-to-okbchain",shortName:"tokb",chainId:195,networkId:195,explorers:[{name:"OKLink",url:"https://www.oklink.com/okbc-test",standard:"EIP3091"}],status:"active",testnet:!0,slug:"okbchain-testnet"},zHr={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},KHr={name:"Neutrinos TestNet",chain:"NEUTR",rpc:["https://neutrinos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.neutrinoschain.com"],faucets:["https://neutrinoschain.com/faucet"],nativeCurrency:{name:"Neutrinos",symbol:"NEUTR",decimals:18},infoURL:"https://docs.neutrinoschain.com",shortName:"NEUTR",chainId:197,networkId:197,explorers:[{name:"blockscout",url:"https://testnet.neutrinoschain.com",standard:"EIP3091"}],testnet:!0,slug:"neutrinos-testnet"},GHr={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},VHr={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},$Hr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},YHr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},QHr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},JHr={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},ZHr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},XHr={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},ejr={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},tjr={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},rjr={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"fantom"},njr={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},ajr={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},ijr={name:"Neonlink Mainnet",chain:"Neonlink",rpc:["https://neonlink.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonlink.io"],faucets:[],nativeCurrency:{name:"Neonlink Native Token",symbol:"NEON",decimals:18},infoURL:"https://neonlink.io",shortName:"neon",chainId:259,networkId:259,icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"},explorers:[{name:"Neon Blockchain Explorer",url:"https://scan.neonlink.io",standard:"EIP3091",icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"}}],testnet:!1,slug:"neonlink"},sjr={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},ojr={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},cjr={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.era.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},ujr={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},ljr={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},fjr={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},djr={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},pjr={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:18},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},hjr={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},mjr={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},yjr={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"omax"},bjr={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},gjr={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},vjr={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},wjr={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.era.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:{url:"ipfs://QmRkhUD6J3B9WhT4hEWLrcFVTrBhx3CQgNC783aJsrwxSN",width:512,height:512,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zksync.io/"}]},testnet:!1,slug:"zksync-era"},xjr={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},_jr={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!0,slug:"dfk-chain-test"},Tjr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"shiden"},Ejr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Ijr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Cjr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Ajr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},kjr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},Sjr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},Pjr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},Rjr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},Mjr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},Bjr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},Djr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},Njr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"optimism-goerli"},Ojr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},Fjr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},Ljr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},qjr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},Wjr={name:"Columbus Test Network",chain:"CAM",rpc:["https://columbus-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://columbus.camino.network/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.network/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},Ujr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},Hjr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},jjr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},zjr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},Kjr={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},Gjr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},Vjr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},$jr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},Yjr={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},Qjr={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},Jjr={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"astar"},Zjr={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},Xjr={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},ezr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},tzr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!0,slug:"metis-goerli-testnet"},rzr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},nzr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},azr={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},izr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},szr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},ozr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},czr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},uzr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},lzr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},fzr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},dzr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},pzr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ql1"},hzr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},mzr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},yzr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},bzr={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},gzr={name:"Lucid Blockchain",chain:"Lucid",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},vzr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},wzr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},xzr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},_zr={name:"BeOne Chain Mainnet",chain:"BOC",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},rpc:["https://beone-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.beonechain.com","https://dataseed2.beonechain.com","https://dataseed-us1.beonechain.com","https://dataseed-us2.beonechain.com","https://dataseed-uk1.beonechain.com","https://dataseed-uk2.beonechain.com"],faucets:[],nativeCurrency:{name:"BeOne Chain Mainnet",symbol:"BOC",decimals:18},infoURL:"https://beonechain.com",shortName:"BOC",chainId:818,networkId:818,slip44:8181,explorers:[{name:"BeOne Chain Mainnet",url:"https://beonescan.com",standard:"EIP3091"}],testnet:!1,slug:"beone-chain"},Tzr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},Ezr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},Izr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Czr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},Azr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},kzr={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},Szr={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},Pzr={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},Rzr={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},Mzr={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},Bzr={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},Dzr={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},Nzr={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},Ozr={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},Fzr={name:"DecentraBone Layer1 Testnet",chain:"DBONE",rpc:["https://decentrabone-layer1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://layer1test.decentrabone.com"],faucets:[],nativeCurrency:{name:"DecentraBone",symbol:"DBONE",decimals:18},infoURL:"https://decentrabone.com",shortName:"DBONE",chainId:910,networkId:910,testnet:!0,slug:"decentrabone-layer1-testnet"},Lzr={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},qzr={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},Wzr={name:"PulseChain Testnet v4",shortName:"t4pls",chain:"t4PLS",chainId:943,networkId:943,icon:{url:"ipfs://Qmckj9B9F3jWDk9bv9HwoPmfjrx2Ju8J2BQSNoPFdYGduj",width:433,height:402,format:"png"},infoURL:"https://pulsechain.com",rpc:["https://pulsechain-testnet-v4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v4.testnet.pulsechain.com/","wss://rpc.v4.testnet.pulsechain.com/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://faucet.v4.testnet.pulsechain.com/"],ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},status:"incubating",explorers:[],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v4"},Uzr={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},Hzr={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},jzr={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},zzr={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},Kzr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},Gzr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},Vzr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},$zr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},Yzr={name:"5ireChain Thunder",chain:"5ireChain",rpc:["https://5irechain-thunder.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.5ire.network"],faucets:["https://explorer.5ire.network/faucet"],nativeCurrency:{name:"5ire Token",symbol:"5ire",decimals:18},infoURL:"https://5ire.org",shortName:"5ire",chainId:997,networkId:997,icon:{url:"ipfs://QmaZDNDFLWESH4i3XqwEWfWBb1HPnQSNbDAr74nr2x8QAk",width:800,height:800,format:"svg"},explorers:[{name:"5ireChain Explorer",url:"https://explorer.5ire.network",standard:"none",icon:{url:"ipfs://QmaZDNDFLWESH4i3XqwEWfWBb1HPnQSNbDAr74nr2x8QAk",width:800,height:800,format:"svg"}}],testnet:!0,slug:"5irechain-thunder"},Qzr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},Jzr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},Zzr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},Xzr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},eKr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},tKr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},rKr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!1,slug:"eurus"},nKr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},aKr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},iKr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},sKr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},oKr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},cKr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},uKr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},lKr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},fKr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!0,slug:"bronos-testnet"},dKr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"}}],testnet:!1,slug:"bronos"},pKr={name:"ShimmerEVM Testnet",title:"ShimmerEVM Testnet",chain:"ShimmerEVM",icon:{url:"ipfs://bafkreibky2sy6qhi6arktayvologkrgu5kudpgdxfkx4uosbvmstz7v4di",width:720,height:720,format:"png"},rpc:["https://shimmerevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://json-rpc.evm.testnet.shimmer.network"],faucets:["https://evm-toolkit.evm.testnet.shimmer.network","https://evm-faucet.testnet.shimmer.network"],nativeCurrency:{name:"SMR",symbol:"SMR",decimals:18},infoURL:"https://shimmer.network",shortName:"shimmerevm-testnet",chainId:1071,networkId:1071,explorers:[{name:"explorer",url:"https://explorer.evm.testnet.shimmer.network",standard:"EIP3091"}],testnet:!0,slug:"shimmerevm-testnet"},hKr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},icon:{url:"ipfs://QmbWKNucbMtrMPPkHG5ZmVmvNUo8CzqHHcrpk1C2BVQsEG/2022_H-Brand_Stacked_WhiteGreen.svg",format:"svg",height:512,width:512},testnet:!1,slug:"metis-andromeda"},mKr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},yKr={name:"Polygon zkEVM",title:"Polygon zkEVM",chain:"Polygon",rpc:["https://polygon-zkevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zkevm-rpc.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/polygon-zkevm",shortName:"zkevm",chainId:1101,networkId:1101,icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},explorers:[{name:"blockscout",url:"https://zkevm.polygonscan.com",icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.zkevm-rpc.com"}]},testnet:!1,slug:"polygon-zkevm"},bKr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},gKr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},vKr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},wKr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},xKr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},_Kr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},TKr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},EKr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},IKr={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},CKr={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},AKr={name:"Symplexia Smart Chain",chain:"Plexchain",rpc:["https://symplexia-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://plex-rpc.plexfinance.us"],faucets:[],nativeCurrency:{name:"Plex Native Token",symbol:"PLEX",decimals:18},infoURL:"https://plexfinance.us/",shortName:"Plexchain",chainId:1149,networkId:1149,icon:{url:"ipfs://QmcXzfMNSQ7SZzKemNquVoXyG5ergdqCGeLWjRYETGBTUM",width:256,height:256,format:"png"},explorers:[{name:"Plexchain Explorer",url:"https://explorer.plexfinance.us",icon:{url:"ipfs://QmcXzfMNSQ7SZzKemNquVoXyG5ergdqCGeLWjRYETGBTUM",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"symplexia-smart-chain"},kKr={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},SKr={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},PKr={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},RKr={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},MKr={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},BKr={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"enterchain"},DKr={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},NKr={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!0,slug:"ultron-testnet"},OKr={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"ultron"},FKr={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},LKr={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},qKr={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},WKr={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},UKr={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},HKr={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},jKr={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},zKr={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},KKr={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},GKr={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},VKr={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"TDOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},$Kr={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},YKr={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},QKr={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},JKr={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},ZKr={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},XKr={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},eGr={name:"Zafirium Mainnet",chain:"ZAFIC",icon:{url:"ipfs://QmZT1Wq3P4YbgKBSUmCtgbs5ijPF5d91BzaMPh7Aub8d8t",width:192,height:192,format:"png"},rpc:["https://zafirium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.zakumi.io"],faucets:[],nativeCurrency:{name:"Zakumi Chain Native Token",symbol:"ZAFIC",decimals:18},infoURL:"https://www.zakumi.io",shortName:"zafic",chainId:1369,networkId:1369,explorers:[{name:"zafirium-explorer",url:"https://explorer.zakumi.io",standard:"none"}],testnet:!1,slug:"zafirium"},tGr={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},rGr={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",icon:{url:"ipfs://QmfJ1Qxpzi6CSLeFeWY1Bwe435CpT5za5WfrLUE7vNzZfy",width:512,height:512,format:"png"},rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},nGr={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],icon:{url:"ipfs://QmNmJZkQgx9RcFLS3rvxQTVYcPfyAFPr667keHTUxB9PDv",width:122,height:135,format:"png"},testnet:!0,slug:"polygon-zkevm-testnet"},aGr={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},iGr={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},sGr={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},oGr={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},cGr={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},uGr={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},lGr={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},fGr={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},dGr={name:"Horizen Gobi Testnet",shortName:"Gobi",chain:"Gobi",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-gobi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gobi-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1663,networkId:1663,slip44:121,explorers:[{name:"Gobi Testnet Block Explorer",url:"https://gobi-explorer.horizen.io",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"horizen-gobi-testnet"},pGr={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},hGr={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},mGr={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},yGr={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},bGr={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PCM",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!1,slug:"palette-chain"},gGr={name:"PartyChain",chain:"mainnet",rpc:["https://partychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tea.mining4people.com/rpc","http://172.104.194.36:8545"],faucets:[],nativeCurrency:{name:"Grams",symbol:"GRAMS",decimals:18},infoURL:"TeaPartyCrypto.com",shortName:"TeaParty",chainId:1773,networkId:1773,icon:{url:"ipfs://QmerDBFoXvgev2xx9U71gAaAK4CtxaaQVaAPf9Qi6UF9MS",width:400,height:400,format:"jpg"},status:"incubating",explorers:[{name:"PartyExplorer",url:"https://partyexplorer.co",icon:{url:"ipfs://QmerDBFoXvgev2xx9U71gAaAK4CtxaaQVaAPf9Qi6UF9MS",width:400,height:400,format:"jpg"},standard:"EIP3091"}],testnet:!1,slug:"partychain"},vGr={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},wGr={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},xGr={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},_Gr={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},TGr={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},EGr={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},IGr={name:"Lightlink Phoenix Mainnet",chain:"Lightlink Phoenix Mainnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.phoenix.lightlink.io/rpc/v1","https://replicator-02.phoenix.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_phoenix",chainId:1890,networkId:1890,explorers:[{name:"phoenix",url:"https://phoenix.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"lightlink-phoenix"},CGr={name:"Lightlink Pegasus Testnet",chain:"Lightlink Pegasus Testnet",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},rpc:["https://lightlink-pegasus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://replicator-01.pegasus.lightlink.io/rpc/v1","https://replicator-02.pegasus.lightlink.io/rpc/v1"],features:[{name:"EIP155"}],faucets:["https://pegasus-faucet-react.vercel.app"],nativeCurrency:{name:"Ethereum",symbol:"ETH",decimals:18},infoURL:"https://lightlink.io",shortName:"lightlink_pegasus",chainId:1891,networkId:1891,explorers:[{name:"pegasus",url:"https://pegasus.lightlink.io",icon:{url:"ipfs://QmNRUoMgx16hurD3au3ou5A9rmTLYmre8WiGmQEPFmP2Vo",width:600,height:600,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"lightlink-pegasus-testnet"},AGr={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},kGr={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},SGr={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},PGr={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},RGr={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},MGr={name:"Dexilla Testnet",chain:"Dexilla",rpc:["https://dexilla-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dexilla.com"],faucets:[],icon:{url:"ipfs://QmUBveetVibvSEWQrjyxySgUphLuoMGSVLGmYnobt5FgEZ",width:512,height:512,format:"png"},nativeCurrency:{name:"Dexilla Native Token",symbol:"DXZ",decimals:18},infoURL:"https://dexilla.com",shortName:"Dexilla",chainId:1954,networkId:1954,explorers:[{name:"dos-mainnet",url:"https://exp.dexilla.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://bridge.dexilla.com"}]},testnet:!0,slug:"dexilla-testnet"},BGr={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},DGr={name:"Super Smart Chain Testnet",chain:"TSCS",rpc:["https://super-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.superexchain.com:8544"],faucets:["https://testnet.superexchain.com"],nativeCurrency:{name:"Super Chain Native Token",symbol:"TSCS",decimals:18},infoURL:"https://testnet.superexchain.com",shortName:"tscs",chainId:1969,networkId:1969,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://testnetscan.superexchain.com",standard:"EIP3091"}],testnet:!0,slug:"super-smart-chain-testnet"},NGr={name:"Super Smart Chain Mainnet",chain:"SCS",rpc:["https://super-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://superexchain.com:8545"],faucets:[],nativeCurrency:{name:"Super Chain Native Token",symbol:"SCS",decimals:18},infoURL:"https://superexchain.com",shortName:"scs",chainId:1970,networkId:1970,icon:{url:"ipfs://QmW4C4QHLMhLeH5MsdVbauMc2Skb4ehzLKU3egLKKoux4D",width:130,height:130,format:"png"},explorers:[{name:"blockscout",url:"https://scan.superexchain.com",standard:"EIP3091"}],testnet:!1,slug:"super-smart-chain"},OGr={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},FGr={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:{url:"ipfs://bafkreiec34ik3glrm5jrzafdytvu4kxdsrxhqmagbe27fytdcuzkhoooay",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},LGr={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},standard:"none"}],testnet:!0,slug:"eurus-testnet"},qGr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},WGr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ekta"},UGr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.testnet.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},HGr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},jGr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},zGr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},KGr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},GGr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},VGr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},$Gr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},YGr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},QGr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},JGr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:{url:"ipfs://Qma2GfW5nQHuA7nGqdEfwaXPL63G9oTwRTQKaGTfjNtM2W",width:400,height:400,format:"png"}}],testnet:!1,slug:"edgeware-edgeevm"},ZGr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},XGr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!0,slug:"taycan-testnet"},eVr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},tVr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},rVr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},nVr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},aVr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},iVr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},sVr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},oVr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},cVr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},uVr={name:"Metaplayerone Network",chain:"MP1 Dubai-Testnet",icon:{url:"ipfs://QmfJKxmubJrqYWDcR2PnPvmpukxPz4fYDu3hqTaSnpJDxC",width:42,height:23,format:"svg"},rpc:["https://metaplayerone-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-dubai.mp1network.com/"],faucets:[],nativeCurrency:{name:"Metaunit",symbol:"MEU",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"MEU",chainId:2124,networkId:2124,explorers:[{name:"MP1Scan",url:"https://dubai.mp1scan.io",icon:{url:"ipfs://QmfJKxmubJrqYWDcR2PnPvmpukxPz4fYDu3hqTaSnpJDxC",width:42,height:23,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"metaplayerone-network"},lVr={name:"Defi Oracle Meta Testnet",chain:"dfiometatest",icon:{url:"ipfs://QmYrMRnjQJcNkYq9AvZ2FQ9kzYj9szzP4YDmyNA1ybd8xE",width:1e3,height:1043,format:"png"},rpc:["https://defi-oracle-meta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public-2138.defi-oracle.io","wss://rpc.public-2138.defi-oracle.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"testEther",symbol:"tETH",decimals:18},infoURL:"https://defi-oracle.io/",shortName:"dfio-meta-test",chainId:2138,networkId:21,slip44:60,ens:{registry:"0x57f1887a8BF19b14fC0dF6Fd9B2acc9Af147eA85"},explorers:[{name:"Quorum Explorer",url:"https://public-2138.defi-oracle.io",standard:"none"}],testnet:!0,slug:"defi-oracle-meta-testnet"},fVr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bosagora"},dVr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},pVr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},hVr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},mVr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"BTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},standard:"none"}],testnet:!1,slug:"bitcoin-evm"},yVr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},bVr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!0,slug:"kava-evm-testnet"},gVr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"}}],testnet:!1,slug:"kava-evm"},vVr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},wVr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},xVr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},_Vr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},standard:"none"}],testnet:!1,slug:"altcoinchain"},TVr={name:"Kroma Sepolia",title:"Kroma Testnet Sepolia",chainId:2357,shortName:"kroma-sepolia",chain:"ETH",networkId:2357,nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpc:["https://kroma-sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.sepolia.kroma.network"],faucets:[],infoURL:"https://kroma.network",icon:{url:"ipfs://QmcYafk2je5rMqgnFPDZJTaLi6dgFgq96vmX2Li6DX441B",width:320,height:320,format:"svg"},explorers:[{name:"blockscout",url:"https://blockscout.sepolia.kroma.network",icon:{url:"ipfs://QmcYafk2je5rMqgnFPDZJTaLi6dgFgq96vmX2Li6DX441B",width:320,height:320,format:"svg"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-11155111",bridges:[{url:"https://kroma.network/bridge"}]},testnet:!0,slug:"kroma-sepolia"},EVr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},IVr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},CVr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"}}],testnet:!1,slug:"xodex"},AVr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},kVr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"techpay"},SVr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},PVr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},RVr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},MVr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},BVr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},DVr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},NVr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},OVr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},FVr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},LVr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},qVr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},WVr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},UVr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},HVr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},jVr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},zVr={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},KVr={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},GVr={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},VVr={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},$Vr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},YVr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},QVr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},JVr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},ZVr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},XVr={name:"AlveyChain Mainnet",chain:"ALV",icon:{url:"ipfs://QmSwczpPLBG6ob1a8WLoujthiCPzwEyJNp7WdKRi52qbWX",width:310,height:310,format:"png"},rpc:["https://alveychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alveychain.com/rpc","https://rpc2.alvey.io/rpc"],faucets:[],nativeCurrency:{name:"AlveyCoin",symbol:"ALV",decimals:18},infoURL:"https://alveyscan.com/rpc",shortName:"alv",chainId:3797,networkId:3797,explorers:[{name:"AlveyScan",url:"https://alveyscan.com",standard:"EIP3091"}],testnet:!1,slug:"alveychain"},e$r={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},t$r={name:"DOS Tesnet",chain:"DOS",rpc:["https://dos-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"dost",chainId:3939,networkId:3939,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan-Test",url:"https://test.doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"dos-tesnet"},r$r={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},n$r={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},a$r={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},i$r={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png"},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:{url:"ipfs://QmRqbK449Fo9sJ3xMpkPbg6uV1weQj4yVV1xNMP9cdPmjf",width:73,height:73,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},s$r={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},o$r={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},c$r={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},u$r={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitindi.org","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},l$r={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}"," https://rpc-mainnet.bitindi.org","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},f$r={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},d$r={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},p$r={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"phi-network-v1"},h$r={name:"Nexi Mainnet",chain:"Nexi",icon:{url:"ipfs://bafybeifxqd7zel2m237kq5enavnh2s6cshaavswigogyvae2wevxy5k2ti",width:512,height:578,format:"png"},rpc:["https://nexi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chain.nexi.technology/","https://chain.nexilix.com","https://chain.nexi.evmnode.online"],faucets:[],nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},infoURL:"https://www.nexi.technology/",shortName:"nexi",chainId:4242,networkId:4242,slip44:2500,explorers:[{name:"nexiscan",url:"https://www.nexiscan.com",standard:"EIP3091"}],testnet:!1,slug:"nexi"},m$r={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},y$r={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},standard:"none"}],testnet:!1,slug:"htmlcoin"},b$r={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},g$r={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},v$r={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},w$r={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},x$r={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},_$r={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},T$r={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},E$r={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},I$r={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},C$r={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},A$r={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},k$r={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},S$r={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},P$r={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},R$r={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},M$r={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},B$r={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},D$r={name:"SatoshiChain Testnet",chain:"SATS",icon:{url:"ipfs://QmRegpZQBW4o1imYNsW3d27MQjygBSU23Gf6JKje26nvs7",width:1251,height:1251,format:"png"},rpc:["https://satoshichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.satoshichain.io"],faucets:["https://faucet.satoshichain.io"],nativeCurrency:{name:"SatoshiChain Coin",symbol:"SATS",decimals:18},infoURL:"https://satoshichain.net",shortName:"sats",chainId:5758,networkId:5758,explorers:[{name:"SatoshiChain Explorer",url:"https://satoshiscan.io",standard:"EIP3091"}],testnet:!0,slug:"satoshichain-testnet"},N$r={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},O$r={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},F$r={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},L$r={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},q$r={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"tres"},W$r={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},U$r={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},H$r={name:"IRIShub",chain:"IRIShub",rpc:["https://irishub.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmrpc.irishub-1.irisnet.org"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Eris",symbol:"ERIS",decimals:18},infoURL:"https://www.irisnet.org",shortName:"iris",chainId:6688,networkId:6688,icon:{url:"ipfs://QmTKgKs7kJiWDhdjbELE4Y2HVZ36KS4bYkNCbXdsXk66sW",width:1062,height:1062,format:"png"},explorers:[{name:"IRISHub Cosmos Explorer (IOBScan)",url:"https://irishub.iobscan.io",standard:"none",icon:{url:"ipfs://QmTKgKs7kJiWDhdjbELE4Y2HVZ36KS4bYkNCbXdsXk66sW",width:1062,height:1062,format:"png"}}],testnet:!1,slug:"irishub"},j$r={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},z$r={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},K$r={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},G$r={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},V$r={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},$$r={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},Y$r={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},Q$r={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},J$r={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},Z$r={name:"ADIL Testnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.adilchain-rpc.io"],faucets:["https://testnet-faucet.adil-scan.io"],nativeCurrency:{name:"Testnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"tadil",chainId:7575,networkId:7575,explorers:[{name:"ADIL Testnet Explorer",url:"https://testnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!0,slug:"adil-testnet"},X$r={name:"Adil Chain V2 Mainnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-chain-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"adil",chainId:7576,networkId:7576,explorers:[{name:"ADIL Mainnet Explorer",url:"https://adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-chain-v2"},eYr={name:"The Root Network - Mainnet",chain:"TRN",rpc:["https://the-root-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://root.rootnet.live/archive","wss://root.rootnet.live/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-mainnet",chainId:7668,networkId:7668,explorers:[{name:"rootnet",url:"https://explorer.rootnet.live",standard:"EIP3091"}],testnet:!1,slug:"the-root-network"},tYr={name:"The Root Network - Porcini Testnet",chain:"TRN",rpc:["https://the-root-network-porcini-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://porcini.rootnet.app/archive","wss://porcini.rootnet.app/archive/ws"],faucets:[],nativeCurrency:{name:"XRP",symbol:"XRP",decimals:6},infoURL:"https://www.futureverse.com/technology/root",shortName:"trn-porcini",chainId:7672,networkId:7672,explorers:[{name:"rootnet",url:"https://explorer.rootnet.cloud",standard:"EIP3091"}],testnet:!0,slug:"the-root-network-porcini-testnet"},rYr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},nYr={name:"Canto Tesnet",chain:"Canto",rpc:["https://canto-tesnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-archive.plexnode.wtf"],faucets:[],nativeCurrency:{name:"Testnet Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"TestnetCanto",chainId:7701,networkId:7701,explorers:[{name:"Canto Testnet EVM Explorer (Blockscout)",url:"https://testnet.tuber.build",standard:"none"}],testnet:!0,slug:"canto-tesnet"},aYr={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},iYr={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},sYr={name:"DOS Chain",chain:"DOS",rpc:["https://dos-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.doschain.com"],faucets:[],nativeCurrency:{name:"DOS",symbol:"DOS",decimals:18},infoURL:"https://doschain.io",shortName:"dos",chainId:7979,networkId:7979,icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},explorers:[{name:"DOScan",url:"https://doscan.io",icon:{url:"ipfs://QmV2Nowzo81F6pi2qFcHePA4MwmmdMKBMUzBJUrxcymxx4",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"dos-chain"},oYr={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!1,slug:"teleport"},cYr={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"}}],testnet:!0,slug:"teleport-testnet"},uYr={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},lYr={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},fYr={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},dYr={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},pYr={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},hYr={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},mYr={name:"Qitmeer Network Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meermix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8132,networkId:8132,status:"incubating",testnet:!1,slug:"qitmeer-network-mixnet"},yYr={name:"Qitmeer Network Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meerpriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8133,networkId:8133,status:"incubating",testnet:!1,slug:"qitmeer-network-privnet"},bYr={name:"Amana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8134,networkId:8134,status:"incubating",testnet:!1,slug:"amana"},gYr={name:"Flana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8135,networkId:8135,status:"incubating",testnet:!1,slug:"flana"},vYr={name:"Mizana",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mainnet",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizana",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:8136,networkId:8136,status:"incubating",testnet:!1,slug:"mizana"},wYr={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},xYr={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},_Yr={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},TYr={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},EYr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},IYr={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},CYr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},AYr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},kYr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},SYr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},PYr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},RYr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},MYr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},BYr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},DYr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},NYr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},OYr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},FYr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},LYr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},qYr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"}}],testnet:!1,slug:"mammoth"},WYr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},UYr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"}}],testnet:!1,slug:"giant-mammoth"},HYr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},jYr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!0,slug:"evmos-testnet"},zYr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"}}],testnet:!1,slug:"evmos"},KYr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},GYr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},VYr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},$Yr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},YYr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},QYr={name:"Neonlink Testnet",chain:"Neonlink",rpc:["https://neonlink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonlink.io"],faucets:["https://faucet.neonlink.io/"],nativeCurrency:{name:"Neonlink Native Token",symbol:"tNEON",decimals:18},infoURL:"https://neonlink.io",shortName:"testneon",chainId:9559,networkId:9559,icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"},explorers:[{name:"Neon Blockchain Explorer",url:"https://testnet-scan.neonlink.io",standard:"EIP3091",icon:{url:"ipfs://QmX3hBv8WyvVfYjh1gmgDfJCpJBvKk4TYG9wFX9sC8WAjz",width:512,height:512,format:"svg"}}],testnet:!0,slug:"neonlink-testnet"},JYr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},ZYr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},XYr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},eQr={name:"Carbon EVM",chain:"Carbon",icon:{url:"ipfs://QmQUHqi1gyuTuKmJQHqt9EyhN1FPmmmLNUK8u93nMGrxAy",width:1600,height:1600,format:"png"},rpc:["https://carbon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-api.carbon.network/"],faucets:[],nativeCurrency:{name:"swth",symbol:"SWTH",decimals:18},infoURL:"https://carbon.network/",shortName:"carbon",chainId:9790,networkId:9790,explorers:[],testnet:!1,slug:"carbon-evm"},tQr={name:"Carbon EVM Testnet",chain:"Carbon",icon:{url:"ipfs://QmQUHqi1gyuTuKmJQHqt9EyhN1FPmmmLNUK8u93nMGrxAy",width:1600,height:1600,format:"png"},rpc:["https://carbon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-evm-api.carbon.network/"],faucets:[],nativeCurrency:{name:"swth",symbol:"SWTH",decimals:18},infoURL:"https://carbon.network/",shortName:"carbon-testnet",chainId:9792,networkId:9792,explorers:[],testnet:!0,slug:"carbon-evm-testnet"},rQr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},nQr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},aQr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},iQr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},sQr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},oQr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},cQr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},uQr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},lQr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},fQr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},dQr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},pQr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},hQr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},mQr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!1,slug:"astra"},yQr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},bQr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"}}],testnet:!0,slug:"astra-testnet"},gQr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},vQr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},wQr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},xQr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},_Qr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},TQr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},EQr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},IQr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},CQr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},AQr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},kQr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",icon:{url:"ipfs://QmfJ1Qxpzi6CSLeFeWY1Bwe435CpT5za5WfrLUE7vNzZfy",width:512,height:512,format:"png"},rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},SQr={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},PQr={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},RQr={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},MQr={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},BQr={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},DQr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},NQr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},OQr={name:"EOS EVM Network Testnet",chain:"EOS",icon:{url:"ipfs://QmXkK5D5GWizvY1FmL6pV8cYLAbhehKETubktCgh6qDJZb",width:500,height:750,format:"png"},rpc:["https://eos-evm-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet.evm.eosnetwork.com"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eosnetwork.com/eos-evm",shortName:"eos-testnet",chainId:15557,networkId:15557,explorers:[{name:"EOS EVM Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.testnet.evm.eosnetwork.com"}]},testnet:!0,slug:"eos-evm-network-testnet"},FQr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},LQr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},qQr={name:"IRIShub Testnet",chain:"IRIShub",rpc:["https://irishub-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://34.80.202.172:8545"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Eris",symbol:"ERIS",decimals:18},infoURL:"https://www.irisnet.org",shortName:"nyancat",chainId:16688,networkId:16688,icon:{url:"ipfs://QmRaSx7AX1VDgcqjwLgSDP4WZmKBHPdHhbjkcEEXPA2Fnc",width:1062,height:822,format:"png"},explorers:[{name:"IRISHub Testnet Cosmos Explorer (IOBScan)",url:"https://nyancat.iobscan.io",standard:"none",icon:{url:"ipfs://QmRaSx7AX1VDgcqjwLgSDP4WZmKBHPdHhbjkcEEXPA2Fnc",width:1062,height:822,format:"png"}}],testnet:!0,slug:"irishub-testnet"},WQr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},UQr={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},HQr={name:"Palette Chain Testnet",chain:"PLT",rpc:["https://palette-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-opennet.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PCT",chainId:17180,networkId:17180,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://testnet.palettescan.com",icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},standard:"none"}],testnet:!0,slug:"palette-chain-testnet"},jQr={name:"EOS EVM Network",chain:"EOS",icon:{url:"ipfs://QmXkK5D5GWizvY1FmL6pV8cYLAbhehKETubktCgh6qDJZb",width:500,height:750,format:"png"},rpc:["https://eos-evm-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.evm.eosnetwork.com"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eosnetwork.com/eos-evm",shortName:"eos",chainId:17777,networkId:17777,explorers:[{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.evm.eosnetwork.com"},{url:"https://app.multichain.org"}]},testnet:!1,slug:"eos-evm-network"},zQr={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},KQr={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},GQr={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},VQr={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},$Qr={name:"Camelark Mainnet",chainId:20001,shortName:"Camelark",chain:"ETHW",icon:{url:"ipfs://QmeJerrsURFNt2LL7DE7TxeunjrQXiuezdfHyqmsbwX3MZ",width:128,height:128,format:"png"},networkId:20001,nativeCurrency:{name:"EthereumPoW",symbol:"ETHW",decimals:18},rpc:["https://camelark.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-http-rpc.camelark.com"],faucets:[],explorers:[{name:"CamelarkScan",url:"https://scan.camelark.com",standard:"EIP3091"}],infoURL:"https://www.camelark.com",testnet:!1,slug:"camelark"},YQr={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},QQr={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},JQr={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},ZQr={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},XQr={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"}}],testnet:!1,slug:"taycan"},eJr={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},tJr={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},rJr={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},nJr={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},aJr={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},iJr={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},sJr={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},oJr={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},cJr={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"}}],testnet:!0,slug:"bitkub-chain-testnet"},uJr={name:"Ferrum Testnet",chain:"tFRM",rpc:["https://ferrum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.dev.svcs.ferrumnetwork.io:9933"],faucets:["https://testnet.faucet.ferrumnetwork.io"],nativeCurrency:{name:"Ferrum",symbol:"tFRM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://ferrum.network",shortName:"frm",chainId:26026,networkId:26026,explorers:[{name:"polkadotjs",url:"https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Ftestnet.dev.svcs.ferrumnetwork.io#/explorer",standard:"none"}],testnet:!0,slug:"ferrum-testnet"},lJr={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},fJr={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},dJr={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},pJr={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},hJr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},mJr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},yJr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},bJr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},gJr={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},vJr={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"bitgert"},wJr={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"fusion"},xJr={name:"Zilliqa EVM",chain:"ZIL",rpc:["https://zilliqa-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.zilliqa.com"],faucets:[],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil",chainId:32769,networkId:32769,icon:{url:"ipfs://QmTREXNgGtUhSoxFsrkhTe5LUnDBTKL5byaX8kpET6UuKp",width:2048,height:2048,format:"png"},explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!1,slug:"zilliqa-evm"},_Jr={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},TJr={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"aves"},EJr={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:{url:"ipfs://QmdUYi8fjnvdM9iFQ7dwE2YvmhDtavSB3bKhCD2GhPxPks",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},IJr={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"q"},CJr={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},AJr={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},kJr={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"oho"},SJr={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},PJr={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},RJr={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!1,slug:"arbitrum"},MJr={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},BJr={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},DJr={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},NJr={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},OJr={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},FJr={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax.network/","https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},LJr={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png"},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},qJr={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},WJr={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"frenchain"},UJr={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},HJr={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},jJr={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:{url:"ipfs://QmSAFx34SKNi7a139agX12f68oBMo2Ktt9c8yD8aFa14gd",width:48,height:51,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},zJr={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},KJr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},GJr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},VJr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},$Jr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},YJr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},QJr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},JJr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"none"}],testnet:!1,slug:"dfk-chain"},ZJr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},XJr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},eZr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},tZr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},rZr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},nZr={name:"Linea Testnet",title:"Linea Goerli Testnet",chain:"ETH",rpc:["https://linea-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goerli.linea.build","wss://rpc.goerli.linea.build","https://consensys-zkevm-goerli-prealpha.infura.io/v3/${INFURA_API_KEY}","wss://consensys-zkevm-goerli-prealpha.infura.io/v3/${INFURA_API_KEY}"],faucets:["https://faucetlink.to/goerli"],nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},infoURL:"https://linea.build",shortName:"linea-testnet",chainId:59140,networkId:59140,icon:{url:"ipfs://QmURjritnHL7a8TwZgsFwp3f272DJmG5paaPtWDZ98QZwH",width:97,height:102,format:"svg"},parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea"}]},explorers:[{name:"blockscout",url:"https://explorer.goerli.linea.build",standard:"EIP3091",icon:{url:"ipfs://QmURjritnHL7a8TwZgsFwp3f272DJmG5paaPtWDZ98QZwH",width:97,height:102,format:"svg"}}],status:"active",testnet:!0,slug:"linea-testnet"},aZr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},iZr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},sZr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},oZr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},cZr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},uZr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},lZr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},fZr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},dZr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"ecredits"},pZr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},hZr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},mZr={name:"Cosmic Chain",chain:"COSMIC",rpc:["https://cosmic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cosmicchain.site:3344"],faucets:[],nativeCurrency:{name:"Cosmic Chain",symbol:"COSMIC",decimals:18},infoURL:"https://cosmicchain.site",shortName:"Cosmic",chainId:67588,networkId:3344,testnet:!0,slug:"cosmic-chain"},yZr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},bZr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},gZr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},vZr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},wZr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},xZr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},_Zr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},TZr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},EZr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},IZr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},CZr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},AZr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},kZr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},SZr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},PZr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png"},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},RZr={name:"Amana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81341,networkId:81341,status:"incubating",testnet:!0,slug:"amana-testnet"},MZr={name:"Amana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81342,networkId:81342,status:"incubating",testnet:!1,slug:"amana-mixnet"},BZr={name:"Amana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Amana Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"amanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81343,networkId:81343,status:"incubating",testnet:!1,slug:"amana-privnet"},DZr={name:"Flana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81351,networkId:81351,status:"incubating",testnet:!0,slug:"flana-testnet"},NZr={name:"Flana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81352,networkId:81352,status:"incubating",testnet:!1,slug:"flana-mixnet"},OZr={name:"Flana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Flana Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"flanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81353,networkId:81353,status:"incubating",testnet:!1,slug:"flana-privnet"},FZr={name:"Mizana Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanatest",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81361,networkId:81361,status:"incubating",testnet:!0,slug:"mizana-testnet"},LZr={name:"Mizana Mixnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Mixnet",symbol:"MEER-M",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanamix",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81362,networkId:81362,status:"incubating",testnet:!1,slug:"mizana-mixnet"},qZr={name:"Mizana Privnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Mizana Privnet",symbol:"MEER-P",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"mizanapriv",icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},chainId:81363,networkId:81363,status:"incubating",testnet:!1,slug:"mizana-privnet"},WZr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},UZr={name:"CYBERTRUST",chain:"CYBER",rpc:["https://cybertrust.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://testnet.cybertrust.space:48501"],faucets:[],nativeCurrency:{name:"Cyber Trust",symbol:"CYBER",decimals:18},infoURL:"https://cybertrust.space",shortName:"Cyber",chainId:85449,networkId:48501,testnet:!0,slug:"cybertrust"},HZr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},jZr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},zZr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},KZr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"}}],testnet:!0,slug:"lambda-testnet"},GZr={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},VZr={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},$Zr={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},YZr={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},QZr={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},JZr={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},ZZr={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},XZr={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},eXr={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},tXr={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},rXr={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},nXr={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},aXr={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},iXr={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},sXr={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},oXr={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},cXr={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},uXr={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},lXr={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},fXr={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},dXr={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},pXr={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},hXr={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},mXr={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},yXr={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},bXr={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},gXr={name:"ADIL Devnet",chain:"ADIL",icon:{url:"ipfs://QmeHNYUx6n8CjUFSLWNT17oAtDYrUq6r8buyvGCUBXCJw6",width:500,height:500,format:"png"},rpc:["https://adil-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.adilchain-rpc.io"],faucets:[],nativeCurrency:{name:"Devnet ADIL",symbol:"ADIL",decimals:18},infoURL:"https://adilchain.io",shortName:"dadil",chainId:123456,networkId:123456,explorers:[{name:"ADIL Devnet Explorer",url:"https://devnet.adilchain-scan.io",standard:"EIP3091"}],testnet:!1,slug:"adil-devnet"},vXr={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},standard:"none"}],testnet:!1,slug:"etnd-chain-s"},wXr={name:"ICPlaza Mainnet",chain:"ICPlaza",icon:{url:"ipfs://QmQpKKwpqrx77VA4SJLEWhuv9eLFMcVV9uvxRCLb6gdgCX",width:847,height:906,format:"png"},rpc:["https://icplaza.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpcmainnet.ic-plaza.org/"],faucets:[],nativeCurrency:{name:"ict",symbol:"ict",decimals:18},infoURL:"https://docs.ic-plaza.org/",shortName:"ICPlaza",chainId:142857,networkId:142857,explorers:[{name:"ICPlaza",url:"https://browsemainnet.ic-plaza.org/index",standard:"none"}],testnet:!1,slug:"icplaza"},xXr={name:"Taiko (Alpha-2 Testnet)",chain:"ETH",icon:{url:"ipfs://QmWMUDmNHzCtism9dYK1JooerZJ4da6kGt67HAQmLiEykc",width:1001,height:1001,format:"png"},rpc:["https://taiko-alpha-2-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.a2.taiko.xyz"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://taiko.xyz",shortName:"taiko-a2",chainId:167004,networkId:167004,explorers:[{name:"blockscout",url:"https://explorer.a2.taiko.xyz",standard:"EIP3091"}],testnet:!0,slug:"taiko-alpha-2-testnet"},_Xr={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},TXr={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},EXr={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},IXr={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},CXr={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},AXr={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},kXr={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},SXr={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},PXr={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"}}],testnet:!0,slug:"jellie"},RXr={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},MXr={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},BXr={name:"Taf ECO Chain Mainnet",chain:"Taf ECO Chain",icon:{url:"ipfs://bafkreigpxhu7glccsislhjqpl5fnsfmj2io4cy33blhky642uiuyojossy",width:400,height:400,format:"png"},rpc:["https://taf-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.tafchain.com/v1"],faucets:[],nativeCurrency:{name:"Taf ECO Chain Mainnet",symbol:"TAFECO",decimals:18},infoURL:"https://www.tafchain.com",shortName:"TAFECO",chainId:224168,networkId:224168,explorers:[{name:"Taf ECO Chain Mainnet",url:"https://ecoscan.tafchain.com",standard:"EIP3091"}],testnet:!1,slug:"taf-eco-chain"},DXr={name:"HashKey Chain Testnet",chain:"HashKey",rpc:["https://hashkey-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashkeychain/rpc"],faucets:["https://testnet.hashkeychain/faucet"],nativeCurrency:{name:"HashKey Token",symbol:"tHSK",decimals:18},infoURL:"https://www.hashkey.com",shortName:"hsktest",chainId:230315,networkId:230315,icon:{url:"ipfs://QmNU11AqYB2htrrSyBSP9ct7bPtuZTP7Hrz21PrEcB9nYE",width:1440,height:448,format:"png"},explorers:[{name:"HashKey Chain Testnet Explorer",url:"https://testnet.hashkeyscan.io",standard:"none"}],testnet:!0,slug:"hashkey-chain-testnet"},NXr={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},OXr={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},FXr={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},LXr={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},qXr={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},WXr={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},UXr={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},HXr={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},jXr={name:"TTcoin Smart Chain Mainnet",chain:"TSC",icon:{url:"ipfs://QmS7ipvvyZ16weG1DM7AZbi1v9ixYwU2FjP25Jj5jkLiuf",width:512,height:512,format:"png"},rpc:["https://ttcoin-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tscscan.com"],faucets:["https://faucet.tscscan.com"],nativeCurrency:{name:"TTcoin",symbol:"TC",decimals:18},infoURL:"https://ttcoin.info/",shortName:"tc",chainId:330844,networkId:330844,explorers:[{name:"TTcoin Smart Chain Explorer",url:"https://tscscan.com",standard:"EIP3091",icon:{url:"ipfs://QmS7ipvvyZ16weG1DM7AZbi1v9ixYwU2FjP25Jj5jkLiuf",width:512,height:512,format:"png"}}],testnet:!1,slug:"ttcoin-smart-chain"},zXr={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},KXr={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},GXr={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},VXr={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!0,slug:"hapchain-testnet"},$Xr={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},YXr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},QXr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},JXr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"kekchain"},ZXr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},XXr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},een={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png"},testnet:!0,slug:"arbitrum-goerli"},ten={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},ren={name:"Markr Go",chain:"Unified",icon:{url:"ipfs://QmVMBTZVPawyLBD2B5VbG68dfWLfZ1CnB8V59xduBe2kwh",width:84,height:84,format:"png"},rpc:["https://markr-go.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.markr.io/ext/"],faucets:[],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.markr.io/",shortName:"markr-go",chainId:431140,networkId:431140,explorers:[],status:"incubating",testnet:!1,slug:"markr-go"},nen={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},aen={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},ien={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},sen={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},oen={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},cen={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"ethf",chain:"ETHF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://www.oklink.com/ethf",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},uen={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},len={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},fen={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},den={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},pen={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},hen={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},men={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},yen={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:{url:"ipfs://bafybeifu5tpui7dk5cjoo54kde7pmuthvnl7sdykobuarsxgu7t2izurnq",width:512,height:512,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"octaspace"},ben={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},gen={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},ven={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},wen={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},xen={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},_en={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},Ten={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},Een={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},Ien={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},Cen={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},Aen={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},ken={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"kiln"},Sen={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},Pen={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},Ren={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},Men={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},Ben={name:"MXC Wannsee zkEVM Testnet",chain:"MXC zkEVM",icon:{url:"ipfs://QmdGCthKA11K9kCZJdbTP5WPAyq1wiRZ3REn6KG58MrWaE",width:159,height:159,format:"png"},rpc:["https://mxc-wannsee-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wannsee-rpc.mxc.com"],faucets:[],nativeCurrency:{name:"MXC Wannsee zkEVM Testnet",symbol:"MXC",decimals:18},infoURL:"https://wannsee.mxc.com/docs/intro",shortName:"MXC",chainId:5167003,networkId:5167003,explorers:[{name:"MXC Wannsee zkEVM Testnet",url:"https://wannsee-explorer.mxc.com",standard:"EIP3091"}],testnet:!0,slug:"mxc-wannsee-zkevm-testnet"},Den={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!1,slug:"imversed"},Nen={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},standard:"none"}],testnet:!0,slug:"imversed-testnet"},Oen={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},Fen={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},Len={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},qen={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},Wen={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},Uen={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"}}],testnet:!1,slug:"hapchain"},Hen={name:"Quarix Testnet",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix-testnet",chainId:8888881,networkId:8888881,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!0,slug:"quarix-testnet"},jen={name:"Quarix",chain:"Quarix",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"Q",symbol:"Q",decimals:18},infoURL:"",shortName:"quarix",chainId:8888888,networkId:8888888,icon:{url:"ipfs://QmZmY6xVNzRAGwyT64PuyHaQ33BR84HEWvTVf6YHPW7kvQ",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"quarix"},zen={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},Ken={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},Gen={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},Ven={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},$en={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:{url:"ipfs://bafkreiapaxokh2p4j7hg43ug2inomixiwrdhni4kpqazvqifssnez7efze",width:512,height:512,format:"png"},standard:"none"}],testnet:!1,slug:"anduschain"},Yen={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},Qen={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},Jen={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},Zen={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},Xen={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},etn={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},ttn={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},rtn={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},ntn={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},atn={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},itn={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},stn={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},otn={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},ctn={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},utn={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},ltn={name:"T.E.A.M Blockchain",chain:"TEAM",icon:{url:"ipfs://QmcnA15BLE9uvznbugXKjqquizZs1eLPeEEkc92DSmvhmt",width:248,height:248,format:"png"},rpc:["https://t-e-a-m-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.teamblockchain.team"],faucets:[],nativeCurrency:{name:"TEAM",symbol:"$TEAM",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://teamblockchain.team",shortName:"team",chainId:88888888,networkId:88888888,explorers:[{name:"teamscan",url:"https://teamblockchain.team",standard:"EIP3091"}],testnet:!1,slug:"t-e-a-m-blockchain"},ftn={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},dtn={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},explorers:[{name:"Blockscout",url:"https://explorer.gather.network",icon:{url:"ipfs://QmTYR8CeFiNbJ1zJHnE3DK2wEN18r2y2vqSKUcLweUT2Gz",width:1080,height:1080,format:"svg"},standard:"none"}],testnet:!1,slug:"gather-network"},ptn={name:"Kanazawa",title:"Meld Testnet Kanazawa",chain:"Kanazawa",rpc:["https://kanazawa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-kanazawa.meldlabs.dev/ext/bc/2Ci7VYrUd4fTBqGA5D2HA6UPHzQ4LQyr8rZQww9MGSv9rNkRzn/rpc"],faucets:[],features:[],nativeCurrency:{name:"gMeld",symbol:"gMELD",decimals:18},icon:{url:"ipfs://QmRhB4AbjDrhvwfSAQi2JvKirFiDWxzJvKEvG8S8AdDdED",width:4e3,height:4e3,format:"png"},infoURL:"https://meld.com",shortName:"kanazawa",chainId:222000222,networkId:222000222,explorers:[],testnet:!0,slug:"kanazawa"},htn={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},mtn={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},ytn={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},btn={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},gtn={name:"Meld",title:"Meld Mainnet",chain:"MELD",rpc:["https://meld.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network-rpc.meld.com"],faucets:[],features:[],nativeCurrency:{name:"gMeld",symbol:"gMELD",decimals:18},icon:{url:"ipfs://QmRhB4AbjDrhvwfSAQi2JvKirFiDWxzJvKEvG8S8AdDdED",width:4e3,height:4e3,format:"png"},infoURL:"https://meld.com",shortName:"meld",chainId:333000333,networkId:333000333,explorers:[],testnet:!1,slug:"meld"},vtn={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},wtn={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",icon:{url:"ipfs://QmTYR8CeFiNbJ1zJHnE3DK2wEN18r2y2vqSKUcLweUT2Gz",width:1080,height:1080,format:"svg"},standard:"none"}],testnet:!0,slug:"gather-testnet-network"},xtn={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},_tn={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},Ttn={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},Etn={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},standard:"none"}],testnet:!1,slug:"cyberdecknet"},Itn={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmT5KKrpNt6duU8QfwaYw3xf4ifTBPtjahpWsMi3gsFmcS",width:440,height:600,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},Ctn={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},Atn={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},ktn={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},Stn={name:"Chaos (SKALE Testnet)",title:"Chaos Testnet",chain:"staging-fast-active-bellatrix",rpc:["https://chaos-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-fast-active-bellatrix"],faucets:["https://sfuel.skale.network/staging/chaos"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://docs.skale.network/develop/",shortName:"chaos-tenet",chainId:1351057110,networkId:1351057110,explorers:[{name:"Blockscout",url:"https://staging-fast-active-bellatrix.explorer.staging-v3.skalenodes.com",icon:{url:"ipfs://QmbYYCoU2G4LUfRr9ofGowF3eatfvWv9FiPVhqKndZeqwA",width:400,height:400,format:"png"},standard:"EIP3091"}],testnet:!0,slug:"chaos-skale-testnet"},Ptn={name:"RaptorChain",chain:"RPTR",rpc:["https://raptorchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.raptorchain.io/web3"],faucets:[],nativeCurrency:{name:"Raptor",symbol:"RPTR",decimals:18},features:[{name:"EIP155"}],infoURL:"https://raptorchain.io",shortName:"rptr",chainId:1380996178,networkId:1380996178,icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},explorers:[{name:"RaptorChain Explorer",url:"https://explorer.raptorchain.io",icon:{url:"ipfs://QmQuvmiN6vM6Rqzqe1pMzDf8iZXqTtSeqCgGe5k5AyksDU",width:200,height:200,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"raptorchain"},Rtn={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://QmfQkfmQuoUUUKwF1yCcrPEzFcWLaqNyiSv5YMcSj6zs74",width:500,height:500,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"nebula"},Mtn={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:{url:"ipfs://bafybeigyayzxvt7vosat4rtrbmhhnldgx57w2pfbutuniax7h6kswzi42m",width:1637,height:1636,format:"png"},standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},Btn={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},Dtn={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},Ntn={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},Otn={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},Ftn={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},Ltn={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},qtn={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},Wtn={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},Utn={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},Htn={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},jtn={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},ztn={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},Ktn={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},Gtn={name:"Palm Testnet",chain:"Palm",icon:{url:"ipfs://bafkreihifvvbq6xzviygveivayogqiotdtpjvilu27bgqobduqemzeq7o4",width:72,height:72,format:"svg"},rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},Vtn={name:"Palm",chain:"Palm",icon:{url:"ipfs://bafkreihifvvbq6xzviygveivayogqiotdtpjvilu27bgqobduqemzeq7o4",width:72,height:72,format:"svg"},rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},$tn={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!1,slug:"ntity"},Ytn={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},Qtn={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},Jtn={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},Ztn={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},Xtn={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png"},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},ern={mode:"http"};function Wbt(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...ern,...e},s=r.rpc.filter(h=>!!(h.startsWith("http")&&i==="http"||h.startsWith("ws")&&i==="ws")),o=s.filter(h=>h.includes("${THIRDWEB_API_KEY}")&&t).map(h=>t?h.replace("${THIRDWEB_API_KEY}",t):h),c=s.filter(h=>h.includes("${ALCHEMY_API_KEY}")&&n).map(h=>n?h.replace("${ALCHEMY_API_KEY}",n):h),u=s.filter(h=>h.includes("${INFURA_API_KEY}")&&a).map(h=>a?h.replace("${INFURA_API_KEY}",a):h),l=s.filter(h=>!h.includes("${")),p=[...o,...u,...c,...l];if(p.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return p}function trn(r,e){return Wbt(r,e)[0]}function rrn(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function nrn(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var yw=oWr,aF=cWr,iF=uWr,sF=lWr,bw=fWr,oF=dWr,cF=pWr,uF=hWr,lF=mWr,gw=yWr,fF=bWr,dF=gWr,pF=vWr,hF=wWr,mF=xWr,yF=_Wr,bF=TWr,gF=EWr,vF=IWr,wF=CWr,xF=AWr,_F=kWr,TF=SWr,EF=PWr,IF=RWr,CF=MWr,AF=BWr,kF=DWr,SF=NWr,PF=OWr,RF=FWr,MF=LWr,BF=qWr,DF=WWr,NF=UWr,OF=HWr,FF=jWr,LF=zWr,qF=KWr,WF=GWr,UF=VWr,HF=$Wr,jF=YWr,zF=QWr,KF=JWr,GF=ZWr,VF=XWr,$F=eUr,YF=tUr,QF=rUr,JF=nUr,ZF=aUr,XF=iUr,eL=sUr,tL=oUr,vw=cUr,rL=uUr,nL=lUr,aL=fUr,iL=dUr,sL=pUr,oL=hUr,cL=mUr,uL=yUr,lL=bUr,fL=gUr,dL=vUr,pL=wUr,hL=xUr,mL=_Ur,yL=TUr,bL=EUr,gL=IUr,vL=CUr,wL=AUr,xL=kUr,_L=SUr,TL=PUr,EL=RUr,IL=MUr,CL=BUr,AL=DUr,kL=NUr,SL=OUr,PL=FUr,RL=LUr,ML=qUr,BL=WUr,DL=UUr,NL=HUr,OL=jUr,FL=zUr,LL=KUr,ww=GUr,qL=VUr,WL=$Ur,UL=YUr,HL=QUr,jL=JUr,zL=ZUr,KL=XUr,GL=eHr,VL=tHr,$L=rHr,YL=nHr,QL=aHr,JL=iHr,ZL=sHr,XL=oHr,eq=cHr,tq=uHr,rq=lHr,nq=fHr,aq=dHr,iq=pHr,sq=hHr,oq=mHr,cq=yHr,uq=bHr,lq=gHr,fq=vHr,dq=wHr,pq=xHr,xw=_Hr,hq=THr,mq=EHr,yq=IHr,bq=CHr,gq=AHr,vq=kHr,wq=SHr,xq=PHr,_q=RHr,Tq=MHr,Eq=BHr,Iq=DHr,Cq=NHr,Aq=OHr,kq=FHr,Sq=LHr,Pq=qHr,Rq=WHr,Mq=UHr,Bq=HHr,Dq=jHr,Nq=zHr,Oq=KHr,Fq=GHr,Lq=VHr,qq=$Hr,Wq=YHr,Uq=QHr,Hq=JHr,jq=ZHr,zq=XHr,Kq=ejr,Gq=tjr,_w=rjr,Vq=njr,$q=ajr,Yq=ijr,Qq=sjr,Jq=ojr,Zq=cjr,Xq=ujr,eW=ljr,tW=fjr,rW=djr,nW=pjr,aW=hjr,iW=mjr,sW=yjr,oW=bjr,cW=gjr,uW=vjr,lW=wjr,fW=xjr,dW=_jr,pW=Tjr,hW=Ejr,mW=Ijr,yW=Cjr,bW=Ajr,gW=kjr,vW=Sjr,wW=Pjr,xW=Rjr,_W=Mjr,TW=Bjr,EW=Djr,Tw=Njr,IW=Ojr,CW=Fjr,AW=Ljr,kW=qjr,SW=Wjr,PW=Ujr,RW=Hjr,MW=jjr,BW=zjr,DW=Kjr,NW=Gjr,OW=Vjr,FW=$jr,LW=Yjr,qW=Qjr,WW=Jjr,UW=Zjr,HW=Xjr,jW=ezr,zW=tzr,KW=rzr,GW=nzr,VW=azr,$W=izr,YW=szr,QW=ozr,JW=czr,ZW=uzr,XW=lzr,eU=fzr,tU=dzr,rU=pzr,nU=hzr,aU=mzr,iU=yzr,sU=bzr,oU=gzr,cU=vzr,uU=wzr,lU=xzr,fU=_zr,dU=Tzr,pU=Ezr,hU=Izr,mU=Czr,yU=Azr,bU=kzr,gU=Szr,vU=Pzr,wU=Rzr,xU=Mzr,_U=Bzr,TU=Dzr,EU=Nzr,IU=Ozr,CU=Fzr,AU=Lzr,kU=qzr,SU=Wzr,PU=Uzr,RU=Hzr,MU=jzr,BU=zzr,DU=Kzr,NU=Gzr,OU=Vzr,FU=$zr,LU=Yzr,qU=Qzr,WU=Jzr,UU=Zzr,HU=Xzr,jU=eKr,zU=tKr,KU=rKr,GU=nKr,VU=aKr,$U=iKr,YU=sKr,QU=oKr,JU=cKr,ZU=uKr,XU=lKr,eH=fKr,tH=dKr,rH=pKr,nH=hKr,aH=mKr,iH=yKr,sH=bKr,oH=gKr,cH=vKr,uH=wKr,lH=xKr,fH=_Kr,dH=TKr,pH=EKr,hH=IKr,mH=CKr,yH=AKr,bH=kKr,gH=SKr,vH=PKr,wH=RKr,xH=MKr,_H=BKr,TH=DKr,EH=NKr,IH=OKr,CH=FKr,AH=LKr,kH=qKr,SH=WKr,PH=UKr,RH=HKr,MH=jKr,BH=zKr,DH=KKr,NH=GKr,OH=VKr,FH=$Kr,LH=YKr,qH=QKr,WH=JKr,UH=ZKr,HH=XKr,jH=eGr,zH=tGr,KH=rGr,GH=nGr,VH=aGr,$H=iGr,YH=sGr,QH=oGr,JH=cGr,ZH=uGr,XH=lGr,ej=fGr,tj=dGr,rj=pGr,nj=hGr,aj=mGr,ij=yGr,sj=bGr,oj=gGr,cj=vGr,uj=wGr,lj=xGr,fj=_Gr,dj=TGr,pj=EGr,hj=IGr,mj=CGr,yj=AGr,bj=kGr,gj=SGr,vj=PGr,wj=RGr,xj=MGr,_j=BGr,Tj=DGr,Ej=NGr,Ij=OGr,Cj=FGr,Aj=LGr,kj=qGr,Sj=WGr,Pj=UGr,Rj=HGr,Mj=jGr,Bj=zGr,Dj=KGr,Nj=GGr,Oj=VGr,Fj=$Gr,Lj=YGr,qj=QGr,Wj=JGr,Uj=ZGr,Hj=XGr,jj=eVr,zj=tVr,Kj=rVr,Gj=nVr,Vj=aVr,$j=iVr,Yj=sVr,Qj=oVr,Jj=cVr,Zj=uVr,Xj=lVr,ez=fVr,tz=dVr,rz=pVr,nz=hVr,az=mVr,iz=yVr,sz=bVr,oz=gVr,cz=vVr,uz=wVr,lz=xVr,fz=_Vr,dz=TVr,pz=EVr,hz=IVr,mz=CVr,yz=AVr,bz=kVr,gz=SVr,vz=PVr,wz=RVr,xz=MVr,_z=BVr,Tz=DVr,Ez=NVr,Iz=OVr,Cz=FVr,Az=LVr,kz=qVr,Sz=WVr,Pz=UVr,Rz=HVr,Mz=jVr,Bz=zVr,Dz=KVr,Nz=GVr,Oz=VVr,Fz=$Vr,Lz=YVr,qz=QVr,Wz=JVr,Uz=ZVr,Hz=XVr,jz=e$r,zz=t$r,Kz=r$r,Gz=n$r,Vz=a$r,Ew=i$r,$z=s$r,Yz=o$r,Qz=c$r,Jz=u$r,Zz=l$r,Xz=f$r,eK=d$r,tK=p$r,rK=h$r,nK=m$r,aK=y$r,iK=b$r,sK=g$r,oK=v$r,cK=w$r,uK=x$r,lK=_$r,fK=T$r,dK=E$r,pK=I$r,hK=C$r,mK=A$r,yK=k$r,bK=S$r,gK=P$r,vK=R$r,wK=M$r,xK=B$r,_K=D$r,TK=N$r,EK=O$r,IK=F$r,CK=L$r,AK=q$r,kK=W$r,SK=U$r,PK=H$r,RK=j$r,MK=z$r,BK=K$r,DK=G$r,NK=V$r,OK=$$r,FK=Y$r,LK=Q$r,qK=J$r,WK=Z$r,UK=X$r,HK=eYr,jK=tYr,zK=rYr,KK=nYr,GK=aYr,VK=iYr,$K=sYr,YK=oYr,QK=cYr,JK=uYr,ZK=lYr,XK=fYr,eG=dYr,tG=pYr,rG=hYr,nG=mYr,aG=yYr,iG=bYr,sG=gYr,oG=vYr,cG=wYr,uG=xYr,lG=_Yr,fG=TYr,dG=EYr,pG=IYr,hG=CYr,mG=AYr,yG=kYr,bG=SYr,gG=PYr,vG=RYr,wG=MYr,xG=BYr,_G=DYr,TG=NYr,EG=OYr,IG=FYr,CG=LYr,AG=qYr,kG=WYr,SG=UYr,PG=HYr,RG=jYr,MG=zYr,BG=KYr,DG=GYr,NG=VYr,OG=$Yr,FG=YYr,LG=QYr,qG=JYr,WG=ZYr,UG=XYr,HG=eQr,jG=tQr,zG=rQr,KG=nQr,GG=aQr,VG=iQr,$G=sQr,YG=oQr,QG=cQr,JG=uQr,ZG=lQr,XG=fQr,eV=dQr,tV=pQr,rV=hQr,nV=mQr,aV=yQr,iV=bQr,sV=gQr,oV=vQr,cV=wQr,uV=xQr,lV=_Qr,fV=TQr,dV=EQr,pV=IQr,hV=CQr,mV=AQr,yV=kQr,bV=SQr,gV=PQr,vV=RQr,wV=MQr,xV=BQr,_V=DQr,TV=NQr,EV=OQr,IV=FQr,CV=LQr,AV=qQr,kV=WQr,SV=UQr,PV=HQr,RV=jQr,MV=zQr,BV=KQr,DV=GQr,NV=VQr,OV=$Qr,FV=YQr,LV=QQr,qV=JQr,WV=ZQr,UV=XQr,HV=eJr,jV=tJr,zV=rJr,KV=nJr,GV=aJr,VV=iJr,$V=sJr,YV=oJr,QV=cJr,JV=uJr,ZV=lJr,XV=fJr,e$=dJr,t$=pJr,r$=hJr,n$=mJr,a$=yJr,i$=bJr,s$=gJr,o$=vJr,c$=wJr,u$=xJr,l$=_Jr,f$=TJr,d$=EJr,p$=IJr,h$=CJr,m$=AJr,y$=kJr,b$=SJr,g$=PJr,Iw=RJr,v$=MJr,w$=BJr,x$=DJr,_$=NJr,T$=OJr,Cw=FJr,Aw=LJr,E$=qJr,I$=WJr,C$=UJr,A$=HJr,k$=jJr,S$=zJr,P$=KJr,R$=GJr,M$=VJr,B$=$Jr,D$=YJr,N$=QJr,O$=JJr,F$=ZJr,L$=XJr,q$=eZr,W$=tZr,U$=rZr,H$=nZr,j$=aZr,z$=iZr,K$=sZr,G$=oZr,V$=cZr,$$=uZr,Y$=lZr,Q$=fZr,J$=dZr,Z$=pZr,X$=hZr,eY=mZr,tY=yZr,rY=bZr,nY=gZr,aY=vZr,iY=wZr,sY=xZr,oY=_Zr,cY=TZr,uY=EZr,lY=IZr,fY=CZr,dY=AZr,pY=kZr,hY=SZr,kw=PZr,mY=RZr,yY=MZr,bY=BZr,gY=DZr,vY=NZr,wY=OZr,xY=FZr,_Y=LZr,TY=qZr,EY=WZr,IY=UZr,CY=HZr,AY=jZr,kY=zZr,SY=KZr,PY=GZr,RY=VZr,MY=$Zr,BY=YZr,DY=QZr,NY=JZr,OY=ZZr,FY=XZr,LY=eXr,qY=tXr,WY=rXr,UY=nXr,HY=aXr,jY=iXr,zY=sXr,KY=oXr,GY=cXr,VY=uXr,$Y=lXr,YY=fXr,QY=dXr,JY=pXr,ZY=hXr,XY=mXr,eQ=yXr,tQ=bXr,rQ=gXr,nQ=vXr,aQ=wXr,iQ=xXr,sQ=_Xr,oQ=TXr,cQ=EXr,uQ=IXr,lQ=CXr,fQ=AXr,dQ=kXr,pQ=SXr,hQ=PXr,mQ=RXr,yQ=MXr,bQ=BXr,gQ=DXr,vQ=NXr,wQ=OXr,xQ=FXr,_Q=LXr,TQ=qXr,EQ=WXr,IQ=UXr,CQ=HXr,AQ=jXr,kQ=zXr,SQ=KXr,PQ=GXr,RQ=VXr,MQ=$Xr,BQ=YXr,DQ=QXr,NQ=JXr,OQ=ZXr,FQ=XXr,Sw=een,LQ=ten,qQ=ren,WQ=nen,UQ=aen,HQ=ien,jQ=sen,zQ=oen,KQ=cen,GQ=uen,VQ=len,$Q=fen,YQ=den,QQ=pen,JQ=hen,ZQ=men,XQ=yen,eJ=ben,tJ=gen,rJ=ven,nJ=wen,aJ=xen,iJ=_en,sJ=Ten,oJ=Een,cJ=Ien,uJ=Cen,lJ=Aen,fJ=ken,dJ=Sen,pJ=Pen,hJ=Ren,mJ=Men,yJ=Ben,bJ=Den,gJ=Nen,vJ=Oen,wJ=Fen,xJ=Len,_J=qen,TJ=Wen,EJ=Uen,IJ=Hen,CJ=jen,AJ=zen,kJ=Ken,SJ=Gen,PJ=Ven,RJ=$en,MJ=Yen,BJ=Qen,DJ=Jen,NJ=Zen,OJ=Xen,FJ=etn,LJ=ttn,qJ=rtn,WJ=ntn,UJ=atn,HJ=itn,jJ=stn,zJ=otn,KJ=ctn,GJ=utn,VJ=ltn,$J=ftn,YJ=dtn,QJ=ptn,JJ=htn,ZJ=mtn,XJ=ytn,eZ=btn,tZ=gtn,rZ=vtn,nZ=wtn,aZ=xtn,iZ=_tn,sZ=Ttn,oZ=Etn,cZ=Itn,uZ=Ctn,lZ=Atn,fZ=ktn,dZ=Stn,pZ=Ptn,hZ=Rtn,mZ=Mtn,yZ=Btn,bZ=Dtn,gZ=Ntn,vZ=Otn,wZ=Ftn,xZ=Ltn,_Z=qtn,TZ=Wtn,EZ=Utn,IZ=Htn,CZ=jtn,AZ=ztn,kZ=Ktn,SZ=Gtn,PZ=Vtn,RZ=$tn,MZ=Ytn,BZ=Qtn,DZ=Jtn,NZ=Ztn,Pw=Xtn,arn=[yw,bw,xw,kw,Iw,Sw,gw,Tw,vw,ww,_w,Ew,Aw,Cw,Pw],irn=[yw,aF,iF,sF,bw,oF,cF,uF,lF,gw,fF,dF,pF,hF,mF,yF,bF,gF,vF,wF,xF,_F,TF,EF,IF,CF,AF,kF,SF,PF,RF,MF,BF,DF,NF,OF,FF,LF,qF,WF,UF,HF,jF,zF,KF,GF,VF,$F,YF,QF,JF,ZF,XF,eL,tL,vw,rL,nL,aL,iL,sL,oL,cL,uL,lL,fL,dL,pL,hL,mL,yL,bL,gL,vL,wL,xL,_L,TL,EL,IL,CL,AL,kL,SL,PL,RL,ML,BL,DL,NL,OL,FL,LL,ww,qL,WL,UL,HL,jL,zL,KL,GL,VL,$L,YL,QL,JL,ZL,XL,eq,tq,rq,nq,aq,iq,sq,oq,cq,uq,lq,fq,dq,pq,xw,hq,mq,yq,bq,gq,vq,wq,xq,_q,Tq,Eq,Iq,Cq,Aq,kq,Sq,Pq,Rq,Mq,Bq,Dq,Nq,Oq,Fq,Lq,qq,Wq,Uq,Hq,jq,zq,Kq,Gq,_w,Vq,$q,Yq,Qq,Jq,Zq,Xq,eW,tW,rW,nW,aW,iW,sW,oW,cW,uW,lW,fW,dW,pW,hW,mW,yW,bW,gW,vW,wW,xW,_W,TW,EW,Tw,IW,CW,AW,kW,SW,PW,RW,MW,BW,DW,NW,OW,FW,LW,qW,WW,UW,HW,jW,zW,KW,GW,VW,$W,YW,QW,JW,ZW,XW,eU,tU,rU,nU,aU,iU,sU,oU,cU,uU,lU,fU,dU,pU,hU,mU,yU,bU,gU,vU,wU,xU,_U,TU,EU,IU,CU,AU,kU,SU,PU,RU,MU,BU,DU,NU,OU,FU,LU,qU,WU,UU,HU,jU,zU,KU,GU,VU,$U,YU,QU,JU,ZU,XU,eH,tH,rH,nH,aH,iH,sH,oH,cH,uH,lH,fH,dH,pH,hH,mH,yH,bH,gH,vH,wH,xH,_H,TH,EH,IH,CH,AH,kH,SH,PH,RH,MH,BH,DH,NH,OH,FH,LH,qH,WH,UH,HH,jH,zH,KH,GH,VH,$H,YH,QH,JH,ZH,XH,ej,tj,rj,nj,aj,ij,sj,oj,cj,uj,lj,fj,dj,pj,hj,mj,yj,bj,gj,vj,wj,xj,_j,Tj,Ej,Ij,Cj,Aj,kj,Sj,Pj,Rj,Mj,Bj,Dj,Nj,Oj,Fj,Lj,qj,Wj,Uj,Hj,jj,zj,Kj,Gj,Vj,$j,Yj,Qj,Jj,Zj,Xj,ez,tz,rz,nz,az,iz,sz,oz,cz,uz,lz,fz,dz,pz,hz,mz,yz,bz,gz,vz,wz,xz,_z,Tz,Ez,Iz,Cz,Az,kz,Sz,Pz,Rz,Mz,Bz,Dz,Nz,Oz,Fz,Lz,qz,Wz,Uz,Hz,jz,zz,Kz,Gz,Vz,Ew,$z,Yz,Qz,Jz,Zz,Xz,eK,tK,rK,nK,aK,iK,sK,oK,cK,uK,lK,fK,dK,pK,hK,mK,yK,bK,gK,vK,wK,xK,_K,TK,EK,IK,CK,AK,kK,SK,PK,RK,MK,BK,DK,NK,OK,FK,LK,qK,WK,UK,HK,jK,zK,KK,GK,VK,$K,YK,QK,JK,ZK,XK,eG,tG,rG,nG,aG,iG,sG,oG,cG,uG,lG,fG,dG,pG,hG,mG,yG,bG,gG,vG,wG,xG,_G,TG,EG,IG,CG,AG,kG,SG,PG,RG,MG,BG,DG,NG,OG,FG,LG,qG,WG,UG,HG,jG,zG,KG,GG,VG,$G,YG,QG,JG,ZG,XG,eV,tV,rV,nV,aV,iV,sV,oV,cV,uV,lV,fV,dV,pV,hV,mV,yV,bV,gV,vV,wV,xV,_V,TV,EV,IV,CV,AV,kV,SV,PV,RV,MV,BV,DV,NV,OV,FV,LV,qV,WV,UV,HV,jV,zV,KV,GV,VV,$V,YV,QV,JV,ZV,XV,e$,t$,r$,n$,a$,i$,s$,o$,c$,u$,l$,f$,d$,p$,h$,m$,y$,b$,g$,Iw,v$,w$,x$,_$,T$,Cw,Aw,E$,I$,C$,A$,k$,S$,P$,R$,M$,B$,D$,N$,O$,F$,L$,q$,W$,U$,H$,j$,z$,K$,G$,V$,$$,Y$,Q$,J$,Z$,X$,eY,tY,rY,nY,aY,iY,sY,oY,cY,uY,lY,fY,dY,pY,hY,kw,mY,yY,bY,gY,vY,wY,xY,_Y,TY,EY,IY,CY,AY,kY,SY,PY,RY,MY,BY,DY,NY,OY,FY,LY,qY,WY,UY,HY,jY,zY,KY,GY,VY,$Y,YY,QY,JY,ZY,XY,eQ,tQ,rQ,nQ,aQ,iQ,sQ,oQ,cQ,uQ,lQ,fQ,dQ,pQ,hQ,mQ,yQ,bQ,gQ,vQ,wQ,xQ,_Q,TQ,EQ,IQ,CQ,AQ,kQ,SQ,PQ,RQ,MQ,BQ,DQ,NQ,OQ,FQ,Sw,LQ,qQ,WQ,UQ,HQ,jQ,zQ,KQ,GQ,VQ,$Q,YQ,QQ,JQ,ZQ,XQ,eJ,tJ,rJ,nJ,aJ,iJ,sJ,oJ,cJ,uJ,lJ,fJ,dJ,pJ,hJ,mJ,yJ,bJ,gJ,vJ,wJ,xJ,_J,TJ,EJ,IJ,CJ,AJ,kJ,SJ,PJ,RJ,MJ,BJ,DJ,NJ,OJ,FJ,LJ,qJ,WJ,UJ,HJ,jJ,zJ,KJ,GJ,VJ,$J,YJ,QJ,JJ,ZJ,XJ,eZ,tZ,rZ,nZ,aZ,iZ,sZ,oZ,cZ,uZ,lZ,fZ,dZ,pZ,hZ,mZ,yZ,bZ,gZ,vZ,wZ,xZ,_Z,TZ,EZ,IZ,CZ,AZ,kZ,SZ,PZ,RZ,MZ,BZ,DZ,NZ,Pw],jPe={[yw.chainId]:yw,[aF.chainId]:aF,[iF.chainId]:iF,[sF.chainId]:sF,[bw.chainId]:bw,[oF.chainId]:oF,[cF.chainId]:cF,[uF.chainId]:uF,[lF.chainId]:lF,[gw.chainId]:gw,[fF.chainId]:fF,[dF.chainId]:dF,[pF.chainId]:pF,[hF.chainId]:hF,[mF.chainId]:mF,[yF.chainId]:yF,[bF.chainId]:bF,[gF.chainId]:gF,[vF.chainId]:vF,[wF.chainId]:wF,[xF.chainId]:xF,[_F.chainId]:_F,[TF.chainId]:TF,[EF.chainId]:EF,[IF.chainId]:IF,[CF.chainId]:CF,[AF.chainId]:AF,[kF.chainId]:kF,[SF.chainId]:SF,[PF.chainId]:PF,[RF.chainId]:RF,[MF.chainId]:MF,[BF.chainId]:BF,[DF.chainId]:DF,[NF.chainId]:NF,[OF.chainId]:OF,[FF.chainId]:FF,[LF.chainId]:LF,[qF.chainId]:qF,[WF.chainId]:WF,[UF.chainId]:UF,[HF.chainId]:HF,[jF.chainId]:jF,[zF.chainId]:zF,[KF.chainId]:KF,[GF.chainId]:GF,[VF.chainId]:VF,[$F.chainId]:$F,[YF.chainId]:YF,[QF.chainId]:QF,[JF.chainId]:JF,[ZF.chainId]:ZF,[XF.chainId]:XF,[eL.chainId]:eL,[tL.chainId]:tL,[vw.chainId]:vw,[rL.chainId]:rL,[nL.chainId]:nL,[aL.chainId]:aL,[iL.chainId]:iL,[sL.chainId]:sL,[oL.chainId]:oL,[cL.chainId]:cL,[uL.chainId]:uL,[lL.chainId]:lL,[fL.chainId]:fL,[dL.chainId]:dL,[pL.chainId]:pL,[hL.chainId]:hL,[mL.chainId]:mL,[yL.chainId]:yL,[bL.chainId]:bL,[gL.chainId]:gL,[vL.chainId]:vL,[wL.chainId]:wL,[xL.chainId]:xL,[_L.chainId]:_L,[TL.chainId]:TL,[EL.chainId]:EL,[IL.chainId]:IL,[CL.chainId]:CL,[AL.chainId]:AL,[kL.chainId]:kL,[SL.chainId]:SL,[PL.chainId]:PL,[RL.chainId]:RL,[ML.chainId]:ML,[BL.chainId]:BL,[DL.chainId]:DL,[NL.chainId]:NL,[OL.chainId]:OL,[FL.chainId]:FL,[LL.chainId]:LL,[ww.chainId]:ww,[qL.chainId]:qL,[WL.chainId]:WL,[UL.chainId]:UL,[HL.chainId]:HL,[jL.chainId]:jL,[zL.chainId]:zL,[KL.chainId]:KL,[GL.chainId]:GL,[VL.chainId]:VL,[$L.chainId]:$L,[YL.chainId]:YL,[QL.chainId]:QL,[JL.chainId]:JL,[ZL.chainId]:ZL,[XL.chainId]:XL,[eq.chainId]:eq,[tq.chainId]:tq,[rq.chainId]:rq,[nq.chainId]:nq,[aq.chainId]:aq,[iq.chainId]:iq,[sq.chainId]:sq,[oq.chainId]:oq,[cq.chainId]:cq,[uq.chainId]:uq,[lq.chainId]:lq,[fq.chainId]:fq,[dq.chainId]:dq,[pq.chainId]:pq,[xw.chainId]:xw,[hq.chainId]:hq,[mq.chainId]:mq,[yq.chainId]:yq,[bq.chainId]:bq,[gq.chainId]:gq,[vq.chainId]:vq,[wq.chainId]:wq,[xq.chainId]:xq,[_q.chainId]:_q,[Tq.chainId]:Tq,[Eq.chainId]:Eq,[Iq.chainId]:Iq,[Cq.chainId]:Cq,[Aq.chainId]:Aq,[kq.chainId]:kq,[Sq.chainId]:Sq,[Pq.chainId]:Pq,[Rq.chainId]:Rq,[Mq.chainId]:Mq,[Bq.chainId]:Bq,[Dq.chainId]:Dq,[Nq.chainId]:Nq,[Oq.chainId]:Oq,[Fq.chainId]:Fq,[Lq.chainId]:Lq,[qq.chainId]:qq,[Wq.chainId]:Wq,[Uq.chainId]:Uq,[Hq.chainId]:Hq,[jq.chainId]:jq,[zq.chainId]:zq,[Kq.chainId]:Kq,[Gq.chainId]:Gq,[_w.chainId]:_w,[Vq.chainId]:Vq,[$q.chainId]:$q,[Yq.chainId]:Yq,[Qq.chainId]:Qq,[Jq.chainId]:Jq,[Zq.chainId]:Zq,[Xq.chainId]:Xq,[eW.chainId]:eW,[tW.chainId]:tW,[rW.chainId]:rW,[nW.chainId]:nW,[aW.chainId]:aW,[iW.chainId]:iW,[sW.chainId]:sW,[oW.chainId]:oW,[cW.chainId]:cW,[uW.chainId]:uW,[lW.chainId]:lW,[fW.chainId]:fW,[dW.chainId]:dW,[pW.chainId]:pW,[hW.chainId]:hW,[mW.chainId]:mW,[yW.chainId]:yW,[bW.chainId]:bW,[gW.chainId]:gW,[vW.chainId]:vW,[wW.chainId]:wW,[xW.chainId]:xW,[_W.chainId]:_W,[TW.chainId]:TW,[EW.chainId]:EW,[Tw.chainId]:Tw,[IW.chainId]:IW,[CW.chainId]:CW,[AW.chainId]:AW,[kW.chainId]:kW,[SW.chainId]:SW,[PW.chainId]:PW,[RW.chainId]:RW,[MW.chainId]:MW,[BW.chainId]:BW,[DW.chainId]:DW,[NW.chainId]:NW,[OW.chainId]:OW,[FW.chainId]:FW,[LW.chainId]:LW,[qW.chainId]:qW,[WW.chainId]:WW,[UW.chainId]:UW,[HW.chainId]:HW,[jW.chainId]:jW,[zW.chainId]:zW,[KW.chainId]:KW,[GW.chainId]:GW,[VW.chainId]:VW,[$W.chainId]:$W,[YW.chainId]:YW,[QW.chainId]:QW,[JW.chainId]:JW,[ZW.chainId]:ZW,[XW.chainId]:XW,[eU.chainId]:eU,[tU.chainId]:tU,[rU.chainId]:rU,[nU.chainId]:nU,[aU.chainId]:aU,[iU.chainId]:iU,[sU.chainId]:sU,[oU.chainId]:oU,[cU.chainId]:cU,[uU.chainId]:uU,[lU.chainId]:lU,[fU.chainId]:fU,[dU.chainId]:dU,[pU.chainId]:pU,[hU.chainId]:hU,[mU.chainId]:mU,[yU.chainId]:yU,[bU.chainId]:bU,[gU.chainId]:gU,[vU.chainId]:vU,[wU.chainId]:wU,[xU.chainId]:xU,[_U.chainId]:_U,[TU.chainId]:TU,[EU.chainId]:EU,[IU.chainId]:IU,[CU.chainId]:CU,[AU.chainId]:AU,[kU.chainId]:kU,[SU.chainId]:SU,[PU.chainId]:PU,[RU.chainId]:RU,[MU.chainId]:MU,[BU.chainId]:BU,[DU.chainId]:DU,[NU.chainId]:NU,[OU.chainId]:OU,[FU.chainId]:FU,[LU.chainId]:LU,[qU.chainId]:qU,[WU.chainId]:WU,[UU.chainId]:UU,[HU.chainId]:HU,[jU.chainId]:jU,[zU.chainId]:zU,[KU.chainId]:KU,[GU.chainId]:GU,[VU.chainId]:VU,[$U.chainId]:$U,[YU.chainId]:YU,[QU.chainId]:QU,[JU.chainId]:JU,[ZU.chainId]:ZU,[XU.chainId]:XU,[eH.chainId]:eH,[tH.chainId]:tH,[rH.chainId]:rH,[nH.chainId]:nH,[aH.chainId]:aH,[iH.chainId]:iH,[sH.chainId]:sH,[oH.chainId]:oH,[cH.chainId]:cH,[uH.chainId]:uH,[lH.chainId]:lH,[fH.chainId]:fH,[dH.chainId]:dH,[pH.chainId]:pH,[hH.chainId]:hH,[mH.chainId]:mH,[yH.chainId]:yH,[bH.chainId]:bH,[gH.chainId]:gH,[vH.chainId]:vH,[wH.chainId]:wH,[xH.chainId]:xH,[_H.chainId]:_H,[TH.chainId]:TH,[EH.chainId]:EH,[IH.chainId]:IH,[CH.chainId]:CH,[AH.chainId]:AH,[kH.chainId]:kH,[SH.chainId]:SH,[PH.chainId]:PH,[RH.chainId]:RH,[MH.chainId]:MH,[BH.chainId]:BH,[DH.chainId]:DH,[NH.chainId]:NH,[OH.chainId]:OH,[FH.chainId]:FH,[LH.chainId]:LH,[qH.chainId]:qH,[WH.chainId]:WH,[UH.chainId]:UH,[HH.chainId]:HH,[jH.chainId]:jH,[zH.chainId]:zH,[KH.chainId]:KH,[GH.chainId]:GH,[VH.chainId]:VH,[$H.chainId]:$H,[YH.chainId]:YH,[QH.chainId]:QH,[JH.chainId]:JH,[ZH.chainId]:ZH,[XH.chainId]:XH,[ej.chainId]:ej,[tj.chainId]:tj,[rj.chainId]:rj,[nj.chainId]:nj,[aj.chainId]:aj,[ij.chainId]:ij,[sj.chainId]:sj,[oj.chainId]:oj,[cj.chainId]:cj,[uj.chainId]:uj,[lj.chainId]:lj,[fj.chainId]:fj,[dj.chainId]:dj,[pj.chainId]:pj,[hj.chainId]:hj,[mj.chainId]:mj,[yj.chainId]:yj,[bj.chainId]:bj,[gj.chainId]:gj,[vj.chainId]:vj,[wj.chainId]:wj,[xj.chainId]:xj,[_j.chainId]:_j,[Tj.chainId]:Tj,[Ej.chainId]:Ej,[Ij.chainId]:Ij,[Cj.chainId]:Cj,[Aj.chainId]:Aj,[kj.chainId]:kj,[Sj.chainId]:Sj,[Pj.chainId]:Pj,[Rj.chainId]:Rj,[Mj.chainId]:Mj,[Bj.chainId]:Bj,[Dj.chainId]:Dj,[Nj.chainId]:Nj,[Oj.chainId]:Oj,[Fj.chainId]:Fj,[Lj.chainId]:Lj,[qj.chainId]:qj,[Wj.chainId]:Wj,[Uj.chainId]:Uj,[Hj.chainId]:Hj,[jj.chainId]:jj,[zj.chainId]:zj,[Kj.chainId]:Kj,[Gj.chainId]:Gj,[Vj.chainId]:Vj,[$j.chainId]:$j,[Yj.chainId]:Yj,[Qj.chainId]:Qj,[Jj.chainId]:Jj,[Zj.chainId]:Zj,[Xj.chainId]:Xj,[ez.chainId]:ez,[tz.chainId]:tz,[rz.chainId]:rz,[nz.chainId]:nz,[az.chainId]:az,[iz.chainId]:iz,[sz.chainId]:sz,[oz.chainId]:oz,[cz.chainId]:cz,[uz.chainId]:uz,[lz.chainId]:lz,[fz.chainId]:fz,[dz.chainId]:dz,[pz.chainId]:pz,[hz.chainId]:hz,[mz.chainId]:mz,[yz.chainId]:yz,[bz.chainId]:bz,[gz.chainId]:gz,[vz.chainId]:vz,[wz.chainId]:wz,[xz.chainId]:xz,[_z.chainId]:_z,[Tz.chainId]:Tz,[Ez.chainId]:Ez,[Iz.chainId]:Iz,[Cz.chainId]:Cz,[Az.chainId]:Az,[kz.chainId]:kz,[Sz.chainId]:Sz,[Pz.chainId]:Pz,[Rz.chainId]:Rz,[Mz.chainId]:Mz,[Bz.chainId]:Bz,[Dz.chainId]:Dz,[Nz.chainId]:Nz,[Oz.chainId]:Oz,[Fz.chainId]:Fz,[Lz.chainId]:Lz,[qz.chainId]:qz,[Wz.chainId]:Wz,[Uz.chainId]:Uz,[Hz.chainId]:Hz,[jz.chainId]:jz,[zz.chainId]:zz,[Kz.chainId]:Kz,[Gz.chainId]:Gz,[Vz.chainId]:Vz,[Ew.chainId]:Ew,[$z.chainId]:$z,[Yz.chainId]:Yz,[Qz.chainId]:Qz,[Jz.chainId]:Jz,[Zz.chainId]:Zz,[Xz.chainId]:Xz,[eK.chainId]:eK,[tK.chainId]:tK,[rK.chainId]:rK,[nK.chainId]:nK,[aK.chainId]:aK,[iK.chainId]:iK,[sK.chainId]:sK,[oK.chainId]:oK,[cK.chainId]:cK,[uK.chainId]:uK,[lK.chainId]:lK,[fK.chainId]:fK,[dK.chainId]:dK,[pK.chainId]:pK,[hK.chainId]:hK,[mK.chainId]:mK,[yK.chainId]:yK,[bK.chainId]:bK,[gK.chainId]:gK,[vK.chainId]:vK,[wK.chainId]:wK,[xK.chainId]:xK,[_K.chainId]:_K,[TK.chainId]:TK,[EK.chainId]:EK,[IK.chainId]:IK,[CK.chainId]:CK,[AK.chainId]:AK,[kK.chainId]:kK,[SK.chainId]:SK,[PK.chainId]:PK,[RK.chainId]:RK,[MK.chainId]:MK,[BK.chainId]:BK,[DK.chainId]:DK,[NK.chainId]:NK,[OK.chainId]:OK,[FK.chainId]:FK,[LK.chainId]:LK,[qK.chainId]:qK,[WK.chainId]:WK,[UK.chainId]:UK,[HK.chainId]:HK,[jK.chainId]:jK,[zK.chainId]:zK,[KK.chainId]:KK,[GK.chainId]:GK,[VK.chainId]:VK,[$K.chainId]:$K,[YK.chainId]:YK,[QK.chainId]:QK,[JK.chainId]:JK,[ZK.chainId]:ZK,[XK.chainId]:XK,[eG.chainId]:eG,[tG.chainId]:tG,[rG.chainId]:rG,[nG.chainId]:nG,[aG.chainId]:aG,[iG.chainId]:iG,[sG.chainId]:sG,[oG.chainId]:oG,[cG.chainId]:cG,[uG.chainId]:uG,[lG.chainId]:lG,[fG.chainId]:fG,[dG.chainId]:dG,[pG.chainId]:pG,[hG.chainId]:hG,[mG.chainId]:mG,[yG.chainId]:yG,[bG.chainId]:bG,[gG.chainId]:gG,[vG.chainId]:vG,[wG.chainId]:wG,[xG.chainId]:xG,[_G.chainId]:_G,[TG.chainId]:TG,[EG.chainId]:EG,[IG.chainId]:IG,[CG.chainId]:CG,[AG.chainId]:AG,[kG.chainId]:kG,[SG.chainId]:SG,[PG.chainId]:PG,[RG.chainId]:RG,[MG.chainId]:MG,[BG.chainId]:BG,[DG.chainId]:DG,[NG.chainId]:NG,[OG.chainId]:OG,[FG.chainId]:FG,[LG.chainId]:LG,[qG.chainId]:qG,[WG.chainId]:WG,[UG.chainId]:UG,[HG.chainId]:HG,[jG.chainId]:jG,[zG.chainId]:zG,[KG.chainId]:KG,[GG.chainId]:GG,[VG.chainId]:VG,[$G.chainId]:$G,[YG.chainId]:YG,[QG.chainId]:QG,[JG.chainId]:JG,[ZG.chainId]:ZG,[XG.chainId]:XG,[eV.chainId]:eV,[tV.chainId]:tV,[rV.chainId]:rV,[nV.chainId]:nV,[aV.chainId]:aV,[iV.chainId]:iV,[sV.chainId]:sV,[oV.chainId]:oV,[cV.chainId]:cV,[uV.chainId]:uV,[lV.chainId]:lV,[fV.chainId]:fV,[dV.chainId]:dV,[pV.chainId]:pV,[hV.chainId]:hV,[mV.chainId]:mV,[yV.chainId]:yV,[bV.chainId]:bV,[gV.chainId]:gV,[vV.chainId]:vV,[wV.chainId]:wV,[xV.chainId]:xV,[_V.chainId]:_V,[TV.chainId]:TV,[EV.chainId]:EV,[IV.chainId]:IV,[CV.chainId]:CV,[AV.chainId]:AV,[kV.chainId]:kV,[SV.chainId]:SV,[PV.chainId]:PV,[RV.chainId]:RV,[MV.chainId]:MV,[BV.chainId]:BV,[DV.chainId]:DV,[NV.chainId]:NV,[OV.chainId]:OV,[FV.chainId]:FV,[LV.chainId]:LV,[qV.chainId]:qV,[WV.chainId]:WV,[UV.chainId]:UV,[HV.chainId]:HV,[jV.chainId]:jV,[zV.chainId]:zV,[KV.chainId]:KV,[GV.chainId]:GV,[VV.chainId]:VV,[$V.chainId]:$V,[YV.chainId]:YV,[QV.chainId]:QV,[JV.chainId]:JV,[ZV.chainId]:ZV,[XV.chainId]:XV,[e$.chainId]:e$,[t$.chainId]:t$,[r$.chainId]:r$,[n$.chainId]:n$,[a$.chainId]:a$,[i$.chainId]:i$,[s$.chainId]:s$,[o$.chainId]:o$,[c$.chainId]:c$,[u$.chainId]:u$,[l$.chainId]:l$,[f$.chainId]:f$,[d$.chainId]:d$,[p$.chainId]:p$,[h$.chainId]:h$,[m$.chainId]:m$,[y$.chainId]:y$,[b$.chainId]:b$,[g$.chainId]:g$,[Iw.chainId]:Iw,[v$.chainId]:v$,[w$.chainId]:w$,[x$.chainId]:x$,[_$.chainId]:_$,[T$.chainId]:T$,[Cw.chainId]:Cw,[Aw.chainId]:Aw,[E$.chainId]:E$,[I$.chainId]:I$,[C$.chainId]:C$,[A$.chainId]:A$,[k$.chainId]:k$,[S$.chainId]:S$,[P$.chainId]:P$,[R$.chainId]:R$,[M$.chainId]:M$,[B$.chainId]:B$,[D$.chainId]:D$,[N$.chainId]:N$,[O$.chainId]:O$,[F$.chainId]:F$,[L$.chainId]:L$,[q$.chainId]:q$,[W$.chainId]:W$,[U$.chainId]:U$,[H$.chainId]:H$,[j$.chainId]:j$,[z$.chainId]:z$,[K$.chainId]:K$,[G$.chainId]:G$,[V$.chainId]:V$,[$$.chainId]:$$,[Y$.chainId]:Y$,[Q$.chainId]:Q$,[J$.chainId]:J$,[Z$.chainId]:Z$,[X$.chainId]:X$,[eY.chainId]:eY,[tY.chainId]:tY,[rY.chainId]:rY,[nY.chainId]:nY,[aY.chainId]:aY,[iY.chainId]:iY,[sY.chainId]:sY,[oY.chainId]:oY,[cY.chainId]:cY,[uY.chainId]:uY,[lY.chainId]:lY,[fY.chainId]:fY,[dY.chainId]:dY,[pY.chainId]:pY,[hY.chainId]:hY,[kw.chainId]:kw,[mY.chainId]:mY,[yY.chainId]:yY,[bY.chainId]:bY,[gY.chainId]:gY,[vY.chainId]:vY,[wY.chainId]:wY,[xY.chainId]:xY,[_Y.chainId]:_Y,[TY.chainId]:TY,[EY.chainId]:EY,[IY.chainId]:IY,[CY.chainId]:CY,[AY.chainId]:AY,[kY.chainId]:kY,[SY.chainId]:SY,[PY.chainId]:PY,[RY.chainId]:RY,[MY.chainId]:MY,[BY.chainId]:BY,[DY.chainId]:DY,[NY.chainId]:NY,[OY.chainId]:OY,[FY.chainId]:FY,[LY.chainId]:LY,[qY.chainId]:qY,[WY.chainId]:WY,[UY.chainId]:UY,[HY.chainId]:HY,[jY.chainId]:jY,[zY.chainId]:zY,[KY.chainId]:KY,[GY.chainId]:GY,[VY.chainId]:VY,[$Y.chainId]:$Y,[YY.chainId]:YY,[QY.chainId]:QY,[JY.chainId]:JY,[ZY.chainId]:ZY,[XY.chainId]:XY,[eQ.chainId]:eQ,[tQ.chainId]:tQ,[rQ.chainId]:rQ,[nQ.chainId]:nQ,[aQ.chainId]:aQ,[iQ.chainId]:iQ,[sQ.chainId]:sQ,[oQ.chainId]:oQ,[cQ.chainId]:cQ,[uQ.chainId]:uQ,[lQ.chainId]:lQ,[fQ.chainId]:fQ,[dQ.chainId]:dQ,[pQ.chainId]:pQ,[hQ.chainId]:hQ,[mQ.chainId]:mQ,[yQ.chainId]:yQ,[bQ.chainId]:bQ,[gQ.chainId]:gQ,[vQ.chainId]:vQ,[wQ.chainId]:wQ,[xQ.chainId]:xQ,[_Q.chainId]:_Q,[TQ.chainId]:TQ,[EQ.chainId]:EQ,[IQ.chainId]:IQ,[CQ.chainId]:CQ,[AQ.chainId]:AQ,[kQ.chainId]:kQ,[SQ.chainId]:SQ,[PQ.chainId]:PQ,[RQ.chainId]:RQ,[MQ.chainId]:MQ,[BQ.chainId]:BQ,[DQ.chainId]:DQ,[NQ.chainId]:NQ,[OQ.chainId]:OQ,[FQ.chainId]:FQ,[Sw.chainId]:Sw,[LQ.chainId]:LQ,[qQ.chainId]:qQ,[WQ.chainId]:WQ,[UQ.chainId]:UQ,[HQ.chainId]:HQ,[jQ.chainId]:jQ,[zQ.chainId]:zQ,[KQ.chainId]:KQ,[GQ.chainId]:GQ,[VQ.chainId]:VQ,[$Q.chainId]:$Q,[YQ.chainId]:YQ,[QQ.chainId]:QQ,[JQ.chainId]:JQ,[ZQ.chainId]:ZQ,[XQ.chainId]:XQ,[eJ.chainId]:eJ,[tJ.chainId]:tJ,[rJ.chainId]:rJ,[nJ.chainId]:nJ,[aJ.chainId]:aJ,[iJ.chainId]:iJ,[sJ.chainId]:sJ,[oJ.chainId]:oJ,[cJ.chainId]:cJ,[uJ.chainId]:uJ,[lJ.chainId]:lJ,[fJ.chainId]:fJ,[dJ.chainId]:dJ,[pJ.chainId]:pJ,[hJ.chainId]:hJ,[mJ.chainId]:mJ,[yJ.chainId]:yJ,[bJ.chainId]:bJ,[gJ.chainId]:gJ,[vJ.chainId]:vJ,[wJ.chainId]:wJ,[xJ.chainId]:xJ,[_J.chainId]:_J,[TJ.chainId]:TJ,[EJ.chainId]:EJ,[IJ.chainId]:IJ,[CJ.chainId]:CJ,[AJ.chainId]:AJ,[kJ.chainId]:kJ,[SJ.chainId]:SJ,[PJ.chainId]:PJ,[RJ.chainId]:RJ,[MJ.chainId]:MJ,[BJ.chainId]:BJ,[DJ.chainId]:DJ,[NJ.chainId]:NJ,[OJ.chainId]:OJ,[FJ.chainId]:FJ,[LJ.chainId]:LJ,[qJ.chainId]:qJ,[WJ.chainId]:WJ,[UJ.chainId]:UJ,[HJ.chainId]:HJ,[jJ.chainId]:jJ,[zJ.chainId]:zJ,[KJ.chainId]:KJ,[GJ.chainId]:GJ,[VJ.chainId]:VJ,[$J.chainId]:$J,[YJ.chainId]:YJ,[QJ.chainId]:QJ,[JJ.chainId]:JJ,[ZJ.chainId]:ZJ,[XJ.chainId]:XJ,[eZ.chainId]:eZ,[tZ.chainId]:tZ,[rZ.chainId]:rZ,[nZ.chainId]:nZ,[aZ.chainId]:aZ,[iZ.chainId]:iZ,[sZ.chainId]:sZ,[oZ.chainId]:oZ,[cZ.chainId]:cZ,[uZ.chainId]:uZ,[lZ.chainId]:lZ,[fZ.chainId]:fZ,[dZ.chainId]:dZ,[pZ.chainId]:pZ,[hZ.chainId]:hZ,[mZ.chainId]:mZ,[yZ.chainId]:yZ,[bZ.chainId]:bZ,[gZ.chainId]:gZ,[vZ.chainId]:vZ,[wZ.chainId]:wZ,[xZ.chainId]:xZ,[_Z.chainId]:_Z,[TZ.chainId]:TZ,[EZ.chainId]:EZ,[IZ.chainId]:IZ,[CZ.chainId]:CZ,[AZ.chainId]:AZ,[kZ.chainId]:kZ,[SZ.chainId]:SZ,[PZ.chainId]:PZ,[RZ.chainId]:RZ,[MZ.chainId]:MZ,[BZ.chainId]:BZ,[DZ.chainId]:DZ,[NZ.chainId]:NZ,[Pw.chainId]:Pw},Ubt={[yw.slug]:yw.chainId,[aF.slug]:aF.chainId,[iF.slug]:iF.chainId,[sF.slug]:sF.chainId,[bw.slug]:bw.chainId,[oF.slug]:oF.chainId,[cF.slug]:cF.chainId,[uF.slug]:uF.chainId,[lF.slug]:lF.chainId,[gw.slug]:gw.chainId,[fF.slug]:fF.chainId,[dF.slug]:dF.chainId,[pF.slug]:pF.chainId,[hF.slug]:hF.chainId,[mF.slug]:mF.chainId,[yF.slug]:yF.chainId,[bF.slug]:bF.chainId,[gF.slug]:gF.chainId,[vF.slug]:vF.chainId,[wF.slug]:wF.chainId,[xF.slug]:xF.chainId,[_F.slug]:_F.chainId,[TF.slug]:TF.chainId,[EF.slug]:EF.chainId,[IF.slug]:IF.chainId,[CF.slug]:CF.chainId,[AF.slug]:AF.chainId,[kF.slug]:kF.chainId,[SF.slug]:SF.chainId,[PF.slug]:PF.chainId,[RF.slug]:RF.chainId,[MF.slug]:MF.chainId,[BF.slug]:BF.chainId,[DF.slug]:DF.chainId,[NF.slug]:NF.chainId,[OF.slug]:OF.chainId,[FF.slug]:FF.chainId,[LF.slug]:LF.chainId,[qF.slug]:qF.chainId,[WF.slug]:WF.chainId,[UF.slug]:UF.chainId,[HF.slug]:HF.chainId,[jF.slug]:jF.chainId,[zF.slug]:zF.chainId,[KF.slug]:KF.chainId,[GF.slug]:GF.chainId,[VF.slug]:VF.chainId,[$F.slug]:$F.chainId,[YF.slug]:YF.chainId,[QF.slug]:QF.chainId,[JF.slug]:JF.chainId,[ZF.slug]:ZF.chainId,[XF.slug]:XF.chainId,[eL.slug]:eL.chainId,[tL.slug]:tL.chainId,[vw.slug]:vw.chainId,[rL.slug]:rL.chainId,[nL.slug]:nL.chainId,[aL.slug]:aL.chainId,[iL.slug]:iL.chainId,[sL.slug]:sL.chainId,[oL.slug]:oL.chainId,[cL.slug]:cL.chainId,[uL.slug]:uL.chainId,[lL.slug]:lL.chainId,[fL.slug]:fL.chainId,[dL.slug]:dL.chainId,[pL.slug]:pL.chainId,[hL.slug]:hL.chainId,[mL.slug]:mL.chainId,[yL.slug]:yL.chainId,[bL.slug]:bL.chainId,[gL.slug]:gL.chainId,[vL.slug]:vL.chainId,[wL.slug]:wL.chainId,[xL.slug]:xL.chainId,[_L.slug]:_L.chainId,[TL.slug]:TL.chainId,[EL.slug]:EL.chainId,[IL.slug]:IL.chainId,[CL.slug]:CL.chainId,[AL.slug]:AL.chainId,[kL.slug]:kL.chainId,[SL.slug]:SL.chainId,[PL.slug]:PL.chainId,[RL.slug]:RL.chainId,[ML.slug]:ML.chainId,[BL.slug]:BL.chainId,[DL.slug]:DL.chainId,[NL.slug]:NL.chainId,[OL.slug]:OL.chainId,[FL.slug]:FL.chainId,[LL.slug]:LL.chainId,[ww.slug]:ww.chainId,[qL.slug]:qL.chainId,[WL.slug]:WL.chainId,[UL.slug]:UL.chainId,[HL.slug]:HL.chainId,[jL.slug]:jL.chainId,[zL.slug]:zL.chainId,[KL.slug]:KL.chainId,[GL.slug]:GL.chainId,[VL.slug]:VL.chainId,[$L.slug]:$L.chainId,[YL.slug]:YL.chainId,[QL.slug]:QL.chainId,[JL.slug]:JL.chainId,[ZL.slug]:ZL.chainId,[XL.slug]:XL.chainId,[eq.slug]:eq.chainId,[tq.slug]:tq.chainId,[rq.slug]:rq.chainId,[nq.slug]:nq.chainId,[aq.slug]:aq.chainId,[iq.slug]:iq.chainId,[sq.slug]:sq.chainId,[oq.slug]:oq.chainId,[cq.slug]:cq.chainId,[uq.slug]:uq.chainId,[lq.slug]:lq.chainId,[fq.slug]:fq.chainId,[dq.slug]:dq.chainId,[pq.slug]:pq.chainId,[xw.slug]:xw.chainId,[hq.slug]:hq.chainId,[mq.slug]:mq.chainId,[yq.slug]:yq.chainId,[bq.slug]:bq.chainId,[gq.slug]:gq.chainId,[vq.slug]:vq.chainId,[wq.slug]:wq.chainId,[xq.slug]:xq.chainId,[_q.slug]:_q.chainId,[Tq.slug]:Tq.chainId,[Eq.slug]:Eq.chainId,[Iq.slug]:Iq.chainId,[Cq.slug]:Cq.chainId,[Aq.slug]:Aq.chainId,[kq.slug]:kq.chainId,[Sq.slug]:Sq.chainId,[Pq.slug]:Pq.chainId,[Rq.slug]:Rq.chainId,[Mq.slug]:Mq.chainId,[Bq.slug]:Bq.chainId,[Dq.slug]:Dq.chainId,[Nq.slug]:Nq.chainId,[Oq.slug]:Oq.chainId,[Fq.slug]:Fq.chainId,[Lq.slug]:Lq.chainId,[qq.slug]:qq.chainId,[Wq.slug]:Wq.chainId,[Uq.slug]:Uq.chainId,[Hq.slug]:Hq.chainId,[jq.slug]:jq.chainId,[zq.slug]:zq.chainId,[Kq.slug]:Kq.chainId,[Gq.slug]:Gq.chainId,[_w.slug]:_w.chainId,[Vq.slug]:Vq.chainId,[$q.slug]:$q.chainId,[Yq.slug]:Yq.chainId,[Qq.slug]:Qq.chainId,[Jq.slug]:Jq.chainId,[Zq.slug]:Zq.chainId,[Xq.slug]:Xq.chainId,[eW.slug]:eW.chainId,[tW.slug]:tW.chainId,[rW.slug]:rW.chainId,[nW.slug]:nW.chainId,[aW.slug]:aW.chainId,[iW.slug]:iW.chainId,[sW.slug]:sW.chainId,[oW.slug]:oW.chainId,[cW.slug]:cW.chainId,[uW.slug]:uW.chainId,[lW.slug]:lW.chainId,[fW.slug]:fW.chainId,[dW.slug]:dW.chainId,[pW.slug]:pW.chainId,[hW.slug]:hW.chainId,[mW.slug]:mW.chainId,[yW.slug]:yW.chainId,[bW.slug]:bW.chainId,[gW.slug]:gW.chainId,[vW.slug]:vW.chainId,[wW.slug]:wW.chainId,[xW.slug]:xW.chainId,[_W.slug]:_W.chainId,[TW.slug]:TW.chainId,[EW.slug]:EW.chainId,[Tw.slug]:Tw.chainId,[IW.slug]:IW.chainId,[CW.slug]:CW.chainId,[AW.slug]:AW.chainId,[kW.slug]:kW.chainId,[SW.slug]:SW.chainId,[PW.slug]:PW.chainId,[RW.slug]:RW.chainId,[MW.slug]:MW.chainId,[BW.slug]:BW.chainId,[DW.slug]:DW.chainId,[NW.slug]:NW.chainId,[OW.slug]:OW.chainId,[FW.slug]:FW.chainId,[LW.slug]:LW.chainId,[qW.slug]:qW.chainId,[WW.slug]:WW.chainId,[UW.slug]:UW.chainId,[HW.slug]:HW.chainId,[jW.slug]:jW.chainId,[zW.slug]:zW.chainId,[KW.slug]:KW.chainId,[GW.slug]:GW.chainId,[VW.slug]:VW.chainId,[$W.slug]:$W.chainId,[YW.slug]:YW.chainId,[QW.slug]:QW.chainId,[JW.slug]:JW.chainId,[ZW.slug]:ZW.chainId,[XW.slug]:XW.chainId,[eU.slug]:eU.chainId,[tU.slug]:tU.chainId,[rU.slug]:rU.chainId,[nU.slug]:nU.chainId,[aU.slug]:aU.chainId,[iU.slug]:iU.chainId,[sU.slug]:sU.chainId,[oU.slug]:oU.chainId,[cU.slug]:cU.chainId,[uU.slug]:uU.chainId,[lU.slug]:lU.chainId,[fU.slug]:fU.chainId,[dU.slug]:dU.chainId,[pU.slug]:pU.chainId,[hU.slug]:hU.chainId,[mU.slug]:mU.chainId,[yU.slug]:yU.chainId,[bU.slug]:bU.chainId,[gU.slug]:gU.chainId,[vU.slug]:vU.chainId,[wU.slug]:wU.chainId,[xU.slug]:xU.chainId,[_U.slug]:_U.chainId,[TU.slug]:TU.chainId,[EU.slug]:EU.chainId,[IU.slug]:IU.chainId,[CU.slug]:CU.chainId,[AU.slug]:AU.chainId,[kU.slug]:kU.chainId,[SU.slug]:SU.chainId,[PU.slug]:PU.chainId,[RU.slug]:RU.chainId,[MU.slug]:MU.chainId,[BU.slug]:BU.chainId,[DU.slug]:DU.chainId,[NU.slug]:NU.chainId,[OU.slug]:OU.chainId,[FU.slug]:FU.chainId,[LU.slug]:LU.chainId,[qU.slug]:qU.chainId,[WU.slug]:WU.chainId,[UU.slug]:UU.chainId,[HU.slug]:HU.chainId,[jU.slug]:jU.chainId,[zU.slug]:zU.chainId,[KU.slug]:KU.chainId,[GU.slug]:GU.chainId,[VU.slug]:VU.chainId,[$U.slug]:$U.chainId,[YU.slug]:YU.chainId,[QU.slug]:QU.chainId,[JU.slug]:JU.chainId,[ZU.slug]:ZU.chainId,[XU.slug]:XU.chainId,[eH.slug]:eH.chainId,[tH.slug]:tH.chainId,[rH.slug]:rH.chainId,[nH.slug]:nH.chainId,[aH.slug]:aH.chainId,[iH.slug]:iH.chainId,[sH.slug]:sH.chainId,[oH.slug]:oH.chainId,[cH.slug]:cH.chainId,[uH.slug]:uH.chainId,[lH.slug]:lH.chainId,[fH.slug]:fH.chainId,[dH.slug]:dH.chainId,[pH.slug]:pH.chainId,[hH.slug]:hH.chainId,[mH.slug]:mH.chainId,[yH.slug]:yH.chainId,[bH.slug]:bH.chainId,[gH.slug]:gH.chainId,[vH.slug]:vH.chainId,[wH.slug]:wH.chainId,[xH.slug]:xH.chainId,[_H.slug]:_H.chainId,[TH.slug]:TH.chainId,[EH.slug]:EH.chainId,[IH.slug]:IH.chainId,[CH.slug]:CH.chainId,[AH.slug]:AH.chainId,[kH.slug]:kH.chainId,[SH.slug]:SH.chainId,[PH.slug]:PH.chainId,[RH.slug]:RH.chainId,[MH.slug]:MH.chainId,[BH.slug]:BH.chainId,[DH.slug]:DH.chainId,[NH.slug]:NH.chainId,[OH.slug]:OH.chainId,[FH.slug]:FH.chainId,[LH.slug]:LH.chainId,[qH.slug]:qH.chainId,[WH.slug]:WH.chainId,[UH.slug]:UH.chainId,[HH.slug]:HH.chainId,[jH.slug]:jH.chainId,[zH.slug]:zH.chainId,[KH.slug]:KH.chainId,[GH.slug]:GH.chainId,[VH.slug]:VH.chainId,[$H.slug]:$H.chainId,[YH.slug]:YH.chainId,[QH.slug]:QH.chainId,[JH.slug]:JH.chainId,[ZH.slug]:ZH.chainId,[XH.slug]:XH.chainId,[ej.slug]:ej.chainId,[tj.slug]:tj.chainId,[rj.slug]:rj.chainId,[nj.slug]:nj.chainId,[aj.slug]:aj.chainId,[ij.slug]:ij.chainId,[sj.slug]:sj.chainId,[oj.slug]:oj.chainId,[cj.slug]:cj.chainId,[uj.slug]:uj.chainId,[lj.slug]:lj.chainId,[fj.slug]:fj.chainId,[dj.slug]:dj.chainId,[pj.slug]:pj.chainId,[hj.slug]:hj.chainId,[mj.slug]:mj.chainId,[yj.slug]:yj.chainId,[bj.slug]:bj.chainId,[gj.slug]:gj.chainId,[vj.slug]:vj.chainId,[wj.slug]:wj.chainId,[xj.slug]:xj.chainId,[_j.slug]:_j.chainId,[Tj.slug]:Tj.chainId,[Ej.slug]:Ej.chainId,[Ij.slug]:Ij.chainId,[Cj.slug]:Cj.chainId,[Aj.slug]:Aj.chainId,[kj.slug]:kj.chainId,[Sj.slug]:Sj.chainId,[Pj.slug]:Pj.chainId,[Rj.slug]:Rj.chainId,[Mj.slug]:Mj.chainId,[Bj.slug]:Bj.chainId,[Dj.slug]:Dj.chainId,[Nj.slug]:Nj.chainId,[Oj.slug]:Oj.chainId,[Fj.slug]:Fj.chainId,[Lj.slug]:Lj.chainId,[qj.slug]:qj.chainId,[Wj.slug]:Wj.chainId,[Uj.slug]:Uj.chainId,[Hj.slug]:Hj.chainId,[jj.slug]:jj.chainId,[zj.slug]:zj.chainId,[Kj.slug]:Kj.chainId,[Gj.slug]:Gj.chainId,[Vj.slug]:Vj.chainId,[$j.slug]:$j.chainId,[Yj.slug]:Yj.chainId,[Qj.slug]:Qj.chainId,[Jj.slug]:Jj.chainId,[Zj.slug]:Zj.chainId,[Xj.slug]:Xj.chainId,[ez.slug]:ez.chainId,[tz.slug]:tz.chainId,[rz.slug]:rz.chainId,[nz.slug]:nz.chainId,[az.slug]:az.chainId,[iz.slug]:iz.chainId,[sz.slug]:sz.chainId,[oz.slug]:oz.chainId,[cz.slug]:cz.chainId,[uz.slug]:uz.chainId,[lz.slug]:lz.chainId,[fz.slug]:fz.chainId,[dz.slug]:dz.chainId,[pz.slug]:pz.chainId,[hz.slug]:hz.chainId,[mz.slug]:mz.chainId,[yz.slug]:yz.chainId,[bz.slug]:bz.chainId,[gz.slug]:gz.chainId,[vz.slug]:vz.chainId,[wz.slug]:wz.chainId,[xz.slug]:xz.chainId,[_z.slug]:_z.chainId,[Tz.slug]:Tz.chainId,[Ez.slug]:Ez.chainId,[Iz.slug]:Iz.chainId,[Cz.slug]:Cz.chainId,[Az.slug]:Az.chainId,[kz.slug]:kz.chainId,[Sz.slug]:Sz.chainId,[Pz.slug]:Pz.chainId,[Rz.slug]:Rz.chainId,[Mz.slug]:Mz.chainId,[Bz.slug]:Bz.chainId,[Dz.slug]:Dz.chainId,[Nz.slug]:Nz.chainId,[Oz.slug]:Oz.chainId,[Fz.slug]:Fz.chainId,[Lz.slug]:Lz.chainId,[qz.slug]:qz.chainId,[Wz.slug]:Wz.chainId,[Uz.slug]:Uz.chainId,[Hz.slug]:Hz.chainId,[jz.slug]:jz.chainId,[zz.slug]:zz.chainId,[Kz.slug]:Kz.chainId,[Gz.slug]:Gz.chainId,[Vz.slug]:Vz.chainId,[Ew.slug]:Ew.chainId,[$z.slug]:$z.chainId,[Yz.slug]:Yz.chainId,[Qz.slug]:Qz.chainId,[Jz.slug]:Jz.chainId,[Zz.slug]:Zz.chainId,[Xz.slug]:Xz.chainId,[eK.slug]:eK.chainId,[tK.slug]:tK.chainId,[rK.slug]:rK.chainId,[nK.slug]:nK.chainId,[aK.slug]:aK.chainId,[iK.slug]:iK.chainId,[sK.slug]:sK.chainId,[oK.slug]:oK.chainId,[cK.slug]:cK.chainId,[uK.slug]:uK.chainId,[lK.slug]:lK.chainId,[fK.slug]:fK.chainId,[dK.slug]:dK.chainId,[pK.slug]:pK.chainId,[hK.slug]:hK.chainId,[mK.slug]:mK.chainId,[yK.slug]:yK.chainId,[bK.slug]:bK.chainId,[gK.slug]:gK.chainId,[vK.slug]:vK.chainId,[wK.slug]:wK.chainId,[xK.slug]:xK.chainId,[_K.slug]:_K.chainId,[TK.slug]:TK.chainId,[EK.slug]:EK.chainId,[IK.slug]:IK.chainId,[CK.slug]:CK.chainId,[AK.slug]:AK.chainId,[kK.slug]:kK.chainId,[SK.slug]:SK.chainId,[PK.slug]:PK.chainId,[RK.slug]:RK.chainId,[MK.slug]:MK.chainId,[BK.slug]:BK.chainId,[DK.slug]:DK.chainId,[NK.slug]:NK.chainId,[OK.slug]:OK.chainId,[FK.slug]:FK.chainId,[LK.slug]:LK.chainId,[qK.slug]:qK.chainId,[WK.slug]:WK.chainId,[UK.slug]:UK.chainId,[HK.slug]:HK.chainId,[jK.slug]:jK.chainId,[zK.slug]:zK.chainId,[KK.slug]:KK.chainId,[GK.slug]:GK.chainId,[VK.slug]:VK.chainId,[$K.slug]:$K.chainId,[YK.slug]:YK.chainId,[QK.slug]:QK.chainId,[JK.slug]:JK.chainId,[ZK.slug]:ZK.chainId,[XK.slug]:XK.chainId,[eG.slug]:eG.chainId,[tG.slug]:tG.chainId,[rG.slug]:rG.chainId,[nG.slug]:nG.chainId,[aG.slug]:aG.chainId,[iG.slug]:iG.chainId,[sG.slug]:sG.chainId,[oG.slug]:oG.chainId,[cG.slug]:cG.chainId,[uG.slug]:uG.chainId,[lG.slug]:lG.chainId,[fG.slug]:fG.chainId,[dG.slug]:dG.chainId,[pG.slug]:pG.chainId,[hG.slug]:hG.chainId,[mG.slug]:mG.chainId,[yG.slug]:yG.chainId,[bG.slug]:bG.chainId,[gG.slug]:gG.chainId,[vG.slug]:vG.chainId,[wG.slug]:wG.chainId,[xG.slug]:xG.chainId,[_G.slug]:_G.chainId,[TG.slug]:TG.chainId,[EG.slug]:EG.chainId,[IG.slug]:IG.chainId,[CG.slug]:CG.chainId,[AG.slug]:AG.chainId,[kG.slug]:kG.chainId,[SG.slug]:SG.chainId,[PG.slug]:PG.chainId,[RG.slug]:RG.chainId,[MG.slug]:MG.chainId,[BG.slug]:BG.chainId,[DG.slug]:DG.chainId,[NG.slug]:NG.chainId,[OG.slug]:OG.chainId,[FG.slug]:FG.chainId,[LG.slug]:LG.chainId,[qG.slug]:qG.chainId,[WG.slug]:WG.chainId,[UG.slug]:UG.chainId,[HG.slug]:HG.chainId,[jG.slug]:jG.chainId,[zG.slug]:zG.chainId,[KG.slug]:KG.chainId,[GG.slug]:GG.chainId,[VG.slug]:VG.chainId,[$G.slug]:$G.chainId,[YG.slug]:YG.chainId,[QG.slug]:QG.chainId,[JG.slug]:JG.chainId,[ZG.slug]:ZG.chainId,[XG.slug]:XG.chainId,[eV.slug]:eV.chainId,[tV.slug]:tV.chainId,[rV.slug]:rV.chainId,[nV.slug]:nV.chainId,[aV.slug]:aV.chainId,[iV.slug]:iV.chainId,[sV.slug]:sV.chainId,[oV.slug]:oV.chainId,[cV.slug]:cV.chainId,[uV.slug]:uV.chainId,[lV.slug]:lV.chainId,[fV.slug]:fV.chainId,[dV.slug]:dV.chainId,[pV.slug]:pV.chainId,[hV.slug]:hV.chainId,[mV.slug]:mV.chainId,[yV.slug]:yV.chainId,[bV.slug]:bV.chainId,[gV.slug]:gV.chainId,[vV.slug]:vV.chainId,[wV.slug]:wV.chainId,[xV.slug]:xV.chainId,[_V.slug]:_V.chainId,[TV.slug]:TV.chainId,[EV.slug]:EV.chainId,[IV.slug]:IV.chainId,[CV.slug]:CV.chainId,[AV.slug]:AV.chainId,[kV.slug]:kV.chainId,[SV.slug]:SV.chainId,[PV.slug]:PV.chainId,[RV.slug]:RV.chainId,[MV.slug]:MV.chainId,[BV.slug]:BV.chainId,[DV.slug]:DV.chainId,[NV.slug]:NV.chainId,[OV.slug]:OV.chainId,[FV.slug]:FV.chainId,[LV.slug]:LV.chainId,[qV.slug]:qV.chainId,[WV.slug]:WV.chainId,[UV.slug]:UV.chainId,[HV.slug]:HV.chainId,[jV.slug]:jV.chainId,[zV.slug]:zV.chainId,[KV.slug]:KV.chainId,[GV.slug]:GV.chainId,[VV.slug]:VV.chainId,[$V.slug]:$V.chainId,[YV.slug]:YV.chainId,[QV.slug]:QV.chainId,[JV.slug]:JV.chainId,[ZV.slug]:ZV.chainId,[XV.slug]:XV.chainId,[e$.slug]:e$.chainId,[t$.slug]:t$.chainId,[r$.slug]:r$.chainId,[n$.slug]:n$.chainId,[a$.slug]:a$.chainId,[i$.slug]:i$.chainId,[s$.slug]:s$.chainId,[o$.slug]:o$.chainId,[c$.slug]:c$.chainId,[u$.slug]:u$.chainId,[l$.slug]:l$.chainId,[f$.slug]:f$.chainId,[d$.slug]:d$.chainId,[p$.slug]:p$.chainId,[h$.slug]:h$.chainId,[m$.slug]:m$.chainId,[y$.slug]:y$.chainId,[b$.slug]:b$.chainId,[g$.slug]:g$.chainId,[Iw.slug]:Iw.chainId,[v$.slug]:v$.chainId,[w$.slug]:w$.chainId,[x$.slug]:x$.chainId,[_$.slug]:_$.chainId,[T$.slug]:T$.chainId,[Cw.slug]:Cw.chainId,[Aw.slug]:Aw.chainId,[E$.slug]:E$.chainId,[I$.slug]:I$.chainId,[C$.slug]:C$.chainId,[A$.slug]:A$.chainId,[k$.slug]:k$.chainId,[S$.slug]:S$.chainId,[P$.slug]:P$.chainId,[R$.slug]:R$.chainId,[M$.slug]:M$.chainId,[B$.slug]:B$.chainId,[D$.slug]:D$.chainId,[N$.slug]:N$.chainId,[O$.slug]:O$.chainId,[F$.slug]:F$.chainId,[L$.slug]:L$.chainId,[q$.slug]:q$.chainId,[W$.slug]:W$.chainId,[U$.slug]:U$.chainId,[H$.slug]:H$.chainId,[j$.slug]:j$.chainId,[z$.slug]:z$.chainId,[K$.slug]:K$.chainId,[G$.slug]:G$.chainId,[V$.slug]:V$.chainId,[$$.slug]:$$.chainId,[Y$.slug]:Y$.chainId,[Q$.slug]:Q$.chainId,[J$.slug]:J$.chainId,[Z$.slug]:Z$.chainId,[X$.slug]:X$.chainId,[eY.slug]:eY.chainId,[tY.slug]:tY.chainId,[rY.slug]:rY.chainId,[nY.slug]:nY.chainId,[aY.slug]:aY.chainId,[iY.slug]:iY.chainId,[sY.slug]:sY.chainId,[oY.slug]:oY.chainId,[cY.slug]:cY.chainId,[uY.slug]:uY.chainId,[lY.slug]:lY.chainId,[fY.slug]:fY.chainId,[dY.slug]:dY.chainId,[pY.slug]:pY.chainId,[hY.slug]:hY.chainId,[kw.slug]:kw.chainId,[mY.slug]:mY.chainId,[yY.slug]:yY.chainId,[bY.slug]:bY.chainId,[gY.slug]:gY.chainId,[vY.slug]:vY.chainId,[wY.slug]:wY.chainId,[xY.slug]:xY.chainId,[_Y.slug]:_Y.chainId,[TY.slug]:TY.chainId,[EY.slug]:EY.chainId,[IY.slug]:IY.chainId,[CY.slug]:CY.chainId,[AY.slug]:AY.chainId,[kY.slug]:kY.chainId,[SY.slug]:SY.chainId,[PY.slug]:PY.chainId,[RY.slug]:RY.chainId,[MY.slug]:MY.chainId,[BY.slug]:BY.chainId,[DY.slug]:DY.chainId,[NY.slug]:NY.chainId,[OY.slug]:OY.chainId,[FY.slug]:FY.chainId,[LY.slug]:LY.chainId,[qY.slug]:qY.chainId,[WY.slug]:WY.chainId,[UY.slug]:UY.chainId,[HY.slug]:HY.chainId,[jY.slug]:jY.chainId,[zY.slug]:zY.chainId,[KY.slug]:KY.chainId,[GY.slug]:GY.chainId,[VY.slug]:VY.chainId,[$Y.slug]:$Y.chainId,[YY.slug]:YY.chainId,[QY.slug]:QY.chainId,[JY.slug]:JY.chainId,[ZY.slug]:ZY.chainId,[XY.slug]:XY.chainId,[eQ.slug]:eQ.chainId,[tQ.slug]:tQ.chainId,[rQ.slug]:rQ.chainId,[nQ.slug]:nQ.chainId,[aQ.slug]:aQ.chainId,[iQ.slug]:iQ.chainId,[sQ.slug]:sQ.chainId,[oQ.slug]:oQ.chainId,[cQ.slug]:cQ.chainId,[uQ.slug]:uQ.chainId,[lQ.slug]:lQ.chainId,[fQ.slug]:fQ.chainId,[dQ.slug]:dQ.chainId,[pQ.slug]:pQ.chainId,[hQ.slug]:hQ.chainId,[mQ.slug]:mQ.chainId,[yQ.slug]:yQ.chainId,[bQ.slug]:bQ.chainId,[gQ.slug]:gQ.chainId,[vQ.slug]:vQ.chainId,[wQ.slug]:wQ.chainId,[xQ.slug]:xQ.chainId,[_Q.slug]:_Q.chainId,[TQ.slug]:TQ.chainId,[EQ.slug]:EQ.chainId,[IQ.slug]:IQ.chainId,[CQ.slug]:CQ.chainId,[AQ.slug]:AQ.chainId,[kQ.slug]:kQ.chainId,[SQ.slug]:SQ.chainId,[PQ.slug]:PQ.chainId,[RQ.slug]:RQ.chainId,[MQ.slug]:MQ.chainId,[BQ.slug]:BQ.chainId,[DQ.slug]:DQ.chainId,[NQ.slug]:NQ.chainId,[OQ.slug]:OQ.chainId,[FQ.slug]:FQ.chainId,[Sw.slug]:Sw.chainId,[LQ.slug]:LQ.chainId,[qQ.slug]:qQ.chainId,[WQ.slug]:WQ.chainId,[UQ.slug]:UQ.chainId,[HQ.slug]:HQ.chainId,[jQ.slug]:jQ.chainId,[zQ.slug]:zQ.chainId,[KQ.slug]:KQ.chainId,[GQ.slug]:GQ.chainId,[VQ.slug]:VQ.chainId,[$Q.slug]:$Q.chainId,[YQ.slug]:YQ.chainId,[QQ.slug]:QQ.chainId,[JQ.slug]:JQ.chainId,[ZQ.slug]:ZQ.chainId,[XQ.slug]:XQ.chainId,[eJ.slug]:eJ.chainId,[tJ.slug]:tJ.chainId,[rJ.slug]:rJ.chainId,[nJ.slug]:nJ.chainId,[aJ.slug]:aJ.chainId,[iJ.slug]:iJ.chainId,[sJ.slug]:sJ.chainId,[oJ.slug]:oJ.chainId,[cJ.slug]:cJ.chainId,[uJ.slug]:uJ.chainId,[lJ.slug]:lJ.chainId,[fJ.slug]:fJ.chainId,[dJ.slug]:dJ.chainId,[pJ.slug]:pJ.chainId,[hJ.slug]:hJ.chainId,[mJ.slug]:mJ.chainId,[yJ.slug]:yJ.chainId,[bJ.slug]:bJ.chainId,[gJ.slug]:gJ.chainId,[vJ.slug]:vJ.chainId,[wJ.slug]:wJ.chainId,[xJ.slug]:xJ.chainId,[_J.slug]:_J.chainId,[TJ.slug]:TJ.chainId,[EJ.slug]:EJ.chainId,[IJ.slug]:IJ.chainId,[CJ.slug]:CJ.chainId,[AJ.slug]:AJ.chainId,[kJ.slug]:kJ.chainId,[SJ.slug]:SJ.chainId,[PJ.slug]:PJ.chainId,[RJ.slug]:RJ.chainId,[MJ.slug]:MJ.chainId,[BJ.slug]:BJ.chainId,[DJ.slug]:DJ.chainId,[NJ.slug]:NJ.chainId,[OJ.slug]:OJ.chainId,[FJ.slug]:FJ.chainId,[LJ.slug]:LJ.chainId,[qJ.slug]:qJ.chainId,[WJ.slug]:WJ.chainId,[UJ.slug]:UJ.chainId,[HJ.slug]:HJ.chainId,[jJ.slug]:jJ.chainId,[zJ.slug]:zJ.chainId,[KJ.slug]:KJ.chainId,[GJ.slug]:GJ.chainId,[VJ.slug]:VJ.chainId,[$J.slug]:$J.chainId,[YJ.slug]:YJ.chainId,[QJ.slug]:QJ.chainId,[JJ.slug]:JJ.chainId,[ZJ.slug]:ZJ.chainId,[XJ.slug]:XJ.chainId,[eZ.slug]:eZ.chainId,[tZ.slug]:tZ.chainId,[rZ.slug]:rZ.chainId,[nZ.slug]:nZ.chainId,[aZ.slug]:aZ.chainId,[iZ.slug]:iZ.chainId,[sZ.slug]:sZ.chainId,[oZ.slug]:oZ.chainId,[cZ.slug]:cZ.chainId,[uZ.slug]:uZ.chainId,[lZ.slug]:lZ.chainId,[fZ.slug]:fZ.chainId,[dZ.slug]:dZ.chainId,[pZ.slug]:pZ.chainId,[hZ.slug]:hZ.chainId,[mZ.slug]:mZ.chainId,[yZ.slug]:yZ.chainId,[bZ.slug]:bZ.chainId,[gZ.slug]:gZ.chainId,[vZ.slug]:vZ.chainId,[wZ.slug]:wZ.chainId,[xZ.slug]:xZ.chainId,[_Z.slug]:_Z.chainId,[TZ.slug]:TZ.chainId,[EZ.slug]:EZ.chainId,[IZ.slug]:IZ.chainId,[CZ.slug]:CZ.chainId,[AZ.slug]:AZ.chainId,[kZ.slug]:kZ.chainId,[SZ.slug]:SZ.chainId,[PZ.slug]:PZ.chainId,[RZ.slug]:RZ.chainId,[MZ.slug]:MZ.chainId,[BZ.slug]:BZ.chainId,[DZ.slug]:DZ.chainId,[NZ.slug]:NZ.chainId,[Pw.slug]:Pw.chainId};function srn(r){return r in jPe}function orn(r){return r in Ubt}function crn(r){if(srn(r))return jPe[r];throw new Error(`Chain with chainId "${r}" not found`)}function urn(r){if(orn(r))return jPe[Ubt[r]];throw new Error(`Chain with slug "${r}" not found`)}q.AcalaMandalaTestnet=UW;q.AcalaNetwork=iU;q.AcalaNetworkTestnet=jW;q.AcriaIntellichain=VF;q.AdilChainV2=UK;q.AdilDevnet=rQ;q.AdilTestnet=WK;q.AerochainTestnet=sU;q.AiozNetwork=Cq;q.AiozNetworkTestnet=Xz;q.Airdao=kV;q.AirdaoTestnet=HV;q.Aitd=LH;q.AitdTestnet=qH;q.Akroma=uQ;q.Alaya=lQ;q.AlayaDevTestnet=fQ;q.AlphNetwork=gG;q.Altcoinchain=fz;q.Alveychain=Hz;q.Alyx=FH;q.AlyxChainTestnet=pq;q.Amana=iG;q.AmanaMixnet=yY;q.AmanaPrivnet=bY;q.AmanaTestnet=mY;q.AmbrosChain=vU;q.AmeChain=Sq;q.Amstar=zH;q.AmstarTestnet=pH;q.Anduschain=RJ;q.AnytypeEvmChain=nj;q.Aquachain=zJ;q.Arbitrum=Iw;q.ArbitrumGoerli=Sw;q.ArbitrumNova=v$;q.ArbitrumOnXdai=Lq;q.ArbitrumRinkeby=FQ;q.ArcologyTestnet=tq;q.Arevia=lz;q.ArmoniaEvaChain=xq;q.ArmoniaEvaChainTestnet=_q;q.ArtisSigma1=wQ;q.ArtisTestnetTau1=xQ;q.Astar=WW;q.Astra=nV;q.AstraTestnet=iV;q.Atelier=Ij;q.Atheios=ZH;q.Athereum=T$;q.AtoshiTestnet=Iq;q.Aurora=uZ;q.AuroraBetanet=fZ;q.AuroraTestnet=lZ;q.AutobahnNetwork=A$;q.AutonityBakerlooThamesTestnet=KJ;q.AutonityPiccadillyThamesTestnet=GJ;q.AuxiliumNetwork=qJ;q.Avalanche=Aw;q.AvalancheFuji=Cw;q.Aves=f$;q.BandaiNamcoResearchVerse=bU;q.Base=pG;q.BaseGoerli=EY;q.BeagleMessagingChain=QH;q.BeanecoSmartchain=YQ;q.BearNetworkChain=QQ;q.BearNetworkChainTestnet=ZQ;q.BeoneChain=fU;q.BeoneChainTestnet=cG;q.BeresheetBereevmTestnet=Uj;q.Berylbit=BG;q.BeverlyHills=kY;q.Bifrost=Az;q.BifrostTestnet=R$;q.Binance=vw;q.BinanceTestnet=ww;q.Bitcichain=bj;q.BitcichainTestnet=gj;q.BitcoinEvm=az;q.Bitgert=o$;q.Bitindi=Zz;q.BitindiTestnet=Jz;q.BitkubChain=LL;q.BitkubChainTestnet=QV;q.Bittex=qz;q.BittorrentChain=Fq;q.BittorrentChainTestnet=JU;q.Bityuan=Tz;q.BlackfortExchangeNetwork=lK;q.BlackfortExchangeNetworkTestnet=oK;q.BlgTestnet=hV;q.BlockchainGenesis=YG;q.BlockchainStation=ZW;q.BlockchainStationTestnet=XW;q.BlocktonBlockchain=lG;q.Bloxberg=PG;q.Bmc=Rq;q.BmcTestnet=Mq;q.BobaAvax=E$;q.BobaBnb=W$;q.BobaBnbTestnet=WG;q.BobaNetwork=Xq;q.BobaNetworkGoerliTestnet=_z;q.BobaNetworkRinkebyTestnet=kF;q.BobabaseTestnet=NH;q.Bobabeam=DH;q.BobafujiTestnet=nK;q.Bobaopera=iW;q.BobaoperaTestnet=$z;q.BombChain=uz;q.BombChainTestnet=pz;q.BonNetwork=yj;q.Bosagora=ez;q.Brochain=KY;q.Bronos=tH;q.BronosTestnet=eH;q.Btachain=XH;q.BtcixNetwork=NV;q.Callisto=dU;q.CallistoTestnet=FV;q.CalypsoNftHubSkale=mZ;q.CalypsoNftHubSkaleTestnet=rZ;q.Camelark=OV;q.CaminoCChain=kW;q.Candle=OW;q.Canto=zK;q.CantoTesnet=KK;q.CarbonEvm=HG;q.CarbonEvmTestnet=jG;q.CatecoinChain=JH;q.Celo=w$;q.CeloAlfajoresTestnet=C$;q.CeloBaklavaTestnet=Y$;q.CennznetAzalea=qV;q.CennznetNikau=Iz;q.CennznetRata=Ez;q.ChainVerse=vK;q.ChaosSkaleTestnet=dZ;q.Cheapeth=aU;q.ChiadoTestnet=QG;q.ChilizScovilleTestnet=CY;q.CicChain=HH;q.CicChainTestnet=kH;q.Cloudtx=n$;q.CloudtxTestnet=a$;q.Cloudwalk=Nj;q.CloudwalkTestnet=Dj;q.CloverTestnet=YU;q.ClvParachain=QU;q.Cmp=TQ;q.CmpTestnet=zQ;q.CoinexSmartChain=ZF;q.CoinexSmartChainTestnet=XF;q.ColumbusTestNetwork=SW;q.CondorTestNetwork=sQ;q.Condrieu=tY;q.ConfluxEspace=ZU;q.ConfluxEspaceTestnet=mL;q.ConstaTestnet=wW;q.CoreBlockchain=uH;q.CoreBlockchainTestnet=cH;q.CosmicChain=eY;q.CreditSmartchain=gV;q.CronosBeta=IF;q.CronosTestnet=hW;q.Crossbell=Uz;q.CryptoEmergency=Bq;q.Cryptocoinpay=eV;q.Crystaleum=zY;q.CtexScanBlockchain=VH;q.CubeChain=lj;q.CubeChainTestnet=fj;q.Cyberdecknet=oZ;q.Cybertrust=IY;q.DChain=wj;q.DarwiniaCrabNetwork=zF;q.DarwiniaNetwork=GF;q.DarwiniaPangolinTestnet=jF;q.DarwiniaPangoroTestnet=KF;q.Datahopper=IZ;q.DaxChain=bq;q.DbchainTestnet=fL;q.Debank=XL;q.DebankTestnet=ZL;q.DebounceSubnetTestnet=Sz;q.DecentraboneLayer1Testnet=CU;q.DecentralizedWeb=oq;q.DecimalSmartChain=vL;q.DecimalSmartChainTestnet=pQ;q.DefiOracleMeta=hq;q.DefiOracleMetaTestnet=Xj;q.DefichainEvmNetwork=fH;q.DefichainEvmNetworkTestnet=dH;q.Dehvo=QL;q.DexalotSubnet=UQ;q.DexalotSubnetTestnet=WQ;q.DexillaTestnet=xj;q.DexitNetwork=gU;q.DfkChain=O$;q.DfkChainTest=dW;q.DiodePrenet=mF;q.DiodeTestnetStaging=pF;q.DithereumTestnet=DF;q.Dogcoin=lH;q.DogcoinTestnet=NG;q.Dogechain=Rj;q.DogechainTestnet=qW;q.DokenSuperChain=$$;q.DosChain=$K;q.DosFujiSubnet=OH;q.DosTesnet=zz;q.DoubleAChain=PW;q.DoubleAChainTestnet=RW;q.DracNetwork=jz;q.DraconesFinancialServices=dG;q.Dxchain=OF;q.DxchainTestnet=yL;q.Dyno=Kz;q.DynoTestnet=Gz;q.Ecoball=$j;q.EcoballTestnetEspuma=Yj;q.Ecredits=J$;q.EcreditsTestnet=Z$;q.EdexaTestnet=Pj;q.EdgewareEdgeevm=Wj;q.Ekta=Sj;q.ElaDidSidechain=_F;q.ElaDidSidechainTestnet=TF;q.ElastosSmartChain=wF;q.ElastosSmartChainTestnet=xF;q.Eleanor=_j;q.EllaTheHeart=OK;q.Ellaism=cL;q.EluvioContentFabric=oJ;q.Elysium=UH;q.ElysiumTestnet=WH;q.EmpireNetwork=Wz;q.EnduranceSmartChain=$W;q.Energi=m$;q.EnergiTestnet=M$;q.EnergyWebChain=Kq;q.EnergyWebVoltaTestnet=uY;q.EnnothemProterozoic=$F;q.EnnothemTestnetPioneer=YF;q.Enterchain=_H;q.Enuls=rq;q.EnulsTestnet=nq;q.EosEvmNetwork=RV;q.EosEvmNetworkTestnet=EV;q.Eraswap=hK;q.Ethereum=yw;q.EthereumClassic=iL;q.EthereumClassicTestnetKotti=oF;q.EthereumClassicTestnetMorden=sL;q.EthereumClassicTestnetMordor=oL;q.EthereumFair=KQ;q.Ethergem=kj;q.Etherinc=UL;q.EtherliteChain=YL;q.EthersocialNetwork=r$;q.EthoProtocol=cJ;q.Etica=V$;q.EtndChainS=nQ;q.EuropaSkaleChain=CZ;q.Eurus=KU;q.EurusTestnet=Aj;q.Evanesco=iz;q.EvanescoTestnet=vH;q.Evmos=MG;q.EvmosTestnet=RG;q.EvriceNetwork=GU;q.Excelon=OJ;q.ExcoincialChain=LJ;q.ExcoincialChainVoltaTestnet=FJ;q.ExosamaNetwork=Qj;q.ExpanseNetwork=aF;q.ExzoNetwork=TH;q.EzchainCChain=wz;q.EzchainCChainTestnet=xz;q.FXCoreNetwork=NW;q.Factory127=lq;q.FantasiaChain=yU;q.Fantom=_w;q.FantomTestnet=Ew;q.FastexChainTestnet=LQ;q.FerrumTestnet=JV;q.Fibonacci=pV;q.Filecoin=oW;q.FilecoinButterflyTestnet=mJ;q.FilecoinCalibrationTestnet=CQ;q.FilecoinHyperspaceTestnet=kz;q.FilecoinLocalTestnet=UJ;q.FilecoinWallabyTestnet=s$;q.Findora=tz;q.FindoraForge=nz;q.FindoraTestnet=rz;q.Firechain=DW;q.FirenzeTestNetwork=pY;q.Flachain=WJ;q.Flana=sG;q.FlanaMixnet=vY;q.FlanaPrivnet=wY;q.FlanaTestnet=gY;q.Flare=hF;q.FlareTestnetCoston=yF;q.FlareTestnetCoston2=JL;q.Floripa=P$;q.Fncy=bL;q.FncyTestnet=sJ;q.FreightTrustNetwork=Wq;q.Frenchain=I$;q.FrenchainTestnet=CW;q.FrontierOfDreamsTestnet=MV;q.Fuse=iq;q.FuseSparknet=sq;q.Fusion=c$;q.FusionTestnet=k$;q.Ganache=TK;q.GarizonStage0=DL;q.GarizonStage1=NL;q.GarizonStage2=OL;q.GarizonStage3=FL;q.GarizonTestnetStage0=xU;q.GarizonTestnetStage1=_U;q.GarizonTestnetStage2=TU;q.GarizonTestnetStage3=EU;q.Gatechain=PL;q.GatechainTestnet=SL;q.GatherDevnetNetwork=aZ;q.GatherNetwork=YJ;q.GatherTestnetNetwork=nZ;q.GearZeroNetwork=MW;q.GearZeroNetworkTestnet=EQ;q.Genechain=EL;q.GenesisCoin=DG;q.GenesisL1=SF;q.GenesisL1Testnet=CF;q.GiantMammoth=SG;q.GitshockCartenzTestnet=pj;q.Gnosis=WL;q.Gochain=aL;q.GochainTestnet=i$;q.Godwoken=cY;q.GodwokenTestnetV1=oY;q.Goerli=bw;q.GoldSmartChain=RK;q.GoldSmartChainTestnet=hY;q.GonChain=VG;q.Gooddata=BF;q.GooddataTestnet=MF;q.GraphlinqBlockchain=GW;q.Gton=UU;q.GtonTestnet=D$;q.Haic=cU;q.Halo=SH;q.HammerChain=YV;q.Hapchain=EJ;q.HapchainTestnet=RQ;q.HaqqChainTestnet=F$;q.HaqqNetwork=oV;q.HaradevTestnet=MZ;q.HarmonyDevnetShard0=EZ;q.HarmonyShard0=yZ;q.HarmonyShard1=bZ;q.HarmonyShard2=gZ;q.HarmonyShard3=vZ;q.HarmonyTestnetShard0=wZ;q.HarmonyTestnetShard1=xZ;q.HarmonyTestnetShard2=_Z;q.HarmonyTestnetShard3=TZ;q.Hashbit=sV;q.HashkeyChainTestnet=gQ;q.HaymoTestnet=vQ;q.HazlorTestnet=VK;q.Hedera=eW;q.HederaLocalnet=nW;q.HederaPreviewnet=rW;q.HederaTestnet=tW;q.HertzNetwork=ZV;q.HighPerformanceBlockchain=Jq;q.HikaNetworkTestnet=xK;q.HomeVerse=DV;q.HooSmartChain=hL;q.HooSmartChainTestnet=Aq;q.HorizenGobiTestnet=tj;q.HorizenYumaTestnet=ej;q.Htmlcoin=aK;q.HumanProtocol=cZ;q.Humanode=mK;q.HuobiEcoChain=fq;q.HuobiEcoChainTestnet=Vq;q.HyperonchainTestnet=_W;q.Icplaza=aQ;q.Idchain=gL;q.IexecSidechain=dq;q.Imversed=bJ;q.ImversedTestnet=gJ;q.Iolite=BJ;q.IoraChain=gH;q.IotexNetwork=iK;q.IotexNetworkTestnet=sK;q.IposNetwork=sZ;q.Irishub=PK;q.IrishubTestnet=AV;q.IvarChain=AY;q.IvarChainTestnet=SV;q.J2oTaro=d$;q.Jellie=hQ;q.JfinChain=Nz;q.JibchainL1=kG;q.JoysDigital=HJ;q.JoysDigitalTestnet=$J;q.KaibaLightningChainTestnet=jL;q.Kanazawa=QJ;q.Kardiachain=EF;q.KaruraNetwork=QW;q.KaruraNetworkTestnet=HW;q.KavaEvm=oz;q.KavaEvmTestnet=sz;q.Kcc=cW;q.KccTestnet=uW;q.Kekchain=NQ;q.KekchainKektest=OQ;q.Kerleano=cj;q.Kiln=fJ;q.Kintsugi=lJ;q.KlaytnCypress=uG;q.KlaytnTestnetBaobab=HU;q.Klyntar=LK;q.Kortho=yz;q.Korthotest=fG;q.Kovan=HF;q.KromaSepolia=dz;q.LaTestnet=EW;q.Lachain=jq;q.LachainTestnet=zq;q.LambdaTestnet=SY;q.LatamBlockchainResilTestnet=kq;q.LightlinkPegasusTestnet=mj;q.LightlinkPhoenix=hj;q.Lightstreams=Eq;q.LightstreamsTestnet=Tq;q.LineaTestnet=H$;q.LinqtoDevnet=kL;q.Lisinski=xW;q.LiveplexOracleevm=B$;q.Localhost=Pw;q.Loopnetwork=_V;q.LucidBlockchain=oU;q.LuckyNetwork=qU;q.Ludan=rj;q.LycanChain=eU;q.Maistestsubnet=jJ;q.Mammoth=AG;q.Mantle=fK;q.MantleTestnet=dK;q.Map=jV;q.MapMakalu=Uq;q.MarkrGo=qQ;q.MaroBlockchain=wG;q.Mas=yQ;q.Mathchain=hH;q.MathchainTestnet=mH;q.MdglTestnet=JK;q.Meld=tZ;q.MemoSmartChain=OU;q.MeshnyanTestnet=KW;q.Metacodechain=Lz;q.Metadium=fF;q.MetadiumTestnet=dF;q.Metadot=IV;q.MetadotTestnet=CV;q.MetalCChain=MQ;q.MetalTahoeCChain=BQ;q.Metaplayerone=Jj;q.MetaplayeroneNetwork=Zj;q.Meter=CL;q.MeterTestnet=AL;q.MetisAndromeda=nH;q.MetisGoerliTestnet=zW;q.MilkomedaA1=Bj;q.MilkomedaA1Testnet=cQ;q.MilkomedaC1=Mj;q.MilkomedaC1Testnet=oQ;q.MintmeComCoin=$V;q.Mix=wL;q.MixinVirtualMachine=lY;q.Mizana=oG;q.MizanaMixnet=_Y;q.MizanaPrivnet=TY;q.MizanaTestnet=xY;q.Moac=aH;q.MoacTestnet=qq;q.MolereumNetwork=NZ;q.MoonbaseAlpha=MH;q.Moonbeam=PH;q.Moonriver=RH;q.Moonrock=BH;q.Multivac=Q$;q.Mumbai=kw;q.MunodeTestnet=PU;q.Musicoin=_J;q.MxcWannseeZkevmTestnet=yJ;q.MyownTestnet=zG;q.MythicalChain=dQ;q.Nahmii=bK;q.Nahmii3=Yz;q.Nahmii3Testnet=Qz;q.NahmiiTestnet=gK;q.Nebula=hZ;q.NebulaStaging=iZ;q.NebulaTestnet=GL;q.NeonEvm=ZJ;q.NeonEvmDevnet=JJ;q.NeonEvmTestnet=XJ;q.Neonlink=Yq;q.NeonlinkTestnet=LG;q.NepalBlockchainNetwork=DU;q.NeutrinosTestnet=Oq;q.Newton=VU;q.NewtonTestnet=zU;q.Nexi=rK;q.NovaNetwork=RL;q.Ntity=RZ;q.Numbers=ZG;q.NumbersTestnet=XG;q.OasisEmerald=_$;q.OasisEmeraldTestnet=x$;q.OasisSapphire=KV;q.OasisSapphireTestnet=GV;q.Oasischain=XV;q.Oasys=Gq;q.Octaspace=XQ;q.OeblockTestnet=wq;q.Oho=y$;q.Okbchain=Nq;q.OkbchainTestnet=Dq;q.OkexchainTestnet=uL;q.Okxchain=lL;q.OmPlatform=AH;q.Omax=sW;q.Omchain=WV;q.Oneledger=eZ;q.OneledgerTestnetFrankenstein=kZ;q.Ontology=nL;q.OntologyTestnet=EK;q.OnusChain=Cj;q.OnusChainTestnet=vj;q.OoneChainTestnet=kQ;q.Oort=RU;q.OortAscraeus=BU;q.OortDev=qG;q.OortHuygens=MU;q.OpalTestnetByUnique=TG;q.Openchain=jQ;q.OpenchainTestnet=nU;q.Openpiece=eL;q.OpenpieceTestnet=yq;q.Openvessel=wJ;q.OpsideTestnet=zV;q.Optimism=gw;q.OptimismBedrockGoerliAlphaTestnet=e$;q.OptimismGoerli=Tw;q.OptimismKovan=pL;q.OptimismOnGnosis=aW;q.OpulentXBeta=b$;q.OrigintrailParachain=zj;q.OrlandoChain=Cz;q.Oychain=uq;q.OychainTestnet=cq;q.P12Chain=LV;q.PaletteChain=sj;q.PaletteChainTestnet=PV;q.Palm=PZ;q.PalmTestnet=SZ;q.Pandoproject=Oz;q.PandoprojectTestnet=Fz;q.ParibuNet=Bz;q.ParibuNetTestnet=Dz;q.Partychain=oj;q.Pdc=DZ;q.Pegglecoin=g$;q.PepchainChurchill=PJ;q.PhiNetworkV1=tK;q.PhiNetworkV2=gq;q.Phoenix=vV;q.PieceTestnet=t$;q.Pirl=AZ;q.PixieChain=SK;q.PixieChainTestnet=YW;q.Planq=FK;q.Platon=mQ;q.PlatonDevTestnet2=hJ;q.PlianMain=pJ;q.PlianSubchain1=TJ;q.PlianTestnetMain=MJ;q.PlianTestnetSubchain1=AJ;q.PoaNetworkCore=qL;q.PoaNetworkSokol=xL;q.Pocrnet=gz;q.Polis=PQ;q.PolisTestnet=SQ;q.Polygon=xw;q.PolygonZkevm=iH;q.PolygonZkevmTestnet=GH;q.PolyjuiceTestnet=sY;q.Polysmartchain=BK;q.Popcateum=xH;q.PortalFantasyChain=IU;q.PortalFantasyChainTest=uU;q.PosichainDevnetShard0=aJ;q.PosichainDevnetShard1=iJ;q.PosichainShard0=rJ;q.PosichainTestnetShard0=nJ;q.Primuschain=_L;q.ProofOfMemes=BV;q.ProtonTestnet=$L;q.ProxyNetworkTestnet=XU;q.Publicmint=qj;q.PublicmintDevnet=Fj;q.PublicmintTestnet=Lj;q.Pulsechain=vW;q.PulsechainTestnetV3=kU;q.PulsechainTestnetV4=SU;q.Q=p$;q.QTestnet=h$;q.Qeasyweb3Testnet=FG;q.Qitmeer=lU;q.QitmeerNetworkMixnet=nG;q.QitmeerNetworkPrivnet=aG;q.QitmeerNetworkTestnet=rG;q.Ql1=rU;q.Ql1Testnet=xJ;q.QuadransBlockchain=tV;q.QuadransBlockchainTestnet=rV;q.Quarix=CJ;q.QuarixTestnet=IJ;q.Quarkblockchain=NJ;q.QuarkchainDevnetRoot=GY;q.QuarkchainDevnetShard0=VY;q.QuarkchainDevnetShard1=$Y;q.QuarkchainDevnetShard2=YY;q.QuarkchainDevnetShard3=QY;q.QuarkchainDevnetShard4=JY;q.QuarkchainDevnetShard5=ZY;q.QuarkchainDevnetShard6=XY;q.QuarkchainDevnetShard7=eQ;q.QuarkchainRoot=MY;q.QuarkchainShard0=BY;q.QuarkchainShard1=DY;q.QuarkchainShard2=NY;q.QuarkchainShard3=OY;q.QuarkchainShard4=FY;q.QuarkchainShard5=LY;q.QuarkchainShard6=qY;q.QuarkchainShard7=WY;q.QuartzByUnique=_G;q.Quokkacoin=Vj;q.RabbitAnalogTestnetChain=uj;q.RangersProtocol=jj;q.RangersProtocolTestnetRobin=OG;q.Raptorchain=pZ;q.Realchain=aq;q.RedlightChain=vz;q.ReiChain=L$;q.ReiChainTestnet=q$;q.ReiNetwork=S$;q.Resincoin=fY;q.RikezaNetwork=KH;q.RikezaNetworkTestnet=yV;q.RiniaTestnet=AU;q.Rinkeby=sF;q.RiseOfTheWarbotsTestnet=GK;q.Ropsten=iF;q.Rsk=PF;q.RskTestnet=RF;q.Rupaya=AW;q.Saakuru=vJ;q.SaakuruTestnet=_Q;q.Sakura=$U;q.SanrChain=lV;q.SapphireByUnique=EG;q.Sardis=N$;q.SardisTestnet=uV;q.SatoshichainTestnet=_K;q.Scolcoin=X$;q.ScolcoinWeichainTestnet=kK;q.Scroll=GQ;q.ScrollAlphaTestnet=VQ;q.ScrollPreAlphaTestnet=$Q;q.SeedcoinNetwork=FF;q.Seele=Pq;q.Sepolia=SJ;q.Setheum=$q;q.ShardeumLiberty1X=ZK;q.ShardeumLiberty2X=XK;q.ShardeumSphinx1X=eG;q.Sherpax=$H;q.SherpaxTestnet=YH;q.Shibachain=AF;q.Shiden=pW;q.ShimmerevmTestnet=rH;q.Shyft=qK;q.ShyftTestnet=cV;q.SiberiumNetwork=tQ;q.SingularityZero=dV;q.SingularityZeroTestnet=fV;q.SiriusnetV2=Hq;q.SixProtocolTestnet=vq;q.Sjatsh=$G;q.SmartBitcoinCash=KG;q.SmartBitcoinCashTestnet=GG;q.SmartHostTeknolojiTestnet=bH;q.Smartmesh=DJ;q.SocialSmartChain=IQ;q.SongbirdCanaryNetwork=vF;q.Soterone=dL;q.Soverun=kJ;q.SoverunTestnet=jY;q.Sps=bV;q.SpsTestnet=xV;q.StarSocialTestnet=JW;q.StepNetwork=CH;q.StepTestnet=mV;q.Stratos=Gj;q.StratosTestnet=Kj;q.StreamuxBlockchain=tG;q.SuperSmartChain=Ej;q.SuperSmartChainTestnet=Tj;q.SurBlockchainNetwork=Qq;q.Susono=wV;q.SxNetwork=TW;q.SxNetworkTestnet=VW;q.SymplexiaSmartChain=yH;q.Syscoin=rL;q.SyscoinRolluxTestnet=U$;q.SyscoinTanenbaumTestnet=wK;q.TEAMBlockchain=VJ;q.TEkta=jU;q.TafEcoChain=bQ;q.TaikoAlpha2Testnet=iQ;q.TaoNetwork=LW;q.Taraxa=pU;q.TaraxaTestnet=hU;q.Taycan=UV;q.TaycanTestnet=Hj;q.Tbsi=aj;q.TbsiTestnet=ij;q.TbwgChain=NF;q.TcgVerse=hz;q.Techpay=bz;q.Teleport=YK;q.TeleportTestnet=QK;q.TelosEvm=WF;q.TelosEvmTestnet=UF;q.Teslafunds=dj;q.Thaichain=cF;q.Thaichain20Thaifi=bF;q.TheRootNetwork=HK;q.TheRootNetworkPorciniTestnet=jK;q.Theta=mW;q.ThetaAmberTestnet=bW;q.ThetaSapphireTestnet=yW;q.ThetaTestnet=gW;q.ThinkiumChain0=rY;q.ThinkiumChain1=nY;q.ThinkiumChain103=iY;q.ThinkiumChain2=aY;q.ThinkiumTestnetChain0=j$;q.ThinkiumTestnetChain1=z$;q.ThinkiumTestnetChain103=G$;q.ThinkiumTestnetChain2=K$;q.Thundercore=VL;q.ThundercoreTestnet=gF;q.Tipboxcoin=DQ;q.TipboxcoinTestnet=eK;q.TlchainNetwork=pK;q.TmyChain=vG;q.TokiNetwork=hG;q.TokiTestnet=mG;q.TombChain=MK;q.Tomochain=ML;q.TomochainTestnet=BL;q.ToolGlobal=yG;q.ToolGlobalTestnet=bG;q.Top=FU;q.TopEvm=NU;q.Tres=AK;q.TresTestnet=CK;q.TrustEvmTestnet=TV;q.TtcoinSmartChain=AQ;q.UbSmartChain=RY;q.UbSmartChainTestnet=PY;q.Ubiq=uF;q.UbiqNetworkTestnet=lF;q.Ultron=IH;q.UltronTestnet=EH;q.UnicornUltraTestnet=qF;q.Unique=xG;q.Uptick=eq;q.UzmiNetwork=yK;q.Valorbit=LF;q.Vchain=cz;q.Vechain=UY;q.VechainTestnet=HY;q.Vela1Chain=FW;q.VelasEvm=KL;q.Venidium=uK;q.VenidiumTestnet=cK;q.VentionSmartChain=dY;q.VentionSmartChainTestnet=tU;q.Vision=tJ;q.VisionVpioneerTestChain=JQ;q.VyvoSmartChain=CG;q.Wagmi=aV;q.Wanchain=wU;q.WanchainTestnet=WU;q.Web3gamesDevnet=zL;q.Web3gamesTestnet=HL;q.Web3q=fW;q.Web3qGalileo=Mz;q.Web3qTestnet=Rz;q.Webchain=VV;q.WeelinkTestnet=HQ;q.WegochainRubidium=IK;q.Wemix30=sH;q.Wemix30Testnet=oH;q.Woopchain=mq;q.WorldTradeTechnicalChain=wH;q.Xanachain=IG;q.XdcApothemNetwork=JF;q.Xerom=uJ;q.XinfinXdcNetwork=QF;q.Xodex=mz;q.XtSmartChain=BW;q.Yuanchain=Vz;q.ZMainnet=Oj;q.ZTestnet=UG;q.Zafirium=jH;q.ZcoreTestnet=Pz;q.ZeethChain=IW;q.ZeethChainDev=mU;q.Zeniq=BZ;q.Zenith=TL;q.ZenithTestnetVilnius=IL;q.Zetachain=DK;q.ZetachainAthensTestnet=NK;q.Zhejiang=dJ;q.ZilliqaEvm=u$;q.ZilliqaEvmTestnet=l$;q.ZksyncEra=lW;q.ZksyncEraTestnet=Zq;q.Zyx=tL;q._0xtade=JG;q._4goodnetwork=eJ;q._5irechainThunder=LU;q.allChains=irn;q.configureChain=nrn;q.defaultChains=arn;q.getChainByChainId=crn;q.getChainBySlug=urn;q.getChainRPC=trn;q.getChainRPCs=Wbt;q.minimizeChain=rrn});var Ct=E((WCa,zPe)=>{"use strict";f();d();g.env.NODE_ENV==="production"?zPe.exports=qbt():zPe.exports=Hbt()});var zbt=E((jCa,jbt)=>{"use strict";f();d();function lrn(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(B);P!==A;){for(var W=m[P],K=0,z=B-1;(W!==0||K>>0,F[z]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");C=K,P++}for(var G=B-C;G!==B&&F[G]===0;)G++;for(var j=o.repeat(y);G>>0,B=new Uint8Array(A);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,K=A-1;(F!==0||W>>0,B[K]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");P=W,y++}for(var z=A-P;z!==A&&B[z]===0;)z++;for(var G=new Uint8Array(C+(A-z)),j=C;z!==A;)G[j++]=B[z++];return G}function h(m){var y=p(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:p,decode:h}}jbt.exports=lrn});var ui=E((GCa,Kbt)=>{f();d();var frn=zbt(),drn="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";Kbt.exports=frn(drn)});var Pn=E((mb,Vbt)=>{f();d();var Gbt=typeof self<"u"?self:mb,Bbe=function(){function r(){this.fetch=!1,this.DOMException=Gbt.DOMException}return r.prototype=Gbt,new r}();(function(r){var e=function(t){var n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(I){return I&&DataView.prototype.isPrototypeOf(I)}if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(I){return I&&i.indexOf(Object.prototype.toString.call(I))>-1};function o(I){if(typeof I!="string"&&(I=String(I)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(I))throw new TypeError("Invalid character in header field name");return I.toLowerCase()}function c(I){return typeof I!="string"&&(I=String(I)),I}function u(I){var b={next:function(){var k=I.shift();return{done:k===void 0,value:k}}};return n.iterable&&(b[Symbol.iterator]=function(){return b}),b}function l(I){this.map={},I instanceof l?I.forEach(function(b,k){this.append(k,b)},this):Array.isArray(I)?I.forEach(function(b){this.append(b[0],b[1])},this):I&&Object.getOwnPropertyNames(I).forEach(function(b){this.append(b,I[b])},this)}l.prototype.append=function(I,b){I=o(I),b=c(b);var k=this.map[I];this.map[I]=k?k+", "+b:b},l.prototype.delete=function(I){delete this.map[o(I)]},l.prototype.get=function(I){return I=o(I),this.has(I)?this.map[I]:null},l.prototype.has=function(I){return this.map.hasOwnProperty(o(I))},l.prototype.set=function(I,b){this.map[o(I)]=c(b)},l.prototype.forEach=function(I,b){for(var k in this.map)this.map.hasOwnProperty(k)&&I.call(b,this.map[k],k,this)},l.prototype.keys=function(){var I=[];return this.forEach(function(b,k){I.push(k)}),u(I)},l.prototype.values=function(){var I=[];return this.forEach(function(b){I.push(b)}),u(I)},l.prototype.entries=function(){var I=[];return this.forEach(function(b,k){I.push([k,b])}),u(I)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function p(I){if(I.bodyUsed)return Promise.reject(new TypeError("Already read"));I.bodyUsed=!0}function h(I){return new Promise(function(b,k){I.onload=function(){b(I.result)},I.onerror=function(){k(I.error)}})}function m(I){var b=new FileReader,k=h(b);return b.readAsArrayBuffer(I),k}function y(I){var b=new FileReader,k=h(b);return b.readAsText(I),k}function C(I){for(var b=new Uint8Array(I),k=new Array(b.length),S=0;S-1?b:I}function W(I,b){b=b||{};var k=b.body;if(I instanceof W){if(I.bodyUsed)throw new TypeError("Already read");this.url=I.url,this.credentials=I.credentials,b.headers||(this.headers=new l(I.headers)),this.method=I.method,this.mode=I.mode,this.signal=I.signal,!k&&I._bodyInit!=null&&(k=I._bodyInit,I.bodyUsed=!0)}else this.url=String(I);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new l(b.headers)),this.method=F(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(k)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function K(I){var b=new FormData;return I.trim().split("&").forEach(function(k){if(k){var S=k.split("="),w=S.shift().replace(/\+/g," "),R=S.join("=").replace(/\+/g," ");b.append(decodeURIComponent(w),decodeURIComponent(R))}}),b}function z(I){var b=new l,k=I.replace(/\r?\n[\t ]+/g," ");return k.split(/\r?\n/).forEach(function(S){var w=S.split(":"),R=w.shift().trim();if(R){var O=w.join(":").trim();b.append(R,O)}}),b}A.call(W.prototype);function G(I,b){b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in b?b.statusText:"OK",this.headers=new l(b.headers),this.url=b.url||"",this._initBody(I)}A.call(G.prototype),G.prototype.clone=function(){return new G(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},G.error=function(){var I=new G(null,{status:0,statusText:""});return I.type="error",I};var j=[301,302,303,307,308];G.redirect=function(I,b){if(j.indexOf(b)===-1)throw new RangeError("Invalid status code");return new G(null,{status:b,headers:{location:I}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(b,k){this.message=b,this.name=k;var S=Error(b);this.stack=S.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function H(I,b){return new Promise(function(k,S){var w=new W(I,b);if(w.signal&&w.signal.aborted)return S(new t.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function O(){R.abort()}R.onload=function(){var D={status:R.status,statusText:R.statusText,headers:z(R.getAllResponseHeaders()||"")};D.url="responseURL"in R?R.responseURL:D.headers.get("X-Request-URL");var T="response"in R?R.response:R.responseText;k(new G(T,D))},R.onerror=function(){S(new TypeError("Network request failed"))},R.ontimeout=function(){S(new TypeError("Network request failed"))},R.onabort=function(){S(new t.DOMException("Aborted","AbortError"))},R.open(w.method,w.url,!0),w.credentials==="include"?R.withCredentials=!0:w.credentials==="omit"&&(R.withCredentials=!1),"responseType"in R&&n.blob&&(R.responseType="blob"),w.headers.forEach(function(D,T){R.setRequestHeader(T,D)}),w.signal&&(w.signal.addEventListener("abort",O),R.onreadystatechange=function(){R.readyState===4&&w.signal.removeEventListener("abort",O)}),R.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return H.polyfill=!0,r.fetch||(r.fetch=H,r.Headers=l,r.Request=W,r.Response=G),t.Headers=l,t.Request=W,t.Response=G,t.fetch=H,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(Bbe);Bbe.fetch.ponyfill=!0;delete Bbe.fetch.polyfill;var OZ=Bbe;mb=OZ.fetch;mb.default=OZ.fetch;mb.fetch=OZ.fetch;mb.Headers=OZ.Headers;mb.Request=OZ.Request;mb.Response=OZ.Response;Vbt.exports=mb});var Xe=E((JCa,KPe)=>{"use strict";f();d();var prn=Object.prototype.hasOwnProperty,vl="~";function gse(){}Object.create&&(gse.prototype=Object.create(null),new gse().__proto__||(vl=!1));function hrn(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function $bt(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new hrn(t,n||r,a),s=vl?vl+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function Dbe(r,e){--r._eventsCount===0?r._events=new gse:delete r._events[e]}function zu(){this._events=new gse,this._eventsCount=0}zu.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)prn.call(t,n)&&e.push(vl?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};zu.prototype.listeners=function(e){var t=vl?vl+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{mrn.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"execute",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Nbe=E((tAa,Ybt)=>{"use strict";f();d();async function*yrn(r,e=1){let t=[];e<1&&(e=1);for await(let n of r)for(t.push(n);t.length>=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}Ybt.exports=yrn});var GPe=E((aAa,Qbt)=>{"use strict";f();d();var brn=Nbe();async function*grn(r,e=1){for await(let t of brn(r,e)){let n=t.map(a=>a().then(i=>({ok:!0,value:i}),i=>({ok:!1,err:i})));for(let a=0;a{"use strict";f();d();Jbt.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}});var a2t=E((r2t,n2t)=>{"use strict";f();d();var Obe=Zbt(),{hasOwnProperty:e2t}=Object.prototype,{propertyIsEnumerable:vrn}=Object,FZ=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),wrn=r2t,Xbt={concatArrays:!1,ignoreUndefined:!1},Fbe=r=>{let e=[];for(let t in r)e2t.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){let t=Object.getOwnPropertySymbols(r);for(let n of t)vrn.call(r,n)&&e.push(n)}return e};function LZ(r){return Array.isArray(r)?xrn(r):Obe(r)?_rn(r):r}function xrn(r){let e=r.slice(0,0);return Fbe(r).forEach(t=>{FZ(e,t,LZ(r[t]))}),e}function _rn(r){let e=Object.getPrototypeOf(r)===null?Object.create(null):{};return Fbe(r).forEach(t=>{FZ(e,t,LZ(r[t]))}),e}var t2t=(r,e,t,n)=>(t.forEach(a=>{typeof e[a]>"u"&&n.ignoreUndefined||(a in r&&r[a]!==Object.getPrototypeOf(r)?FZ(r,a,VPe(r[a],e[a],n)):FZ(r,a,LZ(e[a])))}),r),Trn=(r,e,t)=>{let n=r.slice(0,0),a=0;return[r,e].forEach(i=>{let s=[];for(let o=0;o!s.includes(o)),t)}),n};function VPe(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?Trn(r,e,t):!Obe(e)||!Obe(r)?LZ(e):t2t(r,e,Fbe(e),t)}n2t.exports=function(...r){let e=VPe(LZ(Xbt),this!==wrn&&this||{},Xbt),t={_:{}};for(let n of r)if(n!==void 0){if(!Obe(n))throw new TypeError("`"+n+"` is not an Option Object");t=VPe(t,{_:n},e)}return t._}});var Rw=E((dAa,s2t)=>{"use strict";f();d();function i2t(r,e){for(let t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function Ern(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return i2t(r,t)}catch{t.message=r.message,t.stack=r.stack;let a=function(){};return a.prototype=Object.create(Object.getPrototypeOf(r)),i2t(new a,t)}}s2t.exports=Ern});var c2t=E((mAa,o2t)=>{"use strict";f();d();function Irn(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(B);P!==A;){for(var W=m[P],K=0,z=B-1;(W!==0||K>>0,F[z]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");C=K,P++}for(var G=B-C;G!==B&&F[G]===0;)G++;for(var j=o.repeat(y);G>>0,B=new Uint8Array(A);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,K=A-1;(F!==0||W>>0,B[K]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");P=W,y++}if(m[y]!==" "){for(var z=A-P;z!==A&&B[z]===0;)z++;for(var G=new Uint8Array(C+(A-z)),j=C;z!==A;)G[j++]=B[z++];return G}}}function h(m){var y=p(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:p,decode:h}}o2t.exports=Irn});var Lbe=E((gAa,u2t)=>{"use strict";f();d();var Crn=new TextDecoder,Arn=r=>Crn.decode(r),krn=new TextEncoder,Srn=r=>krn.encode(r);function Prn(r,e){let t=new Uint8Array(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return t}u2t.exports={decodeText:Arn,encodeText:Srn,concat:Prn}});var f2t=E((xAa,l2t)=>{"use strict";f();d();var{encodeText:Rrn}=Lbe(),$Pe=class{constructor(e,t,n,a){this.name=e,this.code=t,this.codeBuf=Rrn(this.code),this.alphabet=a,this.codec=n(a)}encode(e){return this.codec.encode(e)}decode(e){for(let t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}};l2t.exports=$Pe});var p2t=E((EAa,d2t)=>{"use strict";f();d();var Mrn=(r,e,t)=>{let n={};for(let u=0;u=8&&(s-=8,i[c++]=255&o>>s)}if(s>=t||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return i},Brn=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<e=>({encode(t){return Brn(t,e,r)},decode(t){return Mrn(t,e,r)}});d2t.exports={rfc4648:Drn}});var b2t=E((AAa,y2t)=>{"use strict";f();d();var vse=c2t(),Nrn=f2t(),{rfc4648:X0}=p2t(),{decodeText:Orn,encodeText:Frn}=Lbe(),Lrn=()=>({encode:Orn,decode:Frn}),h2t=[["identity","\0",Lrn,""],["base2","0",X0(1),"01"],["base8","7",X0(3),"01234567"],["base10","9",vse,"0123456789"],["base16","f",X0(4),"0123456789abcdef"],["base16upper","F",X0(4),"0123456789ABCDEF"],["base32hex","v",X0(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",X0(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",X0(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",X0(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",X0(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",X0(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",X0(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",X0(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",X0(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",vse,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",vse,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",vse,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",vse,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",X0(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",X0(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",X0(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",X0(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],m2t=h2t.reduce((r,e)=>(r[e[0]]=new Nrn(e[0],e[1],e[2],e[3]),r),{}),qrn=h2t.reduce((r,e)=>(r[e[1]]=m2t[e[0]],r),{});y2t.exports={names:m2t,codes:qrn}});var YPe=E((yb,v2t)=>{"use strict";f();d();var qZ=b2t(),{encodeText:Wrn,decodeText:qbe,concat:g2t}=Lbe();function Urn(r,e){if(!e)throw new Error("requires an encoded Uint8Array");let{name:t,codeBuf:n}=Mw(r);return Krn(t,e),g2t([n,e],n.length+e.length)}function Hrn(r,e){let t=Mw(r),n=Wrn(t.encode(e));return g2t([t.codeBuf,n],t.codeBuf.length+n.length)}function jrn(r){r instanceof Uint8Array&&(r=qbe(r));let e=r[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e)&&(r=r.toLowerCase()),Mw(r[0]).decode(r.substring(1))}function zrn(r){if(r instanceof Uint8Array&&(r=qbe(r)),Object.prototype.toString.call(r)!=="[object String]")return!1;try{return Mw(r[0]).name}catch{return!1}}function Krn(r,e){Mw(r).decode(qbe(e))}function Mw(r){if(Object.prototype.hasOwnProperty.call(qZ.names,r))return qZ.names[r];if(Object.prototype.hasOwnProperty.call(qZ.codes,r))return qZ.codes[r];throw new Error(`Unsupported encoding: ${r}`)}function Grn(r){return r instanceof Uint8Array&&(r=qbe(r)),Mw(r[0])}yb=v2t.exports=Urn;yb.encode=Hrn;yb.decode=jrn;yb.isEncoded=zrn;yb.encoding=Mw;yb.encodingFromData=Grn;var Vrn=Object.freeze(qZ.names),$rn=Object.freeze(qZ.codes);yb.names=Vrn;yb.codes=$rn});var T2t=E((MAa,_2t)=>{f();d();_2t.exports=x2t;var w2t=128,Yrn=127,Qrn=~Yrn,Jrn=Math.pow(2,31);function x2t(r,e,t){e=e||[],t=t||0;for(var n=t;r>=Jrn;)e[t++]=r&255|w2t,r/=128;for(;r&Qrn;)e[t++]=r&255|w2t,r>>>=7;return e[t]=r|0,x2t.bytes=t-n+1,e}});var C2t=E((NAa,I2t)=>{f();d();I2t.exports=QPe;var Zrn=128,E2t=127;function QPe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw QPe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&E2t)<=Zrn);return QPe.bytes=i-n,t}});var k2t=E((LAa,A2t)=>{f();d();var Xrn=Math.pow(2,7),enn=Math.pow(2,14),tnn=Math.pow(2,21),rnn=Math.pow(2,28),nnn=Math.pow(2,35),ann=Math.pow(2,42),inn=Math.pow(2,49),snn=Math.pow(2,56),onn=Math.pow(2,63);A2t.exports=function(r){return r{f();d();S2t.exports={encode:T2t(),decode:C2t(),encodingLength:k2t()}});var M2t=E((zAa,R2t)=>{"use strict";f();d();var cnn=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});R2t.exports={names:cnn}});function unn(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);A!==B;){for(var K=y[A],z=0,G=F-1;(K!==0||z>>0,W[G]=K%o>>>0,K=K/o>>>0;if(K!==0)throw new Error("Non-zero carry");P=z,A++}for(var j=F-P;j!==F&&W[j]===0;)j++;for(var H=c.repeat(C);j>>0,F=new Uint8Array(B);y[C];){var W=t[y.charCodeAt(C)];if(W===255)return;for(var K=0,z=B-1;(W!==0||K>>0,F[z]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");A=K,C++}if(y[C]!==" "){for(var G=B-A;G!==B&&F[G]===0;)G++;for(var j=new Uint8Array(P+(B-G)),H=P;G!==B;)j[H++]=F[G++];return j}}}function m(y){var C=h(y);if(C)return C;throw new Error(`Non-${e} character`)}return{encode:p,decodeUnsafe:h,decode:m}}var lnn,fnn,B2t,D2t=de(()=>{f();d();lnn=unn,fnn=lnn,B2t=fnn});var Wbe={};Rr(Wbe,{coerce:()=>vp,empty:()=>N2t,equals:()=>JPe,fromHex:()=>pnn,fromString:()=>ZPe,isBinary:()=>hnn,toHex:()=>dnn,toString:()=>XPe});var N2t,dnn,pnn,JPe,vp,hnn,ZPe,XPe,_g=de(()=>{f();d();N2t=new Uint8Array(0),dnn=r=>r.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),pnn=r=>{let e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):N2t},JPe=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},hnn=r=>r instanceof ArrayBuffer||ArrayBuffer.isView(r),ZPe=r=>new TextEncoder().encode(r),XPe=r=>new TextDecoder().decode(r)});var eRe,tRe,rRe,O2t,nRe,WZ,Tg,mnn,ynn,Io,Rh=de(()=>{f();d();D2t();_g();eRe=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},tRe=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){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))}else throw Error("Can only multibase decode strings")}or(e){return O2t(this,e)}},rRe=class{constructor(e){this.decoders=e}or(e){return O2t(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},O2t=(r,e)=>new rRe({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),nRe=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new eRe(e,t,n),this.decoder=new tRe(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},WZ=({name:r,prefix:e,encode:t,decode:n})=>new nRe(r,e,t,n),Tg=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=B2t(t,e);return WZ({prefix:r,name:e,encode:n,decode:i=>vp(a(i))})},mnn=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},ynn=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<WZ({prefix:e,name:r,encode(a){return ynn(a,n,t)},decode(a){return mnn(a,n,t,r)}})});var aRe={};Rr(aRe,{identity:()=>bnn});var bnn,F2t=de(()=>{f();d();Rh();_g();bnn=WZ({prefix:"\0",name:"identity",encode:r=>XPe(r),decode:r=>ZPe(r)})});var iRe={};Rr(iRe,{base2:()=>gnn});var gnn,L2t=de(()=>{f();d();Rh();gnn=Io({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var sRe={};Rr(sRe,{base8:()=>vnn});var vnn,q2t=de(()=>{f();d();Rh();vnn=Io({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var oRe={};Rr(oRe,{base10:()=>wnn});var wnn,W2t=de(()=>{f();d();Rh();wnn=Tg({prefix:"9",name:"base10",alphabet:"0123456789"})});var cRe={};Rr(cRe,{base16:()=>xnn,base16upper:()=>_nn});var xnn,_nn,U2t=de(()=>{f();d();Rh();xnn=Io({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),_nn=Io({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var uRe={};Rr(uRe,{base32:()=>UZ,base32hex:()=>Cnn,base32hexpad:()=>knn,base32hexpadupper:()=>Snn,base32hexupper:()=>Ann,base32pad:()=>Enn,base32padupper:()=>Inn,base32upper:()=>Tnn,base32z:()=>Pnn});var UZ,Tnn,Enn,Inn,Cnn,Ann,knn,Snn,Pnn,lRe=de(()=>{f();d();Rh();UZ=Io({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Tnn=Io({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Enn=Io({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Inn=Io({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Cnn=Io({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Ann=Io({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),knn=Io({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Snn=Io({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Pnn=Io({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})});var fRe={};Rr(fRe,{base36:()=>Rnn,base36upper:()=>Mnn});var Rnn,Mnn,H2t=de(()=>{f();d();Rh();Rnn=Tg({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Mnn=Tg({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var dRe={};Rr(dRe,{base58btc:()=>I1,base58flickr:()=>Bnn});var I1,Bnn,pRe=de(()=>{f();d();Rh();I1=Tg({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Bnn=Tg({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});var hRe={};Rr(hRe,{base64:()=>Dnn,base64pad:()=>Nnn,base64url:()=>Onn,base64urlpad:()=>Fnn});var Dnn,Nnn,Onn,Fnn,j2t=de(()=>{f();d();Rh();Dnn=Io({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Nnn=Io({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Onn=Io({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Fnn=Io({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var mRe={};Rr(mRe,{base256emoji:()=>Hnn});function Wnn(r){return r.reduce((e,t)=>(e+=Lnn[t],e),"")}function Unn(r){let e=[];for(let t of r){let n=qnn[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var z2t,Lnn,qnn,Hnn,K2t=de(()=>{f();d();Rh();z2t=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Lnn=z2t.reduce((r,e,t)=>(r[t]=e,r),[]),qnn=z2t.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);Hnn=WZ({prefix:"\u{1F680}",name:"base256emoji",encode:Wnn,decode:Unn})});function $2t(r,e,t){e=e||[],t=t||0;for(var n=t;r>=Gnn;)e[t++]=r&255|G2t,r/=128;for(;r&Knn;)e[t++]=r&255|G2t,r>>>=7;return e[t]=r|0,$2t.bytes=t-n+1,e}function yRe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw yRe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&V2t)<=$nn);return yRe.bytes=i-n,t}var jnn,G2t,znn,Knn,Gnn,Vnn,$nn,V2t,Ynn,Qnn,Jnn,Znn,Xnn,ean,tan,ran,nan,aan,ian,san,wse,Y2t=de(()=>{f();d();jnn=$2t,G2t=128,znn=127,Knn=~znn,Gnn=Math.pow(2,31);Vnn=yRe,$nn=128,V2t=127;Ynn=Math.pow(2,7),Qnn=Math.pow(2,14),Jnn=Math.pow(2,21),Znn=Math.pow(2,28),Xnn=Math.pow(2,35),ean=Math.pow(2,42),tan=Math.pow(2,49),ran=Math.pow(2,56),nan=Math.pow(2,63),aan=function(r){return rHZ,encodeTo:()=>Bw,encodingLength:()=>Dw});var HZ,Bw,Dw,Ube=de(()=>{f();d();Y2t();HZ=(r,e=0)=>[wse.decode(r,e),wse.decode.bytes],Bw=(r,e,t=0)=>(wse.encode(r,e,t),e),Dw=r=>wse.encodingLength(r)});var Ow={};Rr(Ow,{Digest:()=>Nw,create:()=>Eg,decode:()=>bRe,equals:()=>gRe});var Eg,bRe,gRe,Nw,xse=de(()=>{f();d();_g();Ube();Eg=(r,e)=>{let t=e.byteLength,n=Dw(r),a=n+Dw(t),i=new Uint8Array(a+t);return Bw(r,i,0),Bw(t,i,n),i.set(e,a),new Nw(r,t,e,i)},bRe=r=>{let e=vp(r),[t,n]=HZ(e),[a,i]=HZ(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==a)throw new Error("Incorrect length");return new Nw(t,a,s,e)},gRe=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&JPe(r.bytes,e.bytes),Nw=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}}});var zbe={};Rr(zbe,{Hasher:()=>Hbe,from:()=>jbe});var jbe,Hbe,vRe=de(()=>{f();d();xse();jbe=({name:r,code:e,encode:t})=>new Hbe(r,e,t),Hbe=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?Eg(this.code,t):t.then(n=>Eg(this.code,n))}else throw Error("Unknown type, must be binary type")}}});var wRe={};Rr(wRe,{sha256:()=>oan,sha512:()=>can});var Q2t,oan,can,J2t=de(()=>{f();d();vRe();Q2t=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),oan=jbe({name:"sha2-256",code:18,encode:Q2t("SHA-256")}),can=jbe({name:"sha2-512",code:19,encode:Q2t("SHA-512")})});var xRe={};Rr(xRe,{identity:()=>fan});var Z2t,uan,X2t,lan,fan,egt=de(()=>{f();d();_g();xse();Z2t=0,uan="identity",X2t=vp,lan=r=>Eg(Z2t,X2t(r)),fan={code:Z2t,name:uan,encode:X2t,digest:lan}});var _Re={};Rr(_Re,{code:()=>pan,decode:()=>man,encode:()=>han,name:()=>dan});var dan,pan,han,man,tgt=de(()=>{f();d();_g();dan="raw",pan=85,han=r=>vp(r),man=r=>vp(r)});var TRe={};Rr(TRe,{code:()=>van,decode:()=>xan,encode:()=>wan,name:()=>gan});var yan,ban,gan,van,wan,xan,rgt=de(()=>{f();d();yan=new TextEncoder,ban=new TextDecoder,gan="json",van=512,wan=r=>yan.encode(JSON.stringify(r)),xan=r=>JSON.parse(ban.decode(r))});var hc,_an,Tan,Ean,_se,Ian,ngt,agt,Kbe,Gbe,Can,Aan,kan,igt=de(()=>{f();d();Ube();xse();pRe();lRe();_g();hc=class{constructor(e,t,n,a){this.code=t,this.version=e,this.multihash=n,this.bytes=a,this.byteOffset=a.byteOffset,this.byteLength=a.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:Gbe,byteLength:Gbe,code:Kbe,version:Kbe,multihash:Kbe,bytes:Kbe,_baseCache:Gbe,asCID:Gbe})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:t}=this;if(e!==_se)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==Ian)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return hc.createV0(t)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=Eg(e,t);return hc.createV1(this.code,n)}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&&gRe(this.multihash,e.multihash)}toString(e){let{bytes:t,version:n,_baseCache:a}=this;switch(n){case 0:return Tan(t,a,e||I1.encoder);default:return Ean(t,a,e||UZ.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 Aan(/^0\.0/,kan),!!(e&&(e[agt]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof hc)return e;if(e!=null&&e.asCID===e){let{version:t,code:n,multihash:a,bytes:i}=e;return new hc(t,n,a,i||ngt(t,n,a.bytes))}else if(e!=null&&e[agt]===!0){let{version:t,multihash:n,code:a}=e,i=bRe(n);return hc.create(t,a,i)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==_se)throw new Error(`Version 0 CID must use dag-pb (code: ${_se}) block encoding`);return new hc(e,t,n,n.bytes)}case 1:{let a=ngt(e,t,n.bytes);return new hc(e,t,n,a)}default:throw new Error("Invalid version")}}static createV0(e){return hc.create(0,_se,e)}static createV1(e,t){return hc.create(1,e,t)}static decode(e){let[t,n]=hc.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=hc.inspectBytes(e),n=t.size-t.multihashSize,a=vp(e.subarray(n,n+t.multihashSize));if(a.byteLength!==t.multihashSize)throw new Error("Incorrect length");let i=a.subarray(t.multihashSize-t.digestSize),s=new Nw(t.multihashCode,t.digestSize,i,a);return[t.version===0?hc.createV0(s):hc.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[p,h]=HZ(e.subarray(t));return t+=h,p},a=n(),i=_se;if(a===18?(a=0,t=0):a===1&&(i=n()),a!==0&&a!==1)throw new RangeError(`Invalid CID version ${a}`);let s=t,o=n(),c=n(),u=t+c,l=u-s;return{version:a,codec:i,multihashCode:o,digestSize:c,multihashSize:l,size:u}}static parse(e,t){let[n,a]=_an(e,t),i=hc.decode(a);return i._baseCache.set(n,e),i}},_an=(r,e)=>{switch(r[0]){case"Q":{let t=e||I1;return[I1.prefix,t.decode(`${I1.prefix}${r}`)]}case I1.prefix:{let t=e||I1;return[I1.prefix,t.decode(r)]}case UZ.prefix:{let t=e||UZ;return[UZ.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},Tan=(r,e,t)=>{let{prefix:n}=t;if(n!==I1.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let a=e.get(n);if(a==null){let i=t.encode(r).slice(1);return e.set(n,i),i}else return a},Ean=(r,e,t)=>{let{prefix:n}=t,a=e.get(n);if(a==null){let i=t.encode(r);return e.set(n,i),i}else return a},_se=112,Ian=18,ngt=(r,e,t)=>{let n=Dw(r),a=n+Dw(e),i=new Uint8Array(a+t.byteLength);return Bw(r,i,0),Bw(e,i,n),i.set(t,a),i},agt=Symbol.for("@ipld/js-cid/CID"),Kbe={writable:!1,configurable:!1,enumerable:!0},Gbe={writable:!1,enumerable:!1,configurable:!1},Can="0.0.0-dev",Aan=(r,e)=>{if(r.test(Can))console.warn(e);else throw new Error(e)},kan=`CID.isCID(v) is deprecated and will be removed in the next major release. Following code pattern: if (CID.isCID(value)) { @@ -42,46 +42,46 @@ if (cid) { // Make sure to use cid instead of value doSomethingWithCID(cid) } -`});var Wtt=ce(()=>{d();p();Ftt();yle();gg();sTe();eX()});var Utt={};cr(Utt,{CID:()=>zs,bases:()=>_le,bytes:()=>mle,codecs:()=>S4r,digest:()=>Qv,hasher:()=>vle,hashes:()=>P4r,varint:()=>qG});var _le,P4r,S4r,dTe=ce(()=>{d();p();gtt();btt();vtt();wtt();xtt();J_e();_tt();eTe();Ttt();Ett();Rtt();Btt();Dtt();Ltt();Wtt();_le={...K_e,...G_e,...V_e,...Y_e,...$_e,...Q_e,...Z_e,...X_e,...tTe,...rTe},P4r={...oTe,...cTe},S4r={raw:uTe,json:lTe}});function wg(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}var rX=ce(()=>{d();p()});function FG(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?wg(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}var Tle=ce(()=>{d();p();rX()});function jtt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var Htt,pTe,R4r,Ile,hTe=ce(()=>{d();p();dTe();Tle();Htt=jtt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),pTe=jtt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=FG(r.length);for(let t=0;tXf});function Xf(r,e="utf8"){let t=Ile[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString("utf8"):t.encoder.encode(r).substring(1)}var WG=ce(()=>{d();p();hTe()});var nX={};cr(nX,{fromString:()=>_h});function _h(r,e="utf8"){let t=Ile[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?wg(globalThis.Buffer.from(r,"utf-8")):t.decoder.decode(`${t.prefix}${r}`)}var Jv=ce(()=>{d();p();hTe();rX()});var iX={};cr(iX,{concat:()=>aX});function aX(r,e){e||(e=r.reduce((a,i)=>a+i.length,0));let t=FG(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return wg(t)}var Zv=ce(()=>{d();p();Tle();rX()});var oX=_((xWn,$tt)=>{"use strict";d();p();var ztt=L_e(),UG=ltt(),{names:sX}=ptt(),{toString:Cle}=(WG(),nt(Ele)),{fromString:M4r}=(Jv(),nt(nX)),{concat:N4r}=(Zv(),nt(iX)),HG={};for(let r in sX){let e=r;HG[sX[e]]=e}Object.freeze(HG);function B4r(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Cle(r,"base16")}function D4r(r){return M4r(r,"base16")}function L4r(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Cle(ztt.encode("base58btc",r)).slice(1)}function O4r(r){let e=r instanceof Uint8Array?Cle(r):r;return ztt.decode("z"+e)}function Ktt(r){if(!(r instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(r.length<2)throw new Error("multihash too short. must be > 2 bytes.");let e=UG.decode(r);if(!Vtt(e))throw new Error(`multihash unknown function code: 0x${e.toString(16)}`);r=r.slice(UG.decode.bytes);let t=UG.decode(r);if(t<0)throw new Error(`multihash invalid length: ${t}`);if(r=r.slice(UG.decode.bytes),r.length!==t)throw new Error(`multihash length inconsistent: 0x${Cle(r,"base16")}`);return{code:e,name:HG[e],length:t,digest:r}}function q4r(r,e,t){if(!r||e===void 0)throw new Error("multihash encode requires at least two args: digest, code");let n=Gtt(e);if(!(r instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(t==null&&(t=r.length),t&&r.length!==t)throw new Error("digest length should be equal to specified length.");let a=UG.encode(n),i=UG.encode(t);return N4r([a,i,r],a.length+i.length+r.length)}function Gtt(r){let e=r;if(typeof r=="string"){if(sX[r]===void 0)throw new Error(`Unrecognized hash function named: ${r}`);e=sX[r]}if(typeof e!="number")throw new Error(`Hash function code should be a number. Got: ${e}`);if(HG[e]===void 0&&!fTe(e))throw new Error(`Unrecognized function code: ${e}`);return e}function fTe(r){return r>0&&r<16}function Vtt(r){return!!(fTe(r)||HG[r])}function Ytt(r){Ktt(r)}function F4r(r){return Ytt(r),r.subarray(0,2)}$tt.exports={names:sX,codes:HG,toHexString:B4r,fromHexString:D4r,toB58String:L4r,fromB58String:O4r,decode:Ktt,encode:q4r,coerceCode:Gtt,isAppCode:fTe,validate:Ytt,prefix:F4r,isValidCode:Vtt}});var Qtt=_((cX,kle)=>{d();p();(function(r,e){"use strict";var t={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(m){if(!Array.isArray(m)&&!ArrayBuffer.isView(m))return!1;for(var y=0;y255)return!1;return!0}function a(m,y){return(m&65535)*y+(((m>>>16)*y&65535)<<16)}function i(m,y){return m<>>32-y}function s(m){return m^=m>>>16,m=a(m,2246822507),m^=m>>>13,m=a(m,3266489909),m^=m>>>16,m}function o(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var I=[0,0,0,0];return I[3]+=m[3]+y[3],I[2]+=I[3]>>>16,I[3]&=65535,I[2]+=m[2]+y[2],I[1]+=I[2]>>>16,I[2]&=65535,I[1]+=m[1]+y[1],I[0]+=I[1]>>>16,I[1]&=65535,I[0]+=m[0]+y[0],I[0]&=65535,[I[0]<<16|I[1],I[2]<<16|I[3]]}function c(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var I=[0,0,0,0];return I[3]+=m[3]*y[3],I[2]+=I[3]>>>16,I[3]&=65535,I[2]+=m[2]*y[3],I[1]+=I[2]>>>16,I[2]&=65535,I[2]+=m[3]*y[2],I[1]+=I[2]>>>16,I[2]&=65535,I[1]+=m[1]*y[3],I[0]+=I[1]>>>16,I[1]&=65535,I[1]+=m[2]*y[2],I[0]+=I[1]>>>16,I[1]&=65535,I[1]+=m[3]*y[1],I[0]+=I[1]>>>16,I[1]&=65535,I[0]+=m[0]*y[3]+m[1]*y[2]+m[2]*y[1]+m[3]*y[0],I[0]&=65535,[I[0]<<16|I[1],I[2]<<16|I[3]]}function u(m,y){return y%=64,y===32?[m[1],m[0]]:y<32?[m[0]<>>32-y,m[1]<>>32-y]:(y-=32,[m[1]<>>32-y,m[0]<>>32-y])}function l(m,y){return y%=64,y===0?m:y<32?[m[0]<>>32-y,m[1]<>>1]),m=c(m,[4283543511,3981806797]),m=h(m,[0,m[0]>>>1]),m=c(m,[3301882366,444984403]),m=h(m,[0,m[0]>>>1]),m}t.x86.hash32=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var I=m.length%4,C=m.length-I,R=y,L=0,F=3432918353,W=461845907,V=0;V>>0},t.x86.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var I=m.length%16,C=m.length-I,R=y,L=y,F=y,W=y,V=0,K=0,H=0,G=0,Q=597399067,q=2869860233,T=951274213,M=2716044179,A=0;A>>0).toString(16)).slice(-8)+("00000000"+(L>>>0).toString(16)).slice(-8)+("00000000"+(F>>>0).toString(16)).slice(-8)+("00000000"+(W>>>0).toString(16)).slice(-8)},t.x64.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var I=m.length%16,C=m.length-I,R=[0,y],L=[0,y],F=[0,0],W=[0,0],V=[2277735313,289559509],K=[1291169091,658871167],H=0;H>>0).toString(16)).slice(-8)+("00000000"+(R[1]>>>0).toString(16)).slice(-8)+("00000000"+(L[0]>>>0).toString(16)).slice(-8)+("00000000"+(L[1]>>>0).toString(16)).slice(-8)},typeof cX<"u"?(typeof kle<"u"&&kle.exports&&(cX=kle.exports=t),cX.murmurHash3=t):typeof define=="function"&&define.amd?define([],function(){return t}):(t._murmurHash3=r.murmurHash3,t.noConflict=function(){return r.murmurHash3=t._murmurHash3,t._murmurHash3=e,t.noConflict=e,t},r.murmurHash3=t)})(cX)});var Ztt=_((CWn,Jtt)=>{d();p();Jtt.exports=Qtt()});var ert=_((PWn,Xtt)=>{"use strict";d();p();var W4r=oX(),jG=self.crypto||self.msCrypto,mTe=async(r,e)=>{if(typeof self>"u"||!jG)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(e){case"sha1":return new Uint8Array(await jG.subtle.digest({name:"SHA-1"},r));case"sha2-256":return new Uint8Array(await jG.subtle.digest({name:"SHA-256"},r));case"sha2-512":return new Uint8Array(await jG.subtle.digest({name:"SHA-512"},r));case"dbl-sha2-256":{let t=await jG.subtle.digest({name:"SHA-256"},r);return new Uint8Array(await jG.subtle.digest({name:"SHA-256"},t))}default:throw new Error(`${e} is not a supported algorithm`)}};Xtt.exports={factory:r=>async e=>mTe(e,r),digest:mTe,multihashing:async(r,e,t)=>{let n=await mTe(r,e);return W4r.encode(n,e,t)}}});var rrt=_((MWn,trt)=>{"use strict";d();p();var U4r=r=>{let e=new Uint8Array(4);for(let t=0;t<4;t++)e[t]=r&255,r=r>>8;return e};trt.exports={fromNumberTo32BitBuf:U4r}});var yTe=_((DWn,nrt)=>{d();p();var H4r="Input must be an string, Buffer or Uint8Array";function j4r(r){let e;if(r instanceof Uint8Array)e=r;else if(typeof r=="string")e=new TextEncoder().encode(r);else throw new Error(H4r);return e}function z4r(r){return Array.prototype.map.call(r,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function Ale(r){return(4294967296+r).toString(16).substring(1)}function K4r(r,e,t){let n=` -`+r+" = ";for(let a=0;a{d();p();var Sle=yTe();function Ple(r,e,t){let n=r[e]+r[t],a=r[e+1]+r[t+1];n>=4294967296&&a++,r[e]=n,r[e+1]=a}function art(r,e,t,n){let a=r[e]+t;t<0&&(a+=4294967296);let i=r[e+1]+n;a>=4294967296&&i++,r[e]=a,r[e+1]=i}function irt(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function xg(r,e,t,n,a,i){let s=uX[a],o=uX[a+1],c=uX[i],u=uX[i+1];Ple(vr,r,e),art(vr,r,s,o);let l=vr[n]^vr[r],h=vr[n+1]^vr[r+1];vr[n]=h,vr[n+1]=l,Ple(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=l>>>24^h<<8,vr[e+1]=h>>>24^l<<8,Ple(vr,r,e),art(vr,r,c,u),l=vr[n]^vr[r],h=vr[n+1]^vr[r+1],vr[n]=l>>>16^h<<16,vr[n+1]=h>>>16^l<<16,Ple(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=h>>>31^l<<1,vr[e+1]=l>>>31^h<<1}var srt=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),V4r=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],mu=new Uint8Array(V4r.map(function(r){return r*2})),vr=new Uint32Array(32),uX=new Uint32Array(32);function ort(r,e){let t=0;for(t=0;t<16;t++)vr[t]=r.h[t],vr[t+16]=srt[t];for(vr[24]=vr[24]^r.t,vr[25]=vr[25]^r.t/4294967296,e&&(vr[28]=~vr[28],vr[29]=~vr[29]),t=0;t<32;t++)uX[t]=irt(r.b,4*t);for(t=0;t<12;t++)xg(0,8,16,24,mu[t*16+0],mu[t*16+1]),xg(2,10,18,26,mu[t*16+2],mu[t*16+3]),xg(4,12,20,28,mu[t*16+4],mu[t*16+5]),xg(6,14,22,30,mu[t*16+6],mu[t*16+7]),xg(0,10,20,30,mu[t*16+8],mu[t*16+9]),xg(2,12,22,24,mu[t*16+10],mu[t*16+11]),xg(4,14,16,26,mu[t*16+12],mu[t*16+13]),xg(6,8,18,28,mu[t*16+14],mu[t*16+15]);for(t=0;t<16;t++)r.h[t]=r.h[t]^vr[t]^vr[t+16]}var _g=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function crt(r,e,t,n){if(r===0||r>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(t&&t.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&n.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");let a={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:r};_g.fill(0),_g[0]=r,e&&(_g[1]=e.length),_g[2]=1,_g[3]=1,t&&_g.set(t,32),n&&_g.set(n,48);for(let i=0;i<16;i++)a.h[i]=srt[i]^irt(_g,i*4);return e&&(gTe(a,e),a.c=128),a}function gTe(r,e){for(let t=0;t>2]>>8*(t&3);return e}function lrt(r,e,t,n,a){t=t||64,r=Sle.normalizeInput(r),n&&(n=Sle.normalizeInput(n)),a&&(a=Sle.normalizeInput(a));let i=crt(t,e,n,a);return gTe(i,r),urt(i)}function Y4r(r,e,t,n,a){let i=lrt(r,e,t,n,a);return Sle.toHex(i)}drt.exports={blake2b:lrt,blake2bHex:Y4r,blake2bInit:crt,blake2bUpdate:gTe,blake2bFinal:urt}});var wrt=_((UWn,vrt)=>{d();p();var hrt=yTe();function $4r(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function Tg(r,e,t,n,a,i){gn[r]=gn[r]+gn[e]+a,gn[n]=Rle(gn[n]^gn[r],16),gn[t]=gn[t]+gn[n],gn[e]=Rle(gn[e]^gn[t],12),gn[r]=gn[r]+gn[e]+i,gn[n]=Rle(gn[n]^gn[r],8),gn[t]=gn[t]+gn[n],gn[e]=Rle(gn[e]^gn[t],7)}function Rle(r,e){return r>>>e^r<<32-e}var frt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),yu=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),gn=new Uint32Array(16),xc=new Uint32Array(16);function mrt(r,e){let t=0;for(t=0;t<8;t++)gn[t]=r.h[t],gn[t+8]=frt[t];for(gn[12]^=r.t,gn[13]^=r.t/4294967296,e&&(gn[14]=~gn[14]),t=0;t<16;t++)xc[t]=$4r(r.b,4*t);for(t=0;t<10;t++)Tg(0,4,8,12,xc[yu[t*16+0]],xc[yu[t*16+1]]),Tg(1,5,9,13,xc[yu[t*16+2]],xc[yu[t*16+3]]),Tg(2,6,10,14,xc[yu[t*16+4]],xc[yu[t*16+5]]),Tg(3,7,11,15,xc[yu[t*16+6]],xc[yu[t*16+7]]),Tg(0,5,10,15,xc[yu[t*16+8]],xc[yu[t*16+9]]),Tg(1,6,11,12,xc[yu[t*16+10]],xc[yu[t*16+11]]),Tg(2,7,8,13,xc[yu[t*16+12]],xc[yu[t*16+13]]),Tg(3,4,9,14,xc[yu[t*16+14]],xc[yu[t*16+15]]);for(t=0;t<8;t++)r.h[t]^=gn[t]^gn[t+8]}function yrt(r,e){if(!(r>0&&r<=32))throw new Error("Incorrect output length, should be in [1, 32]");let t=e?e.length:0;if(e&&!(t>0&&t<=32))throw new Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(frt),b:new Uint8Array(64),c:0,t:0,outlen:r};return n.h[0]^=16842752^t<<8^r,t>0&&(bTe(n,e),n.c=64),n}function bTe(r,e){for(let t=0;t>2]>>8*(t&3)&255;return e}function brt(r,e,t){t=t||32,r=hrt.normalizeInput(r);let n=yrt(t,e);return bTe(n,r),grt(n)}function Q4r(r,e,t){let n=brt(r,e,t);return hrt.toHex(n)}vrt.exports={blake2s:brt,blake2sHex:Q4r,blake2sInit:yrt,blake2sUpdate:bTe,blake2sFinal:grt}});var _rt=_((zWn,xrt)=>{d();p();var lX=prt(),dX=wrt();xrt.exports={blake2b:lX.blake2b,blake2bHex:lX.blake2bHex,blake2bInit:lX.blake2bInit,blake2bUpdate:lX.blake2bUpdate,blake2bFinal:lX.blake2bFinal,blake2s:dX.blake2s,blake2sHex:dX.blake2sHex,blake2sInit:dX.blake2sInit,blake2sUpdate:dX.blake2sUpdate,blake2sFinal:dX.blake2sFinal}});var Ert=_((VWn,Irt)=>{"use strict";d();p();var zG=_rt(),J4r=45569,Z4r=45633,X4r={init:zG.blake2bInit,update:zG.blake2bUpdate,digest:zG.blake2bFinal},ekr={init:zG.blake2sInit,update:zG.blake2sUpdate,digest:zG.blake2sFinal},Trt=(r,e)=>async t=>{let n=e.init(r,null);return e.update(n,t),e.digest(n)};Irt.exports=r=>{for(let e=0;e<64;e++)r[J4r+e]=Trt(e+1,X4r);for(let e=0;e<32;e++)r[Z4r+e]=Trt(e+1,ekr)}});var Art=_((QWn,krt)=>{"use strict";d();p();var em=m2e(),Crt=Ztt(),{factory:Mle}=ert(),{fromNumberTo32BitBuf:tkr}=rrt(),{fromString:rkr}=(Jv(),nt(nX)),cp=r=>async e=>{switch(r){case"sha3-224":return new Uint8Array(em.sha3_224.arrayBuffer(e));case"sha3-256":return new Uint8Array(em.sha3_256.arrayBuffer(e));case"sha3-384":return new Uint8Array(em.sha3_384.arrayBuffer(e));case"sha3-512":return new Uint8Array(em.sha3_512.arrayBuffer(e));case"shake-128":return new Uint8Array(em.shake128.create(128).update(e).arrayBuffer());case"shake-256":return new Uint8Array(em.shake256.create(256).update(e).arrayBuffer());case"keccak-224":return new Uint8Array(em.keccak224.arrayBuffer(e));case"keccak-256":return new Uint8Array(em.keccak256.arrayBuffer(e));case"keccak-384":return new Uint8Array(em.keccak384.arrayBuffer(e));case"keccak-512":return new Uint8Array(em.keccak512.arrayBuffer(e));case"murmur3-128":return rkr(Crt.x64.hash128(e),"base16");case"murmur3-32":return tkr(Crt.x86.hash32(e));default:throw new TypeError(`${r} is not a supported algorithm`)}},nkr=r=>r;krt.exports={identity:nkr,sha1:Mle("sha1"),sha2256:Mle("sha2-256"),sha2512:Mle("sha2-512"),dblSha2256:Mle("dbl-sha2-256"),sha3224:cp("sha3-224"),sha3256:cp("sha3-256"),sha3384:cp("sha3-384"),sha3512:cp("sha3-512"),shake128:cp("shake-128"),shake256:cp("shake-256"),keccak224:cp("keccak-224"),keccak256:cp("keccak-256"),keccak384:cp("keccak-384"),keccak512:cp("keccak-512"),murmur3128:cp("murmur3-128"),murmur332:cp("murmur3-32"),addBlake:Ert()}});var wTe={};cr(wTe,{equals:()=>vTe});function vTe(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{d();p()});var pX=_((tUn,Srt)=>{"use strict";d();p();var Prt=Kv(),Ble=oX(),qo=Art(),{equals:akr}=(Nle(),nt(wTe));async function up(r,e,t){let n=await up.digest(r,e,t);return Ble.encode(n,e,t)}up.multihash=Ble;up.digest=async(r,e,t)=>{let a=await up.createHash(e)(r);return t?a.slice(0,t):a};up.createHash=function(r){if(!r)throw Prt(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");let e=Ble.coerceCode(r);if(!up.functions[e])throw Prt(new Error(`multihash function '${r}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return up.functions[e]};up.functions={0:qo.identity,17:qo.sha1,18:qo.sha2256,19:qo.sha2512,20:qo.sha3512,21:qo.sha3384,22:qo.sha3256,23:qo.sha3224,24:qo.shake128,25:qo.shake256,26:qo.keccak224,27:qo.keccak256,28:qo.keccak384,29:qo.keccak512,34:qo.murmur3128,35:qo.murmur332,86:qo.dblSha2256};qo.addBlake(up.functions);up.validate=async(r,e)=>{let t=await up(r,Ble.decode(e).name);return akr(e,t)};Srt.exports=up});var Mrt=_((aUn,Rrt)=>{"use strict";d();p();var ikr=qet().bind({ignoreUndefined:!0}),skr=pX();async function okr(r){let t=(await skr(r,"murmur3-128")).slice(2,10),n=t.length,a=new Uint8Array(n);for(let i=0;i()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,pin:!1,recursive:!1,hidden:!1,preload:!1,timeout:void 0,hamtHashFn:okr,hamtHashCode:34,hamtBucketBits:8};Rrt.exports=function(r={}){return ikr(ckr,r)}});var Brt=_((oUn,Nrt)=>{"use strict";d();p();Nrt.exports=ukr;function ukr(r,e){for(var t=new Array(arguments.length-1),n=0,a=2,i=!0;a{"use strict";d();p();var Dle=Ort;Dle.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&e.charAt(t)==="=";)++n;return Math.ceil(e.length*3)/4-n};var KG=new Array(64),Lrt=new Array(123);for(Th=0;Th<64;)Lrt[KG[Th]=Th<26?Th+65:Th<52?Th+71:Th<62?Th-4:Th-59|43]=Th++;var Th;Dle.encode=function(e,t,n){for(var a=null,i=[],s=0,o=0,c;t>2],c=(u&3)<<4,o=1;break;case 1:i[s++]=KG[c|u>>4],c=(u&15)<<2,o=2;break;case 2:i[s++]=KG[c|u>>6],i[s++]=KG[u&63],o=0;break}s>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),s=0)}return o&&(i[s++]=KG[c],i[s++]=61,o===1&&(i[s++]=61)),a?(s&&a.push(String.fromCharCode.apply(String,i.slice(0,s))),a.join("")):String.fromCharCode.apply(String,i.slice(0,s))};var Drt="invalid encoding";Dle.decode=function(e,t,n){for(var a=n,i=0,s,o=0;o1)break;if((c=Lrt[c])===void 0)throw Error(Drt);switch(i){case 0:s=c,i=1;break;case 1:t[n++]=s<<2|(c&48)>>4,s=c,i=2;break;case 2:t[n++]=(s&15)<<4|(c&60)>>2,s=c,i=3;break;case 3:t[n++]=(s&3)<<6|c,i=0;break}}if(i===1)throw Error(Drt);return n-a};Dle.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var Wrt=_((hUn,Frt)=>{"use strict";d();p();Frt.exports=Lle;function Lle(){this._listeners={}}Lle.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this};Lle.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],a=0;a{"use strict";d();p();Grt.exports=Urt(Urt);function Urt(r){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),t=new Uint8Array(e.buffer),n=t[3]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3]}function i(c,u,l){e[0]=c,u[l]=t[3],u[l+1]=t[2],u[l+2]=t[1],u[l+3]=t[0]}r.writeFloatLE=n?a:i,r.writeFloatBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],e[0]}function o(c,u){return t[3]=c[u],t[2]=c[u+1],t[1]=c[u+2],t[0]=c[u+3],e[0]}r.readFloatLE=n?s:o,r.readFloatBE=n?o:s}():function(){function e(n,a,i,s){var o=a<0?1:0;if(o&&(a=-a),a===0)n(1/a>0?0:2147483648,i,s);else if(isNaN(a))n(2143289344,i,s);else if(a>34028234663852886e22)n((o<<31|2139095040)>>>0,i,s);else if(a<11754943508222875e-54)n((o<<31|Math.round(a/1401298464324817e-60))>>>0,i,s);else{var c=Math.floor(Math.log(a)/Math.LN2),u=Math.round(a*Math.pow(2,-c)*8388608)&8388607;n((o<<31|c+127<<23|u)>>>0,i,s)}}r.writeFloatLE=e.bind(null,Hrt),r.writeFloatBE=e.bind(null,jrt);function t(n,a,i){var s=n(a,i),o=(s>>31)*2+1,c=s>>>23&255,u=s&8388607;return c===255?u?NaN:o*(1/0):c===0?o*1401298464324817e-60*u:o*Math.pow(2,c-150)*(u+8388608)}r.readFloatLE=t.bind(null,zrt),r.readFloatBE=t.bind(null,Krt)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),n=t[7]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3],u[l+4]=t[4],u[l+5]=t[5],u[l+6]=t[6],u[l+7]=t[7]}function i(c,u,l){e[0]=c,u[l]=t[7],u[l+1]=t[6],u[l+2]=t[5],u[l+3]=t[4],u[l+4]=t[3],u[l+5]=t[2],u[l+6]=t[1],u[l+7]=t[0]}r.writeDoubleLE=n?a:i,r.writeDoubleBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],t[4]=c[u+4],t[5]=c[u+5],t[6]=c[u+6],t[7]=c[u+7],e[0]}function o(c,u){return t[7]=c[u],t[6]=c[u+1],t[5]=c[u+2],t[4]=c[u+3],t[3]=c[u+4],t[2]=c[u+5],t[1]=c[u+6],t[0]=c[u+7],e[0]}r.readDoubleLE=n?s:o,r.readDoubleBE=n?o:s}():function(){function e(n,a,i,s,o,c){var u=s<0?1:0;if(u&&(s=-s),s===0)n(0,o,c+a),n(1/s>0?0:2147483648,o,c+i);else if(isNaN(s))n(0,o,c+a),n(2146959360,o,c+i);else if(s>17976931348623157e292)n(0,o,c+a),n((u<<31|2146435072)>>>0,o,c+i);else{var l;if(s<22250738585072014e-324)l=s/5e-324,n(l>>>0,o,c+a),n((u<<31|l/4294967296)>>>0,o,c+i);else{var h=Math.floor(Math.log(s)/Math.LN2);h===1024&&(h=1023),l=s*Math.pow(2,-h),n(l*4503599627370496>>>0,o,c+a),n((u<<31|h+1023<<20|l*1048576&1048575)>>>0,o,c+i)}}}r.writeDoubleLE=e.bind(null,Hrt,0,4),r.writeDoubleBE=e.bind(null,jrt,4,0);function t(n,a,i,s,o){var c=n(s,o+a),u=n(s,o+i),l=(u>>31)*2+1,h=u>>>20&2047,f=4294967296*(u&1048575)+c;return h===2047?f?NaN:l*(1/0):h===0?l*5e-324*f:l*Math.pow(2,h-1075)*(f+4503599627370496)}r.readDoubleLE=t.bind(null,zrt,0,4),r.readDoubleBE=t.bind(null,Krt,4,0)}(),r}function Hrt(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}function jrt(r,e,t){e[t]=r>>>24,e[t+1]=r>>>16&255,e[t+2]=r>>>8&255,e[t+3]=r&255}function zrt(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24)>>>0}function Krt(r,e){return(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}});var Yrt=_((exports,module)=>{"use strict";d();p();module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}});var Qrt=_($rt=>{"use strict";d();p();var xTe=$rt;xTe.length=function(e){for(var t=0,n=0,a=0;a191&&c<224?s[o++]=(c&31)<<6|e[t++]&63:c>239&&c<365?(c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,s[o++]=55296+(c>>10),s[o++]=56320+(c&1023)):s[o++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63,o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};xTe.write=function(e,t,n){for(var a=n,i,s,o=0;o>6|192,t[n++]=i&63|128):(i&64512)===55296&&((s=e.charCodeAt(o+1))&64512)===56320?(i=65536+((i&1023)<<10)+(s&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-a}});var Zrt=_((IUn,Jrt)=>{"use strict";d();p();Jrt.exports=lkr;function lkr(r,e,t){var n=t||8192,a=n>>>1,i=null,s=n;return function(c){if(c<1||c>a)return r(c);s+c>n&&(i=r(n),s=0);var u=e.call(i,s,s+=c);return s&7&&(s=(s|7)+1),u}}});var ent=_((kUn,Xrt)=>{"use strict";d();p();Xrt.exports=Fo;var hX=Eg();function Fo(r,e){this.lo=r>>>0,this.hi=e>>>0}var Xv=Fo.zero=new Fo(0,0);Xv.toNumber=function(){return 0};Xv.zzEncode=Xv.zzDecode=function(){return this};Xv.length=function(){return 1};var dkr=Fo.zeroHash="\0\0\0\0\0\0\0\0";Fo.fromNumber=function(e){if(e===0)return Xv;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new Fo(n,a)};Fo.from=function(e){if(typeof e=="number")return Fo.fromNumber(e);if(hX.isString(e))if(hX.Long)e=hX.Long.fromString(e);else return Fo.fromNumber(parseInt(e,10));return e.low||e.high?new Fo(e.low>>>0,e.high>>>0):Xv};Fo.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296};Fo.prototype.toLong=function(e){return hX.Long?new hX.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var Ig=String.prototype.charCodeAt;Fo.fromHash=function(e){return e===dkr?Xv:new Fo((Ig.call(e,0)|Ig.call(e,1)<<8|Ig.call(e,2)<<16|Ig.call(e,3)<<24)>>>0,(Ig.call(e,4)|Ig.call(e,5)<<8|Ig.call(e,6)<<16|Ig.call(e,7)<<24)>>>0)};Fo.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};Fo.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};Fo.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};Fo.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}});var Eg=_(_Te=>{"use strict";d();p();var ut=_Te;ut.asPromise=Brt();ut.base64=qrt();ut.EventEmitter=Wrt();ut.float=Vrt();ut.inquire=Yrt();ut.utf8=Qrt();ut.pool=Zrt();ut.LongBits=ent();ut.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);ut.global=ut.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||_Te;ut.emptyArray=Object.freeze?Object.freeze([]):[];ut.emptyObject=Object.freeze?Object.freeze({}):{};ut.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};ut.isString=function(e){return typeof e=="string"||e instanceof String};ut.isObject=function(e){return e&&typeof e=="object"};ut.isset=ut.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};ut.Buffer=function(){try{var r=ut.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();ut._Buffer_from=null;ut._Buffer_allocUnsafe=null;ut.newBuffer=function(e){return typeof e=="number"?ut.Buffer?ut._Buffer_allocUnsafe(e):new ut.Array(e):ut.Buffer?ut._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};ut.Array=typeof Uint8Array<"u"?Uint8Array:Array;ut.Long=ut.global.dcodeIO&&ut.global.dcodeIO.Long||ut.global.Long||ut.inquire("long");ut.key2Re=/^true|false|0|1$/;ut.key32Re=/^-?(?:0|[1-9][0-9]*)$/;ut.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;ut.longToHash=function(e){return e?ut.LongBits.from(e).toHash():ut.LongBits.zeroHash};ut.longFromHash=function(e,t){var n=ut.LongBits.fromHash(e);return ut.Long?ut.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))};function tnt(r,e,t){for(var n=Object.keys(e),a=0;a-1;--i)if(t[a[i]]===1&&this[a[i]]!==void 0&&this[a[i]]!==null)return a[i]}};ut.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";d();p();snt.exports=fn;var lp=Eg(),TTe,Ole=lp.LongBits,nnt=lp.base64,ant=lp.utf8;function fX(r,e,t){this.fn=r,this.len=e,this.next=void 0,this.val=t}function ETe(){}function pkr(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function fn(){this.len=0,this.head=new fX(ETe,0,0),this.tail=this.head,this.states=null}var int=function(){return lp.Buffer?function(){return(fn.create=function(){return new TTe})()}:function(){return new fn}};fn.create=int();fn.alloc=function(e){return new lp.Array(e)};lp.Array!==Array&&(fn.alloc=lp.pool(fn.alloc,lp.Array.prototype.subarray));fn.prototype._push=function(e,t,n){return this.tail=this.tail.next=new fX(e,t,n),this.len+=t,this};function CTe(r,e,t){e[t]=r&255}function hkr(r,e,t){for(;r>127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function kTe(r,e){this.len=r,this.next=void 0,this.val=e}kTe.prototype=Object.create(fX.prototype);kTe.prototype.fn=hkr;fn.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new kTe((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};fn.prototype.int32=function(e){return e<0?this._push(ATe,10,Ole.fromNumber(e)):this.uint32(e)};fn.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function ATe(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}fn.prototype.uint64=function(e){var t=Ole.from(e);return this._push(ATe,t.length(),t)};fn.prototype.int64=fn.prototype.uint64;fn.prototype.sint64=function(e){var t=Ole.from(e).zzEncode();return this._push(ATe,t.length(),t)};fn.prototype.bool=function(e){return this._push(CTe,1,e?1:0)};function ITe(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}fn.prototype.fixed32=function(e){return this._push(ITe,4,e>>>0)};fn.prototype.sfixed32=fn.prototype.fixed32;fn.prototype.fixed64=function(e){var t=Ole.from(e);return this._push(ITe,4,t.lo)._push(ITe,4,t.hi)};fn.prototype.sfixed64=fn.prototype.fixed64;fn.prototype.float=function(e){return this._push(lp.float.writeFloatLE,4,e)};fn.prototype.double=function(e){return this._push(lp.float.writeDoubleLE,8,e)};var fkr=lp.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var a=0;a>>0;if(!t)return this._push(CTe,1,0);if(lp.isString(e)){var n=fn.alloc(t=nnt.length(e));nnt.decode(e,n,0),e=n}return this.uint32(t)._push(fkr,t,e)};fn.prototype.string=function(e){var t=ant.length(e);return t?this.uint32(t)._push(ant.write,t,e):this._push(CTe,1,0)};fn.prototype.fork=function(){return this.states=new pkr(this),this.head=this.tail=new fX(ETe,0,0),this.len=0,this};fn.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new fX(ETe,0,0),this.len=0),this};fn.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};fn.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};fn._configure=function(r){TTe=r,fn.create=int(),TTe._configure()}});var unt=_((LUn,cnt)=>{"use strict";d();p();cnt.exports=tm;var ont=PTe();(tm.prototype=Object.create(ont.prototype)).constructor=tm;var Cg=Eg();function tm(){ont.call(this)}tm._configure=function(){tm.alloc=Cg._Buffer_allocUnsafe,tm.writeBytesBuffer=Cg.Buffer&&Cg.Buffer.prototype instanceof Uint8Array&&Cg.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var a=0;a>>0;return this.uint32(t),t&&this._push(tm.writeBytesBuffer,t,e),this};function mkr(r,e,t){r.length<40?Cg.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}tm.prototype.string=function(e){var t=Cg.Buffer.byteLength(e);return this.uint32(t),t&&this._push(mkr,t,e),this};tm._configure()});var MTe=_((FUn,fnt)=>{"use strict";d();p();fnt.exports=Ts;var rm=Eg(),RTe,pnt=rm.LongBits,ykr=rm.utf8;function Ih(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function Ts(r){this.buf=r,this.pos=0,this.len=r.length}var lnt=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Ts(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Ts(e);throw Error("illegal buffer")},hnt=function(){return rm.Buffer?function(t){return(Ts.create=function(a){return rm.Buffer.isBuffer(a)?new RTe(a):lnt(a)})(t)}:lnt};Ts.create=hnt();Ts.prototype._slice=rm.Array.prototype.subarray||rm.Array.prototype.slice;Ts.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,Ih(this,10);return e}}();Ts.prototype.int32=function(){return this.uint32()|0};Ts.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function STe(){var r=new pnt(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw Ih(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw Ih(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}Ts.prototype.bool=function(){return this.uint32()!==0};function qle(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}Ts.prototype.fixed32=function(){if(this.pos+4>this.len)throw Ih(this,4);return qle(this.buf,this.pos+=4)};Ts.prototype.sfixed32=function(){if(this.pos+4>this.len)throw Ih(this,4);return qle(this.buf,this.pos+=4)|0};function dnt(){if(this.pos+8>this.len)throw Ih(this,8);return new pnt(qle(this.buf,this.pos+=4),qle(this.buf,this.pos+=4))}Ts.prototype.float=function(){if(this.pos+4>this.len)throw Ih(this,4);var e=rm.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Ts.prototype.double=function(){if(this.pos+8>this.len)throw Ih(this,4);var e=rm.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Ts.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw Ih(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};Ts.prototype.string=function(){var e=this.bytes();return ykr.read(e,0,e.length)};Ts.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw Ih(this,e);this.pos+=e}else do if(this.pos>=this.len)throw Ih(this);while(this.buf[this.pos++]&128);return this};Ts.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};Ts._configure=function(r){RTe=r,Ts.create=hnt(),RTe._configure();var e=rm.Long?"toLong":"toNumber";rm.merge(Ts.prototype,{int64:function(){return STe.call(this)[e](!1)},uint64:function(){return STe.call(this)[e](!0)},sint64:function(){return STe.call(this).zzDecode()[e](!1)},fixed64:function(){return dnt.call(this)[e](!0)},sfixed64:function(){return dnt.call(this)[e](!1)}})}});var bnt=_((HUn,gnt)=>{"use strict";d();p();gnt.exports=e2;var ynt=MTe();(e2.prototype=Object.create(ynt.prototype)).constructor=e2;var mnt=Eg();function e2(r){ynt.call(this,r)}e2._configure=function(){mnt.Buffer&&(e2.prototype._slice=mnt.Buffer.prototype.slice)};e2.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};e2._configure()});var wnt=_((KUn,vnt)=>{"use strict";d();p();vnt.exports=mX;var NTe=Eg();(mX.prototype=Object.create(NTe.EventEmitter.prototype)).constructor=mX;function mX(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");NTe.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(t)}mX.prototype.rpcCall=function r(e,t,n,a,i){if(!a)throw TypeError("request must be specified");var s=this;if(!i)return NTe.asPromise(r,s,e,t,n,a);if(!s.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(c,u){if(c)return s.emit("error",c,e),i(c);if(u===null){s.end(!0);return}if(!(u instanceof n))try{u=n[s.responseDelimited?"decodeDelimited":"decode"](u)}catch(l){return s.emit("error",l,e),i(l)}return s.emit("data",u,e),i(null,u)})}catch(o){s.emit("error",o,e),setTimeout(function(){i(o)},0);return}};mX.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var _nt=_(xnt=>{"use strict";d();p();var gkr=xnt;gkr.Service=wnt()});var Int=_((JUn,Tnt)=>{"use strict";d();p();Tnt.exports={}});var knt=_(Cnt=>{"use strict";d();p();var bl=Cnt;bl.build="minimal";bl.Writer=PTe();bl.BufferWriter=unt();bl.Reader=MTe();bl.BufferReader=bnt();bl.util=Eg();bl.rpc=_nt();bl.roots=Int();bl.configure=Ent;function Ent(){bl.util._configure(),bl.Writer._configure(bl.BufferWriter),bl.Reader._configure(bl.BufferReader)}Ent()});var Fle=_((nHn,Ant)=>{"use strict";d();p();Ant.exports=knt()});var Snt=_((sHn,Pnt)=>{"use strict";d();p();var kg=Fle(),GG=kg.Reader,BTe=kg.Writer,Qt=kg.util,Wo=kg.roots["ipfs-unixfs"]||(kg.roots["ipfs-unixfs"]={});Wo.Data=function(){function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Type=t.int32();break;case 2:i.Data=t.bytes();break;case 3:i.filesize=t.uint64();break;case 4:if(i.blocksizes&&i.blocksizes.length||(i.blocksizes=[]),(s&7)===2)for(var o=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var a=0;a>>0,t.blocksizes[a].high>>>0).toNumber(!0))}if(t.hashType!=null&&(Qt.Long?(n.hashType=Qt.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new Qt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&(Qt.Long?(n.fanout=Qt.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new Qt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=Wo.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var a={};if((n.arrays||n.defaults)&&(a.blocksizes=[]),n.defaults){if(a.Type=n.enums===String?"Raw":0,n.bytes===String?a.Data="":(a.Data=[],n.bytes!==Array&&(a.Data=Qt.newBuffer(a.Data))),Qt.Long){var i=new Qt.Long(0,0,!0);a.filesize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.filesize=n.longs===String?"0":0;if(Qt.Long){var i=new Qt.Long(0,0,!0);a.hashType=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.hashType=n.longs===String?"0":0;if(Qt.Long){var i=new Qt.Long(0,0,!0);a.fanout=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.fanout=n.longs===String?"0":0;a.mode=0,a.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(a.Type=n.enums===String?Wo.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(a.Data=n.bytes===String?Qt.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?a.filesize=n.longs===String?String(t.filesize):t.filesize:a.filesize=n.longs===String?Qt.Long.prototype.toString.call(t.filesize):n.longs===Number?new Qt.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){a.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?a.hashType=n.longs===String?String(t.hashType):t.hashType:a.hashType=n.longs===String?Qt.Long.prototype.toString.call(t.hashType):n.longs===Number?new Qt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?a.fanout=n.longs===String?String(t.fanout):t.fanout:a.fanout=n.longs===String?Qt.Long.prototype.toString.call(t.fanout):n.longs===Number?new Qt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(a.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(a.mtime=Wo.UnixTime.toObject(t.mtime,n)),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,kg.util.toJSONOptions)},r.DataType=function(){var e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r}();Wo.UnixTime=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Seconds=t.int64();break;case 2:i.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!i.hasOwnProperty("Seconds"))throw Qt.ProtocolError("missing required 'Seconds'",{instance:i});return i},r.fromObject=function(t){if(t instanceof Wo.UnixTime)return t;var n=new Wo.UnixTime;return t.Seconds!=null&&(Qt.Long?(n.Seconds=Qt.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new Qt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults){if(Qt.Long){var i=new Qt.Long(0,0,!1);a.Seconds=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Seconds=n.longs===String?"0":0;a.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?a.Seconds=n.longs===String?String(t.Seconds):t.Seconds:a.Seconds=n.longs===String?Qt.Long.prototype.toString.call(t.Seconds):n.longs===Number?new Qt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(a.FractionalNanoseconds=t.FractionalNanoseconds),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,kg.util.toJSONOptions)},r}();Wo.Metadata=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.MimeType=t.string();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof Wo.Metadata)return t;var n=new Wo.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var a={};return n.defaults&&(a.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(a.MimeType=t.MimeType),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,kg.util.toJSONOptions)},r}();Pnt.exports=Wo});var VG=_((uHn,Bnt)=>{"use strict";d();p();var{Data:T0}=Snt(),DTe=Kv(),Rnt=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],bkr=["directory","hamt-sharded-directory"],Mnt=parseInt("0644",8),Nnt=parseInt("0755",8);function Wle(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function LTe(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){let t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(!!Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw DTe(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}var yX=class{static unmarshal(e){let t=T0.decode(e),n=T0.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),a=new yX({type:Rnt[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return a._originalMode=n.mode||0,a}constructor(e={type:"file"}){let{type:t,data:n,blockSizes:a,hashType:i,fanout:s,mtime:o,mode:c}=e;if(t&&!Rnt.includes(t))throw DTe(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=i,this.fanout=s,this.blockSizes=a||[],this._originalMode=0,this.mode=Wle(c),o&&(this.mtime=LTe(o),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?Nnt:Mnt;let t=Wle(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return Boolean(this.type&&bkr.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=T0.DataType.Raw;break;case"directory":e=T0.DataType.Directory;break;case"file":e=T0.DataType.File;break;case"metadata":e=T0.DataType.Metadata;break;case"symlink":e=T0.DataType.Symlink;break;case"hamt-sharded-directory":e=T0.DataType.HAMTShard;break;default:throw DTe(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(Wle(this.mode)||0),n===Mnt&&!this.isDirectory()&&(n=void 0),n===Nnt&&this.isDirectory()&&(n=void 0));let a;if(this.mtime!=null){let s=LTe(this.mtime);s&&(a={Seconds:s.secs,FractionalNanoseconds:s.nsecs},a.FractionalNanoseconds===0&&delete a.FractionalNanoseconds)}let i={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:a};return T0.encode(i).finish()}};Bnt.exports={UnixFS:yX,parseMode:Wle,parseMtime:LTe}});var Ont=_((pHn,Lnt)=>{d();p();Lnt.exports=OTe;var Dnt=128,vkr=127,wkr=~vkr,xkr=Math.pow(2,31);function OTe(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw OTe.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=xkr;)e[t++]=r&255|Dnt,r/=128;for(;r&wkr;)e[t++]=r&255|Dnt,r>>>=7;return e[t]=r|0,OTe.bytes=t-n+1,e}});var Wnt=_((mHn,Fnt)=>{d();p();Fnt.exports=qTe;var _kr=128,qnt=127;function qTe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o||a>49)throw qTe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&qnt)<=_kr);return qTe.bytes=i-n,t}});var Hnt=_((bHn,Unt)=>{d();p();var Tkr=Math.pow(2,7),Ikr=Math.pow(2,14),Ekr=Math.pow(2,21),Ckr=Math.pow(2,28),kkr=Math.pow(2,35),Akr=Math.pow(2,42),Pkr=Math.pow(2,49),Skr=Math.pow(2,56),Rkr=Math.pow(2,63);Unt.exports=function(r){return r{d();p();jnt.exports={encode:Ont(),decode:Wnt(),encodingLength:Hnt()}});var WTe=_((IHn,Gnt)=>{"use strict";d();p();var znt=FTe(),{toString:Mkr}=(WG(),nt(Ele)),{fromString:Nkr}=(Jv(),nt(nX));Gnt.exports={numberToUint8Array:Bkr,uint8ArrayToNumber:Knt,varintUint8ArrayEncode:Dkr,varintEncode:Lkr};function Knt(r){return parseInt(Mkr(r,"base16"),16)}function Bkr(r){let e=r.toString(16);return e.length%2===1&&(e="0"+e),Nkr(e,"base16")}function Dkr(r){return Uint8Array.from(znt.encode(Knt(r)))}function Lkr(r){return Uint8Array.from(znt.encode(r))}});var Ynt=_((kHn,Vnt)=>{"use strict";d();p();var Okr=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});Vnt.exports={baseTable:Okr}});var Qnt=_((SHn,$nt)=>{"use strict";d();p();var{baseTable:UTe}=Ynt(),qkr=WTe().varintEncode,HTe={},jTe={},Ule={};for(let r in UTe){let e=r,t=UTe[e];HTe[e]=qkr(t);let n=e.toUpperCase().replace(/-/g,"_");jTe[n]=t,Ule[t]||(Ule[t]=e)}Object.freeze(HTe);Object.freeze(jTe);Object.freeze(Ule);var Fkr=Object.freeze(UTe);$nt.exports={nameToVarint:HTe,constantToCode:jTe,nameToCode:Fkr,codeToName:Ule}});var KTe=_((NHn,iat)=>{"use strict";d();p();var Hle=FTe(),{concat:Wkr}=(Zv(),nt(iX)),Jnt=WTe(),{nameToVarint:jle,constantToCode:Ukr,nameToCode:Znt,codeToName:zTe}=Qnt();function Hkr(r,e){let t;if(r instanceof Uint8Array)t=Jnt.varintUint8ArrayEncode(r);else if(jle[r])t=jle[r];else throw new Error("multicodec not recognized");return Wkr([t,e],t.length+e.length)}function jkr(r){return Hle.decode(r),r.slice(Hle.decode.bytes)}function Xnt(r){let e=Hle.decode(r),t=zTe[e];if(t===void 0)throw new Error(`Code "${e}" not found`);return t}function eat(r){return zTe[r]}function tat(r){let e=Znt[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function rat(r){return Hle.decode(r)}function nat(r){let e=jle[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function aat(r){return Jnt.varintEncode(r)}function zkr(r){return Xnt(r)}function Kkr(r){return eat(r)}function Gkr(r){return tat(r)}function Vkr(r){return rat(r)}function Ykr(r){return nat(r)}function $kr(r){return Array.from(aat(r))}iat.exports={addPrefix:Hkr,rmPrefix:jkr,getNameFromData:Xnt,getNameFromCode:eat,getCodeFromName:tat,getCodeFromData:rat,getVarintFromName:nat,getVarintFromCode:aat,getCodec:zkr,getName:Kkr,getNumber:Gkr,getCode:Vkr,getCodeVarint:Ykr,getVarint:$kr,...Ukr,nameToVarint:jle,nameToCode:Znt,codeToName:zTe}});var oat=_((LHn,sat)=>{"use strict";d();p();var Qkr=oX(),Jkr={checkCIDComponents:function(r){if(r==null)return"null values are not valid CIDs";if(!(r.version===0||r.version===1))return"Invalid version, must be a number equal to 1 or 0";if(typeof r.codec!="string")return"codec must be string";if(r.version===0){if(r.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(r.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!(r.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{Qkr.validate(r.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};sat.exports=Jkr});var YG=_((FHn,lat)=>{"use strict";d();p();var zle=oX(),GTe=L_e(),t2=KTe(),Zkr=oat(),{concat:cat}=(Zv(),nt(iX)),{toString:Xkr}=(WG(),nt(Ele)),{equals:eAr}=(Nle(),nt(wTe)),Kle=t2.nameToCode,tAr=Object.keys(Kle).reduce((r,e)=>(r[Kle[e]]=e,r),{}),uat=Symbol.for("@ipld/js-cid/CID"),dp=class{constructor(e,t,n,a){if(this.version,this.codec,this.multihash,Object.defineProperty(this,uat,{value:!0}),dp.isCID(e)){let i=e;this.version=i.version,this.codec=i.codec,this.multihash=i.multihash,this.multibaseName=i.multibaseName||(i.version===0?"base58btc":"base32");return}if(typeof e=="string"){let i=GTe.isEncoded(e);if(i){let s=GTe.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=t2.getCodec(s.slice(1)),this.multihash=t2.rmPrefix(s.slice(1)),this.multibaseName=i}else this.version=0,this.codec="dag-pb",this.multihash=zle.fromB58String(e),this.multibaseName="base58btc";dp.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let i=parseInt(e[0].toString(),16);if(i===1){let s=e;this.version=i,this.codec=t2.getCodec(s.slice(1)),this.multihash=t2.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";dp.validateCID(this);return}this.version=e,typeof t=="number"&&(t=tAr[t]),this.codec=t,this.multihash=n,this.multibaseName=a||(e===0?"base58btc":"base32"),dp.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(this.version===0)e=this.multihash;else if(this.version===1){let t=t2.getCodeVarint(this.codec);e=cat([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}else throw new Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=t2.getCodeVarint(this.codec),t=zle.prefix(this.multihash);return cat([[this.version],e,t],1+e.byteLength+t.byteLength)}get code(){return Kle[this.codec]}toV0(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:t}=zle.decode(this.multihash);if(e!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(t!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new dp(0,this.codec,this.multihash)}toV1(){return new dp(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&this.string.length!==0&&e===this.multibaseName)return this.string;let t;if(this.version===0){if(e!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=zle.toB58String(this.multihash)}else if(this.version===1)t=Xkr(GTe.encode(e,this.bytes));else throw new Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&eAr(this.multihash,e.multihash)}static validateCID(e){let t=Zkr.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof dp||Boolean(e&&e[uat])}};dp.codecs=Kle;lat.exports=dp});var $G=_((HHn,dat)=>{"use strict";d();p();var rAr=pX(),nAr=YG(),aAr=async(r,e,t)=>{t.codec||(t.codec="dag-pb"),t.cidVersion||(t.cidVersion=0),t.hashAlg||(t.hashAlg="sha2-256"),t.hashAlg!=="sha2-256"&&(t.cidVersion=1);let n=await rAr(r,t.hashAlg),a=new nAr(t.cidVersion,t.codec,n);return t.onlyHash||await e.put(r,{pin:t.pin,preload:t.preload,timeout:t.timeout,cid:a}),a};dat.exports=aAr});var VTe=_((KHn,hat)=>{"use strict";d();p();var r2=Fle(),Gle=r2.Reader,pat=r2.Writer,ss=r2.util,td=r2.roots.default||(r2.roots.default={});td.PBLink=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Hash=t.bytes();break;case 2:i.Name=t.string();break;case 3:i.Tsize=t.uint64();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof td.PBLink)return t;var n=new td.PBLink;return t.Hash!=null&&(typeof t.Hash=="string"?ss.base64.decode(t.Hash,n.Hash=ss.newBuffer(ss.base64.length(t.Hash)),0):t.Hash.length&&(n.Hash=t.Hash)),t.Name!=null&&(n.Name=String(t.Name)),t.Tsize!=null&&(ss.Long?(n.Tsize=ss.Long.fromValue(t.Tsize)).unsigned=!0:typeof t.Tsize=="string"?n.Tsize=parseInt(t.Tsize,10):typeof t.Tsize=="number"?n.Tsize=t.Tsize:typeof t.Tsize=="object"&&(n.Tsize=new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0))),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults)if(n.bytes===String?a.Hash="":(a.Hash=[],n.bytes!==Array&&(a.Hash=ss.newBuffer(a.Hash))),a.Name="",ss.Long){var i=new ss.Long(0,0,!0);a.Tsize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Tsize=n.longs===String?"0":0;return t.Hash!=null&&t.hasOwnProperty("Hash")&&(a.Hash=n.bytes===String?ss.base64.encode(t.Hash,0,t.Hash.length):n.bytes===Array?Array.prototype.slice.call(t.Hash):t.Hash),t.Name!=null&&t.hasOwnProperty("Name")&&(a.Name=t.Name),t.Tsize!=null&&t.hasOwnProperty("Tsize")&&(typeof t.Tsize=="number"?a.Tsize=n.longs===String?String(t.Tsize):t.Tsize:a.Tsize=n.longs===String?ss.Long.prototype.toString.call(t.Tsize):n.longs===Number?new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0):t.Tsize),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,r2.util.toJSONOptions)},r}();td.PBNode=function(){function r(e){if(this.Links=[],e)for(var t=Object.keys(e),n=0;n>>3){case 2:i.Links&&i.Links.length||(i.Links=[]),i.Links.push(td.PBLink.decode(t,t.uint32()));break;case 1:i.Data=t.bytes();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof td.PBNode)return t;var n=new td.PBNode;if(t.Links){if(!Array.isArray(t.Links))throw TypeError(".PBNode.Links: array expected");n.Links=[];for(var a=0;a{"use strict";d();p();var{bases:fat}=(dTe(),nt(Utt));function yat(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var mat=yat("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),YTe=yat("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=new Uint8Array(r.length);for(let t=0;t{"use strict";d();p();var sAr=$Te();function oAr(r,e="utf8"){let t=sAr[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.decoder.decode(`${t.prefix}${r}`)}bat.exports=oAr});var n2=_((ejn,vat)=>{"use strict";d();p();var cAr=YG(),uAr=Vle(),QTe=class{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");this.Name=e||"",this.Tsize=t,this.Hash=new cAr(n),Object.defineProperties(this,{_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return this._nameBuf!=null?this._nameBuf:(this._nameBuf=uAr(this.Name),this._nameBuf)}};vat.exports=QTe});var wat=_((JTe,ZTe)=>{d();p();(function(r,e){typeof JTe=="object"&&typeof ZTe<"u"?ZTe.exports=e():typeof define=="function"&&define.amd?define(e):r.stable=e()})(JTe,function(){"use strict";var r=function(n,a){return e(n.slice(),a)};r.inplace=function(n,a){var i=e(n,a);return i!==n&&t(i,null,n.length,n),n};function e(n,a){typeof a!="function"&&(a=function(u,l){return String(u).localeCompare(l)});var i=n.length;if(i<=1)return n;for(var s=new Array(i),o=1;oo&&(h=o),f>o&&(f=o),m=l,y=h;;)if(m{"use strict";d();p();function lAr(r,e){for(let t=0;te[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{"use strict";d();p();var dAr=wat(),pAr=_at(),hAr=(r,e)=>{let t=r.nameAsBuffer,n=e.nameAsBuffer;return pAr(t,n)},fAr=r=>{dAr.inplace(r,hAr)};Tat.exports=fAr});var e6e=_((djn,Iat)=>{"use strict";d();p();var mAr=n2();function yAr(r){return new mAr(r.Name||r.name||"",r.Tsize||r.Size||r.size||0,r.Hash||r.hash||r.multihash||r.cid)}Iat.exports={createDagLinkFromB58EncodedHash:yAr}});var t6e=_((fjn,kat)=>{"use strict";d();p();var gAr=Fle(),{PBLink:bAr}=VTe(),{createDagLinkFromB58EncodedHash:vAr}=e6e(),Eat=r=>{let e={};return r.Data&&r.Data.byteLength>0?e.Data=r.Data:e.Data=null,r.Links&&r.Links.length>0?e.Links=r.Links.map(t=>({Hash:t.Hash.bytes,Name:t.Name,Tsize:t.Tsize})):e.Links=null,e},wAr=r=>Cat(Eat(r)),xAr=(r,e=[])=>{let t={Data:r,Links:e.map(n=>vAr(n))};return Cat(Eat(t))};kat.exports={serializeDAGNode:wAr,serializeDAGNodeLike:xAr};function Cat(r){let e=gAr.Writer.create();if(r.Links!=null)for(let t=0;t{"use strict";d();p();var _Ar=YG(),Aat=KTe(),Pat=pX(),{multihash:Sat}=Pat,Rat=Aat.DAG_PB,Mat=Sat.names["sha2-256"],TAr=async(r,e={})=>{let t={cidVersion:e.cidVersion==null?1:e.cidVersion,hashAlg:e.hashAlg==null?Mat:e.hashAlg},n=Sat.codes[t.hashAlg],a=await Pat(r,n),i=Aat.getNameFromCode(Rat);return new _Ar(t.cidVersion,i,a)};Nat.exports={codec:Rat,defaultHashAlg:Mat,cid:TAr}});var Dat=_((wjn,Bat)=>{"use strict";d();p();var IAr=n2(),EAr=r6e(),CAr=async(r,e={})=>{let t=r.serialize(),n=await EAr.cid(t,e);return new IAr(e.name||"",r.size,n)};Bat.exports=CAr});var qat=_((Tjn,Oat)=>{"use strict";d();p();var kAr=XTe(),Lat=n2(),AAr=r=>{if(r instanceof Lat)return r;if(!("cid"in r||"hash"in r||"Hash"in r||"multihash"in r))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new Lat(r.Name||r.name,r.Tsize||r.size,r.Hash||r.multihash||r.hash||r.cid)},PAr=(r,e)=>{let t=AAr(e);r.Links.push(t),kAr(r.Links)};Oat.exports=PAr});var Wat=_((Cjn,Fat)=>{"use strict";d();p();function SAr(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{"use strict";d();p();var RAr=YG(),Uat=Wat(),MAr=(r,e)=>{let t=null;if(typeof e=="string"?t=n=>n.Name===e:e instanceof Uint8Array?t=n=>Uat(n.Hash.bytes,e):RAr.isCID(e)&&(t=n=>Uat(n.Hash.bytes,e.bytes)),t){let n=r.Links,a=0;for(;a{"use strict";d();p();var NAr=$Te();function BAr(r,e="utf8"){let t=NAr[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.encoder.encode(r).substring(1)}zat.exports=BAr});var a6e=_((Djn,Gat)=>{"use strict";d();p();var DAr=XTe(),LAr=n2(),{createDagLinkFromB58EncodedHash:OAr}=e6e(),{serializeDAGNode:qAr}=t6e(),FAr=Dat(),WAr=qat(),UAr=jat(),HAr=Vle(),jAr=Kat(),n6e=class{constructor(e,t=[],n=null){if(e||(e=new Uint8Array(0)),typeof e=="string"&&(e=HAr(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(n!==null&&typeof n!="number")throw new Error("Passed 'serializedSize' must be a number!");let a=t.map(i=>i instanceof LAr?i:OAr(i));DAr(a),this.Data=e,this.Links=a,Object.defineProperties(this,{_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),WAr(this,e)}rmLink(e){return this._invalidateCached(),UAr(this,e)}toDAGLink(e){return FAr(this,e)}serialize(){let e=qAr(this);return this._serializedSize=e.length,e}get size(){if(this._size==null){let e;e==null&&(this._serializedSize=this.serialize().length,e=this._serializedSize),this._size=this.Links.reduce((t,n)=>t+n.Tsize,e)}return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}};Gat.exports=n6e});var s6e=_((qjn,$at)=>{"use strict";d();p();var{PBNode:Vat}=VTe(),zAr=n2(),Yat=a6e(),{serializeDAGNode:KAr,serializeDAGNodeLike:GAr}=t6e(),i6e=r6e(),VAr=(r,e)=>i6e.cid(r,e),YAr=r=>r instanceof Yat?KAr(r):GAr(r.Data,r.Links),$Ar=r=>{let e=Vat.decode(r),t=Vat.toObject(e,{defaults:!1,arrays:!0,longs:Number,objects:!1}),n=t.Links.map(i=>new zAr(i.Name,i.Tsize,i.Hash)),a=t.Data==null?new Uint8Array(0):t.Data;return new Yat(a,n,r.byteLength)};$at.exports={codec:i6e.codec,defaultHashAlg:i6e.defaultHashAlg,serialize:YAr,deserialize:$Ar,cid:VAr}});var Jat=_(o6e=>{"use strict";d();p();var QAr=YG(),Qat=s6e();o6e.resolve=(r,e="/")=>{let t=Qat.deserialize(r),n=e.split("/").filter(Boolean);for(;n.length;){let a=n.shift();if(t[a]===void 0){for(let i of t.Links)if(i.Name===a)return{value:i.Hash,remainderPath:n.join("/")};throw new Error(`Object has no property '${a}'`)}if(t=t[a],QAr.isCID(t))return{value:t,remainderPath:n.join("/")}}return{value:t,remainderPath:""}};o6e.tree=function*(r){let e=Qat.deserialize(r);yield"Data",yield"Links";for(let t=0;t{"use strict";d();p();var JAr=Jat(),c6e=s6e(),ZAr=a6e(),XAr=n2(),ePr={DAGNode:ZAr,DAGLink:XAr,resolver:JAr,util:c6e,codec:c6e.codec,defaultHashAlg:c6e.defaultHashAlg};Zat.exports=ePr});var eit=_((Vjn,Xat)=>{"use strict";d();p();var{UnixFS:tPr}=VG(),rPr=$G(),{DAGNode:nPr}=QG(),aPr=async(r,e,t)=>{let n=new tPr({type:"directory",mtime:r.mtime,mode:r.mode}),a=new nPr(n.marshal()).serialize(),i=await rPr(a,e,t),s=r.path;return{cid:i,path:s,unixfs:n,size:a.length}};Xat.exports=aPr});var rit=_((Qjn,tit)=>{"use strict";d();p();var iPr=async r=>{let e=[];for await(let t of r)e.push(t);return e};tit.exports=iPr});var ait=_((Xjn,nit)=>{"use strict";d();p();var sPr=rit();nit.exports=async function(r,e){return e(await sPr(r))}});var oit=_((rzn,sit)=>{"use strict";d();p();var oPr=lle();function cPr(r,e,t){return iit(r,e,t)}async function iit(r,e,t){let n=[];for await(let a of oPr(r,t.maxChildrenPerNode))n.push(await e(a));return n.length>1?iit(n,e,t):n[0]}sit.exports=cPr});var uit=_((izn,cit)=>{"use strict";d();p();var uPr=lle();cit.exports=async function(e,t,n){let a=new u6e(n.layerRepeat),i=0,s=1,o=a;for await(let c of uPr(e,n.maxChildrenPerNode))o.isFull()&&(o!==a&&a.addChild(await o.reduce(t)),i&&i%n.layerRepeat===0&&s++,o=new Yle(s,n.layerRepeat,i),i++),o.append(c);return o&&o!==a&&a.addChild(await o.reduce(t)),a.reduce(t)};var Yle=class{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptha.data).map(a=>this._reduce(a,t)))),t((e.data||[]).concat(n))}_findParent(e,t){let n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}},u6e=class extends Yle{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}});var dit=_((czn,lit)=>{"use strict";d();p();var{UnixFS:lPr}=VG(),dPr=$G(),{DAGNode:pPr}=QG();async function*hPr(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let a,i={codec:"dag-pb",cidVersion:t.cidVersion,hashAlg:t.hashAlg,onlyHash:t.onlyHash};return t.rawLeaves?(i.codec="raw",i.cidVersion=1):(a=new lPr({type:t.leafType,data:n,mtime:r.mtime,mode:r.mode}),n=new pPr(a.marshal()).serialize()),{cid:await dPr(n,e,i),unixfs:a,size:n.length}}}lit.exports=hPr});var git=_((dzn,yit)=>{"use strict";d();p();var fPr=Kv(),{UnixFS:pit}=VG(),hit=$G(),{DAGNode:fit,DAGLink:mit}=QG(),mPr=N_e(),yPr=pX().multihash,gPr={flat:ait(),balanced:oit(),trickle:uit()};async function*bPr(r,e,t){let n=-1,a,i;typeof t.bufferImporter=="function"?i=t.bufferImporter:i=dit();for await(let s of mPr(i(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){a=s;continue}else n===1&&a&&(yield a,a=null);yield s}a&&(a.single=!0,yield a)}var vPr=(r,e,t)=>{async function n(a){if(a.length===1&&a[0].single&&t.reduceSingleLeafToSelf){let l=a[0];if(l.cid.codec==="raw"&&(r.mtime!==void 0||r.mode!==void 0)){let{data:h}=await e.get(l.cid,t);l.unixfs=new pit({type:"file",mtime:r.mtime,mode:r.mode,data:h});let f=yPr.decode(l.cid.multihash);h=new fit(l.unixfs.marshal()).serialize(),l.cid=await hit(h,e,{...t,codec:"dag-pb",hashAlg:f.name,cidVersion:t.cidVersion}),l.size=h.length}return{cid:l.cid,path:r.path,unixfs:l.unixfs,size:l.size}}let i=new pit({type:"file",mtime:r.mtime,mode:r.mode}),s=a.filter(l=>l.cid.codec==="raw"&&l.size||l.unixfs&&!l.unixfs.data&&l.unixfs.fileSize()?!0:Boolean(l.unixfs&&l.unixfs.data&&l.unixfs.data.length)).map(l=>l.cid.codec==="raw"?(i.addBlockSize(l.size),new mit("",l.size,l.cid)):(!l.unixfs||!l.unixfs.data?i.addBlockSize(l.unixfs&&l.unixfs.fileSize()||0):i.addBlockSize(l.unixfs.data.length),new mit("",l.size,l.cid))),o=new fit(i.marshal(),s),c=o.serialize();return{cid:await hit(c,e,t),path:r.path,unixfs:i,size:c.length+o.Links.reduce((l,h)=>l+h.Tsize,0)}}return n};function wPr(r,e,t){let n=gPr[t.strategy];if(!n)throw fPr(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(bPr(r,e,t),vPr(r,e,t),t)}yit.exports=wPr});var l6e=_((fzn,vit)=>{"use strict";d();p();var{Buffer:Eh}=lc(),bit=Symbol.for("BufferList");function Za(r){if(!(this instanceof Za))return new Za(r);Za._init.call(this,r)}Za._init=function(e){Object.defineProperty(this,bit,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};Za.prototype._new=function(e){return new Za(e)};Za.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};Za.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};Za.prototype.copy=function(e,t,n,a){if((typeof n!="number"||n<0)&&(n=0),(typeof a!="number"||a>this.length)&&(a=this.length),n>=this.length||a<=0)return e||Eh.alloc(0);let i=!!e,s=this._offset(n),o=a-n,c=o,u=i&&t||0,l=s[1];if(n===0&&a===this.length){if(!i)return this._bufs.length===1?this._bufs[0]:Eh.concat(this._bufs,this.length);for(let h=0;hf)this._bufs[h].copy(e,u,l),u+=f;else{this._bufs[h].copy(e,u,l,l+c),u+=f;break}c-=f,l&&(l=0)}return e.length>u?e.slice(0,u):e};Za.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),a=this._offset(t),i=this._bufs.slice(n[0],a[0]+1);return a[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,a[1]),n[1]!==0&&(i[0]=i[0].slice(n[1])),this._new(i)};Za.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)};Za.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};Za.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:e;let n=this._offset(e),a=n[0],i=n[1];for(;a=r.length){let c=s.indexOf(r,i);if(c!==-1)return this._reverseOffset([a,c]);i=s.length-r.length+1}else{let c=this._reverseOffset([a,i]);if(this._match(c,r))return c;i++}i=0}return-1};Za.prototype._match=function(r,e){if(this.length-r{d();p();var d6e=class{constructor(e,t=12,n=8*1024,a=32*1024,i=64,s){this.bits=t,this.min=n,this.max=a,this.asModule=e,this.rabin=new e.Rabin(t,n,a,i,s),this.polynomial=s}fingerprint(e){let{__retain:t,__release:n,__allocArray:a,__getInt32Array:i,Int32Array_ID:s,Uint8Array_ID:o}=this.asModule,c=new Int32Array(Math.ceil(e.length/this.min)),u=t(a(s,c)),l=t(a(o,e)),h=this.rabin.fingerprint(l,u),f=i(h);n(l),n(u);let m=f.indexOf(0);return m>=0?f.subarray(0,m):f}};wit.exports=d6e});var kit=_(vX=>{"use strict";d();p();var xPr=typeof BigUint64Array<"u",gX=Symbol(),bX=1024;function _it(r,e){let t=new Uint32Array(r),n=new Uint16Array(r);var a=t[e+-4>>>2]>>>1,i=e>>>1;if(a<=bX)return String.fromCharCode.apply(String,n.subarray(i,i+a));let s=[];do{let o=n[i+bX-1],c=o>=55296&&o<56320?bX-1:bX;s.push(String.fromCharCode.apply(String,n.subarray(i,i+=c))),a-=c}while(a>bX);return s.join("")+String.fromCharCode.apply(String,n.subarray(i,i+a))}function p6e(r){let e={};function t(a,i){return a?_it(a.buffer,i):""}let n=r.env=r.env||{};return n.abort=n.abort||function(i,s,o,c){let u=e.memory||n.memory;throw Error("abort: "+t(u,i)+" at "+t(u,s)+":"+o+":"+c)},n.trace=n.trace||function(i,s){let o=e.memory||n.memory;console.log("trace: "+t(o,i)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function h6e(r,e){let t=e.exports,n=t.memory,a=t.table,i=t.__alloc,s=t.__retain,o=t.__rtti_base||-1;function c(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2]}function u(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2+1]}function l(K){return 31-Math.clz32(K>>>5&31)}function h(K){return 31-Math.clz32(K>>>14&31)}function f(K){let H=K.length,G=i(H<<1,1),Q=new Uint16Array(n.buffer);for(var q=0,T=G>>>1;q>>2]!==1)throw Error("not a string: "+K);return _it(H,K)}r.__getString=m;function y(K,H,G){let Q=n.buffer;if(G)switch(K){case 2:return new Float32Array(Q);case 3:return new Float64Array(Q)}else switch(K){case 0:return new(H?Int8Array:Uint8Array)(Q);case 1:return new(H?Int16Array:Uint16Array)(Q);case 2:return new(H?Int32Array:Uint32Array)(Q);case 3:return new(H?BigInt64Array:BigUint64Array)(Q)}throw Error("unsupported align: "+K)}function I(K,H){let G=c(K);if(!(G&3))throw Error("not an array: "+K+" @ "+G);let Q=l(G),q=H.length,T=i(q<>>2]=s(T),A[M+4>>>2]=T,A[M+8>>>2]=q<>>2]=q);let v=y(Q,G&1024,G&2048);if(G&8192)for(let k=0;k>>Q)+k]=s(H[k]);else v.set(H,T>>>Q);return M}r.__allocArray=I;function C(K){let H=new Uint32Array(n.buffer),G=H[K+-8>>>2],Q=c(G);if(!(Q&1))throw Error("not an array: "+G);let q=l(Q);var T=H[K+4>>>2];let M=Q&2?H[K+12>>>2]:H[T+-4>>>2]>>>q;return y(q,Q&1024,Q&2048).subarray(T>>>=q,T+M)}r.__getArrayView=C;function R(K){let H=C(K),G=H.length,Q=new Array(G);for(let q=0;q>>2];return H.slice(K,K+G)}r.__getArrayBuffer=L;function F(K,H,G){return new K(W(K,H,G))}function W(K,H,G){let Q=n.buffer,q=new Uint32Array(Q),T=q[G+4>>>2];return new K(Q,T,q[T+-4>>>2]>>>H)}r.__getInt8Array=F.bind(null,Int8Array,0),r.__getInt8ArrayView=W.bind(null,Int8Array,0),r.__getUint8Array=F.bind(null,Uint8Array,0),r.__getUint8ArrayView=W.bind(null,Uint8Array,0),r.__getUint8ClampedArray=F.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=W.bind(null,Uint8ClampedArray,0),r.__getInt16Array=F.bind(null,Int16Array,1),r.__getInt16ArrayView=W.bind(null,Int16Array,1),r.__getUint16Array=F.bind(null,Uint16Array,1),r.__getUint16ArrayView=W.bind(null,Uint16Array,1),r.__getInt32Array=F.bind(null,Int32Array,2),r.__getInt32ArrayView=W.bind(null,Int32Array,2),r.__getUint32Array=F.bind(null,Uint32Array,2),r.__getUint32ArrayView=W.bind(null,Uint32Array,2),xPr&&(r.__getInt64Array=F.bind(null,BigInt64Array,3),r.__getInt64ArrayView=W.bind(null,BigInt64Array,3),r.__getUint64Array=F.bind(null,BigUint64Array,3),r.__getUint64ArrayView=W.bind(null,BigUint64Array,3)),r.__getFloat32Array=F.bind(null,Float32Array,2),r.__getFloat32ArrayView=W.bind(null,Float32Array,2),r.__getFloat64Array=F.bind(null,Float64Array,3),r.__getFloat64ArrayView=W.bind(null,Float64Array,3);function V(K,H){let G=new Uint32Array(n.buffer);var Q=G[K+-8>>>2];if(Q<=G[o>>>2])do if(Q==H)return!0;while(Q=u(Q));return!1}return r.__instanceof=V,r.memory=r.memory||n,r.table=r.table||a,Cit(t,r)}function Tit(r){return typeof Response<"u"&&r instanceof Response}async function Iit(r,e){return Tit(r=await r)?Eit(r,e):h6e(p6e(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}vX.instantiate=Iit;function _Pr(r,e){return h6e(p6e(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}vX.instantiateSync=_Pr;async function Eit(r,e){return WebAssembly.instantiateStreaming?h6e(p6e(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):Iit(Tit(r=await r)?r.arrayBuffer():r,e)}vX.instantiateStreaming=Eit;function Cit(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(a){r.__argumentsLength.value=a}:r.__setArgumentsLength||r.__setargc||function(){};for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a))continue;let i=r[a],s=a.split("."),o=t;for(;s.length>1;){let l=s.shift();Object.prototype.hasOwnProperty.call(o,l)||(o[l]={}),o=o[l]}let c=s[0],u=c.indexOf("#");if(u>=0){let l=c.substring(0,u),h=o[l];if(typeof h>"u"||!h.prototype){let f=function(...m){return f.wrap(f.prototype.constructor(0,...m))};f.prototype={valueOf:function(){return this[gX]}},f.wrap=function(m){return Object.create(f.prototype,{[gX]:{value:m,writable:!1}})},h&&Object.getOwnPropertyNames(h).forEach(m=>Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))),o[l]=f}if(c=c.substring(u+1),o=o[l].prototype,/^(get|set):/.test(c)){if(!Object.prototype.hasOwnProperty.call(o,c=c.substring(4))){let f=r[a.replace("set:","get:")],m=r[a.replace("get:","set:")];Object.defineProperty(o,c,{get:function(){return f(this[gX])},set:function(y){m(this[gX],y)},enumerable:!0})}}else c==="constructor"?(o[c]=(...f)=>(n(f.length),i(...f))).original=i:(o[c]=function(...f){return n(f.length),i(this[gX],...f)}).original=i}else/^(get|set):/.test(c)?Object.prototype.hasOwnProperty.call(o,c=c.substring(4))||Object.defineProperty(o,c,{get:r[a.replace("set:","get:")],set:r[a.replace("get:","set:")],enumerable:!0}):typeof i=="function"&&i!==n?(o[c]=(...l)=>(n(l.length),i(...l))).original=i:o[c]=i}return t}vX.demangle=Cit});var Pit=_((Tzn,Ait)=>{d();p();var{instantiate:TPr}=kit();f6e.supported=typeof WebAssembly<"u";function f6e(r={}){if(!f6e.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return TPr(new Response(new Blob([e],{type:"application/wasm"})),r)}Ait.exports=f6e});var Mit=_((Czn,Rit)=>{d();p();var Sit=xit(),IPr=Pit(),EPr=async(r,e,t,n,a)=>{let i=await IPr();return new Sit(i,r,e,t,n,a)};Rit.exports={Rabin:Sit,create:EPr}});var Dit=_((Pzn,Bit)=>{"use strict";d();p();var CPr=l6e(),{create:kPr}=Mit(),Nit=Kv();Bit.exports=async function*(e,t){let n,a,i;if(t.minChunkSize&&t.maxChunkSize&&t.avgChunkSize)i=t.avgChunkSize,n=t.minChunkSize,a=t.maxChunkSize;else if(t.avgChunkSize)i=t.avgChunkSize,n=i/3,a=i+i/2;else throw Nit(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(n<16)throw Nit(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");a{"use strict";d();p();var m6e=l6e();Lit.exports=async function*(e,t){let n=new m6e,a=0,i=!1,s=t.maxChunkSize;for await(let o of e)for(n.append(o),a+=o.length;a>=s;)if(yield n.slice(0,s),i=!0,s===n.length)n=new m6e,a=0;else{let c=new m6e;c.append(n.shallowSlice(s)),n=c,a-=s}(!i||a)&&(yield n.slice(0,a))}});var Wit=_((Dzn,Fit)=>{"use strict";d();p();var qit=Kv(),PPr=Vle();async function*SPr(r){for await(let e of r){if(e.length===void 0)throw qit(new Error("Content was invalid"),"ERR_INVALID_CONTENT");if(typeof e=="string"||e instanceof String)yield PPr(e.toString());else if(Array.isArray(e))yield Uint8Array.from(e);else if(e instanceof Uint8Array)yield e;else throw qit(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}}Fit.exports=SPr});var jit=_((qzn,Hit)=>{"use strict";d();p();var RPr=eit(),MPr=git(),Uit=Kv();function NPr(r){return Symbol.iterator in r}function BPr(r){return Symbol.asyncIterator in r}function DPr(r){try{if(r instanceof Uint8Array)return async function*(){yield r}();if(NPr(r))return async function*(){yield*r}();if(BPr(r))return r}catch{throw Uit(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}throw Uit(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}async function*LPr(r,e,t){for await(let n of r)if(n.path&&(n.path.substring(0,2)==="./"&&(t.wrapWithDirectory=!0),n.path=n.path.split("/").filter(a=>a&&a!==".").join("/")),n.content){let a;typeof t.chunker=="function"?a=t.chunker:t.chunker==="rabin"?a=Dit():a=Oit();let i;typeof t.chunkValidator=="function"?i=t.chunkValidator:i=Wit();let s={path:n.path,mtime:n.mtime,mode:n.mode,content:a(i(DPr(n.content),t),t)};yield()=>MPr(s,e,t)}else if(n.path){let a={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>RPr(a,e,t)}else throw new Error("Import candidate must have content or path or both")}Hit.exports=LPr});var $le=_((Uzn,zit)=>{"use strict";d();p();var y6e=class{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}};zit.exports=y6e});var b6e=_((zzn,Git)=>{"use strict";d();p();var{DAGLink:OPr,DAGNode:qPr}=QG(),{UnixFS:FPr}=VG(),Kit=$le(),WPr=$G(),g6e=class extends Kit{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){let e=Object.keys(this._children);for(let t=0;tu+l.Tsize,0);this.cid=o,this.size=c,yield{cid:o,unixfs:a,path:this.path,size:c}}};Git.exports=g6e});var $it=_((Yzn,Yit)=>{"use strict";d();p();Yit.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let a=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):a=!0,this._setInternalPos(n,e,t,a),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;let a=this._bitArrays[n],i=e-n*7;if(!((a&1<0))return-1;let o=this._bitArrays.slice(0,n).reduce(UPr,0),c=~(4294967295<=t)i.push(s);else if(i[0][0]<=t)i.unshift(s);else{let o=Math.round(i.length/2);this._data=i.slice(0,o).concat(s).concat(i.slice(o))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(HPr),this._changedData=!1}bitField(){let e=[],t=8,n=0,a=0,i,s=this._bitArrays.slice();for(;s.length||n;){n===0&&(i=s.shift(),n=7);let c=Math.min(n,t),u=~(255<>>c,n-=c,t-=c,(!t||!n&&!s.length)&&(e.push(a),a=0,t=8)}for(var o=e.length-1;o>0&&e[o]===0;o--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(jPr)}};function UPr(r,e){return r+Vit(e)}function Vit(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function HPr(r,e){return r[0]-e[0]}function jPr(r){return r[1]}});var Zit=_((Jzn,Jit)=>{"use strict";d();p();var zPr=$it(),{fromString:KPr}=(Jv(),nt(nX)),pp=class{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new zPr,this.key=null}async put(e,t){let n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){let t=await this._findChild(e);if(t)return t.value}async del(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof pp?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){let e=this._children.compactArray();for(let t of e)t instanceof pp?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){let n=[];return t(this._children.reduce((a,i,s)=>(i&&(i instanceof pp?a.push(i.serialize(e,t)):a.push(e(i,s))),a),n))}asyncTransform(e,t){return Qit(this,e,t)}toJSON(){return this.serialize(VPr,YPr)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof pp)&&n&&n.key===e)return n}async _findPlace(e){let t=this._options.hash(typeof e=="string"?KPr(e):e),n=await t.take(this._options.bits),a=this._children.get(n);return a instanceof pp?a._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:a}}async _findNewBucketAndPos(e){let t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){let n=new pp(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);let a=await n._findPlace(t.existingChild.hash);return a.bucket._putAt(a,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){let e=this._children.find(GPr);if(e&&!(e instanceof pp)){let t=e.hash;t.untake(this._options.bits);let n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function GPr(r){return Boolean(r)}function VPr(r,e){return r.key}function YPr(r){return r}async function Qit(r,e,t){let n=[];for(let a of r._children.compactArray())if(a instanceof pp)await Qit(a,e,t);else{let i=await e(a);n.push({bitField:r._children.bitField(),children:i})}return t(n)}Jit.exports=pp});var est=_((tKn,Xit)=>{"use strict";d();p();var $Pr=[255,254,252,248,240,224,192,128],QPr=[1,3,7,15,31,63,127,255];Xit.exports=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){let a=this._value[this._currentBytePos],i=this._currentBitPos+1,s=Math.min(i,t),o=JPr(a,i-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function JPr(r,e,t){let n=ZPr(e,t);return(r&n)>>>e}function ZPr(r,e){return $Pr[r]&QPr[Math.min(e+r-1,7)]}});var tst=_((aKn,v6e)=>{"use strict";d();p();var XPr=est(),{concat:eSr}=(Zv(),nt(iX));function tSr(r){function e(t){return t instanceof wX?t:new wX(t,r)}return e}var wX=class{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){let a=this._buffers[this._currentBufferIndex],i=Math.min(a.availableBits(),t),s=a.take(i);n=(n<0;){let n=this._buffers[this._currentBufferIndex],a=Math.min(n.totalBits()-n.availableBits(),t);n.untake(a),t-=a,this._availableBits+=a,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;let e=this._depth?eSr([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new XPr(t);this._buffers.push(n),this._availableBits+=n.availableBits()}};v6e.exports=tSr;v6e.exports.InfiniteHash=wX});var ast=_((oKn,nst)=>{"use strict";d();p();var rst=Zit(),rSr=tst();function nSr(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");let e={bits:r.bits||8,hash:rSr(r.hashFn)};return new rst(e)}nst.exports={createHAMT:nSr,Bucket:rst}});var ost=_((lKn,sst)=>{"use strict";d();p();var{DAGLink:w6e,DAGNode:aSr}=QG(),{UnixFS:iSr}=VG(),sSr=$le(),oSr=$G(),{createHAMT:cSr,Bucket:uSr}=ast(),x6e=class extends sSr{constructor(e,t){super(e,t),this._bucket=cSr({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(let{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(let t of ist(this._bucket,e,this,this.options))yield{...t,path:this.path}}};sst.exports=x6e;async function*ist(r,e,t,n){let a=r._children,i=[],s=0;for(let m=0;m{"use strict";d();p();var lSr=ost(),dSr=b6e();cst.exports=async function r(e,t,n,a){let i=t;t instanceof dSr&&t.directChildrenCount()>=n&&(i=await pSr(t,a));let s=i.parent;if(s){if(i!==t){if(e&&(e.parent=i),!i.parentKey)throw new Error("No parent key found");await s.put(i.parentKey,i)}return r(i,s,n,a)}return i};async function pSr(r,e){let t=new lSr({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(let{key:n,child:a}of r.eachChildSeries())await t.put(n,a);return t}});var dst=_((yKn,lst)=>{"use strict";d();p();var hSr=(r="")=>(r.trim().match(/([^\\^/]|\\\/)+/g)||[]).filter(Boolean);lst.exports=hSr});var yst=_((vKn,mst)=>{"use strict";d();p();var hst=b6e(),fSr=ust(),fst=$le(),mSr=dst();async function ySr(r,e,t){let n=mSr(r.path||""),a=n.length-1,i=e,s="";for(let o=0;o{"use strict";d();p();var bSr=N_e(),vSr=Mrt();async function*wSr(r,e,t={}){let n=vSr(t),a;typeof t.dagBuilder=="function"?a=t.dagBuilder:a=jit();let i;typeof t.treeBuilder=="function"?i=t.treeBuilder:i=yst();let s;Symbol.asyncIterator in r||Symbol.iterator in r?s=r:s=[r];for await(let o of i(bSr(a(s,e,n),n.fileImportConcurrency),e,n))yield{cid:o.cid,path:o.path,unixfs:o.unixfs,size:o.size}}gst.exports={importer:wSr}});var T6e=_((EKn,bst)=>{d();p();bst.exports=typeof self=="object"?self.FormData:window.FormData});var Ast=_(Ga=>{"use strict";d();p();Object.defineProperty(Ga,"__esModule",{value:!0});var xSr=tn(),_Sr=_6e(),TSr=T6e(),ISr=Fr();function vst(r){return r&&r.__esModule?r:{default:r}}var Qle=vst(xSr),ESr=vst(TSr);function CSr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function kSr(r){var e=CSr(r,"string");return typeof e=="symbol"?e:String(e)}function a2(r,e,t){return e=kSr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var JG={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},wst="https://upload.nftlabs.co",I6e="https://api.pinata.cloud/pinning/pinFileToIPFS";function xst(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function _st(r){let e={...r,...JG};for(let t of Object.keys(JG))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...JG[t]]}return e}function E6e(){return typeof window<"u"}function ZG(r){return global.File&&r instanceof File}function I0(r){return global.Buffer&&r instanceof b.Buffer}function XG(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||I0(r.data)))}function eV(r){return ZG(r)||I0(r)||XG(r)}function Tst(r,e){if(ZG(r)&&ZG(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(I0(r)&&I0(e))return r.equals(e);if(XG(r)&&XG(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(I0(r.data)&&I0(e.data))return r.data.equals(e.data)}}return!1}function Ist(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function rde(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function Jle(r,e){return typeof r=="string"?Ist(r,e):typeof r=="object"?!r||eV(r)?r:Array.isArray(r)?r.map(t=>Jle(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,Jle(a,e)]})):r}function xX(r,e){return typeof r=="string"?rde(r,e):typeof r=="object"?!r||eV(r)?r:Array.isArray(r)?r.map(t=>xX(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,xX(a,e)]})):r}function Zle(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(eV(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>Zle(t,e)):Object.keys(r).map(t=>Zle(r[t],e))}return e}function Xle(r,e){if(eV(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>Xle(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,Xle(a,e)]}))):r}async function Est(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(XG(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return Cst(a,t,n)}async function Cst(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of _Sr.importer(r,a,n))i=s;return`${i}`}async function kst(r){return(await Qle.default(`${JG["ipfs://"][0]}${r}`,{method:"HEAD",headers:{"x-skip-origin":"true"}})).ok}var ede=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=rde(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await Qle.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},tde=class{constructor(e){a2(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new ESr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await Est(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await kst(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return E6e()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await Qle.default(`${wst}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else XG(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(Tst(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),E6e()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",I6e),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await Qle.default(I6e,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},C6e=class{constructor(e){a2(this,"uploader",void 0),a2(this,"downloader",void 0),a2(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new tde,this.downloader=e?.downloader||new ede,this.gatewayUrls=_st(xst(e?.gatewayUrls))}resolveScheme(e){return rde(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return xX(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>eV(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=Jle(n,this.gatewayUrls);let a=Zle(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=Xle(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=xX(n,this.gatewayUrls)),n}},k6e=class{constructor(e){a2(this,"gatewayUrls",JG),a2(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},A6e=class{constructor(e){a2(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=ISr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(ZG(s))o=await s.text();else if(I0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=I0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Ga.DEFAULT_GATEWAY_URLS=JG;Ga.IpfsUploader=tde;Ga.MockDownloader=k6e;Ga.MockUploader=A6e;Ga.PINATA_IPFS_URL=I6e;Ga.StorageDownloader=ede;Ga.TW_IPFS_SERVER_URL=wst;Ga.ThirdwebStorage=C6e;Ga.extractObjectFiles=Zle;Ga.getCID=Cst;Ga.getCIDForUpload=Est;Ga.isBrowser=E6e;Ga.isBufferInstance=I0;Ga.isBufferOrStringWithName=XG;Ga.isFileBufferOrStringEqual=Tst;Ga.isFileInstance=ZG;Ga.isFileOrBuffer=eV;Ga.isUploaded=kst;Ga.parseGatewayUrls=xst;Ga.prepareGatewayUrls=_st;Ga.replaceGatewayUrlWithScheme=Ist;Ga.replaceObjectFilesWithUris=Xle;Ga.replaceObjectGatewayUrlsWithSchemes=Jle;Ga.replaceObjectSchemesWithGatewayUrls=xX;Ga.replaceSchemeWithGatewayUrl=rde});var qst=_(Va=>{"use strict";d();p();Object.defineProperty(Va,"__esModule",{value:!0});var ASr=tn(),PSr=_6e(),SSr=T6e(),RSr=Fr();function Pst(r){return r&&r.__esModule?r:{default:r}}var nde=Pst(ASr),MSr=Pst(SSr);function NSr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function BSr(r){var e=NSr(r,"string");return typeof e=="symbol"?e:String(e)}function i2(r,e,t){return e=BSr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var tV={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},Sst="https://upload.nftlabs.co",P6e="https://api.pinata.cloud/pinning/pinFileToIPFS";function Rst(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function Mst(r){let e={...r,...tV};for(let t of Object.keys(tV))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...tV[t]]}return e}function S6e(){return typeof window<"u"}function rV(r){return global.File&&r instanceof File}function E0(r){return global.Buffer&&r instanceof b.Buffer}function nV(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||E0(r.data)))}function aV(r){return rV(r)||E0(r)||nV(r)}function Nst(r,e){if(rV(r)&&rV(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(E0(r)&&E0(e))return r.equals(e);if(nV(r)&&nV(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(E0(r.data)&&E0(e.data))return r.data.equals(e.data)}}return!1}function Bst(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function ude(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function ade(r,e){return typeof r=="string"?Bst(r,e):typeof r=="object"?!r||aV(r)?r:Array.isArray(r)?r.map(t=>ade(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,ade(a,e)]})):r}function _X(r,e){return typeof r=="string"?ude(r,e):typeof r=="object"?!r||aV(r)?r:Array.isArray(r)?r.map(t=>_X(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,_X(a,e)]})):r}function ide(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(aV(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>ide(t,e)):Object.keys(r).map(t=>ide(r[t],e))}return e}function sde(r,e){if(aV(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>sde(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,sde(a,e)]}))):r}async function Dst(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(nV(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return Lst(a,t,n)}async function Lst(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of PSr.importer(r,a,n))i=s;return`${i}`}async function Ost(r){return(await nde.default(`${tV["ipfs://"][0]}${r}`,{method:"HEAD",headers:{"x-skip-origin":"true"}})).ok}var ode=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=ude(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await nde.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},cde=class{constructor(e){i2(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new MSr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await Dst(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await Ost(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return S6e()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await nde.default(`${Sst}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.NODE_ENV==="test"||!!g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else nV(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(Nst(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),S6e()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",P6e),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await nde.default(P6e,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},R6e=class{constructor(e){i2(this,"uploader",void 0),i2(this,"downloader",void 0),i2(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new cde,this.downloader=e?.downloader||new ode,this.gatewayUrls=Mst(Rst(e?.gatewayUrls))}resolveScheme(e){return ude(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return _X(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>aV(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=ade(n,this.gatewayUrls);let a=ide(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=sde(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=_X(n,this.gatewayUrls)),n}},M6e=class{constructor(e){i2(this,"gatewayUrls",tV),i2(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},N6e=class{constructor(e){i2(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=RSr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(rV(s))o=await s.text();else if(E0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=E0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Va.DEFAULT_GATEWAY_URLS=tV;Va.IpfsUploader=cde;Va.MockDownloader=M6e;Va.MockUploader=N6e;Va.PINATA_IPFS_URL=P6e;Va.StorageDownloader=ode;Va.TW_IPFS_SERVER_URL=Sst;Va.ThirdwebStorage=R6e;Va.extractObjectFiles=ide;Va.getCID=Lst;Va.getCIDForUpload=Dst;Va.isBrowser=S6e;Va.isBufferInstance=E0;Va.isBufferOrStringWithName=nV;Va.isFileBufferOrStringEqual=Nst;Va.isFileInstance=rV;Va.isFileOrBuffer=aV;Va.isUploaded=Ost;Va.parseGatewayUrls=Rst;Va.prepareGatewayUrls=Mst;Va.replaceGatewayUrlWithScheme=Bst;Va.replaceObjectFilesWithUris=sde;Va.replaceObjectGatewayUrlsWithSchemes=ade;Va.replaceObjectSchemesWithGatewayUrls=_X;Va.replaceSchemeWithGatewayUrl=ude});var bn=_((BKn,B6e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?B6e.exports=Ast():B6e.exports=qst()});var Gr=_((OKn,Fst)=>{"use strict";d();p();var DSr=g.env.NODE_ENV==="production",D6e="Invariant failed";function LSr(r,e){if(!r){if(DSr)throw new Error(D6e);var t=typeof e=="function"?e():e,n=t?"".concat(D6e,": ").concat(t):D6e;throw new Error(n)}}Fst.exports=LSr});var ma=_((WKn,OSr)=>{OSr.exports=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var Ust=_((UKn,Wst)=>{d();p();Wst.exports=function(e){for(var t=new b.Buffer(e.length),n=0,a=e.length-1;n<=a;++n,--a)t[n]=e[a],t[a]=e[n];return t}});var rn=_((lde,Hst)=>{d();p();(function(r,e){typeof lde=="object"?Hst.exports=lde=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(lde,function(){var r=r||function(e,t){var n=Object.create||function(){function I(){}return function(C){var R;return I.prototype=C,R=new I,I.prototype=null,R}}(),a={},i=a.lib={},s=i.Base=function(){return{extend:function(I){var C=n(this);return I&&C.mixIn(I),(!C.hasOwnProperty("init")||this.init===C.init)&&(C.init=function(){C.$super.init.apply(this,arguments)}),C.init.prototype=C,C.$super=this,C},create:function(){var I=this.extend();return I.init.apply(I,arguments),I},init:function(){},mixIn:function(I){for(var C in I)I.hasOwnProperty(C)&&(this[C]=I[C]);I.hasOwnProperty("toString")&&(this.toString=I.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=s.extend({init:function(I,C){I=this.words=I||[],C!=t?this.sigBytes=C:this.sigBytes=I.length*4},toString:function(I){return(I||u).stringify(this)},concat:function(I){var C=this.words,R=I.words,L=this.sigBytes,F=I.sigBytes;if(this.clamp(),L%4)for(var W=0;W>>2]>>>24-W%4*8&255;C[L+W>>>2]|=V<<24-(L+W)%4*8}else for(var W=0;W>>2]=R[W>>>2];return this.sigBytes+=F,this},clamp:function(){var I=this.words,C=this.sigBytes;I[C>>>2]&=4294967295<<32-C%4*8,I.length=e.ceil(C/4)},clone:function(){var I=s.clone.call(this);return I.words=this.words.slice(0),I},random:function(I){for(var C=[],R=function(K){var K=K,H=987654321,G=4294967295;return function(){H=36969*(H&65535)+(H>>16)&G,K=18e3*(K&65535)+(K>>16)&G;var Q=(H<<16)+K&G;return Q/=4294967296,Q+=.5,Q*(e.random()>.5?1:-1)}},L=0,F;L>>2]>>>24-F%4*8&255;L.push((W>>>4).toString(16)),L.push((W&15).toString(16))}return L.join("")},parse:function(I){for(var C=I.length,R=[],L=0;L>>3]|=parseInt(I.substr(L,2),16)<<24-L%8*4;return new o.init(R,C/2)}},l=c.Latin1={stringify:function(I){for(var C=I.words,R=I.sigBytes,L=[],F=0;F>>2]>>>24-F%4*8&255;L.push(String.fromCharCode(W))}return L.join("")},parse:function(I){for(var C=I.length,R=[],L=0;L>>2]|=(I.charCodeAt(L)&255)<<24-L%4*8;return new o.init(R,C)}},h=c.Utf8={stringify:function(I){try{return decodeURIComponent(escape(l.stringify(I)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(I){return l.parse(unescape(encodeURIComponent(I)))}},f=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(I){typeof I=="string"&&(I=h.parse(I)),this._data.concat(I),this._nDataBytes+=I.sigBytes},_process:function(I){var C=this._data,R=C.words,L=C.sigBytes,F=this.blockSize,W=F*4,V=L/W;I?V=e.ceil(V):V=e.max((V|0)-this._minBufferSize,0);var K=V*F,H=e.min(K*4,L);if(K){for(var G=0;G{d();p();(function(r,e){typeof dde=="object"?jst.exports=dde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(dde,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];(function(){function h(I){for(var C=e.sqrt(I),R=2;R<=C;R++)if(!(I%R))return!1;return!0}function f(I){return(I-(I|0))*4294967296|0}for(var m=2,y=0;y<64;)h(m)&&(y<8&&(o[y]=f(e.pow(m,1/2))),c[y]=f(e.pow(m,1/3)),y++),m++})();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(h,f){for(var m=this._hash.words,y=m[0],I=m[1],C=m[2],R=m[3],L=m[4],F=m[5],W=m[6],V=m[7],K=0;K<64;K++){if(K<16)u[K]=h[f+K]|0;else{var H=u[K-15],G=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,Q=u[K-2],q=(Q<<15|Q>>>17)^(Q<<13|Q>>>19)^Q>>>10;u[K]=G+u[K-7]+q+u[K-16]}var T=L&F^~L&W,M=y&I^y&C^I&C,A=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),v=(L<<26|L>>>6)^(L<<21|L>>>11)^(L<<7|L>>>25),k=V+v+T+c[K]+u[K],O=A+M;V=W,W=F,F=L,L=R+k|0,R=C,C=I,I=y,y=k+O|0}m[0]=m[0]+y|0,m[1]=m[1]+I|0,m[2]=m[2]+C|0,m[3]=m[3]+R|0,m[4]=m[4]+L|0,m[5]=m[5]+F|0,m[6]=m[6]+W|0,m[7]=m[7]+V|0},_doFinalize:function(){var h=this._data,f=h.words,m=this._nDataBytes*8,y=h.sigBytes*8;return f[y>>>5]|=128<<24-y%32,f[(y+64>>>9<<4)+14]=e.floor(m/4294967296),f[(y+64>>>9<<4)+15]=m,h.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256})});var Kst=_((L6e,zst)=>{d();p();(function(r,e){typeof L6e=="object"?zst.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(L6e,function(){function r(a,i){var s=i?"\u2514":"\u251C";return a?s+="\u2500 ":s+="\u2500\u2500\u2510",s}function e(a,i){var s=[];for(var o in a)!a.hasOwnProperty(o)||i&&typeof a[o]=="function"||s.push(o);return s}function t(a,i,s,o,c,u,l){var h="",f=0,m,y,I=o.slice(0);if(I.push([i,s])&&o.length>0&&(o.forEach(function(R,L){L>0&&(h+=(R[1]?" ":"\u2502")+" "),!y&&R[0]===i&&(y=!0)}),h+=r(a,s)+a,c&&(typeof i!="object"||i instanceof Date)&&(h+=": "+i),y&&(h+=" (circular ref.)"),l(h)),!y&&typeof i=="object"){var C=e(i,u);C.forEach(function(R){m=++f===C.length,t(R,i[R],m,I,c,u,l)})}}var n={};return n.asLines=function(a,i,s,o){var c=typeof s!="function"?s:!1;t(".",a,!1,[],i,c,o||s)},n.asTree=function(a,i,s){var o="";return t(".",a,!1,[],i,s,function(c){o+=c+` -`}),o},n})});var IX=_((pde,Gst)=>{d();p();(function(r,e){typeof pde=="object"?Gst.exports=pde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(pde,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},o=s.Word=a.extend({init:function(u,l){this.high=u,this.low=l}}),c=s.WordArray=a.extend({init:function(u,l){u=this.words=u||[],l!=e?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,h=[],f=0;f{d();p();(function(r,e){typeof hde=="object"?Vst.exports=hde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(hde,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var o=s.byteLength,c=[],u=0;u>>2]|=s[u]<<24-u%4*8;a.call(this,c,o)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var Qst=_((fde,$st)=>{d();p();(function(r,e){typeof fde=="object"?$st.exports=fde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(fde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535;l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=o.charCodeAt(l)<<16-l%2*16;return n.create(u,c*2)}};a.Utf16LE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535);l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=s(o.charCodeAt(l)<<16-l%2*16);return n.create(u,c*2)}};function s(o){return o<<8&4278255360|o>>>8&16711935}}(),r.enc.Utf16})});var s2=_((mde,Jst)=>{d();p();(function(r,e){typeof mde=="object"?Jst.exports=mde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(mde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(o){var c=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,y=c[f+1>>>2]>>>24-(f+1)%4*8&255,I=c[f+2>>>2]>>>24-(f+2)%4*8&255,C=m<<16|y<<8|I,R=0;R<4&&f+R*.75>>6*(3-R)&63));var L=l.charAt(64);if(L)for(;h.length%4;)h.push(L);return h.join("")},parse:function(o){var c=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var h=0;h>>6-f%4*2;l[h>>>2]|=(m|y)<<24-h%4*8,h++}return n.create(l,h)}}(),r.enc.Base64})});var o2=_((yde,Zst)=>{d();p();(function(r,e){typeof yde=="object"?Zst.exports=yde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(yde,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=e.abs(e.sin(m+1))*4294967296|0})();var c=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,y){for(var I=0;I<16;I++){var C=y+I,R=m[C];m[C]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var L=this._hash.words,F=m[y+0],W=m[y+1],V=m[y+2],K=m[y+3],H=m[y+4],G=m[y+5],Q=m[y+6],q=m[y+7],T=m[y+8],M=m[y+9],A=m[y+10],v=m[y+11],k=m[y+12],O=m[y+13],D=m[y+14],B=m[y+15],x=L[0],N=L[1],U=L[2],E=L[3];x=u(x,N,U,E,F,7,o[0]),E=u(E,x,N,U,W,12,o[1]),U=u(U,E,x,N,V,17,o[2]),N=u(N,U,E,x,K,22,o[3]),x=u(x,N,U,E,H,7,o[4]),E=u(E,x,N,U,G,12,o[5]),U=u(U,E,x,N,Q,17,o[6]),N=u(N,U,E,x,q,22,o[7]),x=u(x,N,U,E,T,7,o[8]),E=u(E,x,N,U,M,12,o[9]),U=u(U,E,x,N,A,17,o[10]),N=u(N,U,E,x,v,22,o[11]),x=u(x,N,U,E,k,7,o[12]),E=u(E,x,N,U,O,12,o[13]),U=u(U,E,x,N,D,17,o[14]),N=u(N,U,E,x,B,22,o[15]),x=l(x,N,U,E,W,5,o[16]),E=l(E,x,N,U,Q,9,o[17]),U=l(U,E,x,N,v,14,o[18]),N=l(N,U,E,x,F,20,o[19]),x=l(x,N,U,E,G,5,o[20]),E=l(E,x,N,U,A,9,o[21]),U=l(U,E,x,N,B,14,o[22]),N=l(N,U,E,x,H,20,o[23]),x=l(x,N,U,E,M,5,o[24]),E=l(E,x,N,U,D,9,o[25]),U=l(U,E,x,N,K,14,o[26]),N=l(N,U,E,x,T,20,o[27]),x=l(x,N,U,E,O,5,o[28]),E=l(E,x,N,U,V,9,o[29]),U=l(U,E,x,N,q,14,o[30]),N=l(N,U,E,x,k,20,o[31]),x=h(x,N,U,E,G,4,o[32]),E=h(E,x,N,U,T,11,o[33]),U=h(U,E,x,N,v,16,o[34]),N=h(N,U,E,x,D,23,o[35]),x=h(x,N,U,E,W,4,o[36]),E=h(E,x,N,U,H,11,o[37]),U=h(U,E,x,N,q,16,o[38]),N=h(N,U,E,x,A,23,o[39]),x=h(x,N,U,E,O,4,o[40]),E=h(E,x,N,U,F,11,o[41]),U=h(U,E,x,N,K,16,o[42]),N=h(N,U,E,x,Q,23,o[43]),x=h(x,N,U,E,M,4,o[44]),E=h(E,x,N,U,k,11,o[45]),U=h(U,E,x,N,B,16,o[46]),N=h(N,U,E,x,V,23,o[47]),x=f(x,N,U,E,F,6,o[48]),E=f(E,x,N,U,q,10,o[49]),U=f(U,E,x,N,D,15,o[50]),N=f(N,U,E,x,G,21,o[51]),x=f(x,N,U,E,k,6,o[52]),E=f(E,x,N,U,K,10,o[53]),U=f(U,E,x,N,A,15,o[54]),N=f(N,U,E,x,W,21,o[55]),x=f(x,N,U,E,T,6,o[56]),E=f(E,x,N,U,B,10,o[57]),U=f(U,E,x,N,Q,15,o[58]),N=f(N,U,E,x,O,21,o[59]),x=f(x,N,U,E,H,6,o[60]),E=f(E,x,N,U,v,10,o[61]),U=f(U,E,x,N,V,15,o[62]),N=f(N,U,E,x,M,21,o[63]),L[0]=L[0]+x|0,L[1]=L[1]+N|0,L[2]=L[2]+U|0,L[3]=L[3]+E|0},_doFinalize:function(){var m=this._data,y=m.words,I=this._nDataBytes*8,C=m.sigBytes*8;y[C>>>5]|=128<<24-C%32;var R=e.floor(I/4294967296),L=I;y[(C+64>>>9<<4)+15]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,y[(C+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,m.sigBytes=(y.length+1)*4,this._process();for(var F=this._hash,W=F.words,V=0;V<4;V++){var K=W[V];W[V]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}return F},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});function u(m,y,I,C,R,L,F){var W=m+(y&I|~y&C)+R+F;return(W<>>32-L)+y}function l(m,y,I,C,R,L,F){var W=m+(y&C|I&~C)+R+F;return(W<>>32-L)+y}function h(m,y,I,C,R,L,F){var W=m+(y^I^C)+R+F;return(W<>>32-L)+y}function f(m,y,I,C,R,L,F){var W=m+(I^(y|~C))+R+F;return(W<>>32-L)+y}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5})});var bde=_((gde,Xst)=>{d();p();(function(r,e){typeof gde=="object"?Xst.exports=gde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(gde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var l=this._hash.words,h=l[0],f=l[1],m=l[2],y=l[3],I=l[4],C=0;C<80;C++){if(C<16)s[C]=c[u+C]|0;else{var R=s[C-3]^s[C-8]^s[C-14]^s[C-16];s[C]=R<<1|R>>>31}var L=(h<<5|h>>>27)+I+s[C];C<20?L+=(f&m|~f&y)+1518500249:C<40?L+=(f^m^y)+1859775393:C<60?L+=(f&m|f&y|m&y)-1894007588:L+=(f^m^y)-899497514,I=y,y=m,m=f<<30|f>>>2,f=h,h=L}l[0]=l[0]+h|0,l[1]=l[1]+f|0,l[2]=l[2]+m|0,l[3]=l[3]+y|0,l[4]=l[4]+I|0},_doFinalize:function(){var c=this._data,u=c.words,l=this._nDataBytes*8,h=c.sigBytes*8;return u[h>>>5]|=128<<24-h%32,u[(h+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(h+64>>>9<<4)+15]=l,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o)}(),r.SHA1})});var tot=_((vde,eot)=>{d();p();(function(r,e,t){typeof vde=="object"?eot.exports=vde=e(rn(),TX()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(vde,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=4,o}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var O6e=_((wde,rot)=>{d();p();(function(r,e,t){typeof wde=="object"?rot.exports=wde=e(rn(),IX()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(wde,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,o=e.algo;function c(){return i.create.apply(i,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var f=0;f<80;f++)l[f]=c()})();var h=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,m){for(var y=this._hash.words,I=y[0],C=y[1],R=y[2],L=y[3],F=y[4],W=y[5],V=y[6],K=y[7],H=I.high,G=I.low,Q=C.high,q=C.low,T=R.high,M=R.low,A=L.high,v=L.low,k=F.high,O=F.low,D=W.high,B=W.low,x=V.high,N=V.low,U=K.high,E=K.low,z=H,ee=G,j=Q,X=q,ie=T,ue=M,he=A,ke=v,ge=k,me=O,Ke=D,ve=B,Ae=x,so=N,It=U,bt=E,ai=0;ai<80;ai++){var xt=l[ai];if(ai<16)var st=xt.high=f[m+ai*2]|0,ii=xt.low=f[m+ai*2+1]|0;else{var Nt=l[ai-15],dt=Nt.high,oo=Nt.low,jt=(dt>>>1|oo<<31)^(dt>>>8|oo<<24)^dt>>>7,Bt=(oo>>>1|dt<<31)^(oo>>>8|dt<<24)^(oo>>>7|dt<<25),sc=l[ai-2],ot=sc.high,pt=sc.low,Dc=(ot>>>19|pt<<13)^(ot<<3|pt>>>29)^ot>>>6,Et=(pt>>>19|ot<<13)^(pt<<3|ot>>>29)^(pt>>>6|ot<<26),Ct=l[ai-7],Lc=Ct.high,Dt=Ct.low,kt=l[ai-16],Oc=kt.high,At=kt.low,ii=Bt+Dt,st=jt+Lc+(ii>>>0>>0?1:0),ii=ii+Et,st=st+Dc+(ii>>>0>>0?1:0),ii=ii+At,st=st+Oc+(ii>>>0>>0?1:0);xt.high=st,xt.low=ii}var Lt=ge&Ke^~ge&Ae,oc=me&ve^~me&so,Ot=z&j^z&ie^j&ie,qt=ee&X^ee&ue^X&ue,qc=(z>>>28|ee<<4)^(z<<30|ee>>>2)^(z<<25|ee>>>7),Pt=(ee>>>28|z<<4)^(ee<<30|z>>>2)^(ee<<25|z>>>7),Ft=(ge>>>14|me<<18)^(ge>>>18|me<<14)^(ge<<23|me>>>9),Fc=(me>>>14|ge<<18)^(me>>>18|ge<<14)^(me<<23|ge>>>9),St=u[ai],Wt=St.high,cc=St.low,Qe=bt+Fc,it=It+Ft+(Qe>>>0>>0?1:0),Qe=Qe+oc,it=it+Lt+(Qe>>>0>>0?1:0),Qe=Qe+cc,it=it+Wt+(Qe>>>0>>0?1:0),Qe=Qe+ii,it=it+st+(Qe>>>0>>0?1:0),uc=Pt+qt,Ut=qc+Ot+(uc>>>0>>0?1:0);It=Ae,bt=so,Ae=Ke,so=ve,Ke=ge,ve=me,me=ke+Qe|0,ge=he+it+(me>>>0>>0?1:0)|0,he=ie,ke=ue,ie=j,ue=X,j=z,X=ee,ee=Qe+uc|0,z=it+Ut+(ee>>>0>>0?1:0)|0}G=I.low=G+ee,I.high=H+z+(G>>>0>>0?1:0),q=C.low=q+X,C.high=Q+j+(q>>>0>>0?1:0),M=R.low=M+ue,R.high=T+ie+(M>>>0>>0?1:0),v=L.low=v+ke,L.high=A+he+(v>>>0>>0?1:0),O=F.low=O+me,F.high=k+ge+(O>>>0>>0?1:0),B=W.low=B+ve,W.high=D+Ke+(B>>>0>>0?1:0),N=V.low=N+so,V.high=x+Ae+(N>>>0>>0?1:0),E=K.low=E+bt,K.high=U+It+(E>>>0>>0?1:0)},_doFinalize:function(){var f=this._data,m=f.words,y=this._nDataBytes*8,I=f.sigBytes*8;m[I>>>5]|=128<<24-I%32,m[(I+128>>>10<<5)+30]=Math.floor(y/4294967296),m[(I+128>>>10<<5)+31]=y,f.sigBytes=m.length*4,this._process();var C=this._hash.toX32();return C},clone:function(){var f=n.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});e.SHA512=n._createHelper(h),e.HmacSHA512=n._createHmacHelper(h)}(),r.SHA512})});var aot=_((xde,not)=>{d();p();(function(r,e,t){typeof xde=="object"?not.exports=xde=e(rn(),IX(),O6e()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(xde,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,o=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),r.SHA384})});var sot=_((_de,iot)=>{d();p();(function(r,e,t){typeof _de=="object"?iot.exports=_de=e(rn(),IX()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(_de,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,o=s.Word,c=t.algo,u=[],l=[],h=[];(function(){for(var y=1,I=0,C=0;C<24;C++){u[y+5*I]=(C+1)*(C+2)/2%64;var R=I%5,L=(2*y+3*I)%5;y=R,I=L}for(var y=0;y<5;y++)for(var I=0;I<5;I++)l[y+5*I]=I+(2*y+3*I)%5*5;for(var F=1,W=0;W<24;W++){for(var V=0,K=0,H=0;H<7;H++){if(F&1){var G=(1<>>24)&16711935|(F<<24|F>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360;var V=C[L];V.high^=W,V.low^=F}for(var K=0;K<24;K++){for(var H=0;H<5;H++){for(var G=0,Q=0,q=0;q<5;q++){var V=C[H+5*q];G^=V.high,Q^=V.low}var T=f[H];T.high=G,T.low=Q}for(var H=0;H<5;H++)for(var M=f[(H+4)%5],A=f[(H+1)%5],v=A.high,k=A.low,G=M.high^(v<<1|k>>>31),Q=M.low^(k<<1|v>>>31),q=0;q<5;q++){var V=C[H+5*q];V.high^=G,V.low^=Q}for(var O=1;O<25;O++){var V=C[O],D=V.high,B=V.low,x=u[O];if(x<32)var G=D<>>32-x,Q=B<>>32-x;else var G=B<>>64-x,Q=D<>>64-x;var N=f[l[O]];N.high=G,N.low=Q}var U=f[0],E=C[0];U.high=E.high,U.low=E.low;for(var H=0;H<5;H++)for(var q=0;q<5;q++){var O=H+5*q,V=C[O],z=f[O],ee=f[(H+1)%5+5*q],j=f[(H+2)%5+5*q];V.high=z.high^~ee.high&j.high,V.low=z.low^~ee.low&j.low}var V=C[0],X=h[K];V.high^=X.high,V.low^=X.low}},_doFinalize:function(){var y=this._data,I=y.words,C=this._nDataBytes*8,R=y.sigBytes*8,L=this.blockSize*32;I[R>>>5]|=1<<24-R%32,I[(e.ceil((R+1)/L)*L>>>5)-1]|=128,y.sigBytes=I.length*4,this._process();for(var F=this._state,W=this.cfg.outputLength/8,V=W/8,K=[],H=0;H>>24)&16711935|(Q<<24|Q>>>8)&4278255360,q=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,K.push(q),K.push(Q)}return new a.init(K,W)},clone:function(){for(var y=i.clone.call(this),I=y._state=this._state.slice(0),C=0;C<25;C++)I[C]=I[C].clone();return y}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),r.SHA3})});var cot=_((Tde,oot)=>{d();p();(function(r,e){typeof Tde=="object"?oot.exports=Tde=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(Tde,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=a.create([0,1518500249,1859775393,2400959708,2840853838]),f=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(W,V){for(var K=0;K<16;K++){var H=V+K,G=W[H];W[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}var Q=this._hash.words,q=h.words,T=f.words,M=o.words,A=c.words,v=u.words,k=l.words,O,D,B,x,N,U,E,z,ee,j;U=O=Q[0],E=D=Q[1],z=B=Q[2],ee=x=Q[3],j=N=Q[4];for(var X,K=0;K<80;K+=1)X=O+W[V+M[K]]|0,K<16?X+=y(D,B,x)+q[0]:K<32?X+=I(D,B,x)+q[1]:K<48?X+=C(D,B,x)+q[2]:K<64?X+=R(D,B,x)+q[3]:X+=L(D,B,x)+q[4],X=X|0,X=F(X,v[K]),X=X+N|0,O=N,N=x,x=F(B,10),B=D,D=X,X=U+W[V+A[K]]|0,K<16?X+=L(E,z,ee)+T[0]:K<32?X+=R(E,z,ee)+T[1]:K<48?X+=C(E,z,ee)+T[2]:K<64?X+=I(E,z,ee)+T[3]:X+=y(E,z,ee)+T[4],X=X|0,X=F(X,k[K]),X=X+j|0,U=j,j=ee,ee=F(z,10),z=E,E=X;X=Q[1]+B+ee|0,Q[1]=Q[2]+x+j|0,Q[2]=Q[3]+N+U|0,Q[3]=Q[4]+O+E|0,Q[4]=Q[0]+D+z|0,Q[0]=X},_doFinalize:function(){var W=this._data,V=W.words,K=this._nDataBytes*8,H=W.sigBytes*8;V[H>>>5]|=128<<24-H%32,V[(H+64>>>9<<4)+14]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,W.sigBytes=(V.length+1)*4,this._process();for(var G=this._hash,Q=G.words,q=0;q<5;q++){var T=Q[q];Q[q]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return G},clone:function(){var W=i.clone.call(this);return W._hash=this._hash.clone(),W}});function y(W,V,K){return W^V^K}function I(W,V,K){return W&V|~W&K}function C(W,V,K){return(W|~V)^K}function R(W,V,K){return W&K|V&~K}function L(W,V,K){return W^(V|~K)}function F(W,V){return W<>>32-V}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),r.RIPEMD160})});var Ede=_((Ide,uot)=>{d();p();(function(r,e){typeof Ide=="object"?uot.exports=Ide=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(Ide,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,o=s.HMAC=n.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var l=c.blockSize,h=l*4;u.sigBytes>h&&(u=c.finalize(u)),u.clamp();for(var f=this._oKey=u.clone(),m=this._iKey=u.clone(),y=f.words,I=m.words,C=0;C{d();p();(function(r,e,t){typeof Cde=="object"?lot.exports=Cde=e(rn(),bde(),Ede()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(Cde,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,o=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var h=this.cfg,f=o.create(h.hasher,u),m=a.create(),y=a.create([1]),I=m.words,C=y.words,R=h.keySize,L=h.iterations;I.length{d();p();(function(r,e,t){typeof kde=="object"?pot.exports=kde=e(rn(),bde(),Ede()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(kde,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var l=this.cfg,h=l.hasher.create(),f=a.create(),m=f.words,y=l.keySize,I=l.iterations;m.length{d();p();(function(r,e,t){typeof Ade=="object"?hot.exports=Ade=e(rn(),Ag()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(Ade,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=o.Utf8,u=o.Base64,l=t.algo,h=l.EvpKDF,f=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(T,M){return this.create(this._ENC_XFORM_MODE,T,M)},createDecryptor:function(T,M){return this.create(this._DEC_XFORM_MODE,T,M)},init:function(T,M,A){this.cfg=this.cfg.extend(A),this._xformMode=T,this._key=M,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var M=this._doFinalize();return M},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(M){return typeof M=="string"?q:H}return function(M){return{encrypt:function(A,v,k){return T(v).encrypt(M,A,v,k)},decrypt:function(A,v,k){return T(v).decrypt(M,A,v,k)}}}}()}),m=n.StreamCipher=f.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1}),y=t.mode={},I=n.BlockCipherMode=a.extend({createEncryptor:function(T,M){return this.Encryptor.create(T,M)},createDecryptor:function(T,M){return this.Decryptor.create(T,M)},init:function(T,M){this._cipher=T,this._iv=M}}),C=y.CBC=function(){var T=I.extend();T.Encryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize;M.call(this,A,v,O),k.encryptBlock(A,v),this._prevBlock=A.slice(v,v+O)}}),T.Decryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize,D=A.slice(v,v+O);k.decryptBlock(A,v),M.call(this,A,v,O),this._prevBlock=D}});function M(A,v,k){var O=this._iv;if(O){var D=O;this._iv=e}else var D=this._prevBlock;for(var B=0;B>>2]&255;T.sigBytes-=M}},F=n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:C,padding:L}),reset:function(){f.reset.call(this);var T=this.cfg,M=T.iv,A=T.mode;if(this._xformMode==this._ENC_XFORM_MODE)var v=A.createEncryptor;else{var v=A.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==v?this._mode.init(this,M&&M.words):(this._mode=v.call(A,this,M&&M.words),this._mode.__creator=v)},_doProcessBlock:function(T,M){this._mode.processBlock(T,M)},_doFinalize:function(){var T=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){T.pad(this._data,this.blockSize);var M=this._process(!0)}else{var M=this._process(!0);T.unpad(M)}return M},blockSize:128/32}),W=n.CipherParams=a.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),V=t.format={},K=V.OpenSSL={stringify:function(T){var M=T.ciphertext,A=T.salt;if(A)var v=i.create([1398893684,1701076831]).concat(A).concat(M);else var v=M;return v.toString(u)},parse:function(T){var M=u.parse(T),A=M.words;if(A[0]==1398893684&&A[1]==1701076831){var v=i.create(A.slice(2,4));A.splice(0,4),M.sigBytes-=16}return W.create({ciphertext:M,salt:v})}},H=n.SerializableCipher=a.extend({cfg:a.extend({format:K}),encrypt:function(T,M,A,v){v=this.cfg.extend(v);var k=T.createEncryptor(A,v),O=k.finalize(M),D=k.cfg;return W.create({ciphertext:O,key:A,iv:D.iv,algorithm:T,mode:D.mode,padding:D.padding,blockSize:T.blockSize,formatter:v.format})},decrypt:function(T,M,A,v){v=this.cfg.extend(v),M=this._parse(M,v.format);var k=T.createDecryptor(A,v).finalize(M.ciphertext);return k},_parse:function(T,M){return typeof T=="string"?M.parse(T,this):T}}),G=t.kdf={},Q=G.OpenSSL={execute:function(T,M,A,v){v||(v=i.random(64/8));var k=h.create({keySize:M+A}).compute(T,v),O=i.create(k.words.slice(M),A*4);return k.sigBytes=M*4,W.create({key:k,iv:O,salt:v})}},q=n.PasswordBasedCipher=H.extend({cfg:H.cfg.extend({kdf:Q}),encrypt:function(T,M,A,v){v=this.cfg.extend(v);var k=v.kdf.execute(A,T.keySize,T.ivSize);v.iv=k.iv;var O=H.encrypt.call(this,T,M,k.key,v);return O.mixIn(k),O},decrypt:function(T,M,A,v){v=this.cfg.extend(v),M=this._parse(M,v.format);var k=v.kdf.execute(A,T.keySize,T.ivSize,M.salt);v.iv=k.iv;var O=H.decrypt.call(this,T,M,k.key,v);return O}})}()})});var mot=_((Pde,fot)=>{d();p();(function(r,e,t){typeof Pde=="object"?fot.exports=Pde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Pde,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=o}});function t(n,a,i,s){var o=this._iv;if(o){var c=o.slice(0);this._iv=void 0}else var c=this._prevBlock;s.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof Sde=="object"?yot.exports=Sde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Sde,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._counter;o&&(c=this._counter=o.slice(0),this._iv=void 0);var u=c.slice(0);i.encryptBlock(u,0),c[s-1]=c[s-1]+1|0;for(var l=0;l{d();p();(function(r,e,t){typeof Rde=="object"?bot.exports=Rde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Rde,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,o=i>>8&255,c=i&255;s===255?(s=0,o===255?(o=0,c===255?c=0:++c):++o):++s,i=0,i+=s<<16,i+=o<<8,i+=c}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var o=this._cipher,c=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),n(l);var h=l.slice(0);o.encryptBlock(h,0);for(var f=0;f{d();p();(function(r,e,t){typeof Mde=="object"?wot.exports=Mde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Mde,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._keystream;o&&(c=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof Nde=="object"?_ot.exports=Nde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Nde,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var Eot=_((Bde,Iot)=>{d();p();(function(r,e,t){typeof Bde=="object"?Iot.exports=Bde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Bde,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var kot=_((Dde,Cot)=>{d();p();(function(r,e,t){typeof Dde=="object"?Cot.exports=Dde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Dde,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var Pot=_((Lde,Aot)=>{d();p();(function(r,e,t){typeof Lde=="object"?Aot.exports=Lde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Lde,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var Rot=_((Ode,Sot)=>{d();p();(function(r,e,t){typeof Ode=="object"?Sot.exports=Ode=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Ode,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding})});var Not=_((qde,Mot)=>{d();p();(function(r,e,t){typeof qde=="object"?Mot.exports=qde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(qde,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var Dot=_((Fde,Bot)=>{d();p();(function(r,e,t){typeof Fde=="object"?Bot.exports=Fde=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Fde,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,o=t.format,c=o.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var l=s.parse(u);return a.create({ciphertext:l})}}}(),r.format.Hex})});var Oot=_((Wde,Lot)=>{d();p();(function(r,e,t){typeof Wde=="object"?Lot.exports=Wde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(Wde,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],o=[],c=[],u=[],l=[],h=[],f=[],m=[],y=[];(function(){for(var R=[],L=0;L<256;L++)L<128?R[L]=L<<1:R[L]=L<<1^283;for(var F=0,W=0,L=0;L<256;L++){var V=W^W<<1^W<<2^W<<3^W<<4;V=V>>>8^V&255^99,i[F]=V,s[V]=F;var K=R[F],H=R[K],G=R[H],Q=R[V]*257^V*16843008;o[F]=Q<<24|Q>>>8,c[F]=Q<<16|Q>>>16,u[F]=Q<<8|Q>>>24,l[F]=Q;var Q=G*16843009^H*65537^K*257^F*16843008;h[V]=Q<<24|Q>>>8,f[V]=Q<<16|Q>>>16,m[V]=Q<<8|Q>>>24,y[V]=Q,F?(F=K^R[R[R[G^K]]],W^=R[R[W]]):F=W=1}})();var I=[0,1,2,4,8,16,32,64,128,27,54],C=a.AES=n.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var R=this._keyPriorReset=this._key,L=R.words,F=R.sigBytes/4,W=this._nRounds=F+6,V=(W+1)*4,K=this._keySchedule=[],H=0;H6&&H%F==4&&(G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255]):(G=G<<8|G>>>24,G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255],G^=I[H/F|0]<<24),K[H]=K[H-F]^G}for(var Q=this._invKeySchedule=[],q=0;q>>24]]^f[i[G>>>16&255]]^m[i[G>>>8&255]]^y[i[G&255]]}}},encryptBlock:function(R,L){this._doCryptBlock(R,L,this._keySchedule,o,c,u,l,i)},decryptBlock:function(R,L){var F=R[L+1];R[L+1]=R[L+3],R[L+3]=F,this._doCryptBlock(R,L,this._invKeySchedule,h,f,m,y,s);var F=R[L+1];R[L+1]=R[L+3],R[L+3]=F},_doCryptBlock:function(R,L,F,W,V,K,H,G){for(var Q=this._nRounds,q=R[L]^F[0],T=R[L+1]^F[1],M=R[L+2]^F[2],A=R[L+3]^F[3],v=4,k=1;k>>24]^V[T>>>16&255]^K[M>>>8&255]^H[A&255]^F[v++],D=W[T>>>24]^V[M>>>16&255]^K[A>>>8&255]^H[q&255]^F[v++],B=W[M>>>24]^V[A>>>16&255]^K[q>>>8&255]^H[T&255]^F[v++],x=W[A>>>24]^V[q>>>16&255]^K[T>>>8&255]^H[M&255]^F[v++];q=O,T=D,M=B,A=x}var O=(G[q>>>24]<<24|G[T>>>16&255]<<16|G[M>>>8&255]<<8|G[A&255])^F[v++],D=(G[T>>>24]<<24|G[M>>>16&255]<<16|G[A>>>8&255]<<8|G[q&255])^F[v++],B=(G[M>>>24]<<24|G[A>>>16&255]<<16|G[q>>>8&255]<<8|G[T&255])^F[v++],x=(G[A>>>24]<<24|G[q>>>16&255]<<16|G[T>>>8&255]<<8|G[M&255])^F[v++];R[L]=O,R[L+1]=D,R[L+2]=B,R[L+3]=x},keySize:256/32});e.AES=n._createHelper(C)}(),r.AES})});var Fot=_((Ude,qot)=>{d();p();(function(r,e,t){typeof Ude=="object"?qot.exports=Ude=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(Ude,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=a.extend({_doReset:function(){for(var I=this._key,C=I.words,R=[],L=0;L<56;L++){var F=s[L]-1;R[L]=C[F>>>5]>>>31-F%32&1}for(var W=this._subKeys=[],V=0;V<16;V++){for(var K=W[V]=[],H=c[V],L=0;L<24;L++)K[L/6|0]|=R[(o[L]-1+H)%28]<<31-L%6,K[4+(L/6|0)]|=R[28+(o[L+24]-1+H)%28]<<31-L%6;K[0]=K[0]<<1|K[0]>>>31;for(var L=1;L<7;L++)K[L]=K[L]>>>(L-1)*4+3;K[7]=K[7]<<5|K[7]>>>27}for(var G=this._invSubKeys=[],L=0;L<16;L++)G[L]=W[15-L]},encryptBlock:function(I,C){this._doCryptBlock(I,C,this._subKeys)},decryptBlock:function(I,C){this._doCryptBlock(I,C,this._invSubKeys)},_doCryptBlock:function(I,C,R){this._lBlock=I[C],this._rBlock=I[C+1],f.call(this,4,252645135),f.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),f.call(this,1,1431655765);for(var L=0;L<16;L++){for(var F=R[L],W=this._lBlock,V=this._rBlock,K=0,H=0;H<8;H++)K|=u[H][((V^F[H])&l[H])>>>0];this._lBlock=V,this._rBlock=W^K}var G=this._lBlock;this._lBlock=this._rBlock,this._rBlock=G,f.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),I[C]=this._lBlock,I[C+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(I,C){var R=(this._lBlock>>>I^this._rBlock)&C;this._rBlock^=R,this._lBlock^=R<>>I^this._lBlock)&C;this._lBlock^=R,this._rBlock^=R<{d();p();(function(r,e,t){typeof Hde=="object"?Wot.exports=Hde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(Hde,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var c=this._key,u=c.words,l=c.sigBytes,h=this._S=[],f=0;f<256;f++)h[f]=f;for(var f=0,m=0;f<256;f++){var y=f%l,I=u[y>>>2]>>>24-y%4*8&255;m=(m+h[f]+I)%256;var C=h[f];h[f]=h[m],h[m]=C}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,u=this._i,l=this._j,h=0,f=0;f<4;f++){u=(u+1)%256,l=(l+c[u])%256;var m=c[u];c[u]=c[l],c[l]=m,h|=c[(c[u]+c[l])%256]<<24-f*8}return this._i=u,this._j=l,h}e.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),r.RC4})});var jot=_((jde,Hot)=>{d();p();(function(r,e,t){typeof jde=="object"?Hot.exports=jde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(jde,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.Rabbit=n.extend({_doReset:function(){for(var l=this._key.words,h=this.cfg.iv,f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360;var m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],y=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var f=0;f<4;f++)u.call(this);for(var f=0;f<8;f++)y[f]^=m[f+4&7];if(h){var I=h.words,C=I[0],R=I[1],L=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,W=L>>>16|F&4294901760,V=F<<16|L&65535;y[0]^=L,y[1]^=W,y[2]^=F,y[3]^=V,y[4]^=L,y[5]^=W,y[6]^=F,y[7]^=V;for(var f=0;f<4;f++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,I=m>>>16,C=((y*y>>>17)+y*I>>>15)+I*I,R=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=C^R}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(c)}(),r.Rabbit})});var Kot=_((zde,zot)=>{d();p();(function(r,e,t){typeof zde=="object"?zot.exports=zde=e(rn(),s2(),o2(),Ag(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(zde,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.RabbitLegacy=n.extend({_doReset:function(){var l=this._key.words,h=this.cfg.iv,f=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],m=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var y=0;y<4;y++)u.call(this);for(var y=0;y<8;y++)m[y]^=f[y+4&7];if(h){var I=h.words,C=I[0],R=I[1],L=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,F=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,W=L>>>16|F&4294901760,V=F<<16|L&65535;m[0]^=L,m[1]^=W,m[2]^=F,m[3]^=V,m[4]^=L,m[5]^=W,m[6]^=F,m[7]^=V;for(var y=0;y<4;y++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,I=m>>>16,C=((y*y>>>17)+y*I>>>15)+I*I,R=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=C^R}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(c)}(),r.RabbitLegacy})});var Vot=_((Kde,Got)=>{d();p();(function(r,e,t){typeof Kde=="object"?Got.exports=Kde=e(rn(),IX(),Yst(),Qst(),s2(),o2(),bde(),TX(),tot(),O6e(),aot(),sot(),cot(),Ede(),dot(),Ag(),Uo(),mot(),got(),vot(),xot(),Tot(),Eot(),kot(),Pot(),Rot(),Not(),Dot(),Oot(),Fot(),Uot(),jot(),Kot()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(Kde,function(r){return r})});var F6e=_(c2=>{"use strict";d();p();var qSr=c2&&c2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(c2,"__esModule",{value:!0});c2.Base=void 0;var hp=lc(),q6e=qSr(Vot()),nm=class{print(){nm.print(this)}_bufferIndexOf(e,t){for(let n=0;n{let n=e(t);return hp.Buffer.isBuffer(n)?n:this._isHexString(n)?hp.Buffer.from(n.replace("0x",""),"hex"):typeof n=="string"?hp.Buffer.from(n):ArrayBuffer.isView(n)?hp.Buffer.from(n.buffer,n.byteOffset,n.byteLength):hp.Buffer.from(e(q6e.default.enc.Hex.parse(t.toString("hex"))).toString(q6e.default.enc.Hex),"hex")}}_isHexString(e){return nm.isHexString(e)}_log2(e){return e===1?0:1+this._log2(e/2|0)}_zip(e,t){return e.map((n,a)=>[n,t[a]])}};c2.Base=nm;c2.default=nm});var $ot=_(u2=>{"use strict";d();p();var Gde=u2&&u2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(u2,"__esModule",{value:!0});u2.MerkleTree=void 0;var Xa=lc(),C0=Gde(Ust()),Yot=Gde(TX()),FSr=Gde(Kst()),WSr=Gde(F6e()),vl=class extends WSr.default{constructor(e,t=Yot.default,n={}){if(super(),this.duplicateOdd=!1,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.isBitcoinTree=!!n.isBitcoinTree,this.hashLeaves=!!n.hashLeaves,this.sortLeaves=!!n.sortLeaves,this.sortPairs=!!n.sortPairs,n.fillDefaultHash)if(typeof n.fillDefaultHash=="function")this.fillDefaultHash=n.fillDefaultHash;else if(Xa.Buffer.isBuffer(n.fillDefaultHash)||typeof n.fillDefaultHash=="string")this.fillDefaultHash=(a,i)=>n.fillDefaultHash;else throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');this.sort=!!n.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!n.duplicateOdd,this.hashFn=this.bufferifyFn(t),this.processLeaves(e)}processLeaves(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(Xa.Buffer.compare)),this.fillDefaultHash)for(let t=0;t=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.layers=[this.leaves],this._createHashes(this.leaves)}_createHashes(e){for(;e.length>1;){let t=this.layers.length;this.layers.push([]);for(let n=0;nthis._bufferIndexOf(e,t)!==-1)):this.leaves}getLeaf(e){return e<0||e>this.leaves.length-1?Xa.Buffer.from([]):this.leaves[e]}getLeafIndex(e){e=this.bufferify(e);let t=this.getLeaves();for(let n=0;nthis.bufferToHex(e))}static marshalLeaves(e){return JSON.stringify(e.map(t=>vl.bufferToHex(t)),null,2)}static unmarshalLeaves(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(vl.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((e,t)=>(Array.isArray(t)?e.push(t.map(n=>this.bufferToHex(n))):e.push(t),e),[])}getLayersFlat(){let e=this.layers.reduce((t,n)=>(Array.isArray(n)?t.unshift(...n):t.unshift(n),t),[]);return e.unshift(Xa.Buffer.from([0])),e}getHexLayersFlat(){return this.getLayersFlat().map(e=>this.bufferToHex(e))}getLayerCount(){return this.getLayers().length}getRoot(){return this.layers.length===0?Xa.Buffer.from([]):this.layers[this.layers.length-1][0]||Xa.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(e,t){if(typeof e>"u")throw new Error("leaf is required");e=this.bufferify(e);let n=[];if(!Number.isInteger(t)){t=-1;for(let a=0;athis.bufferToHex(n.data))}getPositionalHexProof(e,t){return this.getProof(e,t).map(n=>[n.position==="left"?0:1,this.bufferToHex(n.data)])}static marshalProof(e){let t=e.map(n=>typeof n=="string"?n:Xa.Buffer.isBuffer(n)?vl.bufferToHex(n):{position:n.position,data:vl.bufferToHex(n.data)});return JSON.stringify(t,null,2)}static unmarshalProof(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n=>{if(typeof n=="string")return vl.bufferify(n);if(n instanceof Object)return{position:n.position,data:vl.bufferify(n.data)};throw new Error("Expected item to be of type string or object")})}getProofIndices(e,t){let n=Math.pow(2,t),a=new Set;for(let u of e){let l=n+u;for(;l>1;)a.add(l^1),l=l/2|0}let i=e.map(u=>n+u),s=Array.from(a).sort((u,l)=>u-l).reverse();a=i.concat(s);let o=new Set,c=[];for(let u of a)if(!o.has(u))for(c.push(u);u>1&&(o.add(u),!!o.has(u^1));)u=u/2|0;return c.filter(u=>!e.includes(u-n))}getProofIndicesForUnevenTree(e,t){let n=Math.ceil(Math.log2(t)),a=[];for(let o=0;oh%2===0?h+1:h-1).filter(h=>!s.includes(h)),l=a.find(({index:h})=>h===o);l&&s.includes(l.leavesCount-1)&&(u=u.slice(0,-1)),i.push(u),s=[...new Set(s.map(h=>h%2===0?h/2:h%2===0?(h+1)/2:(h-1)/2))]}return i}getMultiProof(e,t){if(t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){let a=t;this.sortPairs&&(a=a.sort(Xa.Buffer.compare));let i=a.map(u=>this._bufferIndexOf(this.leaves,u)).sort((u,l)=>u===l?0:u>l?1:-1);if(!i.every(u=>u!==-1))throw new Error("Element does not exist in Merkle tree");let s=[],o=[],c=[];for(let u=0;um.indexOf(h)===f),c=[]}return o.filter(u=>!s.includes(u))}return this.getProofIndices(t,this._log2(e.length/2|0)).map(a=>e[a])}getMultiProofForUnevenTree(e,t){t||(t=e,e=this.getLayers());let n=[],a=t;for(let i of e){let s=[];for(let c of a){if(c%2===0){let l=c+1;if(!a.includes(l)&&i[l]){s.push(i[l]);continue}}let u=c-1;if(!a.includes(u)&&i[u]){s.push(i[u]);continue}}n=n.concat(s);let o=new Set;for(let c of a){if(c%2===0){o.add(c/2);continue}if(c%2===0){o.add((c+1)/2);continue}o.add((c-1)/2)}a=Array.from(o)}return n}getHexMultiProof(e,t){return this.getMultiProof(e,t).map(n=>this.bufferToHex(n))}getProofFlags(e,t){if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");let n;if(e.every(Number.isInteger)?n=e.sort((o,c)=>o===c?0:o>c?1:-1):n=e.map(o=>this._bufferIndexOf(this.leaves,o)).sort((o,c)=>o===c?0:o>c?1:-1),!n.every(o=>o!==-1))throw new Error("Element does not exist in Merkle tree");let a=t.map(o=>this.bufferify(o)),i=[],s=[];for(let o=0;o{if(!i.includes(c[l])){let f=this._getPairNode(c,l),m=a.includes(c[l])||a.includes(f);f&&s.push(!m),i.push(c[l]),i.push(f)}return u.push(l/2|0),u},[])}return s}verify(e,t,n){let a=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(let i=0;ithis.bufferify(h)),i=i.map(h=>this.bufferify(h));let c={};for(let[h,f]of this._zip(t,n))c[Math.pow(2,o)+h]=f;for(let[h,f]of this._zip(this.getProofIndices(t,o),i))c[h]=f;let u=Object.keys(c).map(h=>+h).sort((h,f)=>h-f);u=u.slice(0,u.length-1);let l=0;for(;l=2&&{}.hasOwnProperty.call(c,h^1)){let f=[c[h-h%2],c[h-h%2+1]];this.sortPairs&&(f=f.sort(Xa.Buffer.compare));let m=f[1]?this.hashFn(Xa.Buffer.concat(f)):f[0];c[h/2|0]=m,u.push(h/2|0)}l+=1}return!t.length||{}.hasOwnProperty.call(c,1)&&c[1].equals(e)}verifyMultiProofWithFlags(e,t,n,a){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);let i=t.length,s=a.length,o=[],c=0,u=0,l=0;for(let h=0;hthis.bufferify(o)),i=i.map(o=>this.bufferify(o));let s=this.calculateRootForUnevenTree(t,n,a,i);return e.equals(s)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let e=this.getLayers().map(n=>n.map(a=>this.bufferToHex(a,!1))),t=[];for(let n=0;nh-f),s=i.map(([h])=>h),o=this.getProofIndicesForUnevenTree(s,n),c=0,u=[];for(let h=0;hC-R).map(([,C])=>C),m=l[h].map(([C])=>C),y=[...new Set(m.map(C=>C%2===0?C/2:C%2===0?(C+1)/2:(C-1)/2))],I=[];for(let C=0;C{"use strict";d();p();var Qot=l2&&l2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(l2,"__esModule",{value:!0});l2.MerkleMountainRange=void 0;var EX=lc(),USr=Qot(TX()),HSr=Qot(F6e()),Vde=class extends HSr.default{constructor(e=USr.default,t=[],n,a,i){super(),this.root=EX.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},t=t.map(this.bufferify),this.hashFn=this.bufferifyFn(e),this.hashLeafFn=n,this.peakBaggingFn=a,this.hashBranchFn=i;for(let s of t)this.append(s)}append(e){e=this.bufferify(e);let t=this.hashFn(e),n=this.bufferToHex(t);(!this.data[n]||this.bufferToHex(this.hashFn(this.data[n]))!==n)&&(this.data[n]=e);let a=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=a,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let s=[];for(let o=0;o0&&!((e&1<=t));s--);if(a!==n.length)throw new Error("invalid bit calculation");return n}numOfPeaks(e){let t=e,n=0;for(;t>0;)t%2===1&&n++,t=t>>1;return n}peakBagging(e,t){let n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return e===0&&!t.length?EX.Buffer.alloc(0):this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(EX.Buffer.concat([this.bufferify(n),...t.map(this.bufferify)]))}getSize(e){return(e<<1)-this.numOfPeaks(e)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(e){return this.hashes[e]}mountainHeight(e){let t=1;for(;1<n;)t-=(1<this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");let t=this.root,n=this.width,a=this.getPeakIndexes(this.width),i=[],s=0;for(let h=0;h=e&&s===0&&(s=a[h]);let o=0,c=0,u=this.heightAt(s),l=[];for(;s!==e;)u--,[o,c]=this.getChildren(s),s=e<=o?o:c,l[u-1]=this.hashes[e<=o?c:o];return{root:t,width:n,peakBagging:i,siblings:l}}verify(e,t,n,a,i,s){if(a=this.bufferify(a),this.getSize(t)=n){u=i[C],c=l[C];break}if(!u)throw new Error("target not found");let h=s.length+1,f=new Array(h),m=0,y=0;for(;h>0&&(f[--h]=c,c!==n);)[m,y]=this.getChildren(c),c=n>m?y:m;let I;for(;hthis.size)throw new Error("out of range");if(!this.hashes[e]){let[t,n]=this.getChildren(e),a=this._getOrCreateNode(t),i=this._getOrCreateNode(n);this.hashes[e]=this.hashBranch(e,a,i)}return this.hashes[e]}};l2.MerkleMountainRange=Vde;l2.default=Vde});var ya=_(Pg=>{"use strict";d();p();var jSr=Pg&&Pg.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pg,"__esModule",{value:!0});Pg.MerkleTree=void 0;var Zot=jSr($ot());Pg.MerkleTree=Zot.default;var zSr=Jot();Object.defineProperty(Pg,"MerkleMountainRange",{enumerable:!0,get:function(){return zSr.MerkleMountainRange}});Pg.default=Zot.default});var ga=_((bVn,Xot)=>{"use strict";d();p();Xot.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var s=i[a];if(!r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}});var mn=_((xVn,KSr)=>{KSr.exports=[{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ba=_((_Vn,GSr)=>{GSr.exports=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var va=_((TVn,VSr)=>{VSr.exports=[{inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var wa=_((IVn,YSr)=>{YSr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"encryptedBaseURI",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var xa=_((EVn,$Sr)=>{$Sr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"contract IContractPublisher",name:"_prevPublisher",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],indexed:!1,internalType:"struct IContractPublisher.CustomContractInstance",name:"publishedContract",type:"tuple"}],name:"ContractPublished",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!0,internalType:"string",name:"contractId",type:"string"}],name:"ContractUnpublished",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"isPaused",type:"bool"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"PublisherProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"}],name:"getAllPublishedContracts",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContract",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance",name:"published",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContractVersions",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"compilerMetadataUri",type:"string"}],name:"getPublishedUriFromCompilerUri",outputs:[{internalType:"string[]",name:"publishedMetadataUris",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"}],name:"getPublisherProfileUri",outputs:[{internalType:"string",name:"uri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isPaused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"prevPublisher",outputs:[{internalType:"contract IContractPublisher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"},{internalType:"string",name:"_publishMetadataUri",type:"string"},{internalType:"string",name:"_compilerMetadataUri",type:"string"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"address",name:"_implementation",type:"address"}],name:"publishContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_pause",type:"bool"}],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"setPublisherProfileUri",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"unpublishContract",outputs:[],stateMutability:"nonpayable",type:"function"}]});var _a=_((CVn,QSr)=>{QSr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"},{indexed:!1,internalType:"string",name:"metadataUri",type:"string"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"}],name:"Deleted",type:"event"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"string",name:"metadataUri",type:"string"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"deploymentCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{components:[{internalType:"address",name:"deploymentAddress",type:"address"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"metadataURI",type:"string"}],internalType:"struct ITWMultichainRegistry.Deployment[]",name:"allDeployments",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"address",name:"_deployment",type:"address"}],name:"getMetadataUri",outputs:[{internalType:"string",name:"metadataUri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ta=_((kVn,JSr)=>{JSr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var yn=_(W6e=>{"use strict";d();p();Object.defineProperty(W6e,"__esModule",{value:!0});var ZSr={};W6e.GENERATED_ABI=ZSr});var Ia=_((RVn,XSr)=>{XSr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"address",name:"_registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!0,internalType:"bytes32",name:"contractType",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"ImplementationAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"bool",name:"isApproved",type:"bool"}],name:"ImplementationApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"address",name:"proxy",type:"address"},{indexed:!0,internalType:"address",name:"deployer",type:"address"}],name:"ProxyDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FACTORY_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"}],name:"addImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"approval",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"currentVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployProxy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyByImplementation",outputs:[{internalType:"address",name:"deployedProxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyDeterministic",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"uint256",name:"_version",type:"uint256"}],name:"getImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"}],name:"getLatestImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"",type:"uint256"}],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"registry",outputs:[{internalType:"contract TWRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ea=_((MVn,e7r)=>{e7r.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Deleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var H6e=_(ect=>{"use strict";d();p();var t7r=bi(),r7r=je(),U6e=class{constructor(e){t7r._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&r7r.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};ect.DropErc1155History=U6e});var CX=_(tct=>{"use strict";d();p();var d2=bi(),Yde=os(),j6e=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;d2._defineProperty(this,"contractWrapper",void 0),d2._defineProperty(this,"storage",void 0),d2._defineProperty(this,"erc1155",void 0),d2._defineProperty(this,"_chainId",void 0),d2._defineProperty(this,"transfer",Yde.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),d2._defineProperty(this,"setApprovalForAll",Yde.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),d2._defineProperty(this,"airdrop",Yde.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new Yde.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};tct.StandardErc1155=j6e});var AX=_(iV=>{"use strict";d();p();var n7r=bi(),a7r=Gr(),kX=os();function i7r(r){return r&&r.__esModule?r:{default:r}}var K6e=i7r(a7r),s7r="https://paper.xyz/api",o7r="2022-08-12",G6e=`${s7r}/${o7r}/platform/thirdweb`,rct={[kX.ChainId.Mainnet]:"Ethereum",[kX.ChainId.Goerli]:"Goerli",[kX.ChainId.Polygon]:"Polygon",[kX.ChainId.Mumbai]:"Mumbai",[kX.ChainId.Avalanche]:"Avalanche"};function nct(r){return K6e.default(r in rct,`chainId not supported by paper: ${r}`),rct[r]}async function act(r,e){let t=nct(e),a=await(await fetch(`${G6e}/register-contract?contractAddress=${r}&chain=${t}`)).json();return K6e.default(a.result.id,"Contract is not registered with paper"),a.result.id}var c7r={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function ict(r,e){let n=await(await fetch(`${G6e}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...c7r,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return K6e.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var z6e=class{constructor(e){n7r._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return act(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await ict(await this.getCheckoutId(),e)}};iV.PAPER_API_URL=G6e;iV.PaperCheckout=z6e;iV.createCheckoutLinkIntent=ict;iV.fetchRegisteredCheckoutId=act;iV.parseChainIdToPaperChain=nct});var oct=_(sct=>{"use strict";d();p();var Ks=bi(),Is=os(),u7r=H6e(),l7r=CX(),d7r=AX(),p7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var sV=class extends l7r.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Is.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ks._defineProperty(this,"abi",void 0),Ks._defineProperty(this,"sales",void 0),Ks._defineProperty(this,"platformFees",void 0),Ks._defineProperty(this,"encoder",void 0),Ks._defineProperty(this,"estimator",void 0),Ks._defineProperty(this,"events",void 0),Ks._defineProperty(this,"metadata",void 0),Ks._defineProperty(this,"app",void 0),Ks._defineProperty(this,"roles",void 0),Ks._defineProperty(this,"royalties",void 0),Ks._defineProperty(this,"claimConditions",void 0),Ks._defineProperty(this,"checkout",void 0),Ks._defineProperty(this,"history",void 0),Ks._defineProperty(this,"interceptor",void 0),Ks._defineProperty(this,"owner",void 0),Ks._defineProperty(this,"createBatch",Is.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Ks._defineProperty(this,"claimTo",Is.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Ks._defineProperty(this,"claim",Is.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Ks._defineProperty(this,"burnTokens",Is.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=Is.AbiSchema.parse(s),this.metadata=new Is.ContractMetadata(this.contractWrapper,Is.DropErc1155ContractSchema,this.storage),this.app=new Is.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Is.ContractRoles(this.contractWrapper,sV.contractRoles),this.royalties=new Is.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Is.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Is.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Is.ContractEvents(this.contractWrapper),this.history=new u7r.DropErc1155History(this.events),this.encoder=new Is.ContractEncoder(this.contractWrapper),this.estimator=new Is.GasCostEstimator(this.contractWrapper),this.platformFees=new Is.ContractPlatformFee(this.contractWrapper),this.interceptor=new Is.ContractInterceptor(this.contractWrapper),this.checkout=new d7r.PaperCheckout(this.contractWrapper),this.owner=new Is.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Is.getRoleHash("transfer"),p7r.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return Is.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ks._defineProperty(sV,"contractRoles",["admin","minter","transfer"]);sct.EditionDrop=sV});var V6e=_((KVn,h7r)=>{h7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var Y6e=_((GVn,f7r)=>{f7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"_tokenURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var uct=_(cct=>{"use strict";d();p();var Es=bi(),vi=os(),m7r=CX(),y7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var oV=class extends m7r.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new vi.ContractWrapper(e,t,i,a);super(o,n,s),Es._defineProperty(this,"abi",void 0),Es._defineProperty(this,"metadata",void 0),Es._defineProperty(this,"app",void 0),Es._defineProperty(this,"roles",void 0),Es._defineProperty(this,"sales",void 0),Es._defineProperty(this,"platformFees",void 0),Es._defineProperty(this,"encoder",void 0),Es._defineProperty(this,"estimator",void 0),Es._defineProperty(this,"events",void 0),Es._defineProperty(this,"royalties",void 0),Es._defineProperty(this,"signature",void 0),Es._defineProperty(this,"interceptor",void 0),Es._defineProperty(this,"owner",void 0),Es._defineProperty(this,"mint",vi.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),Es._defineProperty(this,"mintTo",vi.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),Es._defineProperty(this,"mintAdditionalSupply",vi.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),Es._defineProperty(this,"mintAdditionalSupplyTo",vi.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),Es._defineProperty(this,"mintBatch",vi.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),Es._defineProperty(this,"mintBatchTo",vi.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),Es._defineProperty(this,"burn",vi.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=vi.AbiSchema.parse(i||[]),this.metadata=new vi.ContractMetadata(this.contractWrapper,vi.TokenErc1155ContractSchema,this.storage),this.app=new vi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new vi.ContractRoles(this.contractWrapper,oV.contractRoles),this.royalties=new vi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new vi.ContractPrimarySale(this.contractWrapper),this.encoder=new vi.ContractEncoder(this.contractWrapper),this.estimator=new vi.GasCostEstimator(this.contractWrapper),this.events=new vi.ContractEvents(this.contractWrapper),this.platformFees=new vi.ContractPlatformFee(this.contractWrapper),this.interceptor=new vi.ContractInterceptor(this.contractWrapper),this.signature=new vi.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.owner=new vi.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(vi.getRoleHash("transfer"),y7r.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return vi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Es._defineProperty(oV,"contractRoles",["admin","minter","transfer"]);cct.Edition=oV});var $6e=_((QVn,g7r)=>{g7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"flatFee",type:"uint256"}],name:"FlatPlatformFeeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"enum TokenERC1155.PlatformFeeType",name:"feeType",type:"uint8"}],name:"PlatformFeeTypeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlatPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeType",outputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"string",name:"_uri",type:"string"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipientForToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_flatFee",type:"uint256"}],name:"setFlatPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"_feeType",type:"uint8"}],name:"setPlatformFeeType",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var Z6e=_(Jde=>{"use strict";d();p();var Ho=bi(),Ge=os(),b7r=mn(),v7r=pn(),w7r=hn(),ur=je(),x7r=Gr();function Qde(r){return r&&r.__esModule?r:{default:r}}var _7r=Qde(b7r),T7r=Qde(v7r),I7r=Qde(w7r),$de=Qde(x7r),p2=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),Q6e=class{constructor(e,t){Ho._defineProperty(this,"contractWrapper",void 0),Ho._defineProperty(this,"storage",void 0),Ho._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Ho._defineProperty(this,"makeOffer",Ge.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ge.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=ur.BigNumber.from(a),l=ur.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ge.setErc20Allowance(this.contractWrapper,l,i,h);let f=ur.ethers.constants.MaxUint256;return o&&(f=ur.BigNumber.from(Math.floor(o.getTime()/1e3))),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Ho._defineProperty(this,"acceptOffer",Ge.buildTransactionFunction(async(n,a)=>{await this.validateListing(ur.BigNumber.from(n));let i=await Ge.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Ho._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(ur.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=ur.BigNumber.from(a),h=ur.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Ho._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ge.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Ho._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ur.constants.AddressZero)throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==p2.Direct)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(ur.BigNumber.from(e)),$de.default(ur.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ge.resolveAddress(t));if(n.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:p2.Direct}}async isStillValidListing(e,t){if(!await Ge.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new ur.Contract(e.assetContractAddress,_7r.default,a),s=await i.supportsInterface(Ge.InterfaceId_IERC721),o=await i.supportsInterface(Ge.InterfaceId_IERC1155);if(s){let u=(await new ur.Contract(e.assetContractAddress,T7r.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new ur.Contract(e.assetContractAddress,I7r.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},J6e=class{constructor(e,t){Ho._defineProperty(this,"contractWrapper",void 0),Ho._defineProperty(this,"storage",void 0),Ho._defineProperty(this,"encoder",void 0),Ho._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Ho._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=await Ge.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,ur.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Ho._defineProperty(this,"makeBid",Ge.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(ur.BigNumber.from(n)),s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(ur.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ge.isWinningBid(c.pricePerToken,s,o);$de.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=ur.BigNumber.from(i.reservePrice);$de.default(f.gte(m),"Bid price is too low based on reserve price")}let u=ur.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,ur.ethers.constants.MaxUint256],overrides:h})})),Ho._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=ur.BigNumber.from(Math.floor(Date.now()/1e3)),s=ur.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==ur.constants.AddressZero)throw new Ge.AuctionAlreadyStartedError(n.toString());return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Ho._defineProperty(this,"closeListing",Ge.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(ur.BigNumber.from(n));try{return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Ho._defineProperty(this,"executeSale",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n));try{let i=await this.getWinningBid(n);$de.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Ho._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ge.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==p2.Auction)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(ur.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(ur.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=ur.BigNumber.from(Math.floor(Date.now()/1e3)),i=ur.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==ur.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(ur.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(ur.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:ur.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:p2.Auction}}};Jde.ListingType=p2;Jde.MarketplaceAuction=J6e;Jde.MarketplaceDirect=Q6e});var pct=_(dct=>{"use strict";d();p();var ji=bi(),nn=os(),Ch=Z6e(),rd=je(),E7r=Gr();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function C7r(r){return r&&r.__esModule?r:{default:r}}var lct=C7r(E7r),cV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new nn.ContractWrapper(e,t,i,a);ji._defineProperty(this,"abi",void 0),ji._defineProperty(this,"contractWrapper",void 0),ji._defineProperty(this,"storage",void 0),ji._defineProperty(this,"encoder",void 0),ji._defineProperty(this,"events",void 0),ji._defineProperty(this,"estimator",void 0),ji._defineProperty(this,"platformFees",void 0),ji._defineProperty(this,"metadata",void 0),ji._defineProperty(this,"app",void 0),ji._defineProperty(this,"roles",void 0),ji._defineProperty(this,"interceptor",void 0),ji._defineProperty(this,"direct",void 0),ji._defineProperty(this,"auction",void 0),ji._defineProperty(this,"_chainId",void 0),ji._defineProperty(this,"getAll",this.getAllListings),ji._defineProperty(this,"buyoutListing",nn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new nn.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Ch.ListingType.Direct:return lct.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Ch.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),ji._defineProperty(this,"makeOffer",nn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new nn.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Ch.ListingType.Direct:return lct.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,nn.isNativeToken(h.currency)?nn.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Ch.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),ji._defineProperty(this,"setBidBufferBps",nn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,rd.BigNumber.from(c)]})})),ji._defineProperty(this,"setTimeBufferInSeconds",nn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[rd.BigNumber.from(c),u]})})),ji._defineProperty(this,"allowListingFromSpecificAssetOnly",nn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(rd.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[nn.getRoleHash("asset"),rd.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[nn.getRoleHash("asset"),c])),nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),ji._defineProperty(this,"allowListingFromAnyAsset",nn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[nn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[nn.getRoleHash("asset"),rd.constants.AddressZero])),nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=nn.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new nn.ContractMetadata(this.contractWrapper,nn.MarketplaceContractSchema,this.storage),this.app=new nn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new nn.ContractRoles(this.contractWrapper,cV.contractRoles),this.encoder=new nn.ContractEncoder(this.contractWrapper),this.estimator=new nn.GasCostEstimator(this.contractWrapper),this.direct=new Ch.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Ch.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new nn.ContractEvents(this.contractWrapper),this.platformFees=new nn.ContractPlatformFee(this.contractWrapper),this.interceptor=new nn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===rd.constants.AddressZero)throw new nn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Ch.ListingType.Auction:return await this.auction.mapListing(t);case Ch.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=rd.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Ch.ListingType.Auction&&rd.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&rd.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Ch.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(nn.getRoleHash("lister"),rd.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await nn.mapOffer(this.contractWrapper.getProvider(),rd.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof nn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Ch.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=rd.BigNumber.from(t?.start||0).toNumber(),i=rd.BigNumber.from(t?.count||ji.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return nn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};ji._defineProperty(cV,"contractRoles",["admin","lister","asset"]);dct.Marketplace=cV});var X6e=_((nYn,k7r)=>{k7r.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"timeBuffer",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bidBufferBps",type:"uint256"}],name:"AuctionBuffersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!0,internalType:"bool",name:"cancelled",type:"bool"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],indexed:!1,internalType:"struct IMarketplace.Listing",name:"listing",type:"tuple"}],name:"ListingAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"quantityWanted",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalOfferAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"currency",type:"address"}],name:"NewOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_BPS",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_offeror",type:"address"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"bidBufferBps",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantityToBuy",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_totalPrice",type:"uint256"}],name:"buy",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelDirectListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_closeFor",type:"address"}],name:"closeAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"secondsUntilEndTime",type:"uint256"},{internalType:"uint256",name:"quantityToList",type:"uint256"},{internalType:"address",name:"currencyToAccept",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],internalType:"struct IMarketplace.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listings",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityWanted",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"uint256",name:"_expirationTimestamp",type:"uint256"}],name:"offer",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"offers",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_timeBuffer",type:"uint256"},{internalType:"uint256",name:"_bidBufferBps",type:"uint256"}],name:"setAuctionBuffers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"timeBuffer",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityToList",type:"uint256"},{internalType:"uint256",name:"_reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"_buyoutPricePerToken",type:"uint256"},{internalType:"address",name:"_currencyToAccept",type:"address"},{internalType:"uint256",name:"_startTime",type:"uint256"},{internalType:"uint256",name:"_secondsUntilEndTime",type:"uint256"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"winningBid",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var fct=_(hct=>{"use strict";d();p();var nd=bi(),wi=os();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var uV=class{get directListings(){return wi.assertEnabled(this.detectDirectListings(),wi.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return wi.assertEnabled(this.detectEnglishAuctions(),wi.FEATURE_ENGLISH_AUCTIONS)}get offers(){return wi.assertEnabled(this.detectOffers(),wi.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new wi.ContractWrapper(e,t,i,a);nd._defineProperty(this,"abi",void 0),nd._defineProperty(this,"contractWrapper",void 0),nd._defineProperty(this,"storage",void 0),nd._defineProperty(this,"encoder",void 0),nd._defineProperty(this,"events",void 0),nd._defineProperty(this,"estimator",void 0),nd._defineProperty(this,"platformFees",void 0),nd._defineProperty(this,"metadata",void 0),nd._defineProperty(this,"app",void 0),nd._defineProperty(this,"roles",void 0),nd._defineProperty(this,"interceptor",void 0),nd._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=wi.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new wi.ContractMetadata(this.contractWrapper,wi.MarketplaceContractSchema,this.storage),this.app=new wi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new wi.ContractRoles(this.contractWrapper,uV.contractRoles),this.encoder=new wi.ContractEncoder(this.contractWrapper),this.estimator=new wi.GasCostEstimator(this.contractWrapper),this.events=new wi.ContractEvents(this.contractWrapper),this.platformFees=new wi.ContractPlatformFee(this.contractWrapper),this.interceptor=new wi.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return wi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectDirectListings(){if(wi.detectContractFeature(this.contractWrapper,"DirectListings"))return new wi.MarketplaceV3DirectListings(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(wi.detectContractFeature(this.contractWrapper,"EnglishAuctions"))return new wi.MarketplaceV3EnglishAuctions(this.contractWrapper,this.storage)}detectOffers(){if(wi.detectContractFeature(this.contractWrapper,"Offers"))return new wi.MarketplaceV3Offers(this.contractWrapper,this.storage)}};nd._defineProperty(uV,"contractRoles",["admin","lister","asset"]);hct.MarketplaceV3=uV});var eIe=_((oYn,A7r)=>{A7r.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint16",name:"_platformFeeBps",type:"uint16"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var lV=_(mct=>{"use strict";d();p();var h2=bi(),Sg=os(),tIe=class{get chainId(){return this._chainId}constructor(e,t,n){h2._defineProperty(this,"contractWrapper",void 0),h2._defineProperty(this,"storage",void 0),h2._defineProperty(this,"erc721",void 0),h2._defineProperty(this,"_chainId",void 0),h2._defineProperty(this,"transfer",Sg.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),h2._defineProperty(this,"setApprovalForAll",Sg.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),h2._defineProperty(this,"setApprovalForToken",Sg.buildTransactionFunction(async(a,i)=>Sg.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Sg.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new Sg.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await Sg.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await Sg.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};mct.StandardErc721=tIe});var gct=_(yct=>{"use strict";d();p();var fp=bi(),xi=os(),P7r=lV(),S7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var dV=class extends P7r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new xi.ContractWrapper(e,t,i,a);super(o,n,s),fp._defineProperty(this,"abi",void 0),fp._defineProperty(this,"encoder",void 0),fp._defineProperty(this,"estimator",void 0),fp._defineProperty(this,"metadata",void 0),fp._defineProperty(this,"app",void 0),fp._defineProperty(this,"events",void 0),fp._defineProperty(this,"roles",void 0),fp._defineProperty(this,"royalties",void 0),fp._defineProperty(this,"owner",void 0),fp._defineProperty(this,"wrap",xi.buildTransactionFunction(async(c,u,l)=>{let h=await xi.uploadOrExtractURI(u,this.storage),f=await xi.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let I=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(I.length===0)throw new Error("TokensWrapped event not found");let C=I[0].args.tokenIdOfWrappedToken;return{id:C,receipt:y,data:()=>this.get(C)}}})})),fp._defineProperty(this,"unwrap",xi.buildTransactionFunction(async(c,u)=>{let l=await xi.resolveAddress(u||await this.contractWrapper.getSignerAddress());return xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=xi.AbiSchema.parse(i||[]),this.metadata=new xi.ContractMetadata(this.contractWrapper,xi.MultiwrapContractSchema,this.storage),this.app=new xi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new xi.ContractRoles(this.contractWrapper,dV.contractRoles),this.encoder=new xi.ContractEncoder(this.contractWrapper),this.estimator=new xi.GasCostEstimator(this.contractWrapper),this.events=new xi.ContractEvents(this.contractWrapper),this.royalties=new xi.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new xi.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await xi.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:S7r.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await xi.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await xi.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +`});var sgt=de(()=>{f();d();igt();Ube();_g();vRe();xse()});var ogt={};Rr(ogt,{CID:()=>hc,bases:()=>Vbe,bytes:()=>Wbe,codecs:()=>Pan,digest:()=>Ow,hasher:()=>zbe,hashes:()=>San,varint:()=>jZ});var Vbe,San,Pan,ERe=de(()=>{f();d();F2t();L2t();q2t();W2t();U2t();lRe();H2t();pRe();j2t();K2t();J2t();egt();tgt();rgt();sgt();Vbe={...aRe,...iRe,...sRe,...oRe,...cRe,...uRe,...fRe,...dRe,...hRe,...mRe},San={...wRe,...xRe},Pan={raw:_Re,json:TRe}});function Ig(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}var Tse=de(()=>{f();d()});function zZ(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?Ig(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}var $be=de(()=>{f();d();Tse()});function ugt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var cgt,IRe,Ran,Ybe,CRe=de(()=>{f();d();ERe();$be();cgt=ugt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),IRe=ugt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=zZ(r.length);for(let t=0;tC1});function C1(r,e="utf8"){let t=Ybe[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString("utf8"):t.encoder.encode(r).substring(1)}var KZ=de(()=>{f();d();CRe()});var Ese={};Rr(Ese,{fromString:()=>Mh});function Mh(r,e="utf8"){let t=Ybe[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?Ig(globalThis.Buffer.from(r,"utf-8")):t.decoder.decode(`${t.prefix}${r}`)}var Fw=de(()=>{f();d();CRe();Tse()});var Cse={};Rr(Cse,{concat:()=>Ise});function Ise(r,e){e||(e=r.reduce((a,i)=>a+i.length,0));let t=zZ(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return Ig(t)}var Lw=de(()=>{f();d();$be();Tse()});var kse=E((LSa,mgt)=>{"use strict";f();d();var lgt=YPe(),GZ=P2t(),{names:Ase}=M2t(),{toString:Jbe}=(KZ(),Ht(Qbe)),{fromString:Man}=(Fw(),Ht(Ese)),{concat:Ban}=(Lw(),Ht(Cse)),VZ={};for(let r in Ase){let e=r;VZ[Ase[e]]=e}Object.freeze(VZ);function Dan(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Jbe(r,"base16")}function Nan(r){return Man(r,"base16")}function Oan(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return Jbe(lgt.encode("base58btc",r)).slice(1)}function Fan(r){let e=r instanceof Uint8Array?Jbe(r):r;return lgt.decode("z"+e)}function fgt(r){if(!(r instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(r.length<2)throw new Error("multihash too short. must be > 2 bytes.");let e=GZ.decode(r);if(!pgt(e))throw new Error(`multihash unknown function code: 0x${e.toString(16)}`);r=r.slice(GZ.decode.bytes);let t=GZ.decode(r);if(t<0)throw new Error(`multihash invalid length: ${t}`);if(r=r.slice(GZ.decode.bytes),r.length!==t)throw new Error(`multihash length inconsistent: 0x${Jbe(r,"base16")}`);return{code:e,name:VZ[e],length:t,digest:r}}function Lan(r,e,t){if(!r||e===void 0)throw new Error("multihash encode requires at least two args: digest, code");let n=dgt(e);if(!(r instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(t==null&&(t=r.length),t&&r.length!==t)throw new Error("digest length should be equal to specified length.");let a=GZ.encode(n),i=GZ.encode(t);return Ban([a,i,r],a.length+i.length+r.length)}function dgt(r){let e=r;if(typeof r=="string"){if(Ase[r]===void 0)throw new Error(`Unrecognized hash function named: ${r}`);e=Ase[r]}if(typeof e!="number")throw new Error(`Hash function code should be a number. Got: ${e}`);if(VZ[e]===void 0&&!ARe(e))throw new Error(`Unrecognized function code: ${e}`);return e}function ARe(r){return r>0&&r<16}function pgt(r){return!!(ARe(r)||VZ[r])}function hgt(r){fgt(r)}function qan(r){return hgt(r),r.subarray(0,2)}mgt.exports={names:Ase,codes:VZ,toHexString:Dan,fromHexString:Nan,toB58String:Oan,fromB58String:Fan,decode:fgt,encode:Lan,coerceCode:dgt,isAppCode:ARe,validate:hgt,prefix:qan,isValidCode:pgt}});var ygt=E((Sse,Zbe)=>{f();d();(function(r,e){"use strict";var t={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(m){if(!Array.isArray(m)&&!ArrayBuffer.isView(m))return!1;for(var y=0;y255)return!1;return!0}function a(m,y){return(m&65535)*y+(((m>>>16)*y&65535)<<16)}function i(m,y){return m<>>32-y}function s(m){return m^=m>>>16,m=a(m,2246822507),m^=m>>>13,m=a(m,3266489909),m^=m>>>16,m}function o(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var C=[0,0,0,0];return C[3]+=m[3]+y[3],C[2]+=C[3]>>>16,C[3]&=65535,C[2]+=m[2]+y[2],C[1]+=C[2]>>>16,C[2]&=65535,C[1]+=m[1]+y[1],C[0]+=C[1]>>>16,C[1]&=65535,C[0]+=m[0]+y[0],C[0]&=65535,[C[0]<<16|C[1],C[2]<<16|C[3]]}function c(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var C=[0,0,0,0];return C[3]+=m[3]*y[3],C[2]+=C[3]>>>16,C[3]&=65535,C[2]+=m[2]*y[3],C[1]+=C[2]>>>16,C[2]&=65535,C[2]+=m[3]*y[2],C[1]+=C[2]>>>16,C[2]&=65535,C[1]+=m[1]*y[3],C[0]+=C[1]>>>16,C[1]&=65535,C[1]+=m[2]*y[2],C[0]+=C[1]>>>16,C[1]&=65535,C[1]+=m[3]*y[1],C[0]+=C[1]>>>16,C[1]&=65535,C[0]+=m[0]*y[3]+m[1]*y[2]+m[2]*y[1]+m[3]*y[0],C[0]&=65535,[C[0]<<16|C[1],C[2]<<16|C[3]]}function u(m,y){return y%=64,y===32?[m[1],m[0]]:y<32?[m[0]<>>32-y,m[1]<>>32-y]:(y-=32,[m[1]<>>32-y,m[0]<>>32-y])}function l(m,y){return y%=64,y===0?m:y<32?[m[0]<>>32-y,m[1]<>>1]),m=c(m,[4283543511,3981806797]),m=p(m,[0,m[0]>>>1]),m=c(m,[3301882366,444984403]),m=p(m,[0,m[0]>>>1]),m}t.x86.hash32=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var C=m.length%4,P=m.length-C,A=y,B=0,F=3432918353,W=461845907,K=0;K>>0},t.x86.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var C=m.length%16,P=m.length-C,A=y,B=y,F=y,W=y,K=0,z=0,G=0,j=0,H=597399067,I=2869860233,b=951274213,k=2716044179,S=0;S>>0).toString(16)).slice(-8)+("00000000"+(B>>>0).toString(16)).slice(-8)+("00000000"+(F>>>0).toString(16)).slice(-8)+("00000000"+(W>>>0).toString(16)).slice(-8)},t.x64.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var C=m.length%16,P=m.length-C,A=[0,y],B=[0,y],F=[0,0],W=[0,0],K=[2277735313,289559509],z=[1291169091,658871167],G=0;G>>0).toString(16)).slice(-8)+("00000000"+(A[1]>>>0).toString(16)).slice(-8)+("00000000"+(B[0]>>>0).toString(16)).slice(-8)+("00000000"+(B[1]>>>0).toString(16)).slice(-8)},typeof Sse<"u"?(typeof Zbe<"u"&&Zbe.exports&&(Sse=Zbe.exports=t),Sse.murmurHash3=t):typeof define=="function"&&define.amd?define([],function(){return t}):(t._murmurHash3=r.murmurHash3,t.noConflict=function(){return r.murmurHash3=t._murmurHash3,t._murmurHash3=e,t.noConflict=e,t},r.murmurHash3=t)})(Sse)});var ggt=E((jSa,bgt)=>{f();d();bgt.exports=ygt()});var wgt=E((GSa,vgt)=>{"use strict";f();d();var Wan=kse(),$Z=self.crypto||self.msCrypto,kRe=async(r,e)=>{if(typeof self>"u"||!$Z)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(e){case"sha1":return new Uint8Array(await $Z.subtle.digest({name:"SHA-1"},r));case"sha2-256":return new Uint8Array(await $Z.subtle.digest({name:"SHA-256"},r));case"sha2-512":return new Uint8Array(await $Z.subtle.digest({name:"SHA-512"},r));case"dbl-sha2-256":{let t=await $Z.subtle.digest({name:"SHA-256"},r);return new Uint8Array(await $Z.subtle.digest({name:"SHA-256"},t))}default:throw new Error(`${e} is not a supported algorithm`)}};vgt.exports={factory:r=>async e=>kRe(e,r),digest:kRe,multihashing:async(r,e,t)=>{let n=await kRe(r,e);return Wan.encode(n,e,t)}}});var _gt=E((YSa,xgt)=>{"use strict";f();d();var Uan=r=>{let e=new Uint8Array(4);for(let t=0;t<4;t++)e[t]=r&255,r=r>>8;return e};xgt.exports={fromNumberTo32BitBuf:Uan}});var SRe=E((ZSa,Tgt)=>{f();d();var Han="Input must be an string, Buffer or Uint8Array";function jan(r){let e;if(r instanceof Uint8Array)e=r;else if(typeof r=="string")e=new TextEncoder().encode(r);else throw new Error(Han);return e}function zan(r){return Array.prototype.map.call(r,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function Xbe(r){return(4294967296+r).toString(16).substring(1)}function Kan(r,e,t){let n=` +`+r+" = ";for(let a=0;a{f();d();var t2e=SRe();function e2e(r,e,t){let n=r[e]+r[t],a=r[e+1]+r[t+1];n>=4294967296&&a++,r[e]=n,r[e+1]=a}function Egt(r,e,t,n){let a=r[e]+t;t<0&&(a+=4294967296);let i=r[e+1]+n;a>=4294967296&&i++,r[e]=a,r[e+1]=i}function Igt(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function Cg(r,e,t,n,a,i){let s=Pse[a],o=Pse[a+1],c=Pse[i],u=Pse[i+1];e2e(Zr,r,e),Egt(Zr,r,s,o);let l=Zr[n]^Zr[r],p=Zr[n+1]^Zr[r+1];Zr[n]=p,Zr[n+1]=l,e2e(Zr,t,n),l=Zr[e]^Zr[t],p=Zr[e+1]^Zr[t+1],Zr[e]=l>>>24^p<<8,Zr[e+1]=p>>>24^l<<8,e2e(Zr,r,e),Egt(Zr,r,c,u),l=Zr[n]^Zr[r],p=Zr[n+1]^Zr[r+1],Zr[n]=l>>>16^p<<16,Zr[n+1]=p>>>16^l<<16,e2e(Zr,t,n),l=Zr[e]^Zr[t],p=Zr[e+1]^Zr[t+1],Zr[e]=p>>>31^l<<1,Zr[e+1]=l>>>31^p<<1}var Cgt=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),Van=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],Ku=new Uint8Array(Van.map(function(r){return r*2})),Zr=new Uint32Array(32),Pse=new Uint32Array(32);function Agt(r,e){let t=0;for(t=0;t<16;t++)Zr[t]=r.h[t],Zr[t+16]=Cgt[t];for(Zr[24]=Zr[24]^r.t,Zr[25]=Zr[25]^r.t/4294967296,e&&(Zr[28]=~Zr[28],Zr[29]=~Zr[29]),t=0;t<32;t++)Pse[t]=Igt(r.b,4*t);for(t=0;t<12;t++)Cg(0,8,16,24,Ku[t*16+0],Ku[t*16+1]),Cg(2,10,18,26,Ku[t*16+2],Ku[t*16+3]),Cg(4,12,20,28,Ku[t*16+4],Ku[t*16+5]),Cg(6,14,22,30,Ku[t*16+6],Ku[t*16+7]),Cg(0,10,20,30,Ku[t*16+8],Ku[t*16+9]),Cg(2,12,22,24,Ku[t*16+10],Ku[t*16+11]),Cg(4,14,16,26,Ku[t*16+12],Ku[t*16+13]),Cg(6,8,18,28,Ku[t*16+14],Ku[t*16+15]);for(t=0;t<16;t++)r.h[t]=r.h[t]^Zr[t]^Zr[t+16]}var Ag=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function kgt(r,e,t,n){if(r===0||r>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(t&&t.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&n.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");let a={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:r};Ag.fill(0),Ag[0]=r,e&&(Ag[1]=e.length),Ag[2]=1,Ag[3]=1,t&&Ag.set(t,32),n&&Ag.set(n,48);for(let i=0;i<16;i++)a.h[i]=Cgt[i]^Igt(Ag,i*4);return e&&(PRe(a,e),a.c=128),a}function PRe(r,e){for(let t=0;t>2]>>8*(t&3);return e}function Pgt(r,e,t,n,a){t=t||64,r=t2e.normalizeInput(r),n&&(n=t2e.normalizeInput(n)),a&&(a=t2e.normalizeInput(a));let i=kgt(t,e,n,a);return PRe(i,r),Sgt(i)}function $an(r,e,t,n,a){let i=Pgt(r,e,t,n,a);return t2e.toHex(i)}Rgt.exports={blake2b:Pgt,blake2bHex:$an,blake2bInit:kgt,blake2bUpdate:PRe,blake2bFinal:Sgt}});var Wgt=E((aPa,qgt)=>{f();d();var Bgt=SRe();function Yan(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function kg(r,e,t,n,a,i){ua[r]=ua[r]+ua[e]+a,ua[n]=r2e(ua[n]^ua[r],16),ua[t]=ua[t]+ua[n],ua[e]=r2e(ua[e]^ua[t],12),ua[r]=ua[r]+ua[e]+i,ua[n]=r2e(ua[n]^ua[r],8),ua[t]=ua[t]+ua[n],ua[e]=r2e(ua[e]^ua[t],7)}function r2e(r,e){return r>>>e^r<<32-e}var Dgt=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Gu=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),ua=new Uint32Array(16),eu=new Uint32Array(16);function Ngt(r,e){let t=0;for(t=0;t<8;t++)ua[t]=r.h[t],ua[t+8]=Dgt[t];for(ua[12]^=r.t,ua[13]^=r.t/4294967296,e&&(ua[14]=~ua[14]),t=0;t<16;t++)eu[t]=Yan(r.b,4*t);for(t=0;t<10;t++)kg(0,4,8,12,eu[Gu[t*16+0]],eu[Gu[t*16+1]]),kg(1,5,9,13,eu[Gu[t*16+2]],eu[Gu[t*16+3]]),kg(2,6,10,14,eu[Gu[t*16+4]],eu[Gu[t*16+5]]),kg(3,7,11,15,eu[Gu[t*16+6]],eu[Gu[t*16+7]]),kg(0,5,10,15,eu[Gu[t*16+8]],eu[Gu[t*16+9]]),kg(1,6,11,12,eu[Gu[t*16+10]],eu[Gu[t*16+11]]),kg(2,7,8,13,eu[Gu[t*16+12]],eu[Gu[t*16+13]]),kg(3,4,9,14,eu[Gu[t*16+14]],eu[Gu[t*16+15]]);for(t=0;t<8;t++)r.h[t]^=ua[t]^ua[t+8]}function Ogt(r,e){if(!(r>0&&r<=32))throw new Error("Incorrect output length, should be in [1, 32]");let t=e?e.length:0;if(e&&!(t>0&&t<=32))throw new Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(Dgt),b:new Uint8Array(64),c:0,t:0,outlen:r};return n.h[0]^=16842752^t<<8^r,t>0&&(RRe(n,e),n.c=64),n}function RRe(r,e){for(let t=0;t>2]>>8*(t&3)&255;return e}function Lgt(r,e,t){t=t||32,r=Bgt.normalizeInput(r);let n=Ogt(t,e);return RRe(n,r),Fgt(n)}function Qan(r,e,t){let n=Lgt(r,e,t);return Bgt.toHex(n)}qgt.exports={blake2s:Lgt,blake2sHex:Qan,blake2sInit:Ogt,blake2sUpdate:RRe,blake2sFinal:Fgt}});var Hgt=E((oPa,Ugt)=>{f();d();var Rse=Mgt(),Mse=Wgt();Ugt.exports={blake2b:Rse.blake2b,blake2bHex:Rse.blake2bHex,blake2bInit:Rse.blake2bInit,blake2bUpdate:Rse.blake2bUpdate,blake2bFinal:Rse.blake2bFinal,blake2s:Mse.blake2s,blake2sHex:Mse.blake2sHex,blake2sInit:Mse.blake2sInit,blake2sUpdate:Mse.blake2sUpdate,blake2sFinal:Mse.blake2sFinal}});var Kgt=E((lPa,zgt)=>{"use strict";f();d();var YZ=Hgt(),Jan=45569,Zan=45633,Xan={init:YZ.blake2bInit,update:YZ.blake2bUpdate,digest:YZ.blake2bFinal},ein={init:YZ.blake2sInit,update:YZ.blake2sUpdate,digest:YZ.blake2sFinal},jgt=(r,e)=>async t=>{let n=e.init(r,null);return e.update(n,t),e.digest(n)};zgt.exports=r=>{for(let e=0;e<64;e++)r[Jan+e]=jgt(e+1,Xan);for(let e=0;e<32;e++)r[Zan+e]=jgt(e+1,ein)}});var $gt=E((pPa,Vgt)=>{"use strict";f();d();var A1=Ihe(),Ggt=ggt(),{factory:n2e}=wgt(),{fromNumberTo32BitBuf:tin}=_gt(),{fromString:rin}=(Fw(),Ht(Ese)),wp=r=>async e=>{switch(r){case"sha3-224":return new Uint8Array(A1.sha3_224.arrayBuffer(e));case"sha3-256":return new Uint8Array(A1.sha3_256.arrayBuffer(e));case"sha3-384":return new Uint8Array(A1.sha3_384.arrayBuffer(e));case"sha3-512":return new Uint8Array(A1.sha3_512.arrayBuffer(e));case"shake-128":return new Uint8Array(A1.shake128.create(128).update(e).arrayBuffer());case"shake-256":return new Uint8Array(A1.shake256.create(256).update(e).arrayBuffer());case"keccak-224":return new Uint8Array(A1.keccak224.arrayBuffer(e));case"keccak-256":return new Uint8Array(A1.keccak256.arrayBuffer(e));case"keccak-384":return new Uint8Array(A1.keccak384.arrayBuffer(e));case"keccak-512":return new Uint8Array(A1.keccak512.arrayBuffer(e));case"murmur3-128":return rin(Ggt.x64.hash128(e),"base16");case"murmur3-32":return tin(Ggt.x86.hash32(e));default:throw new TypeError(`${r} is not a supported algorithm`)}},nin=r=>r;Vgt.exports={identity:nin,sha1:n2e("sha1"),sha2256:n2e("sha2-256"),sha2512:n2e("sha2-512"),dblSha2256:n2e("dbl-sha2-256"),sha3224:wp("sha3-224"),sha3256:wp("sha3-256"),sha3384:wp("sha3-384"),sha3512:wp("sha3-512"),shake128:wp("shake-128"),shake256:wp("shake-256"),keccak224:wp("keccak-224"),keccak256:wp("keccak-256"),keccak384:wp("keccak-384"),keccak512:wp("keccak-512"),murmur3128:wp("murmur3-128"),murmur332:wp("murmur3-32"),addBlake:Kgt()}});var BRe={};Rr(BRe,{equals:()=>MRe});function MRe(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{f();d()});var Bse=E((gPa,Qgt)=>{"use strict";f();d();var Ygt=Rw(),i2e=kse(),p0=$gt(),{equals:ain}=(a2e(),Ht(BRe));async function xp(r,e,t){let n=await xp.digest(r,e,t);return i2e.encode(n,e,t)}xp.multihash=i2e;xp.digest=async(r,e,t)=>{let a=await xp.createHash(e)(r);return t?a.slice(0,t):a};xp.createHash=function(r){if(!r)throw Ygt(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");let e=i2e.coerceCode(r);if(!xp.functions[e])throw Ygt(new Error(`multihash function '${r}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return xp.functions[e]};xp.functions={0:p0.identity,17:p0.sha1,18:p0.sha2256,19:p0.sha2512,20:p0.sha3512,21:p0.sha3384,22:p0.sha3256,23:p0.sha3224,24:p0.shake128,25:p0.shake256,26:p0.keccak224,27:p0.keccak256,28:p0.keccak384,29:p0.keccak512,34:p0.murmur3128,35:p0.murmur332,86:p0.dblSha2256};p0.addBlake(xp.functions);xp.validate=async(r,e)=>{let t=await xp(r,i2e.decode(e).name);return ain(e,t)};Qgt.exports=xp});var Zgt=E((xPa,Jgt)=>{"use strict";f();d();var iin=a2t().bind({ignoreUndefined:!0}),sin=Bse();async function oin(r){let t=(await sin(r,"murmur3-128")).slice(2,10),n=t.length,a=new Uint8Array(n);for(let i=0;i()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,pin:!1,recursive:!1,hidden:!1,preload:!1,timeout:void 0,hamtHashFn:oin,hamtHashCode:34,hamtBucketBits:8};Jgt.exports=function(r={}){return iin(cin,r)}});var e6t=E((EPa,Xgt)=>{"use strict";f();d();Xgt.exports=uin;function uin(r,e){for(var t=new Array(arguments.length-1),n=0,a=2,i=!0;a{"use strict";f();d();var s2e=n6t;s2e.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&e.charAt(t)==="=";)++n;return Math.ceil(e.length*3)/4-n};var QZ=new Array(64),r6t=new Array(123);for(Bh=0;Bh<64;)r6t[QZ[Bh]=Bh<26?Bh+65:Bh<52?Bh+71:Bh<62?Bh-4:Bh-59|43]=Bh++;var Bh;s2e.encode=function(e,t,n){for(var a=null,i=[],s=0,o=0,c;t>2],c=(u&3)<<4,o=1;break;case 1:i[s++]=QZ[c|u>>4],c=(u&15)<<2,o=2;break;case 2:i[s++]=QZ[c|u>>6],i[s++]=QZ[u&63],o=0;break}s>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),s=0)}return o&&(i[s++]=QZ[c],i[s++]=61,o===1&&(i[s++]=61)),a?(s&&a.push(String.fromCharCode.apply(String,i.slice(0,s))),a.join("")):String.fromCharCode.apply(String,i.slice(0,s))};var t6t="invalid encoding";s2e.decode=function(e,t,n){for(var a=n,i=0,s,o=0;o1)break;if((c=r6t[c])===void 0)throw Error(t6t);switch(i){case 0:s=c,i=1;break;case 1:t[n++]=s<<2|(c&48)>>4,s=c,i=2;break;case 2:t[n++]=(s&15)<<4|(c&60)>>2,s=c,i=3;break;case 3:t[n++]=(s&3)<<6|c,i=0;break}}if(i===1)throw Error(t6t);return n-a};s2e.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var s6t=E((PPa,i6t)=>{"use strict";f();d();i6t.exports=o2e;function o2e(){this._listeners={}}o2e.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this};o2e.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],a=0;a{"use strict";f();d();d6t.exports=o6t(o6t);function o6t(r){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),t=new Uint8Array(e.buffer),n=t[3]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3]}function i(c,u,l){e[0]=c,u[l]=t[3],u[l+1]=t[2],u[l+2]=t[1],u[l+3]=t[0]}r.writeFloatLE=n?a:i,r.writeFloatBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],e[0]}function o(c,u){return t[3]=c[u],t[2]=c[u+1],t[1]=c[u+2],t[0]=c[u+3],e[0]}r.readFloatLE=n?s:o,r.readFloatBE=n?o:s}():function(){function e(n,a,i,s){var o=a<0?1:0;if(o&&(a=-a),a===0)n(1/a>0?0:2147483648,i,s);else if(isNaN(a))n(2143289344,i,s);else if(a>34028234663852886e22)n((o<<31|2139095040)>>>0,i,s);else if(a<11754943508222875e-54)n((o<<31|Math.round(a/1401298464324817e-60))>>>0,i,s);else{var c=Math.floor(Math.log(a)/Math.LN2),u=Math.round(a*Math.pow(2,-c)*8388608)&8388607;n((o<<31|c+127<<23|u)>>>0,i,s)}}r.writeFloatLE=e.bind(null,c6t),r.writeFloatBE=e.bind(null,u6t);function t(n,a,i){var s=n(a,i),o=(s>>31)*2+1,c=s>>>23&255,u=s&8388607;return c===255?u?NaN:o*(1/0):c===0?o*1401298464324817e-60*u:o*Math.pow(2,c-150)*(u+8388608)}r.readFloatLE=t.bind(null,l6t),r.readFloatBE=t.bind(null,f6t)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),n=t[7]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3],u[l+4]=t[4],u[l+5]=t[5],u[l+6]=t[6],u[l+7]=t[7]}function i(c,u,l){e[0]=c,u[l]=t[7],u[l+1]=t[6],u[l+2]=t[5],u[l+3]=t[4],u[l+4]=t[3],u[l+5]=t[2],u[l+6]=t[1],u[l+7]=t[0]}r.writeDoubleLE=n?a:i,r.writeDoubleBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],t[4]=c[u+4],t[5]=c[u+5],t[6]=c[u+6],t[7]=c[u+7],e[0]}function o(c,u){return t[7]=c[u],t[6]=c[u+1],t[5]=c[u+2],t[4]=c[u+3],t[3]=c[u+4],t[2]=c[u+5],t[1]=c[u+6],t[0]=c[u+7],e[0]}r.readDoubleLE=n?s:o,r.readDoubleBE=n?o:s}():function(){function e(n,a,i,s,o,c){var u=s<0?1:0;if(u&&(s=-s),s===0)n(0,o,c+a),n(1/s>0?0:2147483648,o,c+i);else if(isNaN(s))n(0,o,c+a),n(2146959360,o,c+i);else if(s>17976931348623157e292)n(0,o,c+a),n((u<<31|2146435072)>>>0,o,c+i);else{var l;if(s<22250738585072014e-324)l=s/5e-324,n(l>>>0,o,c+a),n((u<<31|l/4294967296)>>>0,o,c+i);else{var p=Math.floor(Math.log(s)/Math.LN2);p===1024&&(p=1023),l=s*Math.pow(2,-p),n(l*4503599627370496>>>0,o,c+a),n((u<<31|p+1023<<20|l*1048576&1048575)>>>0,o,c+i)}}}r.writeDoubleLE=e.bind(null,c6t,0,4),r.writeDoubleBE=e.bind(null,u6t,4,0);function t(n,a,i,s,o){var c=n(s,o+a),u=n(s,o+i),l=(u>>31)*2+1,p=u>>>20&2047,h=4294967296*(u&1048575)+c;return p===2047?h?NaN:l*(1/0):p===0?l*5e-324*h:l*Math.pow(2,p-1075)*(h+4503599627370496)}r.readDoubleLE=t.bind(null,l6t,0,4),r.readDoubleBE=t.bind(null,f6t,4,0)}(),r}function c6t(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}function u6t(r,e,t){e[t]=r>>>24,e[t+1]=r>>>16&255,e[t+2]=r>>>8&255,e[t+3]=r&255}function l6t(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24)>>>0}function f6t(r,e){return(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}});var h6t=E((exports,module)=>{"use strict";f();d();module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}});var y6t=E(m6t=>{"use strict";f();d();var DRe=m6t;DRe.length=function(e){for(var t=0,n=0,a=0;a191&&c<224?s[o++]=(c&31)<<6|e[t++]&63:c>239&&c<365?(c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,s[o++]=55296+(c>>10),s[o++]=56320+(c&1023)):s[o++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63,o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};DRe.write=function(e,t,n){for(var a=n,i,s,o=0;o>6|192,t[n++]=i&63|128):(i&64512)===55296&&((s=e.charCodeAt(o+1))&64512)===56320?(i=65536+((i&1023)<<10)+(s&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-a}});var g6t=E((UPa,b6t)=>{"use strict";f();d();b6t.exports=lin;function lin(r,e,t){var n=t||8192,a=n>>>1,i=null,s=n;return function(c){if(c<1||c>a)return r(c);s+c>n&&(i=r(n),s=0);var u=e.call(i,s,s+=c);return s&7&&(s=(s|7)+1),u}}});var w6t=E((zPa,v6t)=>{"use strict";f();d();v6t.exports=h0;var Dse=Pg();function h0(r,e){this.lo=r>>>0,this.hi=e>>>0}var qw=h0.zero=new h0(0,0);qw.toNumber=function(){return 0};qw.zzEncode=qw.zzDecode=function(){return this};qw.length=function(){return 1};var fin=h0.zeroHash="\0\0\0\0\0\0\0\0";h0.fromNumber=function(e){if(e===0)return qw;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new h0(n,a)};h0.from=function(e){if(typeof e=="number")return h0.fromNumber(e);if(Dse.isString(e))if(Dse.Long)e=Dse.Long.fromString(e);else return h0.fromNumber(parseInt(e,10));return e.low||e.high?new h0(e.low>>>0,e.high>>>0):qw};h0.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296};h0.prototype.toLong=function(e){return Dse.Long?new Dse.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var Sg=String.prototype.charCodeAt;h0.fromHash=function(e){return e===fin?qw:new h0((Sg.call(e,0)|Sg.call(e,1)<<8|Sg.call(e,2)<<16|Sg.call(e,3)<<24)>>>0,(Sg.call(e,4)|Sg.call(e,5)<<8|Sg.call(e,6)<<16|Sg.call(e,7)<<24)>>>0)};h0.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};h0.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};h0.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};h0.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}});var Pg=E(NRe=>{"use strict";f();d();var Qt=NRe;Qt.asPromise=e6t();Qt.base64=a6t();Qt.EventEmitter=s6t();Qt.float=p6t();Qt.inquire=h6t();Qt.utf8=y6t();Qt.pool=g6t();Qt.LongBits=w6t();Qt.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);Qt.global=Qt.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||NRe;Qt.emptyArray=Object.freeze?Object.freeze([]):[];Qt.emptyObject=Object.freeze?Object.freeze({}):{};Qt.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};Qt.isString=function(e){return typeof e=="string"||e instanceof String};Qt.isObject=function(e){return e&&typeof e=="object"};Qt.isset=Qt.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};Qt.Buffer=function(){try{var r=Qt.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();Qt._Buffer_from=null;Qt._Buffer_allocUnsafe=null;Qt.newBuffer=function(e){return typeof e=="number"?Qt.Buffer?Qt._Buffer_allocUnsafe(e):new Qt.Array(e):Qt.Buffer?Qt._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};Qt.Array=typeof Uint8Array<"u"?Uint8Array:Array;Qt.Long=Qt.global.dcodeIO&&Qt.global.dcodeIO.Long||Qt.global.Long||Qt.inquire("long");Qt.key2Re=/^true|false|0|1$/;Qt.key32Re=/^-?(?:0|[1-9][0-9]*)$/;Qt.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;Qt.longToHash=function(e){return e?Qt.LongBits.from(e).toHash():Qt.LongBits.zeroHash};Qt.longFromHash=function(e,t){var n=Qt.LongBits.fromHash(e);return Qt.Long?Qt.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))};function x6t(r,e,t){for(var n=Object.keys(e),a=0;a-1;--i)if(t[a[i]]===1&&this[a[i]]!==void 0&&this[a[i]]!==null)return a[i]}};Qt.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";f();d();C6t.exports=ia;var _p=Pg(),ORe,c2e=_p.LongBits,T6t=_p.base64,E6t=_p.utf8;function Nse(r,e,t){this.fn=r,this.len=e,this.next=void 0,this.val=t}function LRe(){}function din(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function ia(){this.len=0,this.head=new Nse(LRe,0,0),this.tail=this.head,this.states=null}var I6t=function(){return _p.Buffer?function(){return(ia.create=function(){return new ORe})()}:function(){return new ia}};ia.create=I6t();ia.alloc=function(e){return new _p.Array(e)};_p.Array!==Array&&(ia.alloc=_p.pool(ia.alloc,_p.Array.prototype.subarray));ia.prototype._push=function(e,t,n){return this.tail=this.tail.next=new Nse(e,t,n),this.len+=t,this};function qRe(r,e,t){e[t]=r&255}function pin(r,e,t){for(;r>127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function WRe(r,e){this.len=r,this.next=void 0,this.val=e}WRe.prototype=Object.create(Nse.prototype);WRe.prototype.fn=pin;ia.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new WRe((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};ia.prototype.int32=function(e){return e<0?this._push(URe,10,c2e.fromNumber(e)):this.uint32(e)};ia.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function URe(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}ia.prototype.uint64=function(e){var t=c2e.from(e);return this._push(URe,t.length(),t)};ia.prototype.int64=ia.prototype.uint64;ia.prototype.sint64=function(e){var t=c2e.from(e).zzEncode();return this._push(URe,t.length(),t)};ia.prototype.bool=function(e){return this._push(qRe,1,e?1:0)};function FRe(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}ia.prototype.fixed32=function(e){return this._push(FRe,4,e>>>0)};ia.prototype.sfixed32=ia.prototype.fixed32;ia.prototype.fixed64=function(e){var t=c2e.from(e);return this._push(FRe,4,t.lo)._push(FRe,4,t.hi)};ia.prototype.sfixed64=ia.prototype.fixed64;ia.prototype.float=function(e){return this._push(_p.float.writeFloatLE,4,e)};ia.prototype.double=function(e){return this._push(_p.float.writeDoubleLE,8,e)};var hin=_p.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var a=0;a>>0;if(!t)return this._push(qRe,1,0);if(_p.isString(e)){var n=ia.alloc(t=T6t.length(e));T6t.decode(e,n,0),e=n}return this.uint32(t)._push(hin,t,e)};ia.prototype.string=function(e){var t=E6t.length(e);return t?this.uint32(t)._push(E6t.write,t,e):this._push(qRe,1,0)};ia.prototype.fork=function(){return this.states=new din(this),this.head=this.tail=new Nse(LRe,0,0),this.len=0,this};ia.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Nse(LRe,0,0),this.len=0),this};ia.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};ia.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};ia._configure=function(r){ORe=r,ia.create=I6t(),ORe._configure()}});var S6t=E((XPa,k6t)=>{"use strict";f();d();k6t.exports=k1;var A6t=HRe();(k1.prototype=Object.create(A6t.prototype)).constructor=k1;var Rg=Pg();function k1(){A6t.call(this)}k1._configure=function(){k1.alloc=Rg._Buffer_allocUnsafe,k1.writeBytesBuffer=Rg.Buffer&&Rg.Buffer.prototype instanceof Uint8Array&&Rg.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var a=0;a>>0;return this.uint32(t),t&&this._push(k1.writeBytesBuffer,t,e),this};function min(r,e,t){r.length<40?Rg.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}k1.prototype.string=function(e){var t=Rg.Buffer.byteLength(e);return this.uint32(t),t&&this._push(min,t,e),this};k1._configure()});var KRe=E((rRa,D6t)=>{"use strict";f();d();D6t.exports=$o;var S1=Pg(),zRe,M6t=S1.LongBits,yin=S1.utf8;function Dh(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function $o(r){this.buf=r,this.pos=0,this.len=r.length}var P6t=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new $o(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new $o(e);throw Error("illegal buffer")},B6t=function(){return S1.Buffer?function(t){return($o.create=function(a){return S1.Buffer.isBuffer(a)?new zRe(a):P6t(a)})(t)}:P6t};$o.create=B6t();$o.prototype._slice=S1.Array.prototype.subarray||S1.Array.prototype.slice;$o.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,Dh(this,10);return e}}();$o.prototype.int32=function(){return this.uint32()|0};$o.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function jRe(){var r=new M6t(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw Dh(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw Dh(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}$o.prototype.bool=function(){return this.uint32()!==0};function u2e(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}$o.prototype.fixed32=function(){if(this.pos+4>this.len)throw Dh(this,4);return u2e(this.buf,this.pos+=4)};$o.prototype.sfixed32=function(){if(this.pos+4>this.len)throw Dh(this,4);return u2e(this.buf,this.pos+=4)|0};function R6t(){if(this.pos+8>this.len)throw Dh(this,8);return new M6t(u2e(this.buf,this.pos+=4),u2e(this.buf,this.pos+=4))}$o.prototype.float=function(){if(this.pos+4>this.len)throw Dh(this,4);var e=S1.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};$o.prototype.double=function(){if(this.pos+8>this.len)throw Dh(this,4);var e=S1.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};$o.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw Dh(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};$o.prototype.string=function(){var e=this.bytes();return yin.read(e,0,e.length)};$o.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw Dh(this,e);this.pos+=e}else do if(this.pos>=this.len)throw Dh(this);while(this.buf[this.pos++]&128);return this};$o.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};$o._configure=function(r){zRe=r,$o.create=B6t(),zRe._configure();var e=S1.Long?"toLong":"toNumber";S1.merge($o.prototype,{int64:function(){return jRe.call(this)[e](!1)},uint64:function(){return jRe.call(this)[e](!0)},sint64:function(){return jRe.call(this).zzDecode()[e](!1)},fixed64:function(){return R6t.call(this)[e](!0)},sfixed64:function(){return R6t.call(this)[e](!1)}})}});var L6t=E((iRa,F6t)=>{"use strict";f();d();F6t.exports=Ww;var O6t=KRe();(Ww.prototype=Object.create(O6t.prototype)).constructor=Ww;var N6t=Pg();function Ww(r){O6t.call(this,r)}Ww._configure=function(){N6t.Buffer&&(Ww.prototype._slice=N6t.Buffer.prototype.slice)};Ww.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};Ww._configure()});var W6t=E((cRa,q6t)=>{"use strict";f();d();q6t.exports=Ose;var GRe=Pg();(Ose.prototype=Object.create(GRe.EventEmitter.prototype)).constructor=Ose;function Ose(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");GRe.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(t)}Ose.prototype.rpcCall=function r(e,t,n,a,i){if(!a)throw TypeError("request must be specified");var s=this;if(!i)return GRe.asPromise(r,s,e,t,n,a);if(!s.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(c,u){if(c)return s.emit("error",c,e),i(c);if(u===null){s.end(!0);return}if(!(u instanceof n))try{u=n[s.responseDelimited?"decodeDelimited":"decode"](u)}catch(l){return s.emit("error",l,e),i(l)}return s.emit("data",u,e),i(null,u)})}catch(o){s.emit("error",o,e),setTimeout(function(){i(o)},0);return}};Ose.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var H6t=E(U6t=>{"use strict";f();d();var bin=U6t;bin.Service=W6t()});var z6t=E((hRa,j6t)=>{"use strict";f();d();j6t.exports={}});var V6t=E(G6t=>{"use strict";f();d();var tf=G6t;tf.build="minimal";tf.Writer=HRe();tf.BufferWriter=S6t();tf.Reader=KRe();tf.BufferReader=L6t();tf.util=Pg();tf.rpc=H6t();tf.roots=z6t();tf.configure=K6t;function K6t(){tf.util._configure(),tf.Writer._configure(tf.BufferWriter),tf.Reader._configure(tf.BufferReader)}K6t()});var l2e=E((wRa,$6t)=>{"use strict";f();d();$6t.exports=V6t()});var Q6t=E((TRa,Y6t)=>{"use strict";f();d();var Mg=l2e(),JZ=Mg.Reader,VRe=Mg.Writer,hr=Mg.util,m0=Mg.roots["ipfs-unixfs"]||(Mg.roots["ipfs-unixfs"]={});m0.Data=function(){function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Type=t.int32();break;case 2:i.Data=t.bytes();break;case 3:i.filesize=t.uint64();break;case 4:if(i.blocksizes&&i.blocksizes.length||(i.blocksizes=[]),(s&7)===2)for(var o=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var a=0;a>>0,t.blocksizes[a].high>>>0).toNumber(!0))}if(t.hashType!=null&&(hr.Long?(n.hashType=hr.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new hr.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&(hr.Long?(n.fanout=hr.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new hr.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=m0.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var a={};if((n.arrays||n.defaults)&&(a.blocksizes=[]),n.defaults){if(a.Type=n.enums===String?"Raw":0,n.bytes===String?a.Data="":(a.Data=[],n.bytes!==Array&&(a.Data=hr.newBuffer(a.Data))),hr.Long){var i=new hr.Long(0,0,!0);a.filesize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.filesize=n.longs===String?"0":0;if(hr.Long){var i=new hr.Long(0,0,!0);a.hashType=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.hashType=n.longs===String?"0":0;if(hr.Long){var i=new hr.Long(0,0,!0);a.fanout=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.fanout=n.longs===String?"0":0;a.mode=0,a.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(a.Type=n.enums===String?m0.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(a.Data=n.bytes===String?hr.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?a.filesize=n.longs===String?String(t.filesize):t.filesize:a.filesize=n.longs===String?hr.Long.prototype.toString.call(t.filesize):n.longs===Number?new hr.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){a.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?a.hashType=n.longs===String?String(t.hashType):t.hashType:a.hashType=n.longs===String?hr.Long.prototype.toString.call(t.hashType):n.longs===Number?new hr.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?a.fanout=n.longs===String?String(t.fanout):t.fanout:a.fanout=n.longs===String?hr.Long.prototype.toString.call(t.fanout):n.longs===Number?new hr.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(a.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(a.mtime=m0.UnixTime.toObject(t.mtime,n)),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,Mg.util.toJSONOptions)},r.DataType=function(){var e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r}();m0.UnixTime=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Seconds=t.int64();break;case 2:i.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!i.hasOwnProperty("Seconds"))throw hr.ProtocolError("missing required 'Seconds'",{instance:i});return i},r.fromObject=function(t){if(t instanceof m0.UnixTime)return t;var n=new m0.UnixTime;return t.Seconds!=null&&(hr.Long?(n.Seconds=hr.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new hr.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults){if(hr.Long){var i=new hr.Long(0,0,!1);a.Seconds=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Seconds=n.longs===String?"0":0;a.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?a.Seconds=n.longs===String?String(t.Seconds):t.Seconds:a.Seconds=n.longs===String?hr.Long.prototype.toString.call(t.Seconds):n.longs===Number?new hr.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(a.FractionalNanoseconds=t.FractionalNanoseconds),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,Mg.util.toJSONOptions)},r}();m0.Metadata=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.MimeType=t.string();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof m0.Metadata)return t;var n=new m0.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var a={};return n.defaults&&(a.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(a.MimeType=t.MimeType),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,Mg.util.toJSONOptions)},r}();Y6t.exports=m0});var ZZ=E((CRa,e5t)=>{"use strict";f();d();var{Data:bb}=Q6t(),$Re=Rw(),J6t=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],gin=["directory","hamt-sharded-directory"],Z6t=parseInt("0644",8),X6t=parseInt("0755",8);function f2e(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function YRe(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){let t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(!!Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw $Re(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}var Fse=class{static unmarshal(e){let t=bb.decode(e),n=bb.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),a=new Fse({type:J6t[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return a._originalMode=n.mode||0,a}constructor(e={type:"file"}){let{type:t,data:n,blockSizes:a,hashType:i,fanout:s,mtime:o,mode:c}=e;if(t&&!J6t.includes(t))throw $Re(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=i,this.fanout=s,this.blockSizes=a||[],this._originalMode=0,this.mode=f2e(c),o&&(this.mtime=YRe(o),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?X6t:Z6t;let t=f2e(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return Boolean(this.type&&gin.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=bb.DataType.Raw;break;case"directory":e=bb.DataType.Directory;break;case"file":e=bb.DataType.File;break;case"metadata":e=bb.DataType.Metadata;break;case"symlink":e=bb.DataType.Symlink;break;case"hamt-sharded-directory":e=bb.DataType.HAMTShard;break;default:throw $Re(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(f2e(this.mode)||0),n===Z6t&&!this.isDirectory()&&(n=void 0),n===X6t&&this.isDirectory()&&(n=void 0));let a;if(this.mtime!=null){let s=YRe(this.mtime);s&&(a={Seconds:s.secs,FractionalNanoseconds:s.nsecs},a.FractionalNanoseconds===0&&delete a.FractionalNanoseconds)}let i={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:a};return bb.encode(i).finish()}};e5t.exports={UnixFS:Fse,parseMode:f2e,parseMtime:YRe}});var n5t=E((SRa,r5t)=>{f();d();r5t.exports=QRe;var t5t=128,vin=127,win=~vin,xin=Math.pow(2,31);function QRe(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw QRe.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=xin;)e[t++]=r&255|t5t,r/=128;for(;r&win;)e[t++]=r&255|t5t,r>>>=7;return e[t]=r|0,QRe.bytes=t-n+1,e}});var s5t=E((MRa,i5t)=>{f();d();i5t.exports=JRe;var _in=128,a5t=127;function JRe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o||a>49)throw JRe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&a5t)<=_in);return JRe.bytes=i-n,t}});var c5t=E((NRa,o5t)=>{f();d();var Tin=Math.pow(2,7),Ein=Math.pow(2,14),Iin=Math.pow(2,21),Cin=Math.pow(2,28),Ain=Math.pow(2,35),kin=Math.pow(2,42),Sin=Math.pow(2,49),Pin=Math.pow(2,56),Rin=Math.pow(2,63);o5t.exports=function(r){return r{f();d();u5t.exports={encode:n5t(),decode:s5t(),encodingLength:c5t()}});var XRe=E((URa,d5t)=>{"use strict";f();d();var l5t=ZRe(),{toString:Min}=(KZ(),Ht(Qbe)),{fromString:Bin}=(Fw(),Ht(Ese));d5t.exports={numberToUint8Array:Din,uint8ArrayToNumber:f5t,varintUint8ArrayEncode:Nin,varintEncode:Oin};function f5t(r){return parseInt(Min(r,"base16"),16)}function Din(r){let e=r.toString(16);return e.length%2===1&&(e="0"+e),Bin(e,"base16")}function Nin(r){return Uint8Array.from(l5t.encode(f5t(r)))}function Oin(r){return Uint8Array.from(l5t.encode(r))}});var h5t=E((zRa,p5t)=>{"use strict";f();d();var Fin=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});p5t.exports={baseTable:Fin}});var y5t=E((VRa,m5t)=>{"use strict";f();d();var{baseTable:eMe}=h5t(),Lin=XRe().varintEncode,tMe={},rMe={},d2e={};for(let r in eMe){let e=r,t=eMe[e];tMe[e]=Lin(t);let n=e.toUpperCase().replace(/-/g,"_");rMe[n]=t,d2e[t]||(d2e[t]=e)}Object.freeze(tMe);Object.freeze(rMe);Object.freeze(d2e);var qin=Object.freeze(eMe);m5t.exports={nameToVarint:tMe,constantToCode:rMe,nameToCode:qin,codeToName:d2e}});var aMe=E((QRa,I5t)=>{"use strict";f();d();var p2e=ZRe(),{concat:Win}=(Lw(),Ht(Cse)),b5t=XRe(),{nameToVarint:h2e,constantToCode:Uin,nameToCode:g5t,codeToName:nMe}=y5t();function Hin(r,e){let t;if(r instanceof Uint8Array)t=b5t.varintUint8ArrayEncode(r);else if(h2e[r])t=h2e[r];else throw new Error("multicodec not recognized");return Win([t,e],t.length+e.length)}function jin(r){return p2e.decode(r),r.slice(p2e.decode.bytes)}function v5t(r){let e=p2e.decode(r),t=nMe[e];if(t===void 0)throw new Error(`Code "${e}" not found`);return t}function w5t(r){return nMe[r]}function x5t(r){let e=g5t[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function _5t(r){return p2e.decode(r)}function T5t(r){let e=h2e[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function E5t(r){return b5t.varintEncode(r)}function zin(r){return v5t(r)}function Kin(r){return w5t(r)}function Gin(r){return x5t(r)}function Vin(r){return _5t(r)}function $in(r){return T5t(r)}function Yin(r){return Array.from(E5t(r))}I5t.exports={addPrefix:Hin,rmPrefix:jin,getNameFromData:v5t,getNameFromCode:w5t,getCodeFromName:x5t,getCodeFromData:_5t,getVarintFromName:T5t,getVarintFromCode:E5t,getCodec:zin,getName:Kin,getNumber:Gin,getCode:Vin,getCodeVarint:$in,getVarint:Yin,...Uin,nameToVarint:h2e,nameToCode:g5t,codeToName:nMe}});var A5t=E((XRa,C5t)=>{"use strict";f();d();var Qin=kse(),Jin={checkCIDComponents:function(r){if(r==null)return"null values are not valid CIDs";if(!(r.version===0||r.version===1))return"Invalid version, must be a number equal to 1 or 0";if(typeof r.codec!="string")return"codec must be string";if(r.version===0){if(r.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(r.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!(r.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{Qin.validate(r.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};C5t.exports=Jin});var XZ=E((rMa,P5t)=>{"use strict";f();d();var m2e=kse(),iMe=YPe(),Uw=aMe(),Zin=A5t(),{concat:k5t}=(Lw(),Ht(Cse)),{toString:Xin}=(KZ(),Ht(Qbe)),{equals:esn}=(a2e(),Ht(BRe)),y2e=Uw.nameToCode,tsn=Object.keys(y2e).reduce((r,e)=>(r[y2e[e]]=e,r),{}),S5t=Symbol.for("@ipld/js-cid/CID"),Tp=class{constructor(e,t,n,a){if(this.version,this.codec,this.multihash,Object.defineProperty(this,S5t,{value:!0}),Tp.isCID(e)){let i=e;this.version=i.version,this.codec=i.codec,this.multihash=i.multihash,this.multibaseName=i.multibaseName||(i.version===0?"base58btc":"base32");return}if(typeof e=="string"){let i=iMe.isEncoded(e);if(i){let s=iMe.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=Uw.getCodec(s.slice(1)),this.multihash=Uw.rmPrefix(s.slice(1)),this.multibaseName=i}else this.version=0,this.codec="dag-pb",this.multihash=m2e.fromB58String(e),this.multibaseName="base58btc";Tp.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let i=parseInt(e[0].toString(),16);if(i===1){let s=e;this.version=i,this.codec=Uw.getCodec(s.slice(1)),this.multihash=Uw.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";Tp.validateCID(this);return}this.version=e,typeof t=="number"&&(t=tsn[t]),this.codec=t,this.multihash=n,this.multibaseName=a||(e===0?"base58btc":"base32"),Tp.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(this.version===0)e=this.multihash;else if(this.version===1){let t=Uw.getCodeVarint(this.codec);e=k5t([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}else throw new Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=Uw.getCodeVarint(this.codec),t=m2e.prefix(this.multihash);return k5t([[this.version],e,t],1+e.byteLength+t.byteLength)}get code(){return y2e[this.codec]}toV0(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:t}=m2e.decode(this.multihash);if(e!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(t!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new Tp(0,this.codec,this.multihash)}toV1(){return new Tp(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&this.string.length!==0&&e===this.multibaseName)return this.string;let t;if(this.version===0){if(e!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=m2e.toB58String(this.multihash)}else if(this.version===1)t=Xin(iMe.encode(e,this.bytes));else throw new Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&esn(this.multihash,e.multihash)}static validateCID(e){let t=Zin.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof Tp||Boolean(e&&e[S5t])}};Tp.codecs=y2e;P5t.exports=Tp});var eX=E((iMa,R5t)=>{"use strict";f();d();var rsn=Bse(),nsn=XZ(),asn=async(r,e,t)=>{t.codec||(t.codec="dag-pb"),t.cidVersion||(t.cidVersion=0),t.hashAlg||(t.hashAlg="sha2-256"),t.hashAlg!=="sha2-256"&&(t.cidVersion=1);let n=await rsn(r,t.hashAlg),a=new nsn(t.cidVersion,t.codec,n);return t.onlyHash||await e.put(r,{pin:t.pin,preload:t.preload,timeout:t.timeout,cid:a}),a};R5t.exports=asn});var sMe=E((cMa,B5t)=>{"use strict";f();d();var Hw=l2e(),b2e=Hw.Reader,M5t=Hw.Writer,Co=Hw.util,ed=Hw.roots.default||(Hw.roots.default={});ed.PBLink=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Hash=t.bytes();break;case 2:i.Name=t.string();break;case 3:i.Tsize=t.uint64();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof ed.PBLink)return t;var n=new ed.PBLink;return t.Hash!=null&&(typeof t.Hash=="string"?Co.base64.decode(t.Hash,n.Hash=Co.newBuffer(Co.base64.length(t.Hash)),0):t.Hash.length&&(n.Hash=t.Hash)),t.Name!=null&&(n.Name=String(t.Name)),t.Tsize!=null&&(Co.Long?(n.Tsize=Co.Long.fromValue(t.Tsize)).unsigned=!0:typeof t.Tsize=="string"?n.Tsize=parseInt(t.Tsize,10):typeof t.Tsize=="number"?n.Tsize=t.Tsize:typeof t.Tsize=="object"&&(n.Tsize=new Co.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0))),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults)if(n.bytes===String?a.Hash="":(a.Hash=[],n.bytes!==Array&&(a.Hash=Co.newBuffer(a.Hash))),a.Name="",Co.Long){var i=new Co.Long(0,0,!0);a.Tsize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Tsize=n.longs===String?"0":0;return t.Hash!=null&&t.hasOwnProperty("Hash")&&(a.Hash=n.bytes===String?Co.base64.encode(t.Hash,0,t.Hash.length):n.bytes===Array?Array.prototype.slice.call(t.Hash):t.Hash),t.Name!=null&&t.hasOwnProperty("Name")&&(a.Name=t.Name),t.Tsize!=null&&t.hasOwnProperty("Tsize")&&(typeof t.Tsize=="number"?a.Tsize=n.longs===String?String(t.Tsize):t.Tsize:a.Tsize=n.longs===String?Co.Long.prototype.toString.call(t.Tsize):n.longs===Number?new Co.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0):t.Tsize),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,Hw.util.toJSONOptions)},r}();ed.PBNode=function(){function r(e){if(this.Links=[],e)for(var t=Object.keys(e),n=0;n>>3){case 2:i.Links&&i.Links.length||(i.Links=[]),i.Links.push(ed.PBLink.decode(t,t.uint32()));break;case 1:i.Data=t.bytes();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof ed.PBNode)return t;var n=new ed.PBNode;if(t.Links){if(!Array.isArray(t.Links))throw TypeError(".PBNode.Links: array expected");n.Links=[];for(var a=0;a{"use strict";f();d();var{bases:D5t}=(ERe(),Ht(ogt));function O5t(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var N5t=O5t("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),oMe=O5t("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=new Uint8Array(r.length);for(let t=0;t{"use strict";f();d();var ssn=cMe();function osn(r,e="utf8"){let t=ssn[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.decoder.decode(`${t.prefix}${r}`)}L5t.exports=osn});var jw=E((bMa,q5t)=>{"use strict";f();d();var csn=XZ(),usn=g2e(),uMe=class{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");this.Name=e||"",this.Tsize=t,this.Hash=new csn(n),Object.defineProperties(this,{_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return this._nameBuf!=null?this._nameBuf:(this._nameBuf=usn(this.Name),this._nameBuf)}};q5t.exports=uMe});var W5t=E((lMe,fMe)=>{f();d();(function(r,e){typeof lMe=="object"&&typeof fMe<"u"?fMe.exports=e():typeof define=="function"&&define.amd?define(e):r.stable=e()})(lMe,function(){"use strict";var r=function(n,a){return e(n.slice(),a)};r.inplace=function(n,a){var i=e(n,a);return i!==n&&t(i,null,n.length,n),n};function e(n,a){typeof a!="function"&&(a=function(u,l){return String(u).localeCompare(l)});var i=n.length;if(i<=1)return n;for(var s=new Array(i),o=1;oo&&(p=o),h>o&&(h=o),m=l,y=p;;)if(m{"use strict";f();d();function lsn(r,e){for(let t=0;te[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{"use strict";f();d();var fsn=W5t(),dsn=H5t(),psn=(r,e)=>{let t=r.nameAsBuffer,n=e.nameAsBuffer;return dsn(t,n)},hsn=r=>{fsn.inplace(r,psn)};j5t.exports=hsn});var pMe=E((kMa,z5t)=>{"use strict";f();d();var msn=jw();function ysn(r){return new msn(r.Name||r.name||"",r.Tsize||r.Size||r.size||0,r.Hash||r.hash||r.multihash||r.cid)}z5t.exports={createDagLinkFromB58EncodedHash:ysn}});var hMe=E((RMa,V5t)=>{"use strict";f();d();var bsn=l2e(),{PBLink:gsn}=sMe(),{createDagLinkFromB58EncodedHash:vsn}=pMe(),K5t=r=>{let e={};return r.Data&&r.Data.byteLength>0?e.Data=r.Data:e.Data=null,r.Links&&r.Links.length>0?e.Links=r.Links.map(t=>({Hash:t.Hash.bytes,Name:t.Name,Tsize:t.Tsize})):e.Links=null,e},wsn=r=>G5t(K5t(r)),xsn=(r,e=[])=>{let t={Data:r,Links:e.map(n=>vsn(n))};return G5t(K5t(t))};V5t.exports={serializeDAGNode:wsn,serializeDAGNodeLike:xsn};function G5t(r){let e=bsn.Writer.create();if(r.Links!=null)for(let t=0;t{"use strict";f();d();var _sn=XZ(),$5t=aMe(),Y5t=Bse(),{multihash:Q5t}=Y5t,J5t=$5t.DAG_PB,Z5t=Q5t.names["sha2-256"],Tsn=async(r,e={})=>{let t={cidVersion:e.cidVersion==null?1:e.cidVersion,hashAlg:e.hashAlg==null?Z5t:e.hashAlg},n=Q5t.codes[t.hashAlg],a=await Y5t(r,n),i=$5t.getNameFromCode(J5t);return new _sn(t.cidVersion,i,a)};X5t.exports={codec:J5t,defaultHashAlg:Z5t,cid:Tsn}});var tvt=E((FMa,evt)=>{"use strict";f();d();var Esn=jw(),Isn=mMe(),Csn=async(r,e={})=>{let t=r.serialize(),n=await Isn.cid(t,e);return new Esn(e.name||"",r.size,n)};evt.exports=Csn});var avt=E((WMa,nvt)=>{"use strict";f();d();var Asn=dMe(),rvt=jw(),ksn=r=>{if(r instanceof rvt)return r;if(!("cid"in r||"hash"in r||"Hash"in r||"multihash"in r))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new rvt(r.Name||r.name,r.Tsize||r.size,r.Hash||r.multihash||r.hash||r.cid)},Ssn=(r,e)=>{let t=ksn(e);r.Links.push(t),Asn(r.Links)};nvt.exports=Ssn});var svt=E((jMa,ivt)=>{"use strict";f();d();function Psn(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{"use strict";f();d();var Rsn=XZ(),ovt=svt(),Msn=(r,e)=>{let t=null;if(typeof e=="string"?t=n=>n.Name===e:e instanceof Uint8Array?t=n=>ovt(n.Hash.bytes,e):Rsn.isCID(e)&&(t=n=>ovt(n.Hash.bytes,e.bytes)),t){let n=r.Links,a=0;for(;a{"use strict";f();d();var Bsn=cMe();function Dsn(r,e="utf8"){let t=Bsn[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.encoder.encode(r).substring(1)}lvt.exports=Dsn});var bMe=E((ZMa,dvt)=>{"use strict";f();d();var Nsn=dMe(),Osn=jw(),{createDagLinkFromB58EncodedHash:Fsn}=pMe(),{serializeDAGNode:Lsn}=hMe(),qsn=tvt(),Wsn=avt(),Usn=uvt(),Hsn=g2e(),jsn=fvt(),yMe=class{constructor(e,t=[],n=null){if(e||(e=new Uint8Array(0)),typeof e=="string"&&(e=Hsn(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(n!==null&&typeof n!="number")throw new Error("Passed 'serializedSize' must be a number!");let a=t.map(i=>i instanceof Osn?i:Fsn(i));Nsn(a),this.Data=e,this.Links=a,Object.defineProperties(this,{_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),Wsn(this,e)}rmLink(e){return this._invalidateCached(),Usn(this,e)}toDAGLink(e){return qsn(this,e)}serialize(){let e=Lsn(this);return this._serializedSize=e.length,e}get size(){if(this._size==null){let e;e==null&&(this._serializedSize=this.serialize().length,e=this._serializedSize),this._size=this.Links.reduce((t,n)=>t+n.Tsize,e)}return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}};dvt.exports=yMe});var vMe=E((tBa,mvt)=>{"use strict";f();d();var{PBNode:pvt}=sMe(),zsn=jw(),hvt=bMe(),{serializeDAGNode:Ksn,serializeDAGNodeLike:Gsn}=hMe(),gMe=mMe(),Vsn=(r,e)=>gMe.cid(r,e),$sn=r=>r instanceof hvt?Ksn(r):Gsn(r.Data,r.Links),Ysn=r=>{let e=pvt.decode(r),t=pvt.toObject(e,{defaults:!1,arrays:!0,longs:Number,objects:!1}),n=t.Links.map(i=>new zsn(i.Name,i.Tsize,i.Hash)),a=t.Data==null?new Uint8Array(0):t.Data;return new hvt(a,n,r.byteLength)};mvt.exports={codec:gMe.codec,defaultHashAlg:gMe.defaultHashAlg,serialize:$sn,deserialize:Ysn,cid:Vsn}});var bvt=E(wMe=>{"use strict";f();d();var Qsn=XZ(),yvt=vMe();wMe.resolve=(r,e="/")=>{let t=yvt.deserialize(r),n=e.split("/").filter(Boolean);for(;n.length;){let a=n.shift();if(t[a]===void 0){for(let i of t.Links)if(i.Name===a)return{value:i.Hash,remainderPath:n.join("/")};throw new Error(`Object has no property '${a}'`)}if(t=t[a],Qsn.isCID(t))return{value:t,remainderPath:n.join("/")}}return{value:t,remainderPath:""}};wMe.tree=function*(r){let e=yvt.deserialize(r);yield"Data",yield"Links";for(let t=0;t{"use strict";f();d();var Jsn=bvt(),xMe=vMe(),Zsn=bMe(),Xsn=jw(),eon={DAGNode:Zsn,DAGLink:Xsn,resolver:Jsn,util:xMe,codec:xMe.codec,defaultHashAlg:xMe.defaultHashAlg};gvt.exports=eon});var wvt=E((lBa,vvt)=>{"use strict";f();d();var{UnixFS:ton}=ZZ(),ron=eX(),{DAGNode:non}=tX(),aon=async(r,e,t)=>{let n=new ton({type:"directory",mtime:r.mtime,mode:r.mode}),a=new non(n.marshal()).serialize(),i=await ron(a,e,t),s=r.path;return{cid:i,path:s,unixfs:n,size:a.length}};vvt.exports=aon});var _vt=E((pBa,xvt)=>{"use strict";f();d();var ion=async r=>{let e=[];for await(let t of r)e.push(t);return e};xvt.exports=ion});var Evt=E((yBa,Tvt)=>{"use strict";f();d();var son=_vt();Tvt.exports=async function(r,e){return e(await son(r))}});var Avt=E((vBa,Cvt)=>{"use strict";f();d();var oon=Nbe();function con(r,e,t){return Ivt(r,e,t)}async function Ivt(r,e,t){let n=[];for await(let a of oon(r,t.maxChildrenPerNode))n.push(await e(a));return n.length>1?Ivt(n,e,t):n[0]}Cvt.exports=con});var Svt=E((_Ba,kvt)=>{"use strict";f();d();var uon=Nbe();kvt.exports=async function(e,t,n){let a=new _Me(n.layerRepeat),i=0,s=1,o=a;for await(let c of uon(e,n.maxChildrenPerNode))o.isFull()&&(o!==a&&a.addChild(await o.reduce(t)),i&&i%n.layerRepeat===0&&s++,o=new v2e(s,n.layerRepeat,i),i++),o.append(c);return o&&o!==a&&a.addChild(await o.reduce(t)),a.reduce(t)};var v2e=class{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptha.data).map(a=>this._reduce(a,t)))),t((e.data||[]).concat(n))}_findParent(e,t){let n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}},_Me=class extends v2e{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}});var Rvt=E((IBa,Pvt)=>{"use strict";f();d();var{UnixFS:lon}=ZZ(),fon=eX(),{DAGNode:don}=tX();async function*pon(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let a,i={codec:"dag-pb",cidVersion:t.cidVersion,hashAlg:t.hashAlg,onlyHash:t.onlyHash};return t.rawLeaves?(i.codec="raw",i.cidVersion=1):(a=new lon({type:t.leafType,data:n,mtime:r.mtime,mode:r.mode}),n=new don(a.marshal()).serialize()),{cid:await fon(n,e,i),unixfs:a,size:n.length}}}Pvt.exports=pon});var Fvt=E((kBa,Ovt)=>{"use strict";f();d();var hon=Rw(),{UnixFS:Mvt}=ZZ(),Bvt=eX(),{DAGNode:Dvt,DAGLink:Nvt}=tX(),mon=GPe(),yon=Bse().multihash,bon={flat:Evt(),balanced:Avt(),trickle:Svt()};async function*gon(r,e,t){let n=-1,a,i;typeof t.bufferImporter=="function"?i=t.bufferImporter:i=Rvt();for await(let s of mon(i(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){a=s;continue}else n===1&&a&&(yield a,a=null);yield s}a&&(a.single=!0,yield a)}var von=(r,e,t)=>{async function n(a){if(a.length===1&&a[0].single&&t.reduceSingleLeafToSelf){let l=a[0];if(l.cid.codec==="raw"&&(r.mtime!==void 0||r.mode!==void 0)){let{data:p}=await e.get(l.cid,t);l.unixfs=new Mvt({type:"file",mtime:r.mtime,mode:r.mode,data:p});let h=yon.decode(l.cid.multihash);p=new Dvt(l.unixfs.marshal()).serialize(),l.cid=await Bvt(p,e,{...t,codec:"dag-pb",hashAlg:h.name,cidVersion:t.cidVersion}),l.size=p.length}return{cid:l.cid,path:r.path,unixfs:l.unixfs,size:l.size}}let i=new Mvt({type:"file",mtime:r.mtime,mode:r.mode}),s=a.filter(l=>l.cid.codec==="raw"&&l.size||l.unixfs&&!l.unixfs.data&&l.unixfs.fileSize()?!0:Boolean(l.unixfs&&l.unixfs.data&&l.unixfs.data.length)).map(l=>l.cid.codec==="raw"?(i.addBlockSize(l.size),new Nvt("",l.size,l.cid)):(!l.unixfs||!l.unixfs.data?i.addBlockSize(l.unixfs&&l.unixfs.fileSize()||0):i.addBlockSize(l.unixfs.data.length),new Nvt("",l.size,l.cid))),o=new Dvt(i.marshal(),s),c=o.serialize();return{cid:await Bvt(c,e,t),path:r.path,unixfs:i,size:c.length+o.Links.reduce((l,p)=>l+p.Tsize,0)}}return n};function won(r,e,t){let n=bon[t.strategy];if(!n)throw hon(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(gon(r,e,t),von(r,e,t),t)}Ovt.exports=won});var TMe=E((RBa,qvt)=>{"use strict";f();d();var{Buffer:Nh}=Uo(),Lvt=Symbol.for("BufferList");function as(r){if(!(this instanceof as))return new as(r);as._init.call(this,r)}as._init=function(e){Object.defineProperty(this,Lvt,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};as.prototype._new=function(e){return new as(e)};as.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};as.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};as.prototype.copy=function(e,t,n,a){if((typeof n!="number"||n<0)&&(n=0),(typeof a!="number"||a>this.length)&&(a=this.length),n>=this.length||a<=0)return e||Nh.alloc(0);let i=!!e,s=this._offset(n),o=a-n,c=o,u=i&&t||0,l=s[1];if(n===0&&a===this.length){if(!i)return this._bufs.length===1?this._bufs[0]:Nh.concat(this._bufs,this.length);for(let p=0;ph)this._bufs[p].copy(e,u,l),u+=h;else{this._bufs[p].copy(e,u,l,l+c),u+=h;break}c-=h,l&&(l=0)}return e.length>u?e.slice(0,u):e};as.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),a=this._offset(t),i=this._bufs.slice(n[0],a[0]+1);return a[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,a[1]),n[1]!==0&&(i[0]=i[0].slice(n[1])),this._new(i)};as.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)};as.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};as.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:e;let n=this._offset(e),a=n[0],i=n[1];for(;a=r.length){let c=s.indexOf(r,i);if(c!==-1)return this._reverseOffset([a,c]);i=s.length-r.length+1}else{let c=this._reverseOffset([a,i]);if(this._match(c,r))return c;i++}i=0}return-1};as.prototype._match=function(r,e){if(this.length-r{f();d();var EMe=class{constructor(e,t=12,n=8*1024,a=32*1024,i=64,s){this.bits=t,this.min=n,this.max=a,this.asModule=e,this.rabin=new e.Rabin(t,n,a,i,s),this.polynomial=s}fingerprint(e){let{__retain:t,__release:n,__allocArray:a,__getInt32Array:i,Int32Array_ID:s,Uint8Array_ID:o}=this.asModule,c=new Int32Array(Math.ceil(e.length/this.min)),u=t(a(s,c)),l=t(a(o,e)),p=this.rabin.fingerprint(l,u),h=i(p);n(l),n(u);let m=h.indexOf(0);return m>=0?h.subarray(0,m):h}};Wvt.exports=EMe});var Vvt=E(Wse=>{"use strict";f();d();var xon=typeof BigUint64Array<"u",Lse=Symbol(),qse=1024;function Hvt(r,e){let t=new Uint32Array(r),n=new Uint16Array(r);var a=t[e+-4>>>2]>>>1,i=e>>>1;if(a<=qse)return String.fromCharCode.apply(String,n.subarray(i,i+a));let s=[];do{let o=n[i+qse-1],c=o>=55296&&o<56320?qse-1:qse;s.push(String.fromCharCode.apply(String,n.subarray(i,i+=c))),a-=c}while(a>qse);return s.join("")+String.fromCharCode.apply(String,n.subarray(i,i+a))}function IMe(r){let e={};function t(a,i){return a?Hvt(a.buffer,i):""}let n=r.env=r.env||{};return n.abort=n.abort||function(i,s,o,c){let u=e.memory||n.memory;throw Error("abort: "+t(u,i)+" at "+t(u,s)+":"+o+":"+c)},n.trace=n.trace||function(i,s){let o=e.memory||n.memory;console.log("trace: "+t(o,i)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function CMe(r,e){let t=e.exports,n=t.memory,a=t.table,i=t.__alloc,s=t.__retain,o=t.__rtti_base||-1;function c(z){let G=new Uint32Array(n.buffer),j=G[o>>>2];if((z>>>=0)>=j)throw Error("invalid id: "+z);return G[(o+4>>>2)+z*2]}function u(z){let G=new Uint32Array(n.buffer),j=G[o>>>2];if((z>>>=0)>=j)throw Error("invalid id: "+z);return G[(o+4>>>2)+z*2+1]}function l(z){return 31-Math.clz32(z>>>5&31)}function p(z){return 31-Math.clz32(z>>>14&31)}function h(z){let G=z.length,j=i(G<<1,1),H=new Uint16Array(n.buffer);for(var I=0,b=j>>>1;I>>2]!==1)throw Error("not a string: "+z);return Hvt(G,z)}r.__getString=m;function y(z,G,j){let H=n.buffer;if(j)switch(z){case 2:return new Float32Array(H);case 3:return new Float64Array(H)}else switch(z){case 0:return new(G?Int8Array:Uint8Array)(H);case 1:return new(G?Int16Array:Uint16Array)(H);case 2:return new(G?Int32Array:Uint32Array)(H);case 3:return new(G?BigInt64Array:BigUint64Array)(H)}throw Error("unsupported align: "+z)}function C(z,G){let j=c(z);if(!(j&3))throw Error("not an array: "+z+" @ "+j);let H=l(j),I=G.length,b=i(I<>>2]=s(b),S[k+4>>>2]=b,S[k+8>>>2]=I<>>2]=I);let w=y(H,j&1024,j&2048);if(j&8192)for(let R=0;R>>H)+R]=s(G[R]);else w.set(G,b>>>H);return k}r.__allocArray=C;function P(z){let G=new Uint32Array(n.buffer),j=G[z+-8>>>2],H=c(j);if(!(H&1))throw Error("not an array: "+j);let I=l(H);var b=G[z+4>>>2];let k=H&2?G[z+12>>>2]:G[b+-4>>>2]>>>I;return y(I,H&1024,H&2048).subarray(b>>>=I,b+k)}r.__getArrayView=P;function A(z){let G=P(z),j=G.length,H=new Array(j);for(let I=0;I>>2];return G.slice(z,z+j)}r.__getArrayBuffer=B;function F(z,G,j){return new z(W(z,G,j))}function W(z,G,j){let H=n.buffer,I=new Uint32Array(H),b=I[j+4>>>2];return new z(H,b,I[b+-4>>>2]>>>G)}r.__getInt8Array=F.bind(null,Int8Array,0),r.__getInt8ArrayView=W.bind(null,Int8Array,0),r.__getUint8Array=F.bind(null,Uint8Array,0),r.__getUint8ArrayView=W.bind(null,Uint8Array,0),r.__getUint8ClampedArray=F.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=W.bind(null,Uint8ClampedArray,0),r.__getInt16Array=F.bind(null,Int16Array,1),r.__getInt16ArrayView=W.bind(null,Int16Array,1),r.__getUint16Array=F.bind(null,Uint16Array,1),r.__getUint16ArrayView=W.bind(null,Uint16Array,1),r.__getInt32Array=F.bind(null,Int32Array,2),r.__getInt32ArrayView=W.bind(null,Int32Array,2),r.__getUint32Array=F.bind(null,Uint32Array,2),r.__getUint32ArrayView=W.bind(null,Uint32Array,2),xon&&(r.__getInt64Array=F.bind(null,BigInt64Array,3),r.__getInt64ArrayView=W.bind(null,BigInt64Array,3),r.__getUint64Array=F.bind(null,BigUint64Array,3),r.__getUint64ArrayView=W.bind(null,BigUint64Array,3)),r.__getFloat32Array=F.bind(null,Float32Array,2),r.__getFloat32ArrayView=W.bind(null,Float32Array,2),r.__getFloat64Array=F.bind(null,Float64Array,3),r.__getFloat64ArrayView=W.bind(null,Float64Array,3);function K(z,G){let j=new Uint32Array(n.buffer);var H=j[z+-8>>>2];if(H<=j[o>>>2])do if(H==G)return!0;while(H=u(H));return!1}return r.__instanceof=K,r.memory=r.memory||n,r.table=r.table||a,Gvt(t,r)}function jvt(r){return typeof Response<"u"&&r instanceof Response}async function zvt(r,e){return jvt(r=await r)?Kvt(r,e):CMe(IMe(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}Wse.instantiate=zvt;function _on(r,e){return CMe(IMe(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}Wse.instantiateSync=_on;async function Kvt(r,e){return WebAssembly.instantiateStreaming?CMe(IMe(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):zvt(jvt(r=await r)?r.arrayBuffer():r,e)}Wse.instantiateStreaming=Kvt;function Gvt(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(a){r.__argumentsLength.value=a}:r.__setArgumentsLength||r.__setargc||function(){};for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a))continue;let i=r[a],s=a.split("."),o=t;for(;s.length>1;){let l=s.shift();Object.prototype.hasOwnProperty.call(o,l)||(o[l]={}),o=o[l]}let c=s[0],u=c.indexOf("#");if(u>=0){let l=c.substring(0,u),p=o[l];if(typeof p>"u"||!p.prototype){let h=function(...m){return h.wrap(h.prototype.constructor(0,...m))};h.prototype={valueOf:function(){return this[Lse]}},h.wrap=function(m){return Object.create(h.prototype,{[Lse]:{value:m,writable:!1}})},p&&Object.getOwnPropertyNames(p).forEach(m=>Object.defineProperty(h,m,Object.getOwnPropertyDescriptor(p,m))),o[l]=h}if(c=c.substring(u+1),o=o[l].prototype,/^(get|set):/.test(c)){if(!Object.prototype.hasOwnProperty.call(o,c=c.substring(4))){let h=r[a.replace("set:","get:")],m=r[a.replace("get:","set:")];Object.defineProperty(o,c,{get:function(){return h(this[Lse])},set:function(y){m(this[Lse],y)},enumerable:!0})}}else c==="constructor"?(o[c]=(...h)=>(n(h.length),i(...h))).original=i:(o[c]=function(...h){return n(h.length),i(this[Lse],...h)}).original=i}else/^(get|set):/.test(c)?Object.prototype.hasOwnProperty.call(o,c=c.substring(4))||Object.defineProperty(o,c,{get:r[a.replace("set:","get:")],set:r[a.replace("get:","set:")],enumerable:!0}):typeof i=="function"&&i!==n?(o[c]=(...l)=>(n(l.length),i(...l))).original=i:o[c]=i}return t}Wse.demangle=Gvt});var Yvt=E((WBa,$vt)=>{f();d();var{instantiate:Ton}=Vvt();AMe.supported=typeof WebAssembly<"u";function AMe(r={}){if(!AMe.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return Ton(new Response(new Blob([e],{type:"application/wasm"})),r)}$vt.exports=AMe});var Zvt=E((jBa,Jvt)=>{f();d();var Qvt=Uvt(),Eon=Yvt(),Ion=async(r,e,t,n,a)=>{let i=await Eon();return new Qvt(i,r,e,t,n,a)};Jvt.exports={Rabin:Qvt,create:Ion}});var twt=E((GBa,ewt)=>{"use strict";f();d();var Con=TMe(),{create:Aon}=Zvt(),Xvt=Rw();ewt.exports=async function*(e,t){let n,a,i;if(t.minChunkSize&&t.maxChunkSize&&t.avgChunkSize)i=t.avgChunkSize,n=t.minChunkSize,a=t.maxChunkSize;else if(t.avgChunkSize)i=t.avgChunkSize,n=i/3,a=i+i/2;else throw Xvt(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(n<16)throw Xvt(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");a{"use strict";f();d();var kMe=TMe();rwt.exports=async function*(e,t){let n=new kMe,a=0,i=!1,s=t.maxChunkSize;for await(let o of e)for(n.append(o),a+=o.length;a>=s;)if(yield n.slice(0,s),i=!0,s===n.length)n=new kMe,a=0;else{let c=new kMe;c.append(n.shallowSlice(s)),n=c,a-=s}(!i||a)&&(yield n.slice(0,a))}});var swt=E((ZBa,iwt)=>{"use strict";f();d();var awt=Rw(),Son=g2e();async function*Pon(r){for await(let e of r){if(e.length===void 0)throw awt(new Error("Content was invalid"),"ERR_INVALID_CONTENT");if(typeof e=="string"||e instanceof String)yield Son(e.toString());else if(Array.isArray(e))yield Uint8Array.from(e);else if(e instanceof Uint8Array)yield e;else throw awt(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}}iwt.exports=Pon});var uwt=E((tDa,cwt)=>{"use strict";f();d();var Ron=wvt(),Mon=Fvt(),owt=Rw();function Bon(r){return Symbol.iterator in r}function Don(r){return Symbol.asyncIterator in r}function Non(r){try{if(r instanceof Uint8Array)return async function*(){yield r}();if(Bon(r))return async function*(){yield*r}();if(Don(r))return r}catch{throw owt(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}throw owt(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}async function*Oon(r,e,t){for await(let n of r)if(n.path&&(n.path.substring(0,2)==="./"&&(t.wrapWithDirectory=!0),n.path=n.path.split("/").filter(a=>a&&a!==".").join("/")),n.content){let a;typeof t.chunker=="function"?a=t.chunker:t.chunker==="rabin"?a=twt():a=nwt();let i;typeof t.chunkValidator=="function"?i=t.chunkValidator:i=swt();let s={path:n.path,mtime:n.mtime,mode:n.mode,content:a(i(Non(n.content),t),t)};yield()=>Mon(s,e,t)}else if(n.path){let a={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>Ron(a,e,t)}else throw new Error("Import candidate must have content or path or both")}cwt.exports=Oon});var w2e=E((aDa,lwt)=>{"use strict";f();d();var SMe=class{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}};lwt.exports=SMe});var RMe=E((oDa,dwt)=>{"use strict";f();d();var{DAGLink:Fon,DAGNode:Lon}=tX(),{UnixFS:qon}=ZZ(),fwt=w2e(),Won=eX(),PMe=class extends fwt{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){let e=Object.keys(this._children);for(let t=0;tu+l.Tsize,0);this.cid=o,this.size=c,yield{cid:o,unixfs:a,path:this.path,size:c}}};dwt.exports=PMe});var mwt=E((fDa,hwt)=>{"use strict";f();d();hwt.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let a=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):a=!0,this._setInternalPos(n,e,t,a),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;let a=this._bitArrays[n],i=e-n*7;if(!((a&1<0))return-1;let o=this._bitArrays.slice(0,n).reduce(Uon,0),c=~(4294967295<=t)i.push(s);else if(i[0][0]<=t)i.unshift(s);else{let o=Math.round(i.length/2);this._data=i.slice(0,o).concat(s).concat(i.slice(o))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(Hon),this._changedData=!1}bitField(){let e=[],t=8,n=0,a=0,i,s=this._bitArrays.slice();for(;s.length||n;){n===0&&(i=s.shift(),n=7);let c=Math.min(n,t),u=~(255<>>c,n-=c,t-=c,(!t||!n&&!s.length)&&(e.push(a),a=0,t=8)}for(var o=e.length-1;o>0&&e[o]===0;o--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(jon)}};function Uon(r,e){return r+pwt(e)}function pwt(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function Hon(r,e){return r[0]-e[0]}function jon(r){return r[1]}});var gwt=E((hDa,bwt)=>{"use strict";f();d();var zon=mwt(),{fromString:Kon}=(Fw(),Ht(Ese)),Ep=class{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new zon,this.key=null}async put(e,t){let n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){let t=await this._findChild(e);if(t)return t.value}async del(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof Ep?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){let e=this._children.compactArray();for(let t of e)t instanceof Ep?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){let n=[];return t(this._children.reduce((a,i,s)=>(i&&(i instanceof Ep?a.push(i.serialize(e,t)):a.push(e(i,s))),a),n))}asyncTransform(e,t){return ywt(this,e,t)}toJSON(){return this.serialize(Von,$on)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof Ep)&&n&&n.key===e)return n}async _findPlace(e){let t=this._options.hash(typeof e=="string"?Kon(e):e),n=await t.take(this._options.bits),a=this._children.get(n);return a instanceof Ep?a._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:a}}async _findNewBucketAndPos(e){let t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){let n=new Ep(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);let a=await n._findPlace(t.existingChild.hash);return a.bucket._putAt(a,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){let e=this._children.find(Gon);if(e&&!(e instanceof Ep)){let t=e.hash;t.untake(this._options.bits);let n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function Gon(r){return Boolean(r)}function Von(r,e){return r.key}function $on(r){return r}async function ywt(r,e,t){let n=[];for(let a of r._children.compactArray())if(a instanceof Ep)await ywt(a,e,t);else{let i=await e(a);n.push({bitField:r._children.bitField(),children:i})}return t(n)}bwt.exports=Ep});var wwt=E((gDa,vwt)=>{"use strict";f();d();var Yon=[255,254,252,248,240,224,192,128],Qon=[1,3,7,15,31,63,127,255];vwt.exports=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){let a=this._value[this._currentBytePos],i=this._currentBitPos+1,s=Math.min(i,t),o=Jon(a,i-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function Jon(r,e,t){let n=Zon(e,t);return(r&n)>>>e}function Zon(r,e){return Yon[r]&Qon[Math.min(e+r-1,7)]}});var xwt=E((xDa,MMe)=>{"use strict";f();d();var Xon=wwt(),{concat:ecn}=(Lw(),Ht(Cse));function tcn(r){function e(t){return t instanceof Use?t:new Use(t,r)}return e}var Use=class{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){let a=this._buffers[this._currentBufferIndex],i=Math.min(a.availableBits(),t),s=a.take(i);n=(n<0;){let n=this._buffers[this._currentBufferIndex],a=Math.min(n.totalBits()-n.availableBits(),t);n.untake(a),t-=a,this._availableBits+=a,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;let e=this._depth?ecn([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new Xon(t);this._buffers.push(n),this._availableBits+=n.availableBits()}};MMe.exports=tcn;MMe.exports.InfiniteHash=Use});var Ewt=E((EDa,Twt)=>{"use strict";f();d();var _wt=gwt(),rcn=xwt();function ncn(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");let e={bits:r.bits||8,hash:rcn(r.hashFn)};return new _wt(e)}Twt.exports={createHAMT:ncn,Bucket:_wt}});var Awt=E((ADa,Cwt)=>{"use strict";f();d();var{DAGLink:BMe,DAGNode:acn}=tX(),{UnixFS:icn}=ZZ(),scn=w2e(),ocn=eX(),{createHAMT:ccn,Bucket:ucn}=Ewt(),DMe=class extends scn{constructor(e,t){super(e,t),this._bucket=ccn({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(let{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(let t of Iwt(this._bucket,e,this,this.options))yield{...t,path:this.path}}};Cwt.exports=DMe;async function*Iwt(r,e,t,n){let a=r._children,i=[],s=0;for(let m=0;m{"use strict";f();d();var lcn=Awt(),fcn=RMe();kwt.exports=async function r(e,t,n,a){let i=t;t instanceof fcn&&t.directChildrenCount()>=n&&(i=await dcn(t,a));let s=i.parent;if(s){if(i!==t){if(e&&(e.parent=i),!i.parentKey)throw new Error("No parent key found");await s.put(i.parentKey,i)}return r(i,s,n,a)}return i};async function dcn(r,e){let t=new lcn({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(let{key:n,child:a}of r.eachChildSeries())await t.put(n,a);return t}});var Rwt=E((BDa,Pwt)=>{"use strict";f();d();var pcn=(r="")=>(r.trim().match(/([^\\^/]|\\\/)+/g)||[]).filter(Boolean);Pwt.exports=pcn});var Owt=E((ODa,Nwt)=>{"use strict";f();d();var Bwt=RMe(),hcn=Swt(),Dwt=w2e(),mcn=Rwt();async function ycn(r,e,t){let n=mcn(r.path||""),a=n.length-1,i=e,s="";for(let o=0;o{"use strict";f();d();var gcn=GPe(),vcn=Zgt();async function*wcn(r,e,t={}){let n=vcn(t),a;typeof t.dagBuilder=="function"?a=t.dagBuilder:a=uwt();let i;typeof t.treeBuilder=="function"?i=t.treeBuilder:i=Owt();let s;Symbol.asyncIterator in r||Symbol.iterator in r?s=r:s=[r];for await(let o of i(gcn(a(s,e,n),n.fileImportConcurrency),e,n))yield{cid:o.cid,path:o.path,unixfs:o.unixfs,size:o.size}}Fwt.exports={importer:wcn}});var OMe=E((HDa,Lwt)=>{f();d();Lwt.exports=typeof self=="object"?self.FormData:window.FormData});var $wt=E(Ji=>{"use strict";f();d();Object.defineProperty(Ji,"__esModule",{value:!0});var xcn=Pn(),_cn=NMe(),Tcn=OMe(),Ecn=Cn();function qwt(r){return r&&r.__esModule?r:{default:r}}var x2e=qwt(xcn),Icn=qwt(Tcn);function Ccn(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Acn(r){var e=Ccn(r,"string");return typeof e=="symbol"?e:String(e)}function zw(r,e,t){return e=Acn(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var rX={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},Wwt="https://upload.nftlabs.co",FMe="https://api.pinata.cloud/pinning/pinFileToIPFS";function Uwt(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function Hwt(r){let e={...r,...rX};for(let t of Object.keys(rX))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...rX[t]]}return e}function LMe(){return typeof window<"u"}function nX(r){return global.File&&r instanceof File}function gb(r){return global.Buffer&&r instanceof v.Buffer}function aX(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||gb(r.data)))}function iX(r){return nX(r)||gb(r)||aX(r)}function jwt(r,e){if(nX(r)&&nX(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(gb(r)&&gb(e))return r.equals(e);if(aX(r)&&aX(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(gb(r.data)&&gb(e.data))return r.data.equals(e.data)}}return!1}function zwt(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function A2e(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function _2e(r,e){return typeof r=="string"?zwt(r,e):typeof r=="object"?!r||iX(r)?r:Array.isArray(r)?r.map(t=>_2e(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,_2e(a,e)]})):r}function Hse(r,e){return typeof r=="string"?A2e(r,e):typeof r=="object"?!r||iX(r)?r:Array.isArray(r)?r.map(t=>Hse(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,Hse(a,e)]})):r}function T2e(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(iX(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>T2e(t,e)):Object.keys(r).map(t=>T2e(r[t],e))}return e}function E2e(r,e){if(iX(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>E2e(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,E2e(a,e)]}))):r}async function Kwt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(aX(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(v.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return Gwt(a,t,n)}async function Gwt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of _cn.importer(r,a,n))i=s;return`${i}`}async function Vwt(r){return(await x2e.default(`${rX["ipfs://"][0]}${r}`,{method:"HEAD",headers:{"x-skip-origin":"true"}})).ok}var I2e=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=A2e(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await x2e.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},C2e=class{constructor(e){zw(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new Icn.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await Kwt(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await Vwt(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return LMe()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await x2e.default(`${Wwt}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(h=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${h}`}else u=`${c.name}`;else aX(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let p=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(jwt(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),LMe()?e.append("file",new Blob([l]),p):e.append("file",l,{filepath:p})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(p=>`ipfs://${l}/${p}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",FMe),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await x2e.default(FMe,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},qMe=class{constructor(e){zw(this,"uploader",void 0),zw(this,"downloader",void 0),zw(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new C2e,this.downloader=e?.downloader||new I2e,this.gatewayUrls=Hwt(Uwt(e?.gatewayUrls))}resolveScheme(e){return A2e(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return Hse(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>iX(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=_2e(n,this.gatewayUrls);let a=T2e(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=E2e(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=Hse(n,this.gatewayUrls)),n}},WMe=class{constructor(e){zw(this,"gatewayUrls",rX),zw(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},UMe=class{constructor(e){zw(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=Ecn.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(nX(s))o=await s.text();else if(gb(s))o=s.toString();else if(typeof s=="string")o=s;else{o=gb(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Ji.DEFAULT_GATEWAY_URLS=rX;Ji.IpfsUploader=C2e;Ji.MockDownloader=WMe;Ji.MockUploader=UMe;Ji.PINATA_IPFS_URL=FMe;Ji.StorageDownloader=I2e;Ji.TW_IPFS_SERVER_URL=Wwt;Ji.ThirdwebStorage=qMe;Ji.extractObjectFiles=T2e;Ji.getCID=Gwt;Ji.getCIDForUpload=Kwt;Ji.isBrowser=LMe;Ji.isBufferInstance=gb;Ji.isBufferOrStringWithName=aX;Ji.isFileBufferOrStringEqual=jwt;Ji.isFileInstance=nX;Ji.isFileOrBuffer=iX;Ji.isUploaded=Vwt;Ji.parseGatewayUrls=Uwt;Ji.prepareGatewayUrls=Hwt;Ji.replaceGatewayUrlWithScheme=zwt;Ji.replaceObjectFilesWithUris=E2e;Ji.replaceObjectGatewayUrlsWithSchemes=_2e;Ji.replaceObjectSchemesWithGatewayUrls=Hse;Ji.replaceSchemeWithGatewayUrl=A2e});var a3t=E(Zi=>{"use strict";f();d();Object.defineProperty(Zi,"__esModule",{value:!0});var kcn=Pn(),Scn=NMe(),Pcn=OMe(),Rcn=Cn();function Ywt(r){return r&&r.__esModule?r:{default:r}}var k2e=Ywt(kcn),Mcn=Ywt(Pcn);function Bcn(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Dcn(r){var e=Bcn(r,"string");return typeof e=="symbol"?e:String(e)}function Kw(r,e,t){return e=Dcn(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var sX={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},Qwt="https://upload.nftlabs.co",HMe="https://api.pinata.cloud/pinning/pinFileToIPFS";function Jwt(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function Zwt(r){let e={...r,...sX};for(let t of Object.keys(sX))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...sX[t]]}return e}function jMe(){return typeof window<"u"}function oX(r){return global.File&&r instanceof File}function vb(r){return global.Buffer&&r instanceof v.Buffer}function cX(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||vb(r.data)))}function uX(r){return oX(r)||vb(r)||cX(r)}function Xwt(r,e){if(oX(r)&&oX(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(vb(r)&&vb(e))return r.equals(e);if(cX(r)&&cX(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(vb(r.data)&&vb(e.data))return r.data.equals(e.data)}}return!1}function e3t(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function D2e(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function S2e(r,e){return typeof r=="string"?e3t(r,e):typeof r=="object"?!r||uX(r)?r:Array.isArray(r)?r.map(t=>S2e(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,S2e(a,e)]})):r}function jse(r,e){return typeof r=="string"?D2e(r,e):typeof r=="object"?!r||uX(r)?r:Array.isArray(r)?r.map(t=>jse(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,jse(a,e)]})):r}function P2e(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(uX(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>P2e(t,e)):Object.keys(r).map(t=>P2e(r[t],e))}return e}function R2e(r,e){if(uX(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>R2e(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,R2e(a,e)]}))):r}async function t3t(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(cX(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(v.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return r3t(a,t,n)}async function r3t(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of Scn.importer(r,a,n))i=s;return`${i}`}async function n3t(r){return(await k2e.default(`${sX["ipfs://"][0]}${r}`,{method:"HEAD",headers:{"x-skip-origin":"true"}})).ok}var M2e=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=D2e(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await k2e.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},B2e=class{constructor(e){Kw(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new Mcn.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await t3t(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await n3t(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return jMe()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await k2e.default(`${Qwt}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.NODE_ENV==="test"||!!g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(h=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${h}`}else u=`${c.name}`;else cX(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let p=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(Xwt(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),jMe()?e.append("file",new Blob([l]),p):e.append("file",l,{filepath:p})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(p=>`ipfs://${l}/${p}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",HMe),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await k2e.default(HMe,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},zMe=class{constructor(e){Kw(this,"uploader",void 0),Kw(this,"downloader",void 0),Kw(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new B2e,this.downloader=e?.downloader||new M2e,this.gatewayUrls=Zwt(Jwt(e?.gatewayUrls))}resolveScheme(e){return D2e(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return jse(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>uX(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=S2e(n,this.gatewayUrls);let a=P2e(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=R2e(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=jse(n,this.gatewayUrls)),n}},KMe=class{constructor(e){Kw(this,"gatewayUrls",sX),Kw(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},GMe=class{constructor(e){Kw(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=Rcn.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(oX(s))o=await s.text();else if(vb(s))o=s.toString();else if(typeof s=="string")o=s;else{o=vb(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Zi.DEFAULT_GATEWAY_URLS=sX;Zi.IpfsUploader=B2e;Zi.MockDownloader=KMe;Zi.MockUploader=GMe;Zi.PINATA_IPFS_URL=HMe;Zi.StorageDownloader=M2e;Zi.TW_IPFS_SERVER_URL=Qwt;Zi.ThirdwebStorage=zMe;Zi.extractObjectFiles=P2e;Zi.getCID=r3t;Zi.getCIDForUpload=t3t;Zi.isBrowser=jMe;Zi.isBufferInstance=vb;Zi.isBufferOrStringWithName=cX;Zi.isFileBufferOrStringEqual=Xwt;Zi.isFileInstance=oX;Zi.isFileOrBuffer=uX;Zi.isUploaded=n3t;Zi.parseGatewayUrls=Jwt;Zi.prepareGatewayUrls=Zwt;Zi.replaceGatewayUrlWithScheme=e3t;Zi.replaceObjectFilesWithUris=R2e;Zi.replaceObjectGatewayUrlsWithSchemes=S2e;Zi.replaceObjectSchemesWithGatewayUrls=jse;Zi.replaceSchemeWithGatewayUrl=D2e});var la=E((JDa,VMe)=>{"use strict";f();d();g.env.NODE_ENV==="production"?VMe.exports=$wt():VMe.exports=a3t()});var On=E((eNa,i3t)=>{"use strict";f();d();var Ncn=g.env.NODE_ENV==="production",$Me="Invariant failed";function Ocn(r,e){if(!r){if(Ncn)throw new Error($Me);var t=typeof e=="function"?e():e,n=t?"".concat($Me,": ").concat(t):$Me;throw new Error(n)}}i3t.exports=Ocn});var fi=E((nNa,Fcn)=>{Fcn.exports=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var o3t=E((aNa,s3t)=>{f();d();s3t.exports=function(e){for(var t=new v.Buffer(e.length),n=0,a=e.length-1;n<=a;++n,--a)t[n]=e[a],t[a]=e[n];return t}});var Vn=E((N2e,c3t)=>{f();d();(function(r,e){typeof N2e=="object"?c3t.exports=N2e=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(N2e,function(){var r=r||function(e,t){var n=Object.create||function(){function C(){}return function(P){var A;return C.prototype=P,A=new C,C.prototype=null,A}}(),a={},i=a.lib={},s=i.Base=function(){return{extend:function(C){var P=n(this);return C&&P.mixIn(C),(!P.hasOwnProperty("init")||this.init===P.init)&&(P.init=function(){P.$super.init.apply(this,arguments)}),P.init.prototype=P,P.$super=this,P},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var P in C)C.hasOwnProperty(P)&&(this[P]=C[P]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=s.extend({init:function(C,P){C=this.words=C||[],P!=t?this.sigBytes=P:this.sigBytes=C.length*4},toString:function(C){return(C||u).stringify(this)},concat:function(C){var P=this.words,A=C.words,B=this.sigBytes,F=C.sigBytes;if(this.clamp(),B%4)for(var W=0;W>>2]>>>24-W%4*8&255;P[B+W>>>2]|=K<<24-(B+W)%4*8}else for(var W=0;W>>2]=A[W>>>2];return this.sigBytes+=F,this},clamp:function(){var C=this.words,P=this.sigBytes;C[P>>>2]&=4294967295<<32-P%4*8,C.length=e.ceil(P/4)},clone:function(){var C=s.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var P=[],A=function(z){var z=z,G=987654321,j=4294967295;return function(){G=36969*(G&65535)+(G>>16)&j,z=18e3*(z&65535)+(z>>16)&j;var H=(G<<16)+z&j;return H/=4294967296,H+=.5,H*(e.random()>.5?1:-1)}},B=0,F;B>>2]>>>24-F%4*8&255;B.push((W>>>4).toString(16)),B.push((W&15).toString(16))}return B.join("")},parse:function(C){for(var P=C.length,A=[],B=0;B>>3]|=parseInt(C.substr(B,2),16)<<24-B%8*4;return new o.init(A,P/2)}},l=c.Latin1={stringify:function(C){for(var P=C.words,A=C.sigBytes,B=[],F=0;F>>2]>>>24-F%4*8&255;B.push(String.fromCharCode(W))}return B.join("")},parse:function(C){for(var P=C.length,A=[],B=0;B>>2]|=(C.charCodeAt(B)&255)<<24-B%4*8;return new o.init(A,P)}},p=c.Utf8={stringify:function(C){try{return decodeURIComponent(escape(l.stringify(C)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(C){return l.parse(unescape(encodeURIComponent(C)))}},h=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=p.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var P=this._data,A=P.words,B=P.sigBytes,F=this.blockSize,W=F*4,K=B/W;C?K=e.ceil(K):K=e.max((K|0)-this._minBufferSize,0);var z=K*F,G=e.min(z*4,B);if(z){for(var j=0;j{f();d();(function(r,e){typeof O2e=="object"?u3t.exports=O2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(O2e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];(function(){function p(C){for(var P=e.sqrt(C),A=2;A<=P;A++)if(!(C%A))return!1;return!0}function h(C){return(C-(C|0))*4294967296|0}for(var m=2,y=0;y<64;)p(m)&&(y<8&&(o[y]=h(e.pow(m,1/2))),c[y]=h(e.pow(m,1/3)),y++),m++})();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(p,h){for(var m=this._hash.words,y=m[0],C=m[1],P=m[2],A=m[3],B=m[4],F=m[5],W=m[6],K=m[7],z=0;z<64;z++){if(z<16)u[z]=p[h+z]|0;else{var G=u[z-15],j=(G<<25|G>>>7)^(G<<14|G>>>18)^G>>>3,H=u[z-2],I=(H<<15|H>>>17)^(H<<13|H>>>19)^H>>>10;u[z]=j+u[z-7]+I+u[z-16]}var b=B&F^~B&W,k=y&C^y&P^C&P,S=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),w=(B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25),R=K+w+b+c[z]+u[z],O=S+k;K=W,W=F,F=B,B=A+R|0,A=P,P=C,C=y,y=R+O|0}m[0]=m[0]+y|0,m[1]=m[1]+C|0,m[2]=m[2]+P|0,m[3]=m[3]+A|0,m[4]=m[4]+B|0,m[5]=m[5]+F|0,m[6]=m[6]+W|0,m[7]=m[7]+K|0},_doFinalize:function(){var p=this._data,h=p.words,m=this._nDataBytes*8,y=p.sigBytes*8;return h[y>>>5]|=128<<24-y%32,h[(y+64>>>9<<4)+14]=e.floor(m/4294967296),h[(y+64>>>9<<4)+15]=m,p.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var p=i.clone.call(this);return p._hash=this._hash.clone(),p}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256})});var f3t=E((YMe,l3t)=>{f();d();(function(r,e){typeof YMe=="object"?l3t.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(YMe,function(){function r(a,i){var s=i?"\u2514":"\u251C";return a?s+="\u2500 ":s+="\u2500\u2500\u2510",s}function e(a,i){var s=[];for(var o in a)!a.hasOwnProperty(o)||i&&typeof a[o]=="function"||s.push(o);return s}function t(a,i,s,o,c,u,l){var p="",h=0,m,y,C=o.slice(0);if(C.push([i,s])&&o.length>0&&(o.forEach(function(A,B){B>0&&(p+=(A[1]?" ":"\u2502")+" "),!y&&A[0]===i&&(y=!0)}),p+=r(a,s)+a,c&&(typeof i!="object"||i instanceof Date)&&(p+=": "+i),y&&(p+=" (circular ref.)"),l(p)),!y&&typeof i=="object"){var P=e(i,u);P.forEach(function(A){m=++h===P.length,t(A,i[A],m,C,c,u,l)})}}var n={};return n.asLines=function(a,i,s,o){var c=typeof s!="function"?s:!1;t(".",a,!1,[],i,c,o||s)},n.asTree=function(a,i,s){var o="";return t(".",a,!1,[],i,s,function(c){o+=c+` +`}),o},n})});var Kse=E((F2e,d3t)=>{f();d();(function(r,e){typeof F2e=="object"?d3t.exports=F2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(F2e,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},o=s.Word=a.extend({init:function(u,l){this.high=u,this.low=l}}),c=s.WordArray=a.extend({init:function(u,l){u=this.words=u||[],l!=e?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,p=[],h=0;h{f();d();(function(r,e){typeof L2e=="object"?p3t.exports=L2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(L2e,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var o=s.byteLength,c=[],u=0;u>>2]|=s[u]<<24-u%4*8;a.call(this,c,o)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var y3t=E((q2e,m3t)=>{f();d();(function(r,e){typeof q2e=="object"?m3t.exports=q2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(q2e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],p=0;p>>2]>>>16-p%4*8&65535;l.push(String.fromCharCode(h))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=o.charCodeAt(l)<<16-l%2*16;return n.create(u,c*2)}};a.Utf16LE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],p=0;p>>2]>>>16-p%4*8&65535);l.push(String.fromCharCode(h))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=s(o.charCodeAt(l)<<16-l%2*16);return n.create(u,c*2)}};function s(o){return o<<8&4278255360|o>>>8&16711935}}(),r.enc.Utf16})});var Gw=E((W2e,b3t)=>{f();d();(function(r,e){typeof W2e=="object"?b3t.exports=W2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(W2e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(o){var c=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var p=[],h=0;h>>2]>>>24-h%4*8&255,y=c[h+1>>>2]>>>24-(h+1)%4*8&255,C=c[h+2>>>2]>>>24-(h+2)%4*8&255,P=m<<16|y<<8|C,A=0;A<4&&h+A*.75>>6*(3-A)&63));var B=l.charAt(64);if(B)for(;p.length%4;)p.push(B);return p.join("")},parse:function(o){var c=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var p=0;p>>6-h%4*2;l[p>>>2]|=(m|y)<<24-p%4*8,p++}return n.create(l,p)}}(),r.enc.Base64})});var Vw=E((U2e,g3t)=>{f();d();(function(r,e){typeof U2e=="object"?g3t.exports=U2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(U2e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=e.abs(e.sin(m+1))*4294967296|0})();var c=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,y){for(var C=0;C<16;C++){var P=y+C,A=m[P];m[P]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var B=this._hash.words,F=m[y+0],W=m[y+1],K=m[y+2],z=m[y+3],G=m[y+4],j=m[y+5],H=m[y+6],I=m[y+7],b=m[y+8],k=m[y+9],S=m[y+10],w=m[y+11],R=m[y+12],O=m[y+13],D=m[y+14],T=m[y+15],x=B[0],N=B[1],U=B[2],M=B[3];x=u(x,N,U,M,F,7,o[0]),M=u(M,x,N,U,W,12,o[1]),U=u(U,M,x,N,K,17,o[2]),N=u(N,U,M,x,z,22,o[3]),x=u(x,N,U,M,G,7,o[4]),M=u(M,x,N,U,j,12,o[5]),U=u(U,M,x,N,H,17,o[6]),N=u(N,U,M,x,I,22,o[7]),x=u(x,N,U,M,b,7,o[8]),M=u(M,x,N,U,k,12,o[9]),U=u(U,M,x,N,S,17,o[10]),N=u(N,U,M,x,w,22,o[11]),x=u(x,N,U,M,R,7,o[12]),M=u(M,x,N,U,O,12,o[13]),U=u(U,M,x,N,D,17,o[14]),N=u(N,U,M,x,T,22,o[15]),x=l(x,N,U,M,W,5,o[16]),M=l(M,x,N,U,H,9,o[17]),U=l(U,M,x,N,w,14,o[18]),N=l(N,U,M,x,F,20,o[19]),x=l(x,N,U,M,j,5,o[20]),M=l(M,x,N,U,S,9,o[21]),U=l(U,M,x,N,T,14,o[22]),N=l(N,U,M,x,G,20,o[23]),x=l(x,N,U,M,k,5,o[24]),M=l(M,x,N,U,D,9,o[25]),U=l(U,M,x,N,z,14,o[26]),N=l(N,U,M,x,b,20,o[27]),x=l(x,N,U,M,O,5,o[28]),M=l(M,x,N,U,K,9,o[29]),U=l(U,M,x,N,I,14,o[30]),N=l(N,U,M,x,R,20,o[31]),x=p(x,N,U,M,j,4,o[32]),M=p(M,x,N,U,b,11,o[33]),U=p(U,M,x,N,w,16,o[34]),N=p(N,U,M,x,D,23,o[35]),x=p(x,N,U,M,W,4,o[36]),M=p(M,x,N,U,G,11,o[37]),U=p(U,M,x,N,I,16,o[38]),N=p(N,U,M,x,S,23,o[39]),x=p(x,N,U,M,O,4,o[40]),M=p(M,x,N,U,F,11,o[41]),U=p(U,M,x,N,z,16,o[42]),N=p(N,U,M,x,H,23,o[43]),x=p(x,N,U,M,k,4,o[44]),M=p(M,x,N,U,R,11,o[45]),U=p(U,M,x,N,T,16,o[46]),N=p(N,U,M,x,K,23,o[47]),x=h(x,N,U,M,F,6,o[48]),M=h(M,x,N,U,I,10,o[49]),U=h(U,M,x,N,D,15,o[50]),N=h(N,U,M,x,j,21,o[51]),x=h(x,N,U,M,R,6,o[52]),M=h(M,x,N,U,z,10,o[53]),U=h(U,M,x,N,S,15,o[54]),N=h(N,U,M,x,W,21,o[55]),x=h(x,N,U,M,b,6,o[56]),M=h(M,x,N,U,T,10,o[57]),U=h(U,M,x,N,H,15,o[58]),N=h(N,U,M,x,O,21,o[59]),x=h(x,N,U,M,G,6,o[60]),M=h(M,x,N,U,w,10,o[61]),U=h(U,M,x,N,K,15,o[62]),N=h(N,U,M,x,k,21,o[63]),B[0]=B[0]+x|0,B[1]=B[1]+N|0,B[2]=B[2]+U|0,B[3]=B[3]+M|0},_doFinalize:function(){var m=this._data,y=m.words,C=this._nDataBytes*8,P=m.sigBytes*8;y[P>>>5]|=128<<24-P%32;var A=e.floor(C/4294967296),B=C;y[(P+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,y[(P+64>>>9<<4)+14]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,m.sigBytes=(y.length+1)*4,this._process();for(var F=this._hash,W=F.words,K=0;K<4;K++){var z=W[K];W[K]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return F},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});function u(m,y,C,P,A,B,F){var W=m+(y&C|~y&P)+A+F;return(W<>>32-B)+y}function l(m,y,C,P,A,B,F){var W=m+(y&P|C&~P)+A+F;return(W<>>32-B)+y}function p(m,y,C,P,A,B,F){var W=m+(y^C^P)+A+F;return(W<>>32-B)+y}function h(m,y,C,P,A,B,F){var W=m+(C^(y|~P))+A+F;return(W<>>32-B)+y}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5})});var j2e=E((H2e,v3t)=>{f();d();(function(r,e){typeof H2e=="object"?v3t.exports=H2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(H2e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var l=this._hash.words,p=l[0],h=l[1],m=l[2],y=l[3],C=l[4],P=0;P<80;P++){if(P<16)s[P]=c[u+P]|0;else{var A=s[P-3]^s[P-8]^s[P-14]^s[P-16];s[P]=A<<1|A>>>31}var B=(p<<5|p>>>27)+C+s[P];P<20?B+=(h&m|~h&y)+1518500249:P<40?B+=(h^m^y)+1859775393:P<60?B+=(h&m|h&y|m&y)-1894007588:B+=(h^m^y)-899497514,C=y,y=m,m=h<<30|h>>>2,h=p,p=B}l[0]=l[0]+p|0,l[1]=l[1]+h|0,l[2]=l[2]+m|0,l[3]=l[3]+y|0,l[4]=l[4]+C|0},_doFinalize:function(){var c=this._data,u=c.words,l=this._nDataBytes*8,p=c.sigBytes*8;return u[p>>>5]|=128<<24-p%32,u[(p+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(p+64>>>9<<4)+15]=l,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o)}(),r.SHA1})});var x3t=E((z2e,w3t)=>{f();d();(function(r,e,t){typeof z2e=="object"?w3t.exports=z2e=e(Vn(),zse()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(z2e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=4,o}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var QMe=E((K2e,_3t)=>{f();d();(function(r,e,t){typeof K2e=="object"?_3t.exports=K2e=e(Vn(),Kse()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(K2e,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,o=e.algo;function c(){return i.create.apply(i,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var h=0;h<80;h++)l[h]=c()})();var p=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(h,m){for(var y=this._hash.words,C=y[0],P=y[1],A=y[2],B=y[3],F=y[4],W=y[5],K=y[6],z=y[7],G=C.high,j=C.low,H=P.high,I=P.low,b=A.high,k=A.low,S=B.high,w=B.low,R=F.high,O=F.low,D=W.high,T=W.low,x=K.high,N=K.low,U=z.high,M=z.low,V=G,ee=j,$=H,X=I,se=b,ue=k,ye=S,Ie=w,ge=R,xe=O,Ue=D,Te=T,Be=x,Tr=N,et=U,mt=M,jt=0;jt<80;jt++){var je=l[jt];if(jt<16)var ht=je.high=h[m+jt*2]|0,ir=je.low=h[m+jt*2+1]|0;else{var tt=l[jt-15],It=tt.high,br=tt.low,lt=(It>>>1|br<<31)^(It>>>8|br<<24)^It>>>7,Ut=(br>>>1|It<<31)^(br>>>8|It<<24)^(br>>>7|It<<25),Or=l[jt-2],Ve=Or.high,At=Or.low,Gr=(Ve>>>19|At<<13)^(Ve<<3|At>>>29)^Ve>>>6,rt=(At>>>19|Ve<<13)^(At<<3|Ve>>>29)^(At>>>6|Ve<<26),Ft=l[jt-7],Vr=Ft.high,st=Ft.low,Lt=l[jt-16],Hr=Lt.high,nt=Lt.low,ir=Ut+st,ht=lt+Vr+(ir>>>0>>0?1:0),ir=ir+rt,ht=ht+Gr+(ir>>>0>>0?1:0),ir=ir+nt,ht=ht+Hr+(ir>>>0>>0?1:0);je.high=ht,je.low=ir}var Kt=ge&Ue^~ge&Be,Pr=xe&Te^~xe&Tr,ot=V&$^V&se^$&se,Gt=ee&X^ee&ue^X&ue,Er=(V>>>28|ee<<4)^(V<<30|ee>>>2)^(V<<25|ee>>>7),at=(ee>>>28|V<<4)^(ee<<30|V>>>2)^(ee<<25|V>>>7),Vt=(ge>>>14|xe<<18)^(ge>>>18|xe<<14)^(ge<<23|xe>>>9),$r=(xe>>>14|ge<<18)^(xe>>>18|ge<<14)^(xe<<23|ge>>>9),it=u[jt],$t=it.high,jr=it.low,Le=mt+$r,yt=et+Vt+(Le>>>0>>0?1:0),Le=Le+Pr,yt=yt+Kt+(Le>>>0>>0?1:0),Le=Le+jr,yt=yt+$t+(Le>>>0>>0?1:0),Le=Le+ir,yt=yt+ht+(Le>>>0>>0?1:0),zr=at+Gt,ft=Er+ot+(zr>>>0>>0?1:0);et=Be,mt=Tr,Be=Ue,Tr=Te,Ue=ge,Te=xe,xe=Ie+Le|0,ge=ye+yt+(xe>>>0>>0?1:0)|0,ye=se,Ie=ue,se=$,ue=X,$=V,X=ee,ee=Le+zr|0,V=yt+ft+(ee>>>0>>0?1:0)|0}j=C.low=j+ee,C.high=G+V+(j>>>0>>0?1:0),I=P.low=I+X,P.high=H+$+(I>>>0>>0?1:0),k=A.low=k+ue,A.high=b+se+(k>>>0>>0?1:0),w=B.low=w+Ie,B.high=S+ye+(w>>>0>>0?1:0),O=F.low=O+xe,F.high=R+ge+(O>>>0>>0?1:0),T=W.low=T+Te,W.high=D+Ue+(T>>>0>>0?1:0),N=K.low=N+Tr,K.high=x+Be+(N>>>0>>0?1:0),M=z.low=M+mt,z.high=U+et+(M>>>0>>0?1:0)},_doFinalize:function(){var h=this._data,m=h.words,y=this._nDataBytes*8,C=h.sigBytes*8;m[C>>>5]|=128<<24-C%32,m[(C+128>>>10<<5)+30]=Math.floor(y/4294967296),m[(C+128>>>10<<5)+31]=y,h.sigBytes=m.length*4,this._process();var P=this._hash.toX32();return P},clone:function(){var h=n.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});e.SHA512=n._createHelper(p),e.HmacSHA512=n._createHmacHelper(p)}(),r.SHA512})});var E3t=E((G2e,T3t)=>{f();d();(function(r,e,t){typeof G2e=="object"?T3t.exports=G2e=e(Vn(),Kse(),QMe()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(G2e,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,o=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),r.SHA384})});var C3t=E((V2e,I3t)=>{f();d();(function(r,e,t){typeof V2e=="object"?I3t.exports=V2e=e(Vn(),Kse()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(V2e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,o=s.Word,c=t.algo,u=[],l=[],p=[];(function(){for(var y=1,C=0,P=0;P<24;P++){u[y+5*C]=(P+1)*(P+2)/2%64;var A=C%5,B=(2*y+3*C)%5;y=A,C=B}for(var y=0;y<5;y++)for(var C=0;C<5;C++)l[y+5*C]=C+(2*y+3*C)%5*5;for(var F=1,W=0;W<24;W++){for(var K=0,z=0,G=0;G<7;G++){if(F&1){var j=(1<>>24)&16711935|(F<<24|F>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360;var K=P[B];K.high^=W,K.low^=F}for(var z=0;z<24;z++){for(var G=0;G<5;G++){for(var j=0,H=0,I=0;I<5;I++){var K=P[G+5*I];j^=K.high,H^=K.low}var b=h[G];b.high=j,b.low=H}for(var G=0;G<5;G++)for(var k=h[(G+4)%5],S=h[(G+1)%5],w=S.high,R=S.low,j=k.high^(w<<1|R>>>31),H=k.low^(R<<1|w>>>31),I=0;I<5;I++){var K=P[G+5*I];K.high^=j,K.low^=H}for(var O=1;O<25;O++){var K=P[O],D=K.high,T=K.low,x=u[O];if(x<32)var j=D<>>32-x,H=T<>>32-x;else var j=T<>>64-x,H=D<>>64-x;var N=h[l[O]];N.high=j,N.low=H}var U=h[0],M=P[0];U.high=M.high,U.low=M.low;for(var G=0;G<5;G++)for(var I=0;I<5;I++){var O=G+5*I,K=P[O],V=h[O],ee=h[(G+1)%5+5*I],$=h[(G+2)%5+5*I];K.high=V.high^~ee.high&$.high,K.low=V.low^~ee.low&$.low}var K=P[0],X=p[z];K.high^=X.high,K.low^=X.low}},_doFinalize:function(){var y=this._data,C=y.words,P=this._nDataBytes*8,A=y.sigBytes*8,B=this.blockSize*32;C[A>>>5]|=1<<24-A%32,C[(e.ceil((A+1)/B)*B>>>5)-1]|=128,y.sigBytes=C.length*4,this._process();for(var F=this._state,W=this.cfg.outputLength/8,K=W/8,z=[],G=0;G>>24)&16711935|(H<<24|H>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,z.push(I),z.push(H)}return new a.init(z,W)},clone:function(){for(var y=i.clone.call(this),C=y._state=this._state.slice(0),P=0;P<25;P++)C[P]=C[P].clone();return y}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),r.SHA3})});var k3t=E(($2e,A3t)=>{f();d();(function(r,e){typeof $2e=="object"?A3t.exports=$2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})($2e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=a.create([0,1518500249,1859775393,2400959708,2840853838]),h=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(W,K){for(var z=0;z<16;z++){var G=K+z,j=W[G];W[G]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}var H=this._hash.words,I=p.words,b=h.words,k=o.words,S=c.words,w=u.words,R=l.words,O,D,T,x,N,U,M,V,ee,$;U=O=H[0],M=D=H[1],V=T=H[2],ee=x=H[3],$=N=H[4];for(var X,z=0;z<80;z+=1)X=O+W[K+k[z]]|0,z<16?X+=y(D,T,x)+I[0]:z<32?X+=C(D,T,x)+I[1]:z<48?X+=P(D,T,x)+I[2]:z<64?X+=A(D,T,x)+I[3]:X+=B(D,T,x)+I[4],X=X|0,X=F(X,w[z]),X=X+N|0,O=N,N=x,x=F(T,10),T=D,D=X,X=U+W[K+S[z]]|0,z<16?X+=B(M,V,ee)+b[0]:z<32?X+=A(M,V,ee)+b[1]:z<48?X+=P(M,V,ee)+b[2]:z<64?X+=C(M,V,ee)+b[3]:X+=y(M,V,ee)+b[4],X=X|0,X=F(X,R[z]),X=X+$|0,U=$,$=ee,ee=F(V,10),V=M,M=X;X=H[1]+T+ee|0,H[1]=H[2]+x+$|0,H[2]=H[3]+N+U|0,H[3]=H[4]+O+M|0,H[4]=H[0]+D+V|0,H[0]=X},_doFinalize:function(){var W=this._data,K=W.words,z=this._nDataBytes*8,G=W.sigBytes*8;K[G>>>5]|=128<<24-G%32,K[(G+64>>>9<<4)+14]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,W.sigBytes=(K.length+1)*4,this._process();for(var j=this._hash,H=j.words,I=0;I<5;I++){var b=H[I];H[I]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return j},clone:function(){var W=i.clone.call(this);return W._hash=this._hash.clone(),W}});function y(W,K,z){return W^K^z}function C(W,K,z){return W&K|~W&z}function P(W,K,z){return(W|~K)^z}function A(W,K,z){return W&z|K&~z}function B(W,K,z){return W^(K|~z)}function F(W,K){return W<>>32-K}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),r.RIPEMD160})});var Q2e=E((Y2e,S3t)=>{f();d();(function(r,e){typeof Y2e=="object"?S3t.exports=Y2e=e(Vn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(Y2e,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,o=s.HMAC=n.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var l=c.blockSize,p=l*4;u.sigBytes>p&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),m=this._iKey=u.clone(),y=h.words,C=m.words,P=0;P{f();d();(function(r,e,t){typeof J2e=="object"?P3t.exports=J2e=e(Vn(),j2e(),Q2e()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(J2e,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,o=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var p=this.cfg,h=o.create(p.hasher,u),m=a.create(),y=a.create([1]),C=m.words,P=y.words,A=p.keySize,B=p.iterations;C.length{f();d();(function(r,e,t){typeof Z2e=="object"?M3t.exports=Z2e=e(Vn(),j2e(),Q2e()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(Z2e,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var l=this.cfg,p=l.hasher.create(),h=a.create(),m=h.words,y=l.keySize,C=l.iterations;m.length{f();d();(function(r,e,t){typeof X2e=="object"?B3t.exports=X2e=e(Vn(),Bg()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(X2e,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=o.Utf8,u=o.Base64,l=t.algo,p=l.EvpKDF,h=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(b,k){return this.create(this._ENC_XFORM_MODE,b,k)},createDecryptor:function(b,k){return this.create(this._DEC_XFORM_MODE,b,k)},init:function(b,k,S){this.cfg=this.cfg.extend(S),this._xformMode=b,this._key=k,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(b){return this._append(b),this._process()},finalize:function(b){b&&this._append(b);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function b(k){return typeof k=="string"?I:G}return function(k){return{encrypt:function(S,w,R){return b(w).encrypt(k,S,w,R)},decrypt:function(S,w,R){return b(w).decrypt(k,S,w,R)}}}}()}),m=n.StreamCipher=h.extend({_doFinalize:function(){var b=this._process(!0);return b},blockSize:1}),y=t.mode={},C=n.BlockCipherMode=a.extend({createEncryptor:function(b,k){return this.Encryptor.create(b,k)},createDecryptor:function(b,k){return this.Decryptor.create(b,k)},init:function(b,k){this._cipher=b,this._iv=k}}),P=y.CBC=function(){var b=C.extend();b.Encryptor=b.extend({processBlock:function(S,w){var R=this._cipher,O=R.blockSize;k.call(this,S,w,O),R.encryptBlock(S,w),this._prevBlock=S.slice(w,w+O)}}),b.Decryptor=b.extend({processBlock:function(S,w){var R=this._cipher,O=R.blockSize,D=S.slice(w,w+O);R.decryptBlock(S,w),k.call(this,S,w,O),this._prevBlock=D}});function k(S,w,R){var O=this._iv;if(O){var D=O;this._iv=e}else var D=this._prevBlock;for(var T=0;T>>2]&255;b.sigBytes-=k}},F=n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:P,padding:B}),reset:function(){h.reset.call(this);var b=this.cfg,k=b.iv,S=b.mode;if(this._xformMode==this._ENC_XFORM_MODE)var w=S.createEncryptor;else{var w=S.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==w?this._mode.init(this,k&&k.words):(this._mode=w.call(S,this,k&&k.words),this._mode.__creator=w)},_doProcessBlock:function(b,k){this._mode.processBlock(b,k)},_doFinalize:function(){var b=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){b.pad(this._data,this.blockSize);var k=this._process(!0)}else{var k=this._process(!0);b.unpad(k)}return k},blockSize:128/32}),W=n.CipherParams=a.extend({init:function(b){this.mixIn(b)},toString:function(b){return(b||this.formatter).stringify(this)}}),K=t.format={},z=K.OpenSSL={stringify:function(b){var k=b.ciphertext,S=b.salt;if(S)var w=i.create([1398893684,1701076831]).concat(S).concat(k);else var w=k;return w.toString(u)},parse:function(b){var k=u.parse(b),S=k.words;if(S[0]==1398893684&&S[1]==1701076831){var w=i.create(S.slice(2,4));S.splice(0,4),k.sigBytes-=16}return W.create({ciphertext:k,salt:w})}},G=n.SerializableCipher=a.extend({cfg:a.extend({format:z}),encrypt:function(b,k,S,w){w=this.cfg.extend(w);var R=b.createEncryptor(S,w),O=R.finalize(k),D=R.cfg;return W.create({ciphertext:O,key:S,iv:D.iv,algorithm:b,mode:D.mode,padding:D.padding,blockSize:b.blockSize,formatter:w.format})},decrypt:function(b,k,S,w){w=this.cfg.extend(w),k=this._parse(k,w.format);var R=b.createDecryptor(S,w).finalize(k.ciphertext);return R},_parse:function(b,k){return typeof b=="string"?k.parse(b,this):b}}),j=t.kdf={},H=j.OpenSSL={execute:function(b,k,S,w){w||(w=i.random(64/8));var R=p.create({keySize:k+S}).compute(b,w),O=i.create(R.words.slice(k),S*4);return R.sigBytes=k*4,W.create({key:R,iv:O,salt:w})}},I=n.PasswordBasedCipher=G.extend({cfg:G.cfg.extend({kdf:H}),encrypt:function(b,k,S,w){w=this.cfg.extend(w);var R=w.kdf.execute(S,b.keySize,b.ivSize);w.iv=R.iv;var O=G.encrypt.call(this,b,k,R.key,w);return O.mixIn(R),O},decrypt:function(b,k,S,w){w=this.cfg.extend(w),k=this._parse(k,w.format);var R=w.kdf.execute(S,b.keySize,b.ivSize,k.salt);w.iv=R.iv;var O=G.decrypt.call(this,b,k,R.key,w);return O}})}()})});var N3t=E((ege,D3t)=>{f();d();(function(r,e,t){typeof ege=="object"?D3t.exports=ege=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(ege,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=o}});function t(n,a,i,s){var o=this._iv;if(o){var c=o.slice(0);this._iv=void 0}else var c=this._prevBlock;s.encryptBlock(c,0);for(var u=0;u{f();d();(function(r,e,t){typeof tge=="object"?O3t.exports=tge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(tge,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._counter;o&&(c=this._counter=o.slice(0),this._iv=void 0);var u=c.slice(0);i.encryptBlock(u,0),c[s-1]=c[s-1]+1|0;for(var l=0;l{f();d();(function(r,e,t){typeof rge=="object"?L3t.exports=rge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(rge,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,o=i>>8&255,c=i&255;s===255?(s=0,o===255?(o=0,c===255?c=0:++c):++o):++s,i=0,i+=s<<16,i+=o<<8,i+=c}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var o=this._cipher,c=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),n(l);var p=l.slice(0);o.encryptBlock(p,0);for(var h=0;h{f();d();(function(r,e,t){typeof nge=="object"?W3t.exports=nge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(nge,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._keystream;o&&(c=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(c,0);for(var u=0;u{f();d();(function(r,e,t){typeof age=="object"?H3t.exports=age=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(age,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var K3t=E((ige,z3t)=>{f();d();(function(r,e,t){typeof ige=="object"?z3t.exports=ige=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(ige,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var V3t=E((sge,G3t)=>{f();d();(function(r,e,t){typeof sge=="object"?G3t.exports=sge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(sge,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var Y3t=E((oge,$3t)=>{f();d();(function(r,e,t){typeof oge=="object"?$3t.exports=oge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(oge,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var J3t=E((cge,Q3t)=>{f();d();(function(r,e,t){typeof cge=="object"?Q3t.exports=cge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(cge,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding})});var X3t=E((uge,Z3t)=>{f();d();(function(r,e,t){typeof uge=="object"?Z3t.exports=uge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(uge,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var t8t=E((lge,e8t)=>{f();d();(function(r,e,t){typeof lge=="object"?e8t.exports=lge=e(Vn(),y0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(lge,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,o=t.format,c=o.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var l=s.parse(u);return a.create({ciphertext:l})}}}(),r.format.Hex})});var n8t=E((fge,r8t)=>{f();d();(function(r,e,t){typeof fge=="object"?r8t.exports=fge=e(Vn(),Gw(),Vw(),Bg(),y0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(fge,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],o=[],c=[],u=[],l=[],p=[],h=[],m=[],y=[];(function(){for(var A=[],B=0;B<256;B++)B<128?A[B]=B<<1:A[B]=B<<1^283;for(var F=0,W=0,B=0;B<256;B++){var K=W^W<<1^W<<2^W<<3^W<<4;K=K>>>8^K&255^99,i[F]=K,s[K]=F;var z=A[F],G=A[z],j=A[G],H=A[K]*257^K*16843008;o[F]=H<<24|H>>>8,c[F]=H<<16|H>>>16,u[F]=H<<8|H>>>24,l[F]=H;var H=j*16843009^G*65537^z*257^F*16843008;p[K]=H<<24|H>>>8,h[K]=H<<16|H>>>16,m[K]=H<<8|H>>>24,y[K]=H,F?(F=z^A[A[A[j^z]]],W^=A[A[W]]):F=W=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],P=a.AES=n.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var A=this._keyPriorReset=this._key,B=A.words,F=A.sigBytes/4,W=this._nRounds=F+6,K=(W+1)*4,z=this._keySchedule=[],G=0;G6&&G%F==4&&(j=i[j>>>24]<<24|i[j>>>16&255]<<16|i[j>>>8&255]<<8|i[j&255]):(j=j<<8|j>>>24,j=i[j>>>24]<<24|i[j>>>16&255]<<16|i[j>>>8&255]<<8|i[j&255],j^=C[G/F|0]<<24),z[G]=z[G-F]^j}for(var H=this._invKeySchedule=[],I=0;I>>24]]^h[i[j>>>16&255]]^m[i[j>>>8&255]]^y[i[j&255]]}}},encryptBlock:function(A,B){this._doCryptBlock(A,B,this._keySchedule,o,c,u,l,i)},decryptBlock:function(A,B){var F=A[B+1];A[B+1]=A[B+3],A[B+3]=F,this._doCryptBlock(A,B,this._invKeySchedule,p,h,m,y,s);var F=A[B+1];A[B+1]=A[B+3],A[B+3]=F},_doCryptBlock:function(A,B,F,W,K,z,G,j){for(var H=this._nRounds,I=A[B]^F[0],b=A[B+1]^F[1],k=A[B+2]^F[2],S=A[B+3]^F[3],w=4,R=1;R>>24]^K[b>>>16&255]^z[k>>>8&255]^G[S&255]^F[w++],D=W[b>>>24]^K[k>>>16&255]^z[S>>>8&255]^G[I&255]^F[w++],T=W[k>>>24]^K[S>>>16&255]^z[I>>>8&255]^G[b&255]^F[w++],x=W[S>>>24]^K[I>>>16&255]^z[b>>>8&255]^G[k&255]^F[w++];I=O,b=D,k=T,S=x}var O=(j[I>>>24]<<24|j[b>>>16&255]<<16|j[k>>>8&255]<<8|j[S&255])^F[w++],D=(j[b>>>24]<<24|j[k>>>16&255]<<16|j[S>>>8&255]<<8|j[I&255])^F[w++],T=(j[k>>>24]<<24|j[S>>>16&255]<<16|j[I>>>8&255]<<8|j[b&255])^F[w++],x=(j[S>>>24]<<24|j[I>>>16&255]<<16|j[b>>>8&255]<<8|j[k&255])^F[w++];A[B]=O,A[B+1]=D,A[B+2]=T,A[B+3]=x},keySize:256/32});e.AES=n._createHelper(P)}(),r.AES})});var i8t=E((dge,a8t)=>{f();d();(function(r,e,t){typeof dge=="object"?a8t.exports=dge=e(Vn(),Gw(),Vw(),Bg(),y0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(dge,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=i.DES=a.extend({_doReset:function(){for(var C=this._key,P=C.words,A=[],B=0;B<56;B++){var F=s[B]-1;A[B]=P[F>>>5]>>>31-F%32&1}for(var W=this._subKeys=[],K=0;K<16;K++){for(var z=W[K]=[],G=c[K],B=0;B<24;B++)z[B/6|0]|=A[(o[B]-1+G)%28]<<31-B%6,z[4+(B/6|0)]|=A[28+(o[B+24]-1+G)%28]<<31-B%6;z[0]=z[0]<<1|z[0]>>>31;for(var B=1;B<7;B++)z[B]=z[B]>>>(B-1)*4+3;z[7]=z[7]<<5|z[7]>>>27}for(var j=this._invSubKeys=[],B=0;B<16;B++)j[B]=W[15-B]},encryptBlock:function(C,P){this._doCryptBlock(C,P,this._subKeys)},decryptBlock:function(C,P){this._doCryptBlock(C,P,this._invSubKeys)},_doCryptBlock:function(C,P,A){this._lBlock=C[P],this._rBlock=C[P+1],h.call(this,4,252645135),h.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),h.call(this,1,1431655765);for(var B=0;B<16;B++){for(var F=A[B],W=this._lBlock,K=this._rBlock,z=0,G=0;G<8;G++)z|=u[G][((K^F[G])&l[G])>>>0];this._lBlock=K,this._rBlock=W^z}var j=this._lBlock;this._lBlock=this._rBlock,this._rBlock=j,h.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),C[P]=this._lBlock,C[P+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(C,P){var A=(this._lBlock>>>C^this._rBlock)&P;this._rBlock^=A,this._lBlock^=A<>>C^this._lBlock)&P;this._lBlock^=A,this._rBlock^=A<{f();d();(function(r,e,t){typeof pge=="object"?s8t.exports=pge=e(Vn(),Gw(),Vw(),Bg(),y0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(pge,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var c=this._key,u=c.words,l=c.sigBytes,p=this._S=[],h=0;h<256;h++)p[h]=h;for(var h=0,m=0;h<256;h++){var y=h%l,C=u[y>>>2]>>>24-y%4*8&255;m=(m+p[h]+C)%256;var P=p[h];p[h]=p[m],p[m]=P}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,u=this._i,l=this._j,p=0,h=0;h<4;h++){u=(u+1)%256,l=(l+c[u])%256;var m=c[u];c[u]=c[l],c[l]=m,p|=c[(c[u]+c[l])%256]<<24-h*8}return this._i=u,this._j=l,p}e.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),r.RC4})});var u8t=E((hge,c8t)=>{f();d();(function(r,e,t){typeof hge=="object"?c8t.exports=hge=e(Vn(),Gw(),Vw(),Bg(),y0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(hge,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.Rabbit=n.extend({_doReset:function(){for(var l=this._key.words,p=this.cfg.iv,h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360;var m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],y=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var h=0;h<4;h++)u.call(this);for(var h=0;h<8;h++)y[h]^=m[h+4&7];if(p){var C=p.words,P=C[0],A=C[1],B=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,F=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,W=B>>>16|F&4294901760,K=F<<16|B&65535;y[0]^=B,y[1]^=W,y[2]^=F,y[3]^=K,y[4]^=B,y[5]^=W,y[6]^=F,y[7]^=K;for(var h=0;h<4;h++)u.call(this)}},_doProcessBlock:function(l,p){var h=this._X;u.call(this),i[0]=h[0]^h[5]>>>16^h[3]<<16,i[1]=h[2]^h[7]>>>16^h[5]<<16,i[2]=h[4]^h[1]>>>16^h[7]<<16,i[3]=h[6]^h[3]>>>16^h[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[p+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,p=this._C,h=0;h<8;h++)s[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var h=0;h<8;h++){var m=l[h]+p[h],y=m&65535,C=m>>>16,P=((y*y>>>17)+y*C>>>15)+C*C,A=((m&4294901760)*m|0)+((m&65535)*m|0);o[h]=P^A}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(c)}(),r.Rabbit})});var f8t=E((mge,l8t)=>{f();d();(function(r,e,t){typeof mge=="object"?l8t.exports=mge=e(Vn(),Gw(),Vw(),Bg(),y0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(mge,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.RabbitLegacy=n.extend({_doReset:function(){var l=this._key.words,p=this.cfg.iv,h=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],m=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var y=0;y<4;y++)u.call(this);for(var y=0;y<8;y++)m[y]^=h[y+4&7];if(p){var C=p.words,P=C[0],A=C[1],B=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,F=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,W=B>>>16|F&4294901760,K=F<<16|B&65535;m[0]^=B,m[1]^=W,m[2]^=F,m[3]^=K,m[4]^=B,m[5]^=W,m[6]^=F,m[7]^=K;for(var y=0;y<4;y++)u.call(this)}},_doProcessBlock:function(l,p){var h=this._X;u.call(this),i[0]=h[0]^h[5]>>>16^h[3]<<16,i[1]=h[2]^h[7]>>>16^h[5]<<16,i[2]=h[4]^h[1]>>>16^h[7]<<16,i[3]=h[6]^h[3]>>>16^h[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[p+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,p=this._C,h=0;h<8;h++)s[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var h=0;h<8;h++){var m=l[h]+p[h],y=m&65535,C=m>>>16,P=((y*y>>>17)+y*C>>>15)+C*C,A=((m&4294901760)*m|0)+((m&65535)*m|0);o[h]=P^A}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(c)}(),r.RabbitLegacy})});var p8t=E((yge,d8t)=>{f();d();(function(r,e,t){typeof yge=="object"?d8t.exports=yge=e(Vn(),Kse(),h3t(),y3t(),Gw(),Vw(),j2e(),zse(),x3t(),QMe(),E3t(),C3t(),k3t(),Q2e(),R3t(),Bg(),y0(),N3t(),F3t(),q3t(),U3t(),j3t(),K3t(),V3t(),Y3t(),J3t(),X3t(),t8t(),n8t(),i8t(),o8t(),u8t(),f8t()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(yge,function(r){return r})});var ZMe=E($w=>{"use strict";f();d();var Lcn=$w&&$w.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($w,"__esModule",{value:!0});$w.Base=void 0;var Ip=Uo(),JMe=Lcn(p8t()),P1=class{print(){P1.print(this)}_bufferIndexOf(e,t){for(let n=0;n{let n=e(t);return Ip.Buffer.isBuffer(n)?n:this._isHexString(n)?Ip.Buffer.from(n.replace("0x",""),"hex"):typeof n=="string"?Ip.Buffer.from(n):ArrayBuffer.isView(n)?Ip.Buffer.from(n.buffer,n.byteOffset,n.byteLength):Ip.Buffer.from(e(JMe.default.enc.Hex.parse(t.toString("hex"))).toString(JMe.default.enc.Hex),"hex")}}_isHexString(e){return P1.isHexString(e)}_log2(e){return e===1?0:1+this._log2(e/2|0)}_zip(e,t){return e.map((n,a)=>[n,t[a]])}};$w.Base=P1;$w.default=P1});var m8t=E(Yw=>{"use strict";f();d();var bge=Yw&&Yw.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yw,"__esModule",{value:!0});Yw.MerkleTree=void 0;var is=Uo(),wb=bge(o3t()),h8t=bge(zse()),qcn=bge(f3t()),Wcn=bge(ZMe()),rf=class extends Wcn.default{constructor(e,t=h8t.default,n={}){if(super(),this.duplicateOdd=!1,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.isBitcoinTree=!!n.isBitcoinTree,this.hashLeaves=!!n.hashLeaves,this.sortLeaves=!!n.sortLeaves,this.sortPairs=!!n.sortPairs,n.fillDefaultHash)if(typeof n.fillDefaultHash=="function")this.fillDefaultHash=n.fillDefaultHash;else if(is.Buffer.isBuffer(n.fillDefaultHash)||typeof n.fillDefaultHash=="string")this.fillDefaultHash=(a,i)=>n.fillDefaultHash;else throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');this.sort=!!n.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!n.duplicateOdd,this.hashFn=this.bufferifyFn(t),this.processLeaves(e)}processLeaves(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(is.Buffer.compare)),this.fillDefaultHash)for(let t=0;t=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.layers=[this.leaves],this._createHashes(this.leaves)}_createHashes(e){for(;e.length>1;){let t=this.layers.length;this.layers.push([]);for(let n=0;nthis._bufferIndexOf(e,t)!==-1)):this.leaves}getLeaf(e){return e<0||e>this.leaves.length-1?is.Buffer.from([]):this.leaves[e]}getLeafIndex(e){e=this.bufferify(e);let t=this.getLeaves();for(let n=0;nthis.bufferToHex(e))}static marshalLeaves(e){return JSON.stringify(e.map(t=>rf.bufferToHex(t)),null,2)}static unmarshalLeaves(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(rf.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((e,t)=>(Array.isArray(t)?e.push(t.map(n=>this.bufferToHex(n))):e.push(t),e),[])}getLayersFlat(){let e=this.layers.reduce((t,n)=>(Array.isArray(n)?t.unshift(...n):t.unshift(n),t),[]);return e.unshift(is.Buffer.from([0])),e}getHexLayersFlat(){return this.getLayersFlat().map(e=>this.bufferToHex(e))}getLayerCount(){return this.getLayers().length}getRoot(){return this.layers.length===0?is.Buffer.from([]):this.layers[this.layers.length-1][0]||is.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(e,t){if(typeof e>"u")throw new Error("leaf is required");e=this.bufferify(e);let n=[];if(!Number.isInteger(t)){t=-1;for(let a=0;athis.bufferToHex(n.data))}getPositionalHexProof(e,t){return this.getProof(e,t).map(n=>[n.position==="left"?0:1,this.bufferToHex(n.data)])}static marshalProof(e){let t=e.map(n=>typeof n=="string"?n:is.Buffer.isBuffer(n)?rf.bufferToHex(n):{position:n.position,data:rf.bufferToHex(n.data)});return JSON.stringify(t,null,2)}static unmarshalProof(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n=>{if(typeof n=="string")return rf.bufferify(n);if(n instanceof Object)return{position:n.position,data:rf.bufferify(n.data)};throw new Error("Expected item to be of type string or object")})}getProofIndices(e,t){let n=Math.pow(2,t),a=new Set;for(let u of e){let l=n+u;for(;l>1;)a.add(l^1),l=l/2|0}let i=e.map(u=>n+u),s=Array.from(a).sort((u,l)=>u-l).reverse();a=i.concat(s);let o=new Set,c=[];for(let u of a)if(!o.has(u))for(c.push(u);u>1&&(o.add(u),!!o.has(u^1));)u=u/2|0;return c.filter(u=>!e.includes(u-n))}getProofIndicesForUnevenTree(e,t){let n=Math.ceil(Math.log2(t)),a=[];for(let o=0;op%2===0?p+1:p-1).filter(p=>!s.includes(p)),l=a.find(({index:p})=>p===o);l&&s.includes(l.leavesCount-1)&&(u=u.slice(0,-1)),i.push(u),s=[...new Set(s.map(p=>p%2===0?p/2:p%2===0?(p+1)/2:(p-1)/2))]}return i}getMultiProof(e,t){if(t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){let a=t;this.sortPairs&&(a=a.sort(is.Buffer.compare));let i=a.map(u=>this._bufferIndexOf(this.leaves,u)).sort((u,l)=>u===l?0:u>l?1:-1);if(!i.every(u=>u!==-1))throw new Error("Element does not exist in Merkle tree");let s=[],o=[],c=[];for(let u=0;um.indexOf(p)===h),c=[]}return o.filter(u=>!s.includes(u))}return this.getProofIndices(t,this._log2(e.length/2|0)).map(a=>e[a])}getMultiProofForUnevenTree(e,t){t||(t=e,e=this.getLayers());let n=[],a=t;for(let i of e){let s=[];for(let c of a){if(c%2===0){let l=c+1;if(!a.includes(l)&&i[l]){s.push(i[l]);continue}}let u=c-1;if(!a.includes(u)&&i[u]){s.push(i[u]);continue}}n=n.concat(s);let o=new Set;for(let c of a){if(c%2===0){o.add(c/2);continue}if(c%2===0){o.add((c+1)/2);continue}o.add((c-1)/2)}a=Array.from(o)}return n}getHexMultiProof(e,t){return this.getMultiProof(e,t).map(n=>this.bufferToHex(n))}getProofFlags(e,t){if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");let n;if(e.every(Number.isInteger)?n=e.sort((o,c)=>o===c?0:o>c?1:-1):n=e.map(o=>this._bufferIndexOf(this.leaves,o)).sort((o,c)=>o===c?0:o>c?1:-1),!n.every(o=>o!==-1))throw new Error("Element does not exist in Merkle tree");let a=t.map(o=>this.bufferify(o)),i=[],s=[];for(let o=0;o{if(!i.includes(c[l])){let h=this._getPairNode(c,l),m=a.includes(c[l])||a.includes(h);h&&s.push(!m),i.push(c[l]),i.push(h)}return u.push(l/2|0),u},[])}return s}verify(e,t,n){let a=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(let i=0;ithis.bufferify(p)),i=i.map(p=>this.bufferify(p));let c={};for(let[p,h]of this._zip(t,n))c[Math.pow(2,o)+p]=h;for(let[p,h]of this._zip(this.getProofIndices(t,o),i))c[p]=h;let u=Object.keys(c).map(p=>+p).sort((p,h)=>p-h);u=u.slice(0,u.length-1);let l=0;for(;l=2&&{}.hasOwnProperty.call(c,p^1)){let h=[c[p-p%2],c[p-p%2+1]];this.sortPairs&&(h=h.sort(is.Buffer.compare));let m=h[1]?this.hashFn(is.Buffer.concat(h)):h[0];c[p/2|0]=m,u.push(p/2|0)}l+=1}return!t.length||{}.hasOwnProperty.call(c,1)&&c[1].equals(e)}verifyMultiProofWithFlags(e,t,n,a){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);let i=t.length,s=a.length,o=[],c=0,u=0,l=0;for(let p=0;pthis.bufferify(o)),i=i.map(o=>this.bufferify(o));let s=this.calculateRootForUnevenTree(t,n,a,i);return e.equals(s)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let e=this.getLayers().map(n=>n.map(a=>this.bufferToHex(a,!1))),t=[];for(let n=0;np-h),s=i.map(([p])=>p),o=this.getProofIndicesForUnevenTree(s,n),c=0,u=[];for(let p=0;pP-A).map(([,P])=>P),m=l[p].map(([P])=>P),y=[...new Set(m.map(P=>P%2===0?P/2:P%2===0?(P+1)/2:(P-1)/2))],C=[];for(let P=0;P{"use strict";f();d();var y8t=Qw&&Qw.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Qw,"__esModule",{value:!0});Qw.MerkleMountainRange=void 0;var Gse=Uo(),Ucn=y8t(zse()),Hcn=y8t(ZMe()),gge=class extends Hcn.default{constructor(e=Ucn.default,t=[],n,a,i){super(),this.root=Gse.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},t=t.map(this.bufferify),this.hashFn=this.bufferifyFn(e),this.hashLeafFn=n,this.peakBaggingFn=a,this.hashBranchFn=i;for(let s of t)this.append(s)}append(e){e=this.bufferify(e);let t=this.hashFn(e),n=this.bufferToHex(t);(!this.data[n]||this.bufferToHex(this.hashFn(this.data[n]))!==n)&&(this.data[n]=e);let a=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=a,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let s=[];for(let o=0;o0&&!((e&1<=t));s--);if(a!==n.length)throw new Error("invalid bit calculation");return n}numOfPeaks(e){let t=e,n=0;for(;t>0;)t%2===1&&n++,t=t>>1;return n}peakBagging(e,t){let n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return e===0&&!t.length?Gse.Buffer.alloc(0):this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(Gse.Buffer.concat([this.bufferify(n),...t.map(this.bufferify)]))}getSize(e){return(e<<1)-this.numOfPeaks(e)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(e){return this.hashes[e]}mountainHeight(e){let t=1;for(;1<n;)t-=(1<this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");let t=this.root,n=this.width,a=this.getPeakIndexes(this.width),i=[],s=0;for(let p=0;p=e&&s===0&&(s=a[p]);let o=0,c=0,u=this.heightAt(s),l=[];for(;s!==e;)u--,[o,c]=this.getChildren(s),s=e<=o?o:c,l[u-1]=this.hashes[e<=o?c:o];return{root:t,width:n,peakBagging:i,siblings:l}}verify(e,t,n,a,i,s){if(a=this.bufferify(a),this.getSize(t)=n){u=i[P],c=l[P];break}if(!u)throw new Error("target not found");let p=s.length+1,h=new Array(p),m=0,y=0;for(;p>0&&(h[--p]=c,c!==n);)[m,y]=this.getChildren(c),c=n>m?y:m;let C;for(;pthis.size)throw new Error("out of range");if(!this.hashes[e]){let[t,n]=this.getChildren(e),a=this._getOrCreateNode(t),i=this._getOrCreateNode(n);this.hashes[e]=this.hashBranch(e,a,i)}return this.hashes[e]}};Qw.MerkleMountainRange=gge;Qw.default=gge});var di=E(Dg=>{"use strict";f();d();var jcn=Dg&&Dg.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dg,"__esModule",{value:!0});Dg.MerkleTree=void 0;var g8t=jcn(m8t());Dg.MerkleTree=g8t.default;var zcn=b8t();Object.defineProperty(Dg,"MerkleMountainRange",{enumerable:!0,get:function(){return zcn.MerkleMountainRange}});Dg.default=g8t.default});var pi=E((NOa,v8t)=>{"use strict";f();d();v8t.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var s=i[a];if(!r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}});var sa=E((LOa,Kcn)=>{Kcn.exports=[{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var hi=E((qOa,Gcn)=>{Gcn.exports=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var mi=E((WOa,Vcn)=>{Vcn.exports=[{inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var yi=E((UOa,$cn)=>{$cn.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"encryptedBaseURI",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var bi=E((HOa,Ycn)=>{Ycn.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"contract IContractPublisher",name:"_prevPublisher",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],indexed:!1,internalType:"struct IContractPublisher.CustomContractInstance",name:"publishedContract",type:"tuple"}],name:"ContractPublished",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!0,internalType:"string",name:"contractId",type:"string"}],name:"ContractUnpublished",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"isPaused",type:"bool"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"PublisherProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"}],name:"getAllPublishedContracts",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContract",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance",name:"published",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContractVersions",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"compilerMetadataUri",type:"string"}],name:"getPublishedUriFromCompilerUri",outputs:[{internalType:"string[]",name:"publishedMetadataUris",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"}],name:"getPublisherProfileUri",outputs:[{internalType:"string",name:"uri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isPaused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"prevPublisher",outputs:[{internalType:"contract IContractPublisher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"},{internalType:"string",name:"_publishMetadataUri",type:"string"},{internalType:"string",name:"_compilerMetadataUri",type:"string"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"address",name:"_implementation",type:"address"}],name:"publishContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_pause",type:"bool"}],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"setPublisherProfileUri",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"unpublishContract",outputs:[],stateMutability:"nonpayable",type:"function"}]});var gi=E((jOa,Qcn)=>{Qcn.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"},{indexed:!1,internalType:"string",name:"metadataUri",type:"string"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"}],name:"Deleted",type:"event"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"string",name:"metadataUri",type:"string"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"deploymentCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{components:[{internalType:"address",name:"deploymentAddress",type:"address"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"metadataURI",type:"string"}],internalType:"struct ITWMultichainRegistry.Deployment[]",name:"allDeployments",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"address",name:"_deployment",type:"address"}],name:"getMetadataUri",outputs:[{internalType:"string",name:"metadataUri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"}]});var vi=E((zOa,Jcn)=>{Jcn.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var oa=E(XMe=>{"use strict";f();d();Object.defineProperty(XMe,"__esModule",{value:!0});var Zcn={};XMe.GENERATED_ABI=Zcn});var wi=E(($Oa,Xcn)=>{Xcn.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"address",name:"_registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!0,internalType:"bytes32",name:"contractType",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"ImplementationAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"bool",name:"isApproved",type:"bool"}],name:"ImplementationApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"address",name:"proxy",type:"address"},{indexed:!0,internalType:"address",name:"deployer",type:"address"}],name:"ProxyDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FACTORY_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"}],name:"addImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"approval",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"currentVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployProxy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyByImplementation",outputs:[{internalType:"address",name:"deployedProxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyDeterministic",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"uint256",name:"_version",type:"uint256"}],name:"getImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"}],name:"getLatestImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"",type:"uint256"}],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"registry",outputs:[{internalType:"contract TWRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var xi=E((YOa,e0n)=>{e0n.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Deleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var tBe=E(w8t=>{"use strict";f();d();var t0n=Es(),r0n=ke(),eBe=class{constructor(e){t0n._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&r0n.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};w8t.DropErc1155History=eBe});var Vse=E(x8t=>{"use strict";f();d();var Jw=Es(),vge=Ao(),rBe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Jw._defineProperty(this,"contractWrapper",void 0),Jw._defineProperty(this,"storage",void 0),Jw._defineProperty(this,"erc1155",void 0),Jw._defineProperty(this,"_chainId",void 0),Jw._defineProperty(this,"transfer",vge.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),Jw._defineProperty(this,"setApprovalForAll",vge.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),Jw._defineProperty(this,"airdrop",vge.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new vge.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};x8t.StandardErc1155=rBe});var Yse=E(lX=>{"use strict";f();d();var n0n=Es(),a0n=On(),$se=Ao();function i0n(r){return r&&r.__esModule?r:{default:r}}var aBe=i0n(a0n),s0n="https://paper.xyz/api",o0n="2022-08-12",iBe=`${s0n}/${o0n}/platform/thirdweb`,_8t={[$se.ChainId.Mainnet]:"Ethereum",[$se.ChainId.Goerli]:"Goerli",[$se.ChainId.Polygon]:"Polygon",[$se.ChainId.Mumbai]:"Mumbai",[$se.ChainId.Avalanche]:"Avalanche"};function T8t(r){return aBe.default(r in _8t,`chainId not supported by paper: ${r}`),_8t[r]}async function E8t(r,e){let t=T8t(e),a=await(await fetch(`${iBe}/register-contract?contractAddress=${r}&chain=${t}`)).json();return aBe.default(a.result.id,"Contract is not registered with paper"),a.result.id}var c0n={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function I8t(r,e){let n=await(await fetch(`${iBe}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...c0n,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return aBe.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var nBe=class{constructor(e){n0n._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return E8t(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await I8t(await this.getCheckoutId(),e)}};lX.PAPER_API_URL=iBe;lX.PaperCheckout=nBe;lX.createCheckoutLinkIntent=I8t;lX.fetchRegisteredCheckoutId=E8t;lX.parseChainIdToPaperChain=T8t});var A8t=E(C8t=>{"use strict";f();d();var mc=Es(),Yo=Ao(),u0n=tBe(),l0n=Vse(),f0n=Yse(),d0n=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var fX=class extends l0n.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Yo.ContractWrapper(e,t,s,i);super(c,n,o),a=this,mc._defineProperty(this,"abi",void 0),mc._defineProperty(this,"sales",void 0),mc._defineProperty(this,"platformFees",void 0),mc._defineProperty(this,"encoder",void 0),mc._defineProperty(this,"estimator",void 0),mc._defineProperty(this,"events",void 0),mc._defineProperty(this,"metadata",void 0),mc._defineProperty(this,"app",void 0),mc._defineProperty(this,"roles",void 0),mc._defineProperty(this,"royalties",void 0),mc._defineProperty(this,"claimConditions",void 0),mc._defineProperty(this,"checkout",void 0),mc._defineProperty(this,"history",void 0),mc._defineProperty(this,"interceptor",void 0),mc._defineProperty(this,"owner",void 0),mc._defineProperty(this,"createBatch",Yo.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),mc._defineProperty(this,"claimTo",Yo.buildTransactionFunction(async function(u,l,p){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,p,{checkERC20Allowance:h})})),mc._defineProperty(this,"claim",Yo.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,h=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(h,u,l,p)})),mc._defineProperty(this,"burnTokens",Yo.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=Yo.AbiSchema.parse(s),this.metadata=new Yo.ContractMetadata(this.contractWrapper,Yo.DropErc1155ContractSchema,this.storage),this.app=new Yo.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Yo.ContractRoles(this.contractWrapper,fX.contractRoles),this.royalties=new Yo.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Yo.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Yo.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Yo.ContractEvents(this.contractWrapper),this.history=new u0n.DropErc1155History(this.events),this.encoder=new Yo.ContractEncoder(this.contractWrapper),this.estimator=new Yo.GasCostEstimator(this.contractWrapper),this.platformFees=new Yo.ContractPlatformFee(this.contractWrapper),this.interceptor=new Yo.ContractInterceptor(this.contractWrapper),this.checkout=new f0n.PaperCheckout(this.contractWrapper),this.owner=new Yo.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Yo.getRoleHash("transfer"),d0n.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return Yo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};mc._defineProperty(fX,"contractRoles",["admin","minter","transfer"]);C8t.EditionDrop=fX});var sBe=E((cFa,p0n)=>{p0n.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var oBe=E((uFa,h0n)=>{h0n.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"_tokenURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var S8t=E(k8t=>{"use strict";f();d();var Qo=Es(),Is=Ao(),m0n=Vse(),y0n=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var dX=class extends m0n.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Is.ContractWrapper(e,t,i,a);super(o,n,s),Qo._defineProperty(this,"abi",void 0),Qo._defineProperty(this,"metadata",void 0),Qo._defineProperty(this,"app",void 0),Qo._defineProperty(this,"roles",void 0),Qo._defineProperty(this,"sales",void 0),Qo._defineProperty(this,"platformFees",void 0),Qo._defineProperty(this,"encoder",void 0),Qo._defineProperty(this,"estimator",void 0),Qo._defineProperty(this,"events",void 0),Qo._defineProperty(this,"royalties",void 0),Qo._defineProperty(this,"signature",void 0),Qo._defineProperty(this,"interceptor",void 0),Qo._defineProperty(this,"owner",void 0),Qo._defineProperty(this,"mint",Is.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),Qo._defineProperty(this,"mintTo",Is.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),Qo._defineProperty(this,"mintAdditionalSupply",Is.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),Qo._defineProperty(this,"mintAdditionalSupplyTo",Is.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),Qo._defineProperty(this,"mintBatch",Is.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),Qo._defineProperty(this,"mintBatchTo",Is.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),Qo._defineProperty(this,"burn",Is.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=Is.AbiSchema.parse(i||[]),this.metadata=new Is.ContractMetadata(this.contractWrapper,Is.TokenErc1155ContractSchema,this.storage),this.app=new Is.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Is.ContractRoles(this.contractWrapper,dX.contractRoles),this.royalties=new Is.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Is.ContractPrimarySale(this.contractWrapper),this.encoder=new Is.ContractEncoder(this.contractWrapper),this.estimator=new Is.GasCostEstimator(this.contractWrapper),this.events=new Is.ContractEvents(this.contractWrapper),this.platformFees=new Is.ContractPlatformFee(this.contractWrapper),this.interceptor=new Is.ContractInterceptor(this.contractWrapper),this.signature=new Is.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.owner=new Is.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Is.getRoleHash("transfer"),y0n.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return Is.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Qo._defineProperty(dX,"contractRoles",["admin","minter","transfer"]);k8t.Edition=dX});var cBe=E((pFa,b0n)=>{b0n.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"flatFee",type:"uint256"}],name:"FlatPlatformFeeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"enum TokenERC1155.PlatformFeeType",name:"feeType",type:"uint8"}],name:"PlatformFeeTypeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlatPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeType",outputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"string",name:"_uri",type:"string"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipientForToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_flatFee",type:"uint256"}],name:"setFlatPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"_feeType",type:"uint8"}],name:"setPlatformFeeType",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var fBe=E(_ge=>{"use strict";f();d();var yc=Es(),xt=Ao(),g0n=sa(),v0n=na(),w0n=aa(),Mr=ke(),x0n=On();function xge(r){return r&&r.__esModule?r:{default:r}}var _0n=xge(g0n),T0n=xge(v0n),E0n=xge(w0n),wge=xge(x0n),Zw=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),uBe=class{constructor(e,t){yc._defineProperty(this,"contractWrapper",void 0),yc._defineProperty(this,"storage",void 0),yc._defineProperty(this,"createListing",xt.buildTransactionFunction(async n=>{xt.validateNewListingParam(n);let a=await xt.resolveAddress(n.assetContractAddress),i=await xt.resolveAddress(n.currencyContractAddress);await xt.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await xt.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),yc._defineProperty(this,"createListingsBatch",xt.buildTransactionFunction(async n=>{let a=await Promise.all(n.map(async i=>(await this.createListing.prepare(i)).encode()));return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("ListingAdded",i?.logs).map(o=>({id:o.args.listingId,receipt:i}))})})),yc._defineProperty(this,"makeOffer",xt.buildTransactionFunction(async(n,a,i,s,o)=>{if(xt.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await xt.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=Mr.BigNumber.from(a),l=Mr.BigNumber.from(c).mul(u),p=await this.contractWrapper.getCallOverrides()||{};await xt.setErc20Allowance(this.contractWrapper,l,i,p);let h=Mr.ethers.constants.MaxUint256;return o&&(h=Mr.BigNumber.from(Math.floor(o.getTime()/1e3))),xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,h],overrides:p})})),yc._defineProperty(this,"acceptOffer",xt.buildTransactionFunction(async(n,a)=>{await this.validateListing(Mr.BigNumber.from(n));let i=await xt.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),yc._defineProperty(this,"buyoutListing",xt.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(Mr.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Mr.BigNumber.from(a),p=Mr.BigNumber.from(s.buyoutPrice).mul(l),h=await this.contractWrapper.getCallOverrides()||{};return await xt.setErc20Allowance(this.contractWrapper,p,s.currencyContractAddress,h),xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,p],overrides:h})})),yc._defineProperty(this,"updateListing",xt.buildTransactionFunction(async n=>xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await xt.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),yc._defineProperty(this,"cancelListing",xt.buildTransactionFunction(async n=>xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===Mr.constants.AddressZero)throw new xt.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Zw.Direct)throw new xt.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(Mr.BigNumber.from(e)),wge.default(Mr.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await xt.resolveAddress(t));if(n.offeror!==Mr.constants.AddressZero)return await xt.mapOffer(this.contractWrapper.getProvider(),Mr.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:Mr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await xt.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await xt.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:Zw.Direct}}async isStillValidListing(e,t){if(!await xt.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Mr.Contract(e.assetContractAddress,_0n.default,a),s=await i.supportsInterface(xt.InterfaceId_IERC721),o=await i.supportsInterface(xt.InterfaceId_IERC1155);if(s){let c=new Mr.Contract(e.assetContractAddress,T0n.default,a),u;try{u=await c.ownerOf(e.tokenId)}catch{}let l=u?.toLowerCase()===e.sellerAddress.toLowerCase();return{valid:l,error:l?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Mr.Contract(e.assetContractAddress,E0n.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},lBe=class{constructor(e,t){yc._defineProperty(this,"contractWrapper",void 0),yc._defineProperty(this,"storage",void 0),yc._defineProperty(this,"encoder",void 0),yc._defineProperty(this,"createListing",xt.buildTransactionFunction(async n=>{xt.validateNewListingParam(n);let a=await xt.resolveAddress(n.assetContractAddress),i=await xt.resolveAddress(n.currencyContractAddress);await xt.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await xt.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await xt.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",p?.logs)[0].args.listingId,receipt:p})})})),yc._defineProperty(this,"createListingsBatch",xt.buildTransactionFunction(async n=>{let a=await Promise.all(n.map(async i=>(await this.createListing.prepare(i)).encode()));return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("ListingAdded",i?.logs).map(o=>({id:o.args.listingId,receipt:i}))})})),yc._defineProperty(this,"buyoutListing",xt.buildTransactionFunction(async n=>{let a=await this.validateListing(Mr.BigNumber.from(n)),i=await xt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Mr.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),yc._defineProperty(this,"makeBid",xt.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(Mr.BigNumber.from(n)),s=await xt.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Mr.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let h=xt.isWinningBid(c.pricePerToken,s,o);wge.default(h,"Bid price is too low based on the current winning bid and the bid buffer")}else{let h=s,m=Mr.BigNumber.from(i.reservePrice);wge.default(h.gte(m),"Bid price is too low based on reserve price")}let u=Mr.BigNumber.from(i.quantity),l=s.mul(u),p=await this.contractWrapper.getCallOverrides()||{};return await xt.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,p),xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,Mr.ethers.constants.MaxUint256],overrides:p})})),yc._defineProperty(this,"cancelListing",xt.buildTransactionFunction(async n=>{let a=await this.validateListing(Mr.BigNumber.from(n)),i=Mr.BigNumber.from(Math.floor(Date.now()/1e3)),s=Mr.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==Mr.constants.AddressZero)throw new xt.AuctionAlreadyStartedError(n.toString());return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[Mr.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),yc._defineProperty(this,"closeListing",xt.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(Mr.BigNumber.from(n));try{return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[Mr.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new xt.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),yc._defineProperty(this,"executeSale",xt.buildTransactionFunction(async n=>{let a=await this.validateListing(Mr.BigNumber.from(n));try{let i=await this.getWinningBid(n);wge.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new xt.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),yc._defineProperty(this,"updateListing",xt.buildTransactionFunction(async n=>xt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new xt.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new xt.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Zw.Auction)throw new xt.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(Mr.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==Mr.constants.AddressZero)return await xt.mapOffer(this.contractWrapper.getProvider(),Mr.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(Mr.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=Mr.BigNumber.from(Math.floor(Date.now()/1e3)),i=Mr.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==Mr.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(Mr.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(Mr.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return xt.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:Mr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await xt.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await xt.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await xt.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:Mr.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:Zw.Auction}}};_ge.ListingType=Zw;_ge.MarketplaceAuction=lBe;_ge.MarketplaceDirect=uBe});var M8t=E(R8t=>{"use strict";f();d();var Zs=Es(),$n=Ao(),Oh=fBe(),td=ke(),I0n=On();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function C0n(r){return r&&r.__esModule?r:{default:r}}var P8t=C0n(I0n),pX=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $n.ContractWrapper(e,t,i,a);Zs._defineProperty(this,"abi",void 0),Zs._defineProperty(this,"contractWrapper",void 0),Zs._defineProperty(this,"storage",void 0),Zs._defineProperty(this,"encoder",void 0),Zs._defineProperty(this,"events",void 0),Zs._defineProperty(this,"estimator",void 0),Zs._defineProperty(this,"platformFees",void 0),Zs._defineProperty(this,"metadata",void 0),Zs._defineProperty(this,"app",void 0),Zs._defineProperty(this,"roles",void 0),Zs._defineProperty(this,"interceptor",void 0),Zs._defineProperty(this,"direct",void 0),Zs._defineProperty(this,"auction",void 0),Zs._defineProperty(this,"_chainId",void 0),Zs._defineProperty(this,"getAll",this.getAllListings),Zs._defineProperty(this,"buyoutListing",$n.buildTransactionFunction(async(c,u,l)=>{let p=await this.contractWrapper.readContract.listings(c);if(p.listingId.toString()!==c.toString())throw new $n.ListingNotFoundError(this.getAddress(),c.toString());switch(p.listingType){case Oh.ListingType.Direct:return P8t.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Oh.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${p.listingType}`)}})),Zs._defineProperty(this,"makeOffer",$n.buildTransactionFunction(async(c,u,l)=>{let p=await this.contractWrapper.readContract.listings(c);if(p.listingId.toString()!==c.toString())throw new $n.ListingNotFoundError(this.getAddress(),c.toString());let h=await this.contractWrapper.getChainID();switch(p.listingType){case Oh.ListingType.Direct:return P8t.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,$n.isNativeToken(p.currency)?$n.NATIVE_TOKENS[h].wrapped.address:p.currency,u);case Oh.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${p.listingType}`)}})),Zs._defineProperty(this,"setBidBufferBps",$n.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return $n.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,td.BigNumber.from(c)]})})),Zs._defineProperty(this,"setTimeBufferInSeconds",$n.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return $n.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[td.BigNumber.from(c),u]})})),Zs._defineProperty(this,"allowListingFromSpecificAssetOnly",$n.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(td.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[$n.getRoleHash("asset"),td.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[$n.getRoleHash("asset"),c])),$n.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Zs._defineProperty(this,"allowListingFromAnyAsset",$n.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[$n.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[$n.getRoleHash("asset"),td.constants.AddressZero])),$n.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=$n.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new $n.ContractMetadata(this.contractWrapper,$n.MarketplaceContractSchema,this.storage),this.app=new $n.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new $n.ContractRoles(this.contractWrapper,pX.contractRoles),this.encoder=new $n.ContractEncoder(this.contractWrapper),this.estimator=new $n.GasCostEstimator(this.contractWrapper),this.direct=new Oh.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Oh.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new $n.ContractEvents(this.contractWrapper),this.platformFees=new $n.ContractPlatformFee(this.contractWrapper),this.interceptor=new $n.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===td.constants.AddressZero)throw new $n.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Oh.ListingType.Auction:return await this.auction.mapListing(t);case Oh.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=td.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Oh.ListingType.Auction&&td.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&td.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Oh.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole($n.getRoleHash("lister"),td.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await $n.mapOffer(this.contractWrapper.getProvider(),td.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof $n.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Oh.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=td.BigNumber.from(t?.start||0).toNumber(),i=td.BigNumber.from(t?.count||Zs.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return $n.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Zs._defineProperty(pX,"contractRoles",["admin","lister","asset"]);R8t.Marketplace=pX});var dBe=E((wFa,A0n)=>{A0n.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"timeBuffer",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bidBufferBps",type:"uint256"}],name:"AuctionBuffersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!0,internalType:"bool",name:"cancelled",type:"bool"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],indexed:!1,internalType:"struct IMarketplace.Listing",name:"listing",type:"tuple"}],name:"ListingAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"quantityWanted",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalOfferAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"currency",type:"address"}],name:"NewOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_BPS",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_offeror",type:"address"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"bidBufferBps",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantityToBuy",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_totalPrice",type:"uint256"}],name:"buy",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelDirectListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_closeFor",type:"address"}],name:"closeAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"secondsUntilEndTime",type:"uint256"},{internalType:"uint256",name:"quantityToList",type:"uint256"},{internalType:"address",name:"currencyToAccept",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],internalType:"struct IMarketplace.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listings",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityWanted",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"uint256",name:"_expirationTimestamp",type:"uint256"}],name:"offer",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"offers",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_timeBuffer",type:"uint256"},{internalType:"uint256",name:"_bidBufferBps",type:"uint256"}],name:"setAuctionBuffers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"timeBuffer",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityToList",type:"uint256"},{internalType:"uint256",name:"_reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"_buyoutPricePerToken",type:"uint256"},{internalType:"address",name:"_currencyToAccept",type:"address"},{internalType:"uint256",name:"_startTime",type:"uint256"},{internalType:"uint256",name:"_secondsUntilEndTime",type:"uint256"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"winningBid",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var D8t=E(B8t=>{"use strict";f();d();var rd=Es(),Cs=Ao();Fr();ke();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var hX=class{get directListings(){return Cs.assertEnabled(this.detectDirectListings(),Cs.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Cs.assertEnabled(this.detectEnglishAuctions(),Cs.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Cs.assertEnabled(this.detectOffers(),Cs.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Cs.ContractWrapper(e,t,i,a);rd._defineProperty(this,"abi",void 0),rd._defineProperty(this,"contractWrapper",void 0),rd._defineProperty(this,"storage",void 0),rd._defineProperty(this,"encoder",void 0),rd._defineProperty(this,"events",void 0),rd._defineProperty(this,"estimator",void 0),rd._defineProperty(this,"platformFees",void 0),rd._defineProperty(this,"metadata",void 0),rd._defineProperty(this,"app",void 0),rd._defineProperty(this,"roles",void 0),rd._defineProperty(this,"interceptor",void 0),rd._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=Cs.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Cs.ContractMetadata(this.contractWrapper,Cs.MarketplaceContractSchema,this.storage),this.app=new Cs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Cs.ContractRoles(this.contractWrapper,hX.contractRoles),this.encoder=new Cs.ContractEncoder(this.contractWrapper),this.estimator=new Cs.GasCostEstimator(this.contractWrapper),this.events=new Cs.ContractEvents(this.contractWrapper),this.platformFees=new Cs.ContractPlatformFee(this.contractWrapper),this.interceptor=new Cs.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Cs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectDirectListings(){if(Cs.detectContractFeature(this.contractWrapper,"DirectListings"))return new Cs.MarketplaceV3DirectListings(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(Cs.detectContractFeature(this.contractWrapper,"EnglishAuctions"))return new Cs.MarketplaceV3EnglishAuctions(this.contractWrapper,this.storage)}detectOffers(){if(Cs.detectContractFeature(this.contractWrapper,"Offers"))return new Cs.MarketplaceV3Offers(this.contractWrapper,this.storage)}};rd._defineProperty(hX,"contractRoles",["admin","lister","asset"]);B8t.MarketplaceV3=hX});var pBe=E((EFa,k0n)=>{k0n.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint16",name:"_platformFeeBps",type:"uint16"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var mX=E(N8t=>{"use strict";f();d();var Xw=Es(),Ng=Ao(),hBe=class{get chainId(){return this._chainId}constructor(e,t,n){Xw._defineProperty(this,"contractWrapper",void 0),Xw._defineProperty(this,"storage",void 0),Xw._defineProperty(this,"erc721",void 0),Xw._defineProperty(this,"_chainId",void 0),Xw._defineProperty(this,"transfer",Ng.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),Xw._defineProperty(this,"setApprovalForAll",Ng.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),Xw._defineProperty(this,"setApprovalForToken",Ng.buildTransactionFunction(async(a,i)=>Ng.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Ng.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new Ng.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await Ng.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await Ng.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};N8t.StandardErc721=hBe});var F8t=E(O8t=>{"use strict";f();d();var Cp=Es(),As=Ao(),S0n=mX(),P0n=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var yX=class extends S0n.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new As.ContractWrapper(e,t,i,a);super(o,n,s),Cp._defineProperty(this,"abi",void 0),Cp._defineProperty(this,"encoder",void 0),Cp._defineProperty(this,"estimator",void 0),Cp._defineProperty(this,"metadata",void 0),Cp._defineProperty(this,"app",void 0),Cp._defineProperty(this,"events",void 0),Cp._defineProperty(this,"roles",void 0),Cp._defineProperty(this,"royalties",void 0),Cp._defineProperty(this,"owner",void 0),Cp._defineProperty(this,"wrap",As.buildTransactionFunction(async(c,u,l)=>{let p=await As.uploadOrExtractURI(u,this.storage),h=await As.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return As.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,p,h],parse:y=>{let C=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(C.length===0)throw new Error("TokensWrapped event not found");let P=C[0].args.tokenIdOfWrappedToken;return{id:P,receipt:y,data:()=>this.get(P)}}})})),Cp._defineProperty(this,"unwrap",As.buildTransactionFunction(async(c,u)=>{let l=await As.resolveAddress(u||await this.contractWrapper.getSignerAddress());return As.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=As.AbiSchema.parse(i||[]),this.metadata=new As.ContractMetadata(this.contractWrapper,As.MultiwrapContractSchema,this.storage),this.app=new As.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new As.ContractRoles(this.contractWrapper,yX.contractRoles),this.encoder=new As.ContractEncoder(this.contractWrapper),this.estimator=new As.GasCostEstimator(this.contractWrapper),this.events=new As.ContractEvents(this.contractWrapper),this.royalties=new As.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new As.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await As.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:P0n.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await As.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await As.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: await sdk.getToken("${i.contractAddress}").setAllowance("${this.getAddress()}", ${i.quantity}); -`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await xi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await As.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getNFTCollection("${i.contractAddress}").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); -`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await xi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await As.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async prepare(e,t,n){return xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};fp._defineProperty(dV,"contractRoles",["admin","transfer","minter","unwrap","asset"]);yct.Multiwrap=dV});var rIe=_((fYn,R7r)=>{R7r.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"unwrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedContents",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"}],name:"TokensUnwrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedToken",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"wrappedContents",type:"tuple[]"}],name:"TokensWrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getWrappedContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"}],name:"unwrap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_tokensToWrap",type:"tuple[]"},{internalType:"string",name:"_uriForWrappedToken",type:"string"},{internalType:"address",name:"_recipient",type:"address"}],name:"wrap",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}]});var vct=_(bct=>{"use strict";d();p();var po=bi(),cs=os(),M7r=lV(),N7r=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var pV=class extends M7r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new cs.ContractWrapper(e,t,i,a);super(o,n,s),po._defineProperty(this,"abi",void 0),po._defineProperty(this,"metadata",void 0),po._defineProperty(this,"app",void 0),po._defineProperty(this,"roles",void 0),po._defineProperty(this,"encoder",void 0),po._defineProperty(this,"estimator",void 0),po._defineProperty(this,"events",void 0),po._defineProperty(this,"sales",void 0),po._defineProperty(this,"platformFees",void 0),po._defineProperty(this,"royalties",void 0),po._defineProperty(this,"owner",void 0),po._defineProperty(this,"signature",void 0),po._defineProperty(this,"interceptor",void 0),po._defineProperty(this,"mint",cs.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),po._defineProperty(this,"mintTo",cs.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),po._defineProperty(this,"mintBatch",cs.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),po._defineProperty(this,"mintBatchTo",cs.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),po._defineProperty(this,"burn",cs.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=cs.AbiSchema.parse(i||[]),this.metadata=new cs.ContractMetadata(this.contractWrapper,cs.TokenErc721ContractSchema,this.storage),this.app=new cs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new cs.ContractRoles(this.contractWrapper,pV.contractRoles),this.royalties=new cs.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new cs.ContractPrimarySale(this.contractWrapper),this.encoder=new cs.ContractEncoder(this.contractWrapper),this.estimator=new cs.GasCostEstimator(this.contractWrapper),this.events=new cs.ContractEvents(this.contractWrapper),this.platformFees=new cs.ContractPlatformFee(this.contractWrapper),this.interceptor=new cs.ContractInterceptor(this.contractWrapper),this.signature=new cs.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new cs.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(cs.getRoleHash("transfer"),N7r.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return cs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};po._defineProperty(pV,"contractRoles",["admin","minter","transfer"]);bct.NFTCollection=pV});var nIe=_((bYn,B7r)=>{B7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"string",name:"_uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var xct=_(wct=>{"use strict";d();p();var oi=bi(),Ya=os(),D7r=lV(),L7r=AX(),f2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var hV=class extends D7r.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ya.ContractWrapper(e,t,s,i);super(c,n,o),a=this,oi._defineProperty(this,"abi",void 0),oi._defineProperty(this,"encoder",void 0),oi._defineProperty(this,"estimator",void 0),oi._defineProperty(this,"metadata",void 0),oi._defineProperty(this,"app",void 0),oi._defineProperty(this,"sales",void 0),oi._defineProperty(this,"platformFees",void 0),oi._defineProperty(this,"events",void 0),oi._defineProperty(this,"roles",void 0),oi._defineProperty(this,"interceptor",void 0),oi._defineProperty(this,"royalties",void 0),oi._defineProperty(this,"claimConditions",void 0),oi._defineProperty(this,"revealer",void 0),oi._defineProperty(this,"checkout",void 0),oi._defineProperty(this,"owner",void 0),oi._defineProperty(this,"createBatch",Ya.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),oi._defineProperty(this,"claimTo",Ya.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),oi._defineProperty(this,"claim",Ya.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),oi._defineProperty(this,"burn",Ya.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),oi._defineProperty(this,"transfer",Ya.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),oi._defineProperty(this,"setApprovalForAll",Ya.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),oi._defineProperty(this,"setApprovalForToken",Ya.buildTransactionFunction(async(u,l)=>Ya.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=Ya.AbiSchema.parse(s||[]),this.metadata=new Ya.ContractMetadata(this.contractWrapper,Ya.DropErc721ContractSchema,this.storage),this.app=new Ya.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ya.ContractRoles(this.contractWrapper,hV.contractRoles),this.royalties=new Ya.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ya.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Ya.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new Ya.ContractEncoder(this.contractWrapper),this.estimator=new Ya.GasCostEstimator(this.contractWrapper),this.events=new Ya.ContractEvents(this.contractWrapper),this.platformFees=new Ya.ContractPlatformFee(this.contractWrapper),this.revealer=new Ya.DelayedReveal(this.contractWrapper,this.storage,Ya.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new Ya.ContractInterceptor(this.contractWrapper),this.owner=new Ya.ContractOwner(this.contractWrapper),this.checkout=new L7r.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=f2.BigNumber.from(e?.start||0).toNumber(),n=f2.BigNumber.from(e?.count||oi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=f2.BigNumber.from(e?.start||0).toNumber(),n=f2.BigNumber.from(e?.count||oi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=f2.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=f2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ya.getRoleHash("transfer"),f2.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return Ya.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};oi._defineProperty(hV,"contractRoles",["admin","minter","transfer"]);wct.NFTDrop=hV});var aIe=_((_Yn,O7r)=>{O7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var iIe=_((TYn,q7r)=>{q7r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"baseURIIndices",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var sIe=_((IYn,F7r)=>{F7r.exports=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Act=_(kct=>{"use strict";d();p();var ei=bi(),Rt=os(),W7r=CX(),U7r=sIe(),H7r=sa(),mp=je(),k0=kr();Cr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function _ct(r){return r&&r.__esModule?r:{default:r}}var j7r=_ct(U7r),z7r=_ct(H7r),cIe=k0.z.object({contractAddress:Rt.AddressOrEnsSchema}),K7r=cIe.extend({quantity:ei.AmountSchema}),G7r=cIe.extend({tokenId:Rt.BigNumberishSchema}),V7r=cIe.extend({tokenId:Rt.BigNumberishSchema,quantity:Rt.BigNumberishSchema}),Tct=K7r.omit({quantity:!0}).extend({quantityPerReward:ei.AmountSchema}),Ict=G7r,Ect=V7r.omit({quantity:!0}).extend({quantityPerReward:Rt.BigNumberishSchema}),Y7r=Tct.extend({totalRewards:Rt.BigNumberishSchema.default("1")}),$7r=Ict,Q7r=Ect.extend({totalRewards:Rt.BigNumberishSchema.default("1")});k0.z.object({erc20Rewards:k0.z.array(Tct).default([]),erc721Rewards:k0.z.array(Ict).default([]),erc1155Rewards:k0.z.array(Ect).default([])});var Cct=k0.z.object({erc20Rewards:k0.z.array(Y7r).default([]),erc721Rewards:k0.z.array($7r).default([]),erc1155Rewards:k0.z.array(Q7r).default([])}),J7r=Cct.extend({packMetadata:ei.NFTInputOrUriSchema,rewardsPerPack:Rt.BigNumberishSchema.default("1"),openStartTime:Rt.RawDateSchema.default(new Date)}),oIe=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Rt.ContractWrapper(e,t,z7r.default,a);ei._defineProperty(this,"featureName",Rt.FEATURE_PACK_VRF.name),ei._defineProperty(this,"contractWrapper",void 0),ei._defineProperty(this,"storage",void 0),ei._defineProperty(this,"chainId",void 0),ei._defineProperty(this,"events",void 0),ei._defineProperty(this,"open",Rt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=mp.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),ei._defineProperty(this,"claimRewards",Rt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Rt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Rt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:mp.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Rt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:mp.BigNumber.from(5e5)}),i=mp.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Rt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Rt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,j7r.default,this.contractWrapper.options);return new Rt.Erc20(t,this.storage,this.chainId)}},fV=class extends W7r.StandardErc1155{get vrf(){return Rt.assertEnabled(this._vrf,Rt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Rt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,ei._defineProperty(this,"abi",void 0),ei._defineProperty(this,"metadata",void 0),ei._defineProperty(this,"app",void 0),ei._defineProperty(this,"roles",void 0),ei._defineProperty(this,"encoder",void 0),ei._defineProperty(this,"events",void 0),ei._defineProperty(this,"estimator",void 0),ei._defineProperty(this,"royalties",void 0),ei._defineProperty(this,"interceptor",void 0),ei._defineProperty(this,"owner",void 0),ei._defineProperty(this,"_vrf",void 0),ei._defineProperty(this,"create",Rt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),ei._defineProperty(this,"addPackContents",Rt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await Cct.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:I=>{let C=this.contractWrapper.parseLogs("PackUpdated",I?.logs);if(C.length===0)throw new Error("PackUpdated event not found");let R=C[0].args.packId;return{id:R,receipt:I,data:()=>this.erc1155.get(R)}}})})),ei._defineProperty(this,"createTo",Rt.buildTransactionFunction(async(u,l)=>{let h=await Rt.uploadOrExtractURI(l.packMetadata,this.storage),f=await J7r.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I}=f,C={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I},{contents:R,numOfRewardUnits:L}=await this.toPackContentArgs(C);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[R,L,h,f.openStartTime,f.rewardsPerPack,await Rt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:F,data:()=>this.erc1155.get(V)}}})})),ei._defineProperty(this,"open",Rt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Rt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,I=[],C=[],R=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Rt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);I.push({contractAddress:L.assetContract,quantityPerReward:mp.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{C.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{R.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:I,erc721Rewards:C,erc1155Rewards:R}}})})),this.abi=Rt.AbiSchema.parse(s||[]),this.metadata=new Rt.ContractMetadata(this.contractWrapper,Rt.PackContractSchema,this.storage),this.app=new Rt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Rt.ContractRoles(this.contractWrapper,fV.contractRoles),this.royalties=new Rt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Rt.ContractEncoder(this.contractWrapper),this.estimator=new Rt.GasCostEstimator(this.contractWrapper),this.events=new Rt.ContractEvents(this.contractWrapper),this.interceptor=new Rt.ContractInterceptor(this.contractWrapper),this.owner=new Rt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Rt.getRoleHash("transfer"),mp.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o{R0n.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"unwrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedContents",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"}],name:"TokensUnwrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedToken",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"wrappedContents",type:"tuple[]"}],name:"TokensWrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getWrappedContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"}],name:"unwrap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_tokensToWrap",type:"tuple[]"},{internalType:"string",name:"_uriForWrappedToken",type:"string"},{internalType:"address",name:"_recipient",type:"address"}],name:"wrap",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}]});var q8t=E(L8t=>{"use strict";f();d();var Oc=Es(),ko=Ao(),M0n=mX(),B0n=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var bX=class extends M0n.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ko.ContractWrapper(e,t,i,a);super(o,n,s),Oc._defineProperty(this,"abi",void 0),Oc._defineProperty(this,"metadata",void 0),Oc._defineProperty(this,"app",void 0),Oc._defineProperty(this,"roles",void 0),Oc._defineProperty(this,"encoder",void 0),Oc._defineProperty(this,"estimator",void 0),Oc._defineProperty(this,"events",void 0),Oc._defineProperty(this,"sales",void 0),Oc._defineProperty(this,"platformFees",void 0),Oc._defineProperty(this,"royalties",void 0),Oc._defineProperty(this,"owner",void 0),Oc._defineProperty(this,"signature",void 0),Oc._defineProperty(this,"interceptor",void 0),Oc._defineProperty(this,"mint",ko.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Oc._defineProperty(this,"mintTo",ko.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Oc._defineProperty(this,"mintBatch",ko.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Oc._defineProperty(this,"mintBatchTo",ko.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Oc._defineProperty(this,"burn",ko.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=ko.AbiSchema.parse(i||[]),this.metadata=new ko.ContractMetadata(this.contractWrapper,ko.TokenErc721ContractSchema,this.storage),this.app=new ko.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ko.ContractRoles(this.contractWrapper,bX.contractRoles),this.royalties=new ko.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ko.ContractPrimarySale(this.contractWrapper),this.encoder=new ko.ContractEncoder(this.contractWrapper),this.estimator=new ko.GasCostEstimator(this.contractWrapper),this.events=new ko.ContractEvents(this.contractWrapper),this.platformFees=new ko.ContractPlatformFee(this.contractWrapper),this.interceptor=new ko.ContractInterceptor(this.contractWrapper),this.signature=new ko.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ko.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ko.getRoleHash("transfer"),B0n.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return ko.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Oc._defineProperty(bX,"contractRoles",["admin","minter","transfer"]);L8t.NFTCollection=bX});var yBe=E((NFa,D0n)=>{D0n.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"string",name:"_uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var U8t=E(W8t=>{"use strict";f();d();var ds=Es(),Xi=Ao(),N0n=mX(),O0n=Yse(),e3=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var gX=class extends N0n.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Xi.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ds._defineProperty(this,"abi",void 0),ds._defineProperty(this,"encoder",void 0),ds._defineProperty(this,"estimator",void 0),ds._defineProperty(this,"metadata",void 0),ds._defineProperty(this,"app",void 0),ds._defineProperty(this,"sales",void 0),ds._defineProperty(this,"platformFees",void 0),ds._defineProperty(this,"events",void 0),ds._defineProperty(this,"roles",void 0),ds._defineProperty(this,"interceptor",void 0),ds._defineProperty(this,"royalties",void 0),ds._defineProperty(this,"claimConditions",void 0),ds._defineProperty(this,"revealer",void 0),ds._defineProperty(this,"checkout",void 0),ds._defineProperty(this,"owner",void 0),ds._defineProperty(this,"createBatch",Xi.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),ds._defineProperty(this,"claimTo",Xi.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:p})})),ds._defineProperty(this,"claim",Xi.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),ds._defineProperty(this,"burn",Xi.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),ds._defineProperty(this,"transfer",Xi.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),ds._defineProperty(this,"setApprovalForAll",Xi.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),ds._defineProperty(this,"setApprovalForToken",Xi.buildTransactionFunction(async(u,l)=>Xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=Xi.AbiSchema.parse(s||[]),this.metadata=new Xi.ContractMetadata(this.contractWrapper,Xi.DropErc721ContractSchema,this.storage),this.app=new Xi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Xi.ContractRoles(this.contractWrapper,gX.contractRoles),this.royalties=new Xi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Xi.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Xi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new Xi.ContractEncoder(this.contractWrapper),this.estimator=new Xi.GasCostEstimator(this.contractWrapper),this.events=new Xi.ContractEvents(this.contractWrapper),this.platformFees=new Xi.ContractPlatformFee(this.contractWrapper),this.revealer=new Xi.DelayedReveal(this.contractWrapper,this.storage,Xi.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new Xi.ContractInterceptor(this.contractWrapper),this.owner=new Xi.ContractOwner(this.contractWrapper),this.checkout=new O0n.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=e3.BigNumber.from(e?.start||0).toNumber(),n=e3.BigNumber.from(e?.count||ds.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=e3.BigNumber.from(e?.start||0).toNumber(),n=e3.BigNumber.from(e?.count||ds.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=e3.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=e3.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Xi.getRoleHash("transfer"),e3.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return Xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};ds._defineProperty(gX,"contractRoles",["admin","minter","transfer"]);W8t.NFTDrop=gX});var bBe=E((qFa,F0n)=>{F0n.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var gBe=E((WFa,L0n)=>{L0n.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"baseURIIndices",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var vBe=E((UFa,q0n)=>{q0n.exports=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var $8t=E(V8t=>{"use strict";f();d();var ss=Es(),ur=Ao(),W0n=Vse(),U0n=vBe(),H0n=ri(),Ap=ke(),xb=fn();Fr();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function H8t(r){return r&&r.__esModule?r:{default:r}}var j0n=H8t(U0n),z0n=H8t(H0n),xBe=xb.z.object({contractAddress:ur.AddressOrEnsSchema}),K0n=xBe.extend({quantity:ss.AmountSchema}),G0n=xBe.extend({tokenId:ur.BigNumberishSchema}),V0n=xBe.extend({tokenId:ur.BigNumberishSchema,quantity:ur.BigNumberishSchema}),j8t=K0n.omit({quantity:!0}).extend({quantityPerReward:ss.AmountSchema}),z8t=G0n,K8t=V0n.omit({quantity:!0}).extend({quantityPerReward:ur.BigNumberishSchema}),$0n=j8t.extend({totalRewards:ur.BigNumberishSchema.default("1")}),Y0n=z8t,Q0n=K8t.extend({totalRewards:ur.BigNumberishSchema.default("1")});xb.z.object({erc20Rewards:xb.z.array(j8t).default([]),erc721Rewards:xb.z.array(z8t).default([]),erc1155Rewards:xb.z.array(K8t).default([])});var G8t=xb.z.object({erc20Rewards:xb.z.array($0n).default([]),erc721Rewards:xb.z.array(Y0n).default([]),erc1155Rewards:xb.z.array(Q0n).default([])}),J0n=G8t.extend({packMetadata:ss.NFTInputOrUriSchema,rewardsPerPack:ur.BigNumberishSchema.default("1"),openStartTime:ur.RawDateSchema.default(new Date)}),wBe=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new ur.ContractWrapper(e,t,z0n.default,a);ss._defineProperty(this,"featureName",ur.FEATURE_PACK_VRF.name),ss._defineProperty(this,"contractWrapper",void 0),ss._defineProperty(this,"storage",void 0),ss._defineProperty(this,"chainId",void 0),ss._defineProperty(this,"events",void 0),ss._defineProperty(this,"open",ur.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return ur.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:p=>{let h=Ap.BigNumber.from(0);try{h=s.contractWrapper.parseLogs("PackOpenRequested",p?.logs)[0].args.requestId}catch{}return{receipt:p,id:h}}})})),ss._defineProperty(this,"claimRewards",ur.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return ur.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let p=l[0].args.rewardUnitsDistributed;return await s.parseRewards(p)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new ur.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await ur.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:Ap.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await ur.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:Ap.BigNumber.from(5e5)}),i=Ap.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=ur.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new ur.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,j0n.default,this.contractWrapper.options);return new ur.Erc20(t,this.storage,this.chainId)}},vX=class extends W0n.StandardErc1155{get vrf(){return ur.assertEnabled(this._vrf,ur.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ur.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{...i.gasless,openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,ss._defineProperty(this,"abi",void 0),ss._defineProperty(this,"metadata",void 0),ss._defineProperty(this,"app",void 0),ss._defineProperty(this,"roles",void 0),ss._defineProperty(this,"encoder",void 0),ss._defineProperty(this,"events",void 0),ss._defineProperty(this,"estimator",void 0),ss._defineProperty(this,"royalties",void 0),ss._defineProperty(this,"interceptor",void 0),ss._defineProperty(this,"owner",void 0),ss._defineProperty(this,"_vrf",void 0),ss._defineProperty(this,"create",ur.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),ss._defineProperty(this,"addPackContents",ur.buildTransactionFunction(async(u,l)=>{let p=await this.contractWrapper.getSignerAddress(),h=await G8t.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(h);return ur.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,p],parse:C=>{let P=this.contractWrapper.parseLogs("PackUpdated",C?.logs);if(P.length===0)throw new Error("PackUpdated event not found");let A=P[0].args.packId;return{id:A,receipt:C,data:()=>this.erc1155.get(A)}}})})),ss._defineProperty(this,"createTo",ur.buildTransactionFunction(async(u,l)=>{let p=await ur.uploadOrExtractURI(l.packMetadata,this.storage),h=await J0n.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:C}=h,P={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:C},{contents:A,numOfRewardUnits:B}=await this.toPackContentArgs(P);return ur.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[A,B,p,h.openStartTime,h.rewardsPerPack,await ur.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let K=W[0].args.packId;return{id:K,receipt:F,data:()=>this.erc1155.get(K)}}})})),ss._defineProperty(this,"open",ur.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return ur.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:p},parse:async h=>{let m=a.contractWrapper.parseLogs("PackOpened",h?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,C=[],P=[],A=[];for(let B of y)switch(B.tokenType){case 0:{let F=await ur.fetchCurrencyMetadata(a.contractWrapper.getProvider(),B.assetContract);C.push({contractAddress:B.assetContract,quantityPerReward:Ap.ethers.utils.formatUnits(B.totalAmount,F.decimals).toString()});break}case 1:{P.push({contractAddress:B.assetContract,tokenId:B.tokenId.toString()});break}case 2:{A.push({contractAddress:B.assetContract,tokenId:B.tokenId.toString(),quantityPerReward:B.totalAmount.toString()});break}}return{erc20Rewards:C,erc721Rewards:P,erc1155Rewards:A}}})})),this.abi=ur.AbiSchema.parse(s||[]),this.metadata=new ur.ContractMetadata(this.contractWrapper,ur.PackContractSchema,this.storage),this.app=new ur.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ur.ContractRoles(this.contractWrapper,vX.contractRoles),this.royalties=new ur.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new ur.ContractEncoder(this.contractWrapper),this.estimator=new ur.GasCostEstimator(this.contractWrapper),this.events=new ur.ContractEvents(this.contractWrapper),this.interceptor=new ur.ContractInterceptor(this.contractWrapper),this.owner=new ur.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ur.getRoleHash("transfer"),Ap.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o{Z7r.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"},{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"address",name:"_recipient",type:"address"}],name:"addPackContents",outputs:[{internalType:"uint256",name:"packTotalSupply",type:"uint256"},{internalType:"uint256",name:"newSupplyAdded",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"canUpdatePack",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"_packUri",type:"string"},{internalType:"uint128",name:"_openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"_amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"_recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"}],name:"getPackContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"perUnitAmounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"}],name:"openPack",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Sct=_(Pct=>{"use strict";d();p();var zi=bi(),ci=os(),X7r=lV(),eRr=AX(),m2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var mV=class extends X7r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ci.ContractWrapper(e,t,i,a);super(o,n,s),zi._defineProperty(this,"abi",void 0),zi._defineProperty(this,"owner",void 0),zi._defineProperty(this,"encoder",void 0),zi._defineProperty(this,"estimator",void 0),zi._defineProperty(this,"metadata",void 0),zi._defineProperty(this,"app",void 0),zi._defineProperty(this,"sales",void 0),zi._defineProperty(this,"platformFees",void 0),zi._defineProperty(this,"events",void 0),zi._defineProperty(this,"roles",void 0),zi._defineProperty(this,"interceptor",void 0),zi._defineProperty(this,"royalties",void 0),zi._defineProperty(this,"claimConditions",void 0),zi._defineProperty(this,"revealer",void 0),zi._defineProperty(this,"signature",void 0),zi._defineProperty(this,"checkout",void 0),zi._defineProperty(this,"createBatch",ci.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),zi._defineProperty(this,"claimTo",ci.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),zi._defineProperty(this,"claim",ci.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),zi._defineProperty(this,"burn",ci.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=ci.AbiSchema.parse(i||[]),this.metadata=new ci.ContractMetadata(this.contractWrapper,ci.DropErc721ContractSchema,this.storage),this.app=new ci.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ci.ContractRoles(this.contractWrapper,mV.contractRoles),this.royalties=new ci.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ci.ContractPrimarySale(this.contractWrapper),this.encoder=new ci.ContractEncoder(this.contractWrapper),this.estimator=new ci.GasCostEstimator(this.contractWrapper),this.events=new ci.ContractEvents(this.contractWrapper),this.platformFees=new ci.ContractPlatformFee(this.contractWrapper),this.interceptor=new ci.ContractInterceptor(this.contractWrapper),this.claimConditions=new ci.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new ci.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new ci.DelayedReveal(this.contractWrapper,this.storage,ci.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new ci.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ci.ContractOwner(this.contractWrapper),this.checkout=new eRr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=m2.BigNumber.from(e?.start||0).toNumber(),n=m2.BigNumber.from(e?.count||zi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=m2.BigNumber.from(e?.start||0).toNumber(),n=m2.BigNumber.from(e?.count||zi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=m2.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=m2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ci.getRoleHash("transfer"),m2.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return ci.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};zi._defineProperty(mV,"contractRoles",["admin","minter","transfer"]);Pct.SignatureDrop=mV});var lIe=_((MYn,tRr)=>{tRr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var dIe=_((NYn,rRr)=>{rRr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimedAt",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"}]});var Mct=_(Rct=>{"use strict";d();p();var gu=bi(),Ra=os(),nRr=Pn(),pIe=je();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function aRr(r){return r&&r.__esModule?r:{default:r}}var iRr=aRr(nRr),yV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ra.ContractWrapper(e,t,i,a);gu._defineProperty(this,"contractWrapper",void 0),gu._defineProperty(this,"storage",void 0),gu._defineProperty(this,"abi",void 0),gu._defineProperty(this,"metadata",void 0),gu._defineProperty(this,"app",void 0),gu._defineProperty(this,"encoder",void 0),gu._defineProperty(this,"estimator",void 0),gu._defineProperty(this,"events",void 0),gu._defineProperty(this,"roles",void 0),gu._defineProperty(this,"interceptor",void 0),gu._defineProperty(this,"_chainId",void 0),gu._defineProperty(this,"withdraw",Ra.buildTransactionFunction(async c=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ra.resolveAddress(c)]}))),gu._defineProperty(this,"withdrawToken",Ra.buildTransactionFunction(async(c,u)=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ra.resolveAddress(u),await Ra.resolveAddress(c)]}))),gu._defineProperty(this,"distribute",Ra.buildTransactionFunction(async()=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),gu._defineProperty(this,"distributeToken",Ra.buildTransactionFunction(async c=>Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ra.resolveAddress(c)]}))),this._chainId=s,this.abi=Ra.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ra.ContractMetadata(this.contractWrapper,Ra.SplitsContractSchema,this.storage),this.app=new Ra.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ra.ContractRoles(this.contractWrapper,yV.contractRoles),this.encoder=new Ra.ContractEncoder(this.contractWrapper),this.estimator=new Ra.GasCostEstimator(this.contractWrapper),this.events=new Ra.ContractEvents(this.contractWrapper),this.interceptor=new Ra.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=pIe.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ra.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ra.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ra.resolveAddress(t),a=await Ra.resolveAddress(e),s=await new pIe.Contract(n,iRr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ra.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ra.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(pIe.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ra.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ra.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};gu._defineProperty(yV,"contractRoles",["admin"]);Rct.Split=yV});var hIe=_((OYn,sRr)=>{sRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ERC20PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"PayeeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address[]",name:"_payees",type:"address[]"},{internalType:"uint256[]",name:"_shares",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"payee",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payeeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"shares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Zde=_(Nct=>{"use strict";d();p();var Rg=bi(),PX=os(),fIe=class{get chainId(){return this._chainId}constructor(e,t,n){Rg._defineProperty(this,"contractWrapper",void 0),Rg._defineProperty(this,"storage",void 0),Rg._defineProperty(this,"erc20",void 0),Rg._defineProperty(this,"_chainId",void 0),Rg._defineProperty(this,"transfer",PX.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Rg._defineProperty(this,"transferFrom",PX.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),Rg._defineProperty(this,"setAllowance",PX.buildTransactionFunction(async(a,i)=>this.erc20.setAllowance.prepare(a,i))),Rg._defineProperty(this,"transferBatch",PX.buildTransactionFunction(async a=>this.erc20.transferBatch.prepare(a))),this.contractWrapper=e,this.storage=t,this.erc20=new PX.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}};Nct.StandardErc20=fIe});var Dct=_(Bct=>{"use strict";d();p();var _c=bi(),_i=os(),oRr=Zde(),cRr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var gV=class extends oRr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new _i.ContractWrapper(e,t,s,i);super(c,n,o),a=this,_c._defineProperty(this,"abi",void 0),_c._defineProperty(this,"metadata",void 0),_c._defineProperty(this,"app",void 0),_c._defineProperty(this,"roles",void 0),_c._defineProperty(this,"encoder",void 0),_c._defineProperty(this,"estimator",void 0),_c._defineProperty(this,"sales",void 0),_c._defineProperty(this,"platformFees",void 0),_c._defineProperty(this,"events",void 0),_c._defineProperty(this,"claimConditions",void 0),_c._defineProperty(this,"interceptor",void 0),_c._defineProperty(this,"claim",_i.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),_c._defineProperty(this,"claimTo",_i.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),_c._defineProperty(this,"delegateTo",_i.buildTransactionFunction(async u=>_i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await _i.resolveAddress(u)]}))),_c._defineProperty(this,"burnTokens",_i.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),_c._defineProperty(this,"burnFrom",_i.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=_i.AbiSchema.parse(s||[]),this.metadata=new _i.ContractMetadata(this.contractWrapper,_i.DropErc20ContractSchema,this.storage),this.app=new _i.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new _i.ContractRoles(this.contractWrapper,gV.contractRoles),this.encoder=new _i.ContractEncoder(this.contractWrapper),this.estimator=new _i.GasCostEstimator(this.contractWrapper),this.events=new _i.ContractEvents(this.contractWrapper),this.sales=new _i.ContractPrimarySale(this.contractWrapper),this.platformFees=new _i.ContractPlatformFee(this.contractWrapper),this.interceptor=new _i.ContractInterceptor(this.contractWrapper),this.claimConditions=new _i.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await _i.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await _i.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(_i.getRoleHash("transfer"),cRr.constants.AddressZero)}async prepare(e,t,n){return _i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};_c._defineProperty(gV,"contractRoles",["admin","transfer"]);Bct.TokenDrop=gV});var mIe=_((zYn,uRr)=>{uRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var yIe=_((KYn,lRr)=>{lRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var bIe=_(Oct=>{"use strict";d();p();var Lct=bi(),dRr=os(),Xde=je(),gIe=class{constructor(e,t){Lct._defineProperty(this,"events",void 0),Lct._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==Xde.constants.AddressZero&&(i in n||(n[i]=Xde.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==Xde.constants.AddressZero&&(s in n||(n[s]=Xde.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await dRr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};Oct.TokenERC20History=gIe});var Fct=_(qct=>{"use strict";d();p();var ho=bi(),Ti=os(),pRr=bIe(),hRr=Zde(),fRr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var bV=class extends hRr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ti.ContractWrapper(e,t,i,a);super(o,n,s),ho._defineProperty(this,"abi",void 0),ho._defineProperty(this,"metadata",void 0),ho._defineProperty(this,"app",void 0),ho._defineProperty(this,"roles",void 0),ho._defineProperty(this,"encoder",void 0),ho._defineProperty(this,"estimator",void 0),ho._defineProperty(this,"history",void 0),ho._defineProperty(this,"events",void 0),ho._defineProperty(this,"platformFees",void 0),ho._defineProperty(this,"sales",void 0),ho._defineProperty(this,"signature",void 0),ho._defineProperty(this,"interceptor",void 0),ho._defineProperty(this,"mint",Ti.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),ho._defineProperty(this,"mintTo",Ti.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),ho._defineProperty(this,"mintBatchTo",Ti.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),ho._defineProperty(this,"delegateTo",Ti.buildTransactionFunction(async c=>Ti.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Ti.resolveAddress(c)]}))),ho._defineProperty(this,"burn",Ti.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),ho._defineProperty(this,"burnFrom",Ti.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=Ti.AbiSchema.parse(i||[]),this.metadata=new Ti.ContractMetadata(this.contractWrapper,Ti.TokenErc20ContractSchema,this.storage),this.app=new Ti.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ti.ContractRoles(this.contractWrapper,bV.contractRoles),this.sales=new Ti.ContractPrimarySale(this.contractWrapper),this.events=new Ti.ContractEvents(this.contractWrapper),this.history=new pRr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Ti.ContractEncoder(this.contractWrapper),this.estimator=new Ti.GasCostEstimator(this.contractWrapper),this.platformFees=new Ti.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ti.ContractInterceptor(this.contractWrapper),this.signature=new Ti.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Ti.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ti.getRoleHash("transfer"),fRr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Ti.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};ho._defineProperty(bV,"contractRoles",["admin","minter","transfer"]);qct.Token=bV});var vIe=_((ZYn,mRr)=>{mRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var wIe=_(Wct=>{"use strict";d();p();var yRr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});Wct.VoteType=yRr});var Hct=_(Uct=>{"use strict";d();p();var ad=bi(),Gs=os(),gRr=Pn(),SX=je(),xIe=wIe();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function bRr(r){return r&&r.__esModule?r:{default:r}}var vRr=bRr(gRr),_Ie=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Gs.ContractWrapper(e,t,s,i);ad._defineProperty(this,"contractWrapper",void 0),ad._defineProperty(this,"storage",void 0),ad._defineProperty(this,"abi",void 0),ad._defineProperty(this,"metadata",void 0),ad._defineProperty(this,"app",void 0),ad._defineProperty(this,"encoder",void 0),ad._defineProperty(this,"estimator",void 0),ad._defineProperty(this,"events",void 0),ad._defineProperty(this,"interceptor",void 0),ad._defineProperty(this,"_chainId",void 0),ad._defineProperty(this,"propose",Gs.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return Gs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),ad._defineProperty(this,"vote",Gs.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),Gs.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),ad._defineProperty(this,"execute",Gs.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(I=>I.toAddress),f=l.executions.map(I=>I.nativeTokenValue),m=l.executions.map(I=>I.transactionData),y=SX.ethers.utils.id(l.description);return Gs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=Gs.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new Gs.ContractMetadata(this.contractWrapper,Gs.VoteContractSchema,this.storage),this.app=new Gs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new Gs.ContractEncoder(this.contractWrapper),this.estimator=new Gs.GasCostEstimator(this.contractWrapper),this.events=new Gs.ContractEvents(this.contractWrapper),this.interceptor=new Gs.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(SX.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:xIe.VoteType.Against,label:"Against",count:t.againstVotes},{type:xIe.VoteType.For,label:"For",count:t.forVotes},{type:xIe.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await Gs.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=SX.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:SX.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new SX.Contract(await Gs.resolveAddress(e),vRr.default,this.contractWrapper.getProvider());return await Gs.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await Gs.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return Gs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Uct.Vote=_Ie});var TIe=_((i$n,wRr)=>{wRr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"Empty",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"address",name:"proposer",type:"address"},{indexed:!1,internalType:"address[]",name:"targets",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"},{indexed:!1,internalType:"string[]",name:"signatures",type:"string[]"},{indexed:!1,internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{indexed:!1,internalType:"uint256",name:"startBlock",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endBlock",type:"uint256"},{indexed:!1,internalType:"string",name:"description",type:"string"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldProposalThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"ProposalThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldQuorumNumerator",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"QuorumNumeratorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"VoteCast",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"bytes",name:"params",type:"bytes"}],name:"VoteCastWithParams",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingDelay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"VotingDelaySet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"VotingPeriodSet",type:"event"},{inputs:[],name:"BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUNTING_MODE",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"EXTENDED_BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"}],name:"castVote",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"}],name:"castVoteWithReason",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"}],name:"castVoteWithReasonAndParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteWithReasonAndParamsBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"execute",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAllProposals",outputs:[{components:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"string[]",name:"signatures",type:"string[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],internalType:"struct VoteERC20.Proposal[]",name:"allProposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"params",type:"bytes"}],name:"getVotesWithParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"account",type:"address"}],name:"hasVoted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"hashProposal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_initialVotingDelay",type:"uint256"},{internalType:"uint256",name:"_initialVotingPeriod",type:"uint256"},{internalType:"uint256",name:"_initialProposalThreshold",type:"uint256"},{internalType:"uint256",name:"_initialVoteQuorumFraction",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalDeadline",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalSnapshot",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalVotes",outputs:[{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"abstainVotes",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"proposals",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"string",name:"description",type:"string"}],name:"propose",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumDenominator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"relay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"setProposalThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"setVotingDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"setVotingPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"state",outputs:[{internalType:"enum IGovernorUpgradeable.ProposalState",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IVotesUpgradeable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"updateQuorumNumerator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var zct=_(jct=>{"use strict";d();p();function xRr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function _Rr(r){var e=xRr(r,"string");return typeof e=="symbol"?e:String(e)}function TRr(r,e,t){return e=_Rr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}jct._defineProperty=TRr});var CIe=_(EIe=>{"use strict";d();p();Object.defineProperty(EIe,"__esModule",{value:!0});var Kct=zct(),IIe=je(),epe=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],Gct="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122021848ba6bc44b36a69178dfbcc49ad6f4ba35ff12408d3dd35eee774bfe7426964736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",IRr=r=>r.length>1,RX=class extends IIe.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";d();p();var ERr=Tn(),J=je(),CRr=In(),kRr=En(),ARr=Cn(),PRr=kn(),SRr=An(),RRr=Pn(),MRr=Sn(),NRr=Rn(),BRr=Mn(),DRr=Nn(),LRr=Bn(),ORr=Dn(),qRr=Ln(),FRr=On(),WRr=pn(),URr=qn(),HRr=Fn(),jRr=Wn(),zRr=Un(),KRr=Hn(),GRr=jn(),VRr=zn(),YRr=Kn(),$Rr=Gn(),QRr=Vn(),JRr=Yn(),ZRr=$n(),XRr=Qn(),e9r=hn(),t9r=Jn(),r9r=Zn(),n9r=Xn(),a9r=ea(),i9r=ta(),s9r=ra(),o9r=na(),c9r=aa(),u9r=ia(),l9r=sa(),d9r=oa(),p9r=ca(),h9r=ua(),f9r=la(),m9r=da(),y9r=pa(),Y=bi(),de=kr(),iee=vt(),g9r=ha(),b9r=tn(),Eut=Je(),v9r=fa(),Dg=bn(),w9r=Gr(),x9r=Xr(),_9r=ma(),kIe=ya(),T9r=ga(),I9r=Fr(),E9r=mn(),C9r=ba(),k9r=va(),A9r=wa(),P9r=xa(),S9r=_a(),R9r=Ta(),Vct=yn(),M9r=Ia(),N9r=Ea();function tt(r){return r&&r.__esModule?r:{default:r}}function Vo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var IEe=tt(ERr),B9r=tt(CRr),Cut=tt(kRr),D9r=tt(ARr),kut=tt(PRr),Aut=tt(SRr),bu=tt(RRr),L9r=tt(MRr),Put=tt(NRr),EEe=tt(BRr),O9r=tt(DRr),q9r=tt(LRr),F9r=tt(ORr),Sut=tt(qRr),W9r=tt(FRr),Ic=tt(WRr),U9r=tt(URr),H9r=tt(HRr),wp=tt(jRr),Rut=tt(zRr),j9r=tt(KRr),z9r=tt(GRr),K9r=tt(VRr),G9r=tt(YRr),V9r=tt($Rr),Y9r=tt(QRr),Mut=tt(JRr),$9r=tt(ZRr),Q9r=tt(XRr),ju=tt(e9r),J9r=tt(t9r),Nut=tt(r9r),Z9r=tt(n9r),X9r=tt(a9r),eMr=tt(i9r),tMr=tt(s9r),rMr=tt(o9r),nMr=tt(c9r),aMr=tt(u9r),iMr=tt(l9r),sMr=tt(d9r),oMr=tt(p9r),cMr=tt(h9r),uMr=tt(f9r),lMr=tt(m9r),dMr=tt(y9r),pMr=tt(g9r),OX=tt(b9r),BIe=tt(Eut),But=tt(v9r),_t=tt(w9r),hMr=tt(_9r),Dut=tt(T9r),Ahe=tt(E9r),fMr=tt(C9r),mMr=tt(k9r),yMr=tt(A9r),gMr=tt(P9r),bMr=tt(S9r),vMr=tt(R9r),wMr=tt(M9r),xMr=tt(N9r);function _Mr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function DIe(r,e,t){_Mr(r,e),e.set(r,t)}function TMr(r,e){return e.get?e.get.call(r):e.value}function Lut(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function ipe(r,e){var t=Lut(r,e,"get");return TMr(r,t)}function IMr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function LIe(r,e,t){var n=Lut(r,e,"set");return IMr(r,n,t),t}var Ne=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),Out=[Ne.Mainnet,Ne.Goerli,Ne.Polygon,Ne.Mumbai,Ne.Fantom,Ne.FantomTestnet,Ne.Avalanche,Ne.AvalancheFujiTestnet,Ne.Optimism,Ne.OptimismGoerli,Ne.Arbitrum,Ne.ArbitrumGoerli,Ne.BinanceSmartChainMainnet,Ne.BinanceSmartChainTestnet,Ne.Hardhat,Ne.Localhost],OIe=iee.defaultChains;function qut(r){r&&r.length>0?OIe=r:OIe=iee.defaultChains}function Fut(){return OIe}var Wut="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",Bg="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",Mg="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",y2="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",EMr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",CMr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",Lg={[Ne.Mainnet]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:y2,twRegistry:Mg,twBYOCRegistry:J.constants.AddressZero},[Ne.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Ne.Polygon]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Ne.Mumbai]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Ne.Avalanche]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:y2,twRegistry:Mg,twBYOCRegistry:J.constants.AddressZero},[Ne.AvalancheFujiTestnet]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Fantom]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:Mg,twBYOCRegistry:J.constants.AddressZero},[Ne.FantomTestnet]:{openzeppelinForwarder:Bg,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:y2,twRegistry:Mg,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Ne.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.Hardhat]:{openzeppelinForwarder:J.constants.AddressZero,openzeppelinForwarderEOA:J.constants.AddressZero,biconomyForwarder:J.constants.AddressZero,twFactory:J.constants.AddressZero,twRegistry:J.constants.AddressZero,twBYOCRegistry:J.constants.AddressZero},[Ne.Localhost]:{openzeppelinForwarder:J.constants.AddressZero,openzeppelinForwarderEOA:J.constants.AddressZero,biconomyForwarder:J.constants.AddressZero,twFactory:J.constants.AddressZero,twRegistry:J.constants.AddressZero,twBYOCRegistry:J.constants.AddressZero}},qIe={[Ne.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Ne.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Ne.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Ne.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Ne.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Ne.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Ne.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Ne.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Ne.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Ne.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function Uut(r,e){if(r in qIe){let t=qIe[r];if(e in t)return t[e]}return null}function qX(r,e){return r===Ne.Hardhat||r===Ne.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:J.constants.AddressZero:Lg[r]?.[e]}function Hut(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:EMr}function FIe(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:CMr}function CEe(r){let e=Out.find(a=>a===r),t=e?Lg[e].biconomyForwarder:J.constants.AddressZero,n=e?Lg[e].openzeppelinForwarder:J.constants.AddressZero;return t!==J.constants.AddressZero?[n,t]:[n]}var see=J.utils.arrayify("0x80ac58cd"),oee=J.utils.arrayify("0xd9b67a26"),Hu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",FX={[Ne.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Ne.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Ne.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Ne.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function spe(r){let e=Fut().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:J.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:FX[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:J.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var kMr={[Ne.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Ne.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Ne.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Ne.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Ne.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Ne.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Ne.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},xl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function Phe(r){return!!(r&&r._isSigner)}function kEe(r){return!!(r&&r._isProvider)}function ui(r,e){let t,n;if(Phe(r)?(t=r,r.provider&&(n=r.provider)):kEe(r)?n=r:n=WX(r,e),e?.readonlySettings&&(n=cpe(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var jut=50,zut=250,AMr={timeLimitMs:jut,sizeLimit:zut},WIe=class extends J.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:AMr;super(e,t),Y._defineProperty(this,"_timeLimitMs",void 0),Y._defineProperty(this,"_sizeLimit",void 0),Y._defineProperty(this,"_pendingBatchAggregator",void 0),Y._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||zut,this._sizeLimit=n.sizeLimit||jut,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:J.utils.deepCopy(e),provider:this}),J.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},AIe,PIe=new Map;async function Kut(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;AIe||(AIe=ui("ethereum")[1]);let t;PIe.has(r)?t=PIe.get(r):t=AIe.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>Kut(r)).refine(r=>!!r&&J.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Cs=de.z.union([de.z.string(),de.z.number(),de.z.bigint(),de.z.custom(r=>J.BigNumber.isBigNumber(r))]).transform(r=>J.BigNumber.from(r)),Vs=Cs.transform(r=>r.toString()),Gut=de.z.union([de.z.bigint(),de.z.custom(r=>J.BigNumber.isBigNumber(r))]).transform(r=>J.BigNumber.from(r).toString()),AEe=de.z.custom(r=>typeof r=="string"&&J.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ii=de.z.union([AEe,PMr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),cee=de.z.union([de.z.date().transform(r=>J.BigNumber.from(Math.floor(r.getTime()/1e3))),de.z.number().transform(r=>J.BigNumber.from(r))]),PEe=cee.default(new Date(0)),uee=cee.default(new Date(Date.now()+1e3*60*60*24*365*10)),Vut=de.z.object({gasLimit:Vs.optional(),gasPrice:Vs.optional(),maxFeePerGas:Vs.optional(),maxPriorityFeePerGas:Vs.optional(),nonce:Vs.optional(),value:Vs.optional(),blockTag:de.z.union([de.z.string(),de.z.number()]).optional(),from:Ii.optional(),type:de.z.number().optional()}).strict(),Yut=de.z.object({rpc:de.z.array(de.z.string().url()),chainId:de.z.number(),nativeCurrency:de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),slug:de.z.string()}),UIe=de.z.object({supportedChains:de.z.array(Yut).default(iee.defaultChains),thirdwebApiKey:de.z.string().default(Y.DEFAULT_API_KEY),alchemyApiKey:de.z.string().optional(),infuraApiKey:de.z.string().optional(),readonlySettings:de.z.object({rpcUrl:de.z.string().url(),chainId:de.z.number().optional()}).optional(),gasSettings:de.z.object({maxPriceInGwei:de.z.number().min(1,"gas price cannot be less than 1").default(300),speed:de.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:de.z.union([de.z.object({openzeppelin:de.z.object({relayerUrl:de.z.string().url(),relayerForwarderAddress:de.z.string().optional(),useEOAForwarder:de.z.boolean().default(!1)}),experimentalChainlessSupport:de.z.boolean().default(!1)}),de.z.object({biconomy:de.z.object({apiId:de.z.string(),apiKey:de.z.string(),deadlineSeconds:de.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:de.z.array(de.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),$ut=de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),Qut=$ut.extend({value:Cs,displayValue:de.z.string()}),D0=de.z.object({merkle:de.z.record(de.z.string()).default({})}),ope=de.z.object({address:Ii,maxClaimable:Y.QuantitySchema.default(0),price:Y.QuantitySchema.optional(),currencyAddress:Ii.default(J.ethers.constants.AddressZero).optional()}),lee=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>ope.parseAsync({address:e})))),de.z.array(ope)]),SEe=ope.extend({proof:de.z.array(de.z.string())}),REe=de.z.object({merkleRoot:de.z.string(),claims:de.z.array(SEe)}),SMr=de.z.object({merkleRoot:de.z.string(),snapshotUri:de.z.string()}),Jut=de.z.object({name:de.z.string().optional()}).catchall(de.z.unknown()),dee=de.z.object({startTime:PEe,currencyAddress:de.z.string().default(Hu),price:Y.AmountSchema.default(0),maxClaimableSupply:Y.QuantitySchema,maxClaimablePerWallet:Y.QuantitySchema,waitInSeconds:Vs.default(0),merkleRootHash:Y.BytesLikeSchema.default(J.utils.hexZeroPad([0],32)),snapshot:de.z.optional(lee).nullable(),metadata:Jut.optional()}),Zut=de.z.array(dee),RMr=dee.partial(),MEe=dee.extend({availableSupply:Y.QuantitySchema,currentMintSupply:Y.QuantitySchema,currencyMetadata:Qut.default({value:J.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Cs,waitInSeconds:Cs,startTime:Cs.transform(r=>new Date(r.toNumber()*1e3)),snapshot:lee.optional().nullable()});function MMr(r){if(r===void 0){let e=b.Buffer.alloc(16);return I9r.v4({},e),J.utils.hexlify(J.utils.toUtf8Bytes(e.toString("hex")))}else return J.utils.hexlify(r)}var She=de.z.object({to:Ii.refine(r=>r.toLowerCase()!==J.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:Y.AmountSchema.default(0),currencyAddress:AEe.default(Hu),mintStartTime:PEe,mintEndTime:uee,uid:de.z.string().optional().transform(r=>MMr(r)),primarySaleRecipient:Ii.default(J.constants.AddressZero)}),NEe=She.extend({quantity:Y.AmountSchema}),Xut=NEe.extend({mintStartTime:Cs,mintEndTime:Cs}),Rhe=She.extend({metadata:Y.NFTInputOrUriSchema,royaltyRecipient:de.z.string().default(J.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0)}),BEe=Rhe.extend({metadata:Y.NFTInputOrUriSchema.default(""),uri:de.z.string(),royaltyBps:Cs,mintStartTime:Cs,mintEndTime:Cs}),elt=Rhe.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Vs}),tlt=elt.extend({tokenId:Vs}),rlt=BEe.extend({tokenId:Cs,quantity:Cs}),nlt=Rhe.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Cs.default(1)}),alt=BEe.extend({quantity:Cs.default(1)}),ilt=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],slt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],olt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],clt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],ult=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Il=de.z.object({name:de.z.string(),description:de.z.string().optional(),image:Y.FileOrBufferOrStringSchema.optional(),external_link:de.z.string().optional(),app_uri:de.z.string().optional()}),id=Il.extend({image:de.z.string().optional()}).catchall(de.z.unknown()),Go=de.z.object({seller_fee_basis_points:Y.BasisPointsSchema.default(0),fee_recipient:Ii.default(J.constants.AddressZero)}),Og=de.z.object({primary_sale_recipient:Ii}),vp=de.z.object({platform_fee_basis_points:Y.BasisPointsSchema.default(0),platform_fee_recipient:Ii.default(J.constants.AddressZero)}),sd=de.z.object({trusted_forwarders:de.z.array(Ii).default([])}),yo=de.z.object({symbol:de.z.string().default("")}),llt=Il.merge(Go).merge(D0).merge(yo),NMr=id.merge(Go).merge(D0).merge(yo),BMr=llt.merge(vp).merge(Og).merge(sd),DEe={deploy:BMr,output:NMr,input:llt},dlt=Il.merge(Go).merge(D0).merge(yo),DMr=id.merge(Go).merge(D0).merge(yo),LMr=dlt.merge(vp).merge(Og).merge(sd),plt={deploy:LMr,output:DMr,input:dlt},hlt=Il,OMr=id,qMr=hlt.merge(vp).merge(sd),LEe={deploy:qMr,output:OMr,input:hlt},flt=Il.merge(Go).merge(yo),FMr=id.merge(Go).merge(yo),WMr=flt.merge(vp).merge(sd),mlt={deploy:WMr,output:FMr,input:flt},ylt=de.z.object({address:Ii,sharesBps:Y.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),UMr=ylt.extend({address:Ii,sharesBps:Y.BasisPointsSchema}),HIe=Il.extend({recipients:de.z.array(ylt).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),HMr=id.extend({recipients:de.z.array(UMr)}),jMr=HIe.merge(HIe).merge(sd),glt={deploy:jMr,output:HMr,input:HIe},blt=Il.merge(yo),zMr=id.merge(yo),KMr=blt.merge(vp).merge(Og).merge(sd),vlt={deploy:KMr,output:zMr,input:blt},wlt=Il.merge(Go).merge(yo),GMr=id.merge(Go).merge(yo),VMr=wlt.merge(vp).merge(Og).merge(sd),xlt={deploy:VMr,output:GMr,input:wlt},_lt=Il.merge(Go).merge(yo),YMr=id.merge(Go).merge(yo),$Mr=_lt.merge(vp).merge(Og).merge(sd),Tlt={deploy:$Mr,output:YMr,input:_lt},Ilt=de.z.object({voting_delay_in_blocks:de.z.number().min(0).default(0),voting_period_in_blocks:de.z.number().min(1).default(1),voting_token_address:Ii,voting_quorum_fraction:Y.PercentSchema.default(0),proposal_token_threshold:Vs.default(1)}),QMr=Ilt.extend({proposal_token_threshold:Cs}),Elt=Il.merge(Ilt),JMr=id.merge(QMr),ZMr=Elt.merge(sd),Clt={deploy:ZMr,output:JMr,input:Elt};de.z.object({proposalId:Cs,proposer:de.z.string(),targets:de.z.array(de.z.string()),values:de.z.array(Cs),signatures:de.z.array(de.z.string()),calldatas:de.z.array(de.z.string()),startBlock:Cs,endBlock:Cs,description:de.z.string()});function XMr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function WX(r,e){if(typeof r=="string"&&eNr(r))return cpe(r);let t=UIe.parse(e);Mhe(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=XMr(t),a="",i;try{i=klt(r,t),a=iee.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||Y.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||Y.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return cpe(a,i)}function klt(r,e){if(Mhe(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function Mhe(r){return typeof r!="string"&&typeof r!="number"&&!Phe(r)&&!kEe(r)}function eNr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var Yct=new Map;function cpe(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=Yct.get(n);if(a)return a;let i=e?new WIe(r,e):new J.providers.JsonRpcBatchProvider(r);return Yct.set(n,i),i;case"ws":case"wss":return new J.providers.WebSocketProvider(r,e)}}catch{}return J.providers.getDefaultProvider(r)}var UX=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},jIe=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},upe=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},zIe=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},KIe=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},GIe=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},VIe=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},YIe=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},$Ie=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},QIe=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},JIe=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),Y._defineProperty(this,"innerError",void 0),this.innerError=t}},lpe=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},ZIe=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},XIe=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},eEe=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},tEe=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},rEe=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},nEe=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},TV=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},P0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},SIe=new WeakMap,RIe=new WeakMap,CV=class extends Error{constructor(e){let t=` +`);n.push(u.totalRewards),t.push({assetContract:u.contractAddress,tokenType:2,totalAmount:Ap.BigNumber.from(u.quantityPerReward).mul(Ap.BigNumber.from(u.totalRewards)),tokenId:u.tokenId})}return{contents:t,numOfRewardUnits:n}}async prepare(e,t,n){return ur.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectVrf(){if(ur.detectContractFeature(this.contractWrapper,"PackVRF"))return new wBe(this.contractWrapper.getSignerOrProvider(),this.contractWrapper.readContract.address,this.storage,this.contractWrapper.options,this.chainId)}};ss._defineProperty(vX,"contractRoles",["admin","minter","asset","transfer"]);V8t.Pack=vX});var _Be=E((KFa,Z0n)=>{Z0n.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"},{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"address",name:"_recipient",type:"address"}],name:"addPackContents",outputs:[{internalType:"uint256",name:"packTotalSupply",type:"uint256"},{internalType:"uint256",name:"newSupplyAdded",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"canUpdatePack",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"_packUri",type:"string"},{internalType:"uint128",name:"_openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"_amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"_recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"}],name:"getPackContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"perUnitAmounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"}],name:"openPack",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Q8t=E(Y8t=>{"use strict";f();d();var Xs=Es(),ps=Ao(),X0n=mX(),eun=Yse(),t3=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var wX=class extends X0n.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ps.ContractWrapper(e,t,i,a);super(o,n,s),Xs._defineProperty(this,"abi",void 0),Xs._defineProperty(this,"owner",void 0),Xs._defineProperty(this,"encoder",void 0),Xs._defineProperty(this,"estimator",void 0),Xs._defineProperty(this,"metadata",void 0),Xs._defineProperty(this,"app",void 0),Xs._defineProperty(this,"sales",void 0),Xs._defineProperty(this,"platformFees",void 0),Xs._defineProperty(this,"events",void 0),Xs._defineProperty(this,"roles",void 0),Xs._defineProperty(this,"interceptor",void 0),Xs._defineProperty(this,"royalties",void 0),Xs._defineProperty(this,"claimConditions",void 0),Xs._defineProperty(this,"revealer",void 0),Xs._defineProperty(this,"signature",void 0),Xs._defineProperty(this,"checkout",void 0),Xs._defineProperty(this,"createBatch",ps.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),Xs._defineProperty(this,"claimTo",ps.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),Xs._defineProperty(this,"claim",ps.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),Xs._defineProperty(this,"burn",ps.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=ps.AbiSchema.parse(i||[]),this.metadata=new ps.ContractMetadata(this.contractWrapper,ps.DropErc721ContractSchema,this.storage),this.app=new ps.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ps.ContractRoles(this.contractWrapper,wX.contractRoles),this.royalties=new ps.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ps.ContractPrimarySale(this.contractWrapper),this.encoder=new ps.ContractEncoder(this.contractWrapper),this.estimator=new ps.GasCostEstimator(this.contractWrapper),this.events=new ps.ContractEvents(this.contractWrapper),this.platformFees=new ps.ContractPlatformFee(this.contractWrapper),this.interceptor=new ps.ContractInterceptor(this.contractWrapper),this.claimConditions=new ps.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new ps.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new ps.DelayedReveal(this.contractWrapper,this.storage,ps.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new ps.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ps.ContractOwner(this.contractWrapper),this.checkout=new eun.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=t3.BigNumber.from(e?.start||0).toNumber(),n=t3.BigNumber.from(e?.count||Xs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=t3.BigNumber.from(e?.start||0).toNumber(),n=t3.BigNumber.from(e?.count||Xs.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=t3.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=t3.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ps.getRoleHash("transfer"),t3.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return ps.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Xs._defineProperty(wX,"contractRoles",["admin","minter","transfer"]);Y8t.SignatureDrop=wX});var TBe=E((YFa,tun)=>{tun.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var EBe=E((QFa,run)=>{run.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimedAt",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"}]});var Z8t=E(J8t=>{"use strict";f();d();var Vu=Es(),Si=Ao(),nun=Ia(),IBe=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function aun(r){return r&&r.__esModule?r:{default:r}}var iun=aun(nun),xX=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Si.ContractWrapper(e,t,i,a);Vu._defineProperty(this,"contractWrapper",void 0),Vu._defineProperty(this,"storage",void 0),Vu._defineProperty(this,"abi",void 0),Vu._defineProperty(this,"metadata",void 0),Vu._defineProperty(this,"app",void 0),Vu._defineProperty(this,"encoder",void 0),Vu._defineProperty(this,"estimator",void 0),Vu._defineProperty(this,"events",void 0),Vu._defineProperty(this,"roles",void 0),Vu._defineProperty(this,"interceptor",void 0),Vu._defineProperty(this,"_chainId",void 0),Vu._defineProperty(this,"withdraw",Si.buildTransactionFunction(async c=>Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Si.resolveAddress(c)]}))),Vu._defineProperty(this,"withdrawToken",Si.buildTransactionFunction(async(c,u)=>Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Si.resolveAddress(u),await Si.resolveAddress(c)]}))),Vu._defineProperty(this,"distribute",Si.buildTransactionFunction(async()=>Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),Vu._defineProperty(this,"distributeToken",Si.buildTransactionFunction(async c=>Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Si.resolveAddress(c)]}))),this._chainId=s,this.abi=Si.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Si.ContractMetadata(this.contractWrapper,Si.SplitsContractSchema,this.storage),this.app=new Si.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Si.ContractRoles(this.contractWrapper,xX.contractRoles),this.encoder=new Si.ContractEncoder(this.contractWrapper),this.estimator=new Si.GasCostEstimator(this.contractWrapper),this.events=new Si.ContractEvents(this.contractWrapper),this.interceptor=new Si.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=IBe.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Si.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Si.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Si.resolveAddress(t),a=await Si.resolveAddress(e),s=await new IBe.Contract(n,iun.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Si.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Si.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(IBe.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Si.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Vu._defineProperty(xX,"contractRoles",["admin"]);J8t.Split=xX});var CBe=E((eLa,sun)=>{sun.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ERC20PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"PayeeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address[]",name:"_payees",type:"address[]"},{internalType:"uint256[]",name:"_shares",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"payee",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payeeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"shares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Tge=E(X8t=>{"use strict";f();d();var Og=Es(),Qse=Ao(),ABe=class{get chainId(){return this._chainId}constructor(e,t,n){Og._defineProperty(this,"contractWrapper",void 0),Og._defineProperty(this,"storage",void 0),Og._defineProperty(this,"erc20",void 0),Og._defineProperty(this,"_chainId",void 0),Og._defineProperty(this,"transfer",Qse.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Og._defineProperty(this,"transferFrom",Qse.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),Og._defineProperty(this,"setAllowance",Qse.buildTransactionFunction(async(a,i)=>this.erc20.setAllowance.prepare(a,i))),Og._defineProperty(this,"transferBatch",Qse.buildTransactionFunction(async a=>this.erc20.transferBatch.prepare(a))),this.contractWrapper=e,this.storage=t,this.erc20=new Qse.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}};X8t.StandardErc20=ABe});var t4t=E(e4t=>{"use strict";f();d();var tu=Es(),ks=Ao(),oun=Tge(),cun=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var _X=class extends oun.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ks.ContractWrapper(e,t,s,i);super(c,n,o),a=this,tu._defineProperty(this,"abi",void 0),tu._defineProperty(this,"metadata",void 0),tu._defineProperty(this,"app",void 0),tu._defineProperty(this,"roles",void 0),tu._defineProperty(this,"encoder",void 0),tu._defineProperty(this,"estimator",void 0),tu._defineProperty(this,"sales",void 0),tu._defineProperty(this,"platformFees",void 0),tu._defineProperty(this,"events",void 0),tu._defineProperty(this,"claimConditions",void 0),tu._defineProperty(this,"interceptor",void 0),tu._defineProperty(this,"claim",ks.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),tu._defineProperty(this,"claimTo",ks.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:p})})),tu._defineProperty(this,"delegateTo",ks.buildTransactionFunction(async u=>ks.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await ks.resolveAddress(u)]}))),tu._defineProperty(this,"burnTokens",ks.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),tu._defineProperty(this,"burnFrom",ks.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=ks.AbiSchema.parse(s||[]),this.metadata=new ks.ContractMetadata(this.contractWrapper,ks.DropErc20ContractSchema,this.storage),this.app=new ks.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ks.ContractRoles(this.contractWrapper,_X.contractRoles),this.encoder=new ks.ContractEncoder(this.contractWrapper),this.estimator=new ks.GasCostEstimator(this.contractWrapper),this.events=new ks.ContractEvents(this.contractWrapper),this.sales=new ks.ContractPrimarySale(this.contractWrapper),this.platformFees=new ks.ContractPlatformFee(this.contractWrapper),this.interceptor=new ks.ContractInterceptor(this.contractWrapper),this.claimConditions=new ks.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await ks.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await ks.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ks.getRoleHash("transfer"),cun.constants.AddressZero)}async prepare(e,t,n){return ks.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};tu._defineProperty(_X,"contractRoles",["admin","transfer"]);e4t.TokenDrop=_X});var kBe=E((oLa,uun)=>{uun.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var SBe=E((cLa,lun)=>{lun.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var RBe=E(n4t=>{"use strict";f();d();var r4t=Es(),fun=Ao(),Ege=ke(),PBe=class{constructor(e,t){r4t._defineProperty(this,"events",void 0),r4t._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==Ege.constants.AddressZero&&(i in n||(n[i]=Ege.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==Ege.constants.AddressZero&&(s in n||(n[s]=Ege.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await fun.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};n4t.TokenERC20History=PBe});var i4t=E(a4t=>{"use strict";f();d();var Fc=Es(),Ss=Ao(),dun=RBe(),pun=Tge(),hun=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var TX=class extends pun.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ss.ContractWrapper(e,t,i,a);super(o,n,s),Fc._defineProperty(this,"abi",void 0),Fc._defineProperty(this,"metadata",void 0),Fc._defineProperty(this,"app",void 0),Fc._defineProperty(this,"roles",void 0),Fc._defineProperty(this,"encoder",void 0),Fc._defineProperty(this,"estimator",void 0),Fc._defineProperty(this,"history",void 0),Fc._defineProperty(this,"events",void 0),Fc._defineProperty(this,"platformFees",void 0),Fc._defineProperty(this,"sales",void 0),Fc._defineProperty(this,"signature",void 0),Fc._defineProperty(this,"interceptor",void 0),Fc._defineProperty(this,"mint",Ss.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),Fc._defineProperty(this,"mintTo",Ss.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),Fc._defineProperty(this,"mintBatchTo",Ss.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),Fc._defineProperty(this,"delegateTo",Ss.buildTransactionFunction(async c=>Ss.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Ss.resolveAddress(c)]}))),Fc._defineProperty(this,"burn",Ss.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),Fc._defineProperty(this,"burnFrom",Ss.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=Ss.AbiSchema.parse(i||[]),this.metadata=new Ss.ContractMetadata(this.contractWrapper,Ss.TokenErc20ContractSchema,this.storage),this.app=new Ss.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ss.ContractRoles(this.contractWrapper,TX.contractRoles),this.sales=new Ss.ContractPrimarySale(this.contractWrapper),this.events=new Ss.ContractEvents(this.contractWrapper),this.history=new dun.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Ss.ContractEncoder(this.contractWrapper),this.estimator=new Ss.GasCostEstimator(this.contractWrapper),this.platformFees=new Ss.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ss.ContractInterceptor(this.contractWrapper),this.signature=new Ss.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Ss.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ss.getRoleHash("transfer"),hun.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Ss.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Fc._defineProperty(TX,"contractRoles",["admin","minter","transfer"]);a4t.Token=TX});var MBe=E((mLa,mun)=>{mun.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var BBe=E(s4t=>{"use strict";f();d();var yun=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});s4t.VoteType=yun});var c4t=E(o4t=>{"use strict";f();d();var nd=Es(),bc=Ao(),bun=Ia(),Jse=ke(),DBe=BBe();Fr();fn();va();wa();xa();_a();Ta();Ea();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function gun(r){return r&&r.__esModule?r:{default:r}}var vun=gun(bun),NBe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new bc.ContractWrapper(e,t,s,i);nd._defineProperty(this,"contractWrapper",void 0),nd._defineProperty(this,"storage",void 0),nd._defineProperty(this,"abi",void 0),nd._defineProperty(this,"metadata",void 0),nd._defineProperty(this,"app",void 0),nd._defineProperty(this,"encoder",void 0),nd._defineProperty(this,"estimator",void 0),nd._defineProperty(this,"events",void 0),nd._defineProperty(this,"interceptor",void 0),nd._defineProperty(this,"_chainId",void 0),nd._defineProperty(this,"propose",bc.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let p=l.map(y=>y.toAddress),h=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return bc.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[p,h,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),nd._defineProperty(this,"vote",bc.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),bc.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,p]})})),nd._defineProperty(this,"execute",bc.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),p=l.executions.map(C=>C.toAddress),h=l.executions.map(C=>C.nativeTokenValue),m=l.executions.map(C=>C.transactionData),y=Jse.ethers.utils.id(l.description);return bc.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[p,h,m,y]})})),this._chainId=o,this.abi=bc.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new bc.ContractMetadata(this.contractWrapper,bc.VoteContractSchema,this.storage),this.app=new bc.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new bc.ContractEncoder(this.contractWrapper),this.estimator=new bc.GasCostEstimator(this.contractWrapper),this.events=new bc.ContractEvents(this.contractWrapper),this.interceptor=new bc.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(Jse.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:DBe.VoteType.Against,label:"Against",count:t.againstVotes},{type:DBe.VoteType.For,label:"For",count:t.forVotes},{type:DBe.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await bc.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=Jse.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:Jse.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new Jse.Contract(await bc.resolveAddress(e),vun.default,this.contractWrapper.getProvider());return await bc.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await bc.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return bc.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};o4t.Vote=NBe});var OBe=E((_La,wun)=>{wun.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"Empty",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"address",name:"proposer",type:"address"},{indexed:!1,internalType:"address[]",name:"targets",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"},{indexed:!1,internalType:"string[]",name:"signatures",type:"string[]"},{indexed:!1,internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{indexed:!1,internalType:"uint256",name:"startBlock",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endBlock",type:"uint256"},{indexed:!1,internalType:"string",name:"description",type:"string"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldProposalThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"ProposalThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldQuorumNumerator",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"QuorumNumeratorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"VoteCast",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"bytes",name:"params",type:"bytes"}],name:"VoteCastWithParams",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingDelay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"VotingDelaySet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"VotingPeriodSet",type:"event"},{inputs:[],name:"BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUNTING_MODE",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"EXTENDED_BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"}],name:"castVote",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"}],name:"castVoteWithReason",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"}],name:"castVoteWithReasonAndParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteWithReasonAndParamsBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"execute",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAllProposals",outputs:[{components:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"string[]",name:"signatures",type:"string[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],internalType:"struct VoteERC20.Proposal[]",name:"allProposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"params",type:"bytes"}],name:"getVotesWithParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"account",type:"address"}],name:"hasVoted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"hashProposal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_initialVotingDelay",type:"uint256"},{internalType:"uint256",name:"_initialVotingPeriod",type:"uint256"},{internalType:"uint256",name:"_initialProposalThreshold",type:"uint256"},{internalType:"uint256",name:"_initialVoteQuorumFraction",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalDeadline",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalSnapshot",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalVotes",outputs:[{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"abstainVotes",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"proposals",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"string",name:"description",type:"string"}],name:"propose",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumDenominator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"relay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"setProposalThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"setVotingDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"setVotingPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"state",outputs:[{internalType:"enum IGovernorUpgradeable.ProposalState",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IVotesUpgradeable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"updateQuorumNumerator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var l4t=E(u4t=>{"use strict";f();d();function xun(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function _un(r){var e=xun(r,"string");return typeof e=="symbol"?e:String(e)}function Tun(r,e,t){return e=_un(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}u4t._defineProperty=Tun});var qBe=E(LBe=>{"use strict";f();d();Object.defineProperty(LBe,"__esModule",{value:!0});var f4t=l4t(),FBe=ke(),Ige=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],d4t="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122021848ba6bc44b36a69178dfbcc49ad6f4ba35ff12408d3dd35eee774bfe7426964736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",Eun=r=>r.length>1,Zse=class extends FBe.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";f();d();var Iun=va(),J=ke(),Cun=wa(),Aun=xa(),kun=_a(),Sun=Ta(),Pun=Ea(),Run=Ia(),Mun=Ca(),Bun=Aa(),Dun=ka(),Nun=Sa(),Oun=Pa(),Fun=Ra(),Lun=Ma(),qun=Ba(),Wun=na(),Uun=Da(),Hun=Na(),jun=Oa(),zun=Fa(),Kun=La(),Gun=qa(),Vun=Wa(),$un=Ua(),Yun=Ha(),Qun=ja(),Jun=za(),Zun=Ka(),Xun=Ga(),eln=aa(),tln=Va(),rln=$a(),nln=Ya(),aln=Qa(),iln=Ja(),sln=Za(),oln=Xa(),cln=ei(),uln=ti(),lln=ri(),fln=ni(),dln=ai(),pln=ii(),hln=si(),mln=oi(),yln=ci(),Y=Es(),pe=fn(),Coe=Ct(),bln=ui(),gln=dt(),vln=Pn(),$4t=Xe(),wln=li(),Wg=la(),xln=On(),_ln=fi(),Tln=dt(),WBe=di(),Eln=pi(),Iln=Cn(),Cln=sa(),Aln=hi(),kln=mi(),Sln=yi(),Pln=bi(),Rln=gi(),Mln=vi(),p4t=oa(),Bln=wi(),Dln=xi();function qt(r){return r&&r.__esModule?r:{default:r}}function x0(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var UDe=qt(Iun),Nln=qt(Cun),Y4t=qt(Aun),Oln=qt(kun),Q4t=qt(Sun),J4t=qt(Pun),$u=qt(Run),Fln=qt(Mun),Z4t=qt(Bun),HDe=qt(Dun),Lln=qt(Nun),qln=qt(Oun),Wln=qt(Fun),X4t=qt(Lun),Uln=qt(qun),nu=qt(Wun),Hln=qt(Uun),jln=qt(Hun),Z6e=qt(jun),ext=qt(zun),zln=qt(Kun),Kln=qt(Gun),Gln=qt(Vun),Vln=qt($un),$ln=qt(Yun),Yln=qt(Qun),txt=qt(Jun),Qln=qt(Zun),Jln=qt(Xun),_l=qt(eln),Zln=qt(tln),rxt=qt(rln),Xln=qt(nln),efn=qt(aln),tfn=qt(iln),rfn=qt(sln),nfn=qt(oln),afn=qt(cln),ifn=qt(uln),sfn=qt(lln),ofn=qt(fln),cfn=qt(dln),ufn=qt(pln),lfn=qt(hln),ffn=qt(mln),dfn=qt(yln),pfn=qt(bln),Tb=qt(vln),YBe=qt($4t),nxt=qt(wln),Pt=qt(xln),hfn=qt(_ln),axt=qt(Eln),X6e=qt(Cln),mfn=qt(Aln),yfn=qt(kln),bfn=qt(Sln),gfn=qt(Pln),vfn=qt(Rln),wfn=qt(Mln),xfn=qt(Bln),_fn=qt(Dln);function Tfn(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function QBe(r,e,t){Tfn(r,e),e.set(r,t)}function Efn(r,e){return e.get?e.get.call(r):e.value}function ixt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function SX(r,e){var t=ixt(r,e,"get");return Efn(r,t)}function Ifn(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function JBe(r,e,t){var n=ixt(r,e,"set");return Ifn(r,n,t),t}var Je=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),e5e=[Je.Mainnet,Je.Goerli,Je.Polygon,Je.Mumbai,Je.Fantom,Je.FantomTestnet,Je.Avalanche,Je.AvalancheFujiTestnet,Je.Optimism,Je.OptimismGoerli,Je.Arbitrum,Je.ArbitrumGoerli,Je.BinanceSmartChainMainnet,Je.BinanceSmartChainTestnet,Je.Hardhat,Je.Localhost],ZBe=Coe.defaultChains;function sxt(r){r&&r.length>0?ZBe=r:ZBe=Coe.defaultChains}function oxt(){return ZBe}var cxt="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",qg="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",Fg="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",r3="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",Cfn="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",Afn="0xcdAD8FA86e18538aC207872E8ff3536501431B73",Ug={[Je.Mainnet]:{openzeppelinForwarder:qg,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:r3,twRegistry:Fg,twBYOCRegistry:J.constants.AddressZero},[Je.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:r3,twRegistry:Fg,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Je.Polygon]:{openzeppelinForwarder:qg,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:r3,twRegistry:Fg,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Je.Mumbai]:{openzeppelinForwarder:qg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:r3,twRegistry:Fg,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Je.Avalanche]:{openzeppelinForwarder:qg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:r3,twRegistry:Fg,twBYOCRegistry:J.constants.AddressZero},[Je.AvalancheFujiTestnet]:{openzeppelinForwarder:qg,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:r3,twRegistry:Fg,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Je.Fantom]:{openzeppelinForwarder:qg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:Fg,twBYOCRegistry:J.constants.AddressZero},[Je.FantomTestnet]:{openzeppelinForwarder:qg,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:r3,twRegistry:Fg,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Je.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Je.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Je.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Je.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:J.constants.AddressZero},[Je.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Je.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:J.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Je.Hardhat]:{openzeppelinForwarder:J.constants.AddressZero,openzeppelinForwarderEOA:J.constants.AddressZero,biconomyForwarder:J.constants.AddressZero,twFactory:J.constants.AddressZero,twRegistry:J.constants.AddressZero,twBYOCRegistry:J.constants.AddressZero},[Je.Localhost]:{openzeppelinForwarder:J.constants.AddressZero,openzeppelinForwarderEOA:J.constants.AddressZero,biconomyForwarder:J.constants.AddressZero,twFactory:J.constants.AddressZero,twRegistry:J.constants.AddressZero,twBYOCRegistry:J.constants.AddressZero}},XBe={[Je.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Je.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Je.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Je.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Je.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Je.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Je.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Je.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Je.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Je.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Je.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Je.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Je.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Je.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Je.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Je.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function uxt(r,e){if(r in XBe){let t=XBe[r];if(e in t)return t[e]}return null}function aoe(r,e){return r===Je.Hardhat||r===Je.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:J.constants.AddressZero:Ug[r]?.[e]}function lxt(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:Cfn}function eDe(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:Afn}function t5e(r){let e=e5e.find(a=>a===r),t=e?Ug[e].biconomyForwarder:J.constants.AddressZero;return[e?Ug[e].openzeppelinForwarder:J.constants.AddressZero,t].filter(a=>a!==J.constants.AddressZero)}var Aoe=J.utils.arrayify("0x80ac58cd"),koe=J.utils.arrayify("0xd9b67a26"),xl="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",ioe={[Je.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Je.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Je.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Je.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Je.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Je.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Je.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Je.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Je.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Je.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Je.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Je.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Je.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Je.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Je.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Je.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[84531]:{name:"Base Goerli Testnet",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}}};function jDe(r){let e=oxt().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:J.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:ioe[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:J.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var kfn={[Je.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Je.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Je.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Je.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Je.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Je.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Je.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Je.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Je.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},af=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function r5e(r){return!!(r&&r._isSigner)}function zDe(r){return!!(r&&r._isProvider)}function hs(r,e){let t,n;if(r5e(r)?(t=r,r.provider&&(n=r.provider)):zDe(r)?n=r:n=O1(r,e),e?.readonlySettings&&(n=Rge(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var fxt=50,dxt=250,Sfn={timeLimitMs:fxt,sizeLimit:dxt},Sge=class extends J.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sfn;super(e,t),Y._defineProperty(this,"_timeLimitMs",void 0),Y._defineProperty(this,"_sizeLimit",void 0),Y._defineProperty(this,"_pendingBatchAggregator",void 0),Y._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||dxt,this._sizeLimit=n.sizeLimit||fxt,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:J.utils.deepCopy(e),provider:this}),J.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.push(a),this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},UBe,HBe=new Map;async function pxt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;UBe||(UBe=hs("ethereum")[1]);let t;HBe.has(r)?t=HBe.get(r):t=UBe.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>pxt(r)).refine(r=>!!r&&J.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Jo=pe.z.union([pe.z.string(),pe.z.number(),pe.z.bigint(),pe.z.custom(r=>J.BigNumber.isBigNumber(r))]).transform(r=>J.BigNumber.from(r)),gc=Jo.transform(r=>r.toString()),hxt=pe.z.union([pe.z.bigint(),pe.z.custom(r=>J.BigNumber.isBigNumber(r))]).transform(r=>J.BigNumber.from(r).toString()),KDe=pe.z.custom(r=>typeof r=="string"&&J.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ps=pe.z.union([KDe,Pfn],{invalid_type_error:"Provided value was not a valid address or ENS name"}),Soe=pe.z.union([pe.z.date().transform(r=>J.BigNumber.from(Math.floor(r.getTime()/1e3))),pe.z.number().transform(r=>J.BigNumber.from(r))]),GDe=Soe.default(new Date(0)),Poe=Soe.default(new Date(Date.now()+1e3*60*60*24*365*10)),mxt=pe.z.object({gasLimit:gc.optional(),gasPrice:gc.optional(),maxFeePerGas:gc.optional(),maxPriorityFeePerGas:gc.optional(),nonce:gc.optional(),value:gc.optional(),blockTag:pe.z.union([pe.z.string(),pe.z.number()]).optional(),from:Ps.optional(),type:pe.z.number().optional()}).strict(),yxt=pe.z.object({rpc:pe.z.array(pe.z.string().url()),chainId:pe.z.number(),nativeCurrency:pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),slug:pe.z.string()}),tDe=pe.z.object({supportedChains:pe.z.array(yxt).default(Coe.defaultChains),thirdwebApiKey:pe.z.string().default(Y.DEFAULT_API_KEY),alchemyApiKey:pe.z.string().optional(),infuraApiKey:pe.z.string().optional(),readonlySettings:pe.z.object({rpcUrl:pe.z.string().url(),chainId:pe.z.number().optional()}).optional(),gasSettings:pe.z.object({maxPriceInGwei:pe.z.number().min(1,"gas price cannot be less than 1").default(300),speed:pe.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:pe.z.union([pe.z.object({openzeppelin:pe.z.object({relayerUrl:pe.z.string().url(),relayerForwarderAddress:pe.z.string().optional(),useEOAForwarder:pe.z.boolean().default(!1),domainName:pe.z.string().default("GSNv2 Forwarder"),domainVersion:pe.z.string().default("0.0.1")}),experimentalChainlessSupport:pe.z.boolean().default(!1)}),pe.z.object({biconomy:pe.z.object({apiId:pe.z.string(),apiKey:pe.z.string(),deadlineSeconds:pe.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:pe.z.array(pe.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),bxt=pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),gxt=bxt.extend({value:Jo,displayValue:pe.z.string()}),Sb=pe.z.object({merkle:pe.z.record(pe.z.string()).default({})}),Pge=pe.z.object({address:Ps,maxClaimable:Y.QuantitySchema.default(0),price:Y.QuantitySchema.optional(),currencyAddress:Ps.default(J.ethers.constants.AddressZero).optional()}),Roe=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>Pge.parseAsync({address:e})))),pe.z.array(Pge)]),VDe=Pge.extend({proof:pe.z.array(pe.z.string())}),$De=pe.z.object({merkleRoot:pe.z.string(),claims:pe.z.array(VDe)}),Rfn=pe.z.object({merkleRoot:pe.z.string(),snapshotUri:pe.z.string()}),vxt=pe.z.object({name:pe.z.string().optional()}).catchall(pe.z.unknown()),Moe=pe.z.object({startTime:GDe,currencyAddress:pe.z.string().default(xl),price:Y.AmountSchema.default(0),maxClaimableSupply:Y.QuantitySchema,maxClaimablePerWallet:Y.QuantitySchema,waitInSeconds:gc.default(0),merkleRootHash:Y.BytesLikeSchema.default(J.utils.hexZeroPad([0],32)),snapshot:pe.z.optional(Roe).nullable(),metadata:vxt.optional()}),wxt=pe.z.array(Moe),Mfn=Moe.partial(),YDe=Moe.extend({availableSupply:Y.QuantitySchema,currentMintSupply:Y.QuantitySchema,currencyMetadata:gxt.default({value:J.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Jo,waitInSeconds:Jo,startTime:Jo.transform(r=>new Date(r.toNumber()*1e3)),snapshot:Roe.optional().nullable()});function Bfn(r){if(r===void 0){let e=v.Buffer.alloc(16);return Iln.v4({},e),J.utils.hexlify(J.utils.toUtf8Bytes(e.toString("hex")))}else return J.utils.hexlify(r)}var n5e=pe.z.object({to:Ps.refine(r=>r.toLowerCase()!==J.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:Y.AmountSchema.default(0),currencyAddress:KDe.default(xl),mintStartTime:GDe,mintEndTime:Poe,uid:pe.z.string().optional().transform(r=>Bfn(r)),primarySaleRecipient:Ps.default(J.constants.AddressZero)}),QDe=n5e.extend({quantity:Y.AmountSchema}),xxt=QDe.extend({mintStartTime:Jo,mintEndTime:Jo}),a5e=n5e.extend({metadata:Y.NFTInputOrUriSchema,royaltyRecipient:pe.z.string().default(J.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0)}),JDe=a5e.extend({metadata:Y.NFTInputOrUriSchema.default(""),uri:pe.z.string(),royaltyBps:Jo,mintStartTime:Jo,mintEndTime:Jo}),_xt=a5e.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:gc}),Txt=_xt.extend({tokenId:gc}),Ext=JDe.extend({tokenId:Jo,quantity:Jo}),Ixt=a5e.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Jo.default(1)}),Cxt=JDe.extend({quantity:Jo.default(1)}),Axt=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],kxt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Sxt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Pxt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Rxt=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],cf=pe.z.object({name:pe.z.string(),description:pe.z.string().optional(),image:Y.FileOrBufferOrStringSchema.optional(),external_link:pe.z.string().optional(),app_uri:pe.z.string().optional()}),sd=cf.extend({image:pe.z.string().optional()}).catchall(pe.z.unknown()),w0=pe.z.object({seller_fee_basis_points:Y.BasisPointsSchema.default(0),fee_recipient:Ps.default(J.constants.AddressZero)}),zg=pe.z.object({primary_sale_recipient:Ps}),Sp=pe.z.object({platform_fee_basis_points:Y.BasisPointsSchema.default(0),platform_fee_recipient:Ps.default(J.constants.AddressZero)}),od=pe.z.object({trusted_forwarders:pe.z.array(Ps).default([])}),Wc=pe.z.object({symbol:pe.z.string().default("")}),Mxt=cf.merge(w0).merge(Sb).merge(Wc),Dfn=sd.merge(w0).merge(Sb).merge(Wc),Nfn=Mxt.merge(Sp).merge(zg).merge(od),ZDe={deploy:Nfn,output:Dfn,input:Mxt},Bxt=cf.merge(w0).merge(Sb).merge(Wc),Ofn=sd.merge(w0).merge(Sb).merge(Wc),Ffn=Bxt.merge(Sp).merge(zg).merge(od),Dxt={deploy:Ffn,output:Ofn,input:Bxt},Nxt=cf,Lfn=sd,qfn=Nxt.merge(Sp).merge(od),XDe={deploy:qfn,output:Lfn,input:Nxt},Oxt=cf.merge(w0).merge(Wc),Wfn=sd.merge(w0).merge(Wc),Ufn=Oxt.merge(Sp).merge(od),Fxt={deploy:Ufn,output:Wfn,input:Oxt},Lxt=pe.z.object({address:Ps,sharesBps:Y.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),Hfn=Lxt.extend({address:Ps,sharesBps:Y.BasisPointsSchema}),rDe=cf.extend({recipients:pe.z.array(Lxt).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),jfn=sd.extend({recipients:pe.z.array(Hfn)}),zfn=rDe.merge(rDe).merge(od),qxt={deploy:zfn,output:jfn,input:rDe},Wxt=cf.merge(Wc),Kfn=sd.merge(Wc),Gfn=Wxt.merge(Sp).merge(zg).merge(od),Uxt={deploy:Gfn,output:Kfn,input:Wxt},Hxt=cf.merge(w0).merge(Wc),Vfn=sd.merge(w0).merge(Wc),$fn=Hxt.merge(Sp).merge(zg).merge(od),jxt={deploy:$fn,output:Vfn,input:Hxt},zxt=cf.merge(w0).merge(Wc),Yfn=sd.merge(w0).merge(Wc),Qfn=zxt.merge(Sp).merge(zg).merge(od),Kxt={deploy:Qfn,output:Yfn,input:zxt},Gxt=pe.z.object({voting_delay_in_blocks:pe.z.number().min(0).default(0),voting_period_in_blocks:pe.z.number().min(1).default(1),voting_token_address:Ps,voting_quorum_fraction:Y.PercentSchema.default(0),proposal_token_threshold:gc.default(1)}),Jfn=Gxt.extend({proposal_token_threshold:Jo}),Vxt=cf.merge(Gxt),Zfn=sd.merge(Jfn),Xfn=Vxt.merge(od),$xt={deploy:Xfn,output:Zfn,input:Vxt};pe.z.object({proposalId:Jo,proposer:pe.z.string(),targets:pe.z.array(pe.z.string()),values:pe.z.array(Jo),signatures:pe.z.array(pe.z.string()),calldatas:pe.z.array(pe.z.string()),startBlock:Jo,endBlock:Jo,description:pe.z.string()});function edn(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function O1(r,e){if(typeof r=="string"&&tdn(r))return Rge(r);let t=tDe.parse(e);i5e(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=edn(t),a="",i;try{i=Yxt(r,t),a=Coe.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||Y.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||Y.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return Rge(a,i)}function Yxt(r,e){if(i5e(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function i5e(r){return typeof r!="string"&&typeof r!="number"&&!r5e(r)&&!zDe(r)}function tdn(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var h4t=new Map;function Rge(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=h4t.get(n);if(a)return a;let i=e?new Sge(r,e):new J.providers.JsonRpcBatchProvider(r);return h4t.set(n,i),i;case"ws":case"wss":return new J.providers.WebSocketProvider(r,e)}}catch{}return J.providers.getDefaultProvider(r)}var soe=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},nDe=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},Mge=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},aDe=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},iDe=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},sDe=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},oDe=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},cDe=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},uDe=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},lDe=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},fDe=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),Y._defineProperty(this,"innerError",void 0),this.innerError=t}},Bge=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},dDe=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},pDe=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},hDe=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},mDe=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},yDe=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},bDe=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},RX=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},Eb=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},jBe=new WeakMap,zBe=new WeakMap,DX=class extends Error{constructor(e){let t=` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 @@ -94,7 +94,7 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=Ng("from",e.from),e.to&&(t+=Ng("to",e.contractName?`${e.to} (${e.contractName})`:e.to)),t+=Ng("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=Ng("rpc",n.hostname)}catch{}if(e.hash&&(t+=Ng("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=Ng("value",`${J.ethers.utils.formatEther(e.value)} ${FX[e.network.chainId]?.symbol||""}`)),t+=Ng("data",`${e.data}`),e.method&&(t+=Ng("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` +`,t+=Lg("from",e.from),e.to&&(t+=Lg("to",e.contractName?`${e.to} (${e.contractName})`:e.to)),t+=Lg("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=Lg("rpc",n.hostname)}catch{}if(e.hash&&(t+=Lg("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=Lg("value",`${J.ethers.utils.formatEther(e.value)} ${ioe[e.network.chainId]?.symbol||""}`)),t+=Lg("data",`${e.data}`),e.method&&(t+=Lg("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` `).map((o,c)=>`${c+1} ${o}`),i=a.findIndex(o=>o.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` @@ -114,76 +114,76 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres `,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` -`,super(t),DIe(this,SIe,{writable:!0,value:void 0}),DIe(this,RIe,{writable:!0,value:void 0}),LIe(this,SIe,e.reason),LIe(this,RIe,e)}get reason(){return ipe(this,SIe)}get info(){return ipe(this,RIe)}};function Nhe(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),$ct(/.*?"message":"([^"\\]*).*?/,e)||$ct(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function Ng(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` +`,super(t),QBe(this,jBe,{writable:!0,value:void 0}),QBe(this,zBe,{writable:!0,value:void 0}),JBe(this,jBe,e.reason),JBe(this,zBe,e)}get reason(){return SX(this,jBe)}get info(){return SX(this,zBe)}};function s5e(r){if(r.reason&&!r.reason.includes("cannot estimate gas"))return r.reason;if(r.error)return r.error;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),m4t(/.*?"message":"([^"\\]*).*?/,e)||m4t(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function Lg(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` `)?e=` `+e.split(` `).join(` `):e=`${t}${e}`,` -${r}:${e}`}function $ct(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function HX(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Alt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Plt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],Slt=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],vV={},Qct={};async function dpe(r,e,t){let n=t.join("|"),a=Qct[n],i=Date.now()-a>=2e3;if(!(n in vV)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?vV[n]=J.BigNumber.from(o[0]):vV[n]=J.BigNumber.from(o),Qct[n]=Date.now()}let s=vV[n];return vV[n]=J.BigNumber.from(vV[n]).add(1),s}function tNr(r){switch(r){case Ne.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Ne.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var rNr=J.ethers.utils.parseUnits("31","gwei"),nNr=J.ethers.utils.parseUnits("1","gwei");function aNr(r){switch(r){case Ne.Polygon:return rNr;case Ne.Mumbai:return nNr}}async function Rlt(r){let e=tNr(r);try{let n=(await(await OX.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return J.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return aNr(r)}async function jX(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=J.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:J.utils.joinSignature(J.utils.splitSignature(s))}}var iNr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],sNr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],oNr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function cNr(r,e){let t=new J.Contract(e,oNr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function uNr(r,e){let t=new J.Contract(e,sNr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function lNr(r,e){return new J.Contract(e,iNr,r).name()}async function dNr(r,e){let t=await uNr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:J.ethers.utils.hexZeroPad(J.BigNumber.from(e.chainId).toHexString(),32)};return J.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function Mlt(r,e,t,n,a,i,s){let o=await dNr(r,{name:await lNr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await cNr(r,e)).toString(),i=i||J.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await jX(r,o,u,c);return{message:c,signature:l}}var OEe=()=>typeof window<"u",Nlt=()=>!OEe();function pNr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),Y._defineProperty(this,"writeContract",void 0),Y._defineProperty(this,"readContract",void 0),Y._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new J.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),LIe(this,tpe,new Dg.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(OEe())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:J.ethers.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await Rlt(n):s=J.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=J.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=J.ethers.utils.parseUnits(n.toString(),"gwei"),o=J.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=J.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=J.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(xl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=n?await Vut.parseAsync(n):void 0,i=SV(Gi.parse(this.abi)).filter(u=>u.name===e);if(!i.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let s=i.find(u=>u.name===e&&u.inputs.length===t.length);if(!s)throw new Error(`Function "${e}" requires ${i[0].inputs.length} arguments, but ${t.length} were provided. -Expected function signature: ${i[0].signature}`);let o=`${e}(${s.inputs.map(u=>u.type).join()})`,c=o in this.readContract.functions?o:e;return s.stateMutability==="view"||s.stateMutability==="pure"?this.readContract[c](...t):{receipt:await this.sendTransaction(c,t,a)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>J.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=J.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` +${r}:${e}`}function m4t(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function ooe(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Qxt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Jxt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],Zxt=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],EX={},y4t={};async function Dge(r,e,t){let n=t.join("|"),a=y4t[n],i=Date.now()-a>=2e3;if(!(n in EX)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?EX[n]=J.BigNumber.from(o[0]):EX[n]=J.BigNumber.from(o),y4t[n]=Date.now()}let s=EX[n];return EX[n]=J.BigNumber.from(EX[n]).add(1),s}function rdn(r){switch(r){case Je.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Je.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var ndn=J.ethers.utils.parseUnits("31","gwei"),adn=J.ethers.utils.parseUnits("1","gwei");function idn(r){switch(r){case Je.Polygon:return ndn;case Je.Mumbai:return adn}}async function Xxt(r){let e=rdn(r);try{let n=(await(await Tb.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return J.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return idn(r)}async function coe(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=J.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:J.utils.joinSignature(J.utils.splitSignature(s))}}var sdn=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],odn=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],cdn=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function udn(r,e){let t=new J.Contract(e,cdn,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function ldn(r,e){let t=new J.Contract(e,odn,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function fdn(r,e){return new J.Contract(e,sdn,r).name()}async function ddn(r,e){let t=await ldn(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:J.ethers.utils.hexZeroPad(J.BigNumber.from(e.chainId).toHexString(),32)};return J.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function e_t(r,e,t,n,a,i,s){let o=await ddn(r,{name:await fdn(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await udn(r,e)).toString(),i=i||J.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await coe(r,o,u,c);return{message:c,signature:l}}var eNe=()=>typeof window<"u",t_t=()=>!eNe();function pdn(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),Y._defineProperty(this,"writeContract",void 0),Y._defineProperty(this,"readContract",void 0),Y._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new J.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),JBe(this,IX,new Wg.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(eNe())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:J.ethers.utils.parseUnits("1","gwei"),s;n===Je.Mumbai||n===Je.Polygon?s=await Xxt(n):s=J.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=J.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=J.ethers.utils.parseUnits(n.toString(),"gwei"),o=J.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=J.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=J.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(af.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=n?await mxt.parseAsync(n):void 0,i=LX(Rs.parse(this.abi)).filter(u=>u.name===e);if(!i.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let s=i.find(u=>u.name===e&&u.inputs.length===t.length);if(!s)throw new Error(`Function "${e}" requires ${i[0].inputs.length} arguments, but ${t.length} were provided. +Expected function signature: ${i[0].signature}`);let o=`${e}(${s.inputs.map(u=>u.type).join()})`,c=o in this.readContract.functions?o:e;return s.stateMutability==="view"||s.stateMutability==="pure"?this.readContract[c](...t):{receipt:await this.sendTransaction(c,t,a)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>J.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=J.BigNumber.from(a.value||0),p=i.connection?.url,h=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` `+m.map(W=>" "+W.split(` `).join(` `)).join(`, `)+` -`,I=`${f.name}(${y})`,C=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,R=Nhe(e),L,F;try{let W=await B0(this.readContract.address,this.getProvider(),ipe(this,tpe));W.name&&(F=W.name),W.metadata.sources&&(L=await Ohe(W,ipe(this,tpe)))}catch{}return new CV({reason:R,from:o,to:c,method:I,data:u,network:s,rpcUrl:h,value:l,hash:C,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();_t.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(J.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=J.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=J.BigNumber.from(5e5)),n.gasLimit&&J.BigNumber.from(n.gasLimit).gt(l)&&(l=J.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(xl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await jX(e,t,n,a);return this.emit(xl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){_t.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();_t.default(t&&n,"signer and provider must be set");let a=new J.ethers.Contract(qX(e.chainId,"biconomyForwarder"),Slt,n),i=0,s=await dpe(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:J.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=J.ethers.utils.arrayify(J.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,J.ethers.utils.keccak256(o.data)]));this.emit(xl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(xl.Signature,{status:"completed",message:c,signature:u});let l=await OX.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){_t.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();_t.default(t,"provider is not set"),_t.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?Lg[e.chainId].openzeppelinForwarderEOA:Lg[e.chainId].openzeppelinForwarder),i=new J.Contract(a,But.default,n),s=await dpe(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:Plt},u={from:e.from,to:e.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(e.gasLimit).toString(),nonce:J.BigNumber.from(s).toString(),data:e.data,chainid:J.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:Alt},u={from:e.from,to:e.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(e.gasLimit).toString(),nonce:J.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(xl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],I=e.functionArgs[1],{message:C,signature:R}=await Mlt(t,this.writeContract.address,e.from,y,I),{r:L,s:F,v:W}=J.ethers.utils.splitSignature(R);u={to:this.readContract.address,owner:C.owner,spender:C.spender,value:J.BigNumber.from(C.value).toString(),nonce:J.BigNumber.from(C.nonce).toString(),deadline:J.BigNumber.from(C.deadline).toString(),r:L,s:F,v:W},l=R}else{let{signature:y}=await jX(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(xl.Signature,{status:"completed",message:u,signature:l});let m=await OX.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Bh(r){return r.toLowerCase()===Hu||r.toLowerCase()===J.constants.AddressZero}function ppe(r){return Bh(r)?Hu:r}async function Tc(r,e,t){let n=await LV(r,t);return J.utils.parseUnits(Y.AmountSchema.parse(e),n.decimals)}async function LV(r,e){if(Bh(e)){let t=await r.getNetwork(),n=spe(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new J.Contract(e,hMr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function yp(r,e,t){let n=await LV(r,e);return{...n,value:J.BigNumber.from(t),displayValue:J.utils.formatUnits(t,n.decimals)}}async function S0(r,e,t,n){if(Bh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new ks(a||i,t,bu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function qEe(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new ks(i||s,e,bu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=J.BigNumber.from(t).mul(J.BigNumber.from(n)).div(J.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function hNr(r,e,t){let n=r.getProvider(),a=new ks(n,e,bu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function fNr(r,e){let t=await r.readContract.decimals();return J.utils.parseUnits(Y.AmountSchema.parse(e),t)}function mNr(r){return J.utils.formatEther(r)}function yNr(r){return J.utils.parseEther(Y.AmountSchema.parse(r))}function gNr(r,e){return J.utils.parseUnits(Y.AmountSchema.parse(r),e)}function bNr(r,e){return J.utils.formatUnits(r,e)}async function Blt(r,e,t,n,a,i,s,o,c){let u=am(t.maxClaimablePerWallet,a),l=[J.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(J.constants.AddressZero)){let C=await Bhe(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(C)l=C.proof,u=C.maxClaimable==="unlimited"?J.ethers.constants.MaxUint256:J.ethers.utils.parseUnits(C.maxClaimable,a),h=C.price===void 0||C.price==="unlimited"?J.ethers.constants.MaxUint256:await Tc(i.getProvider(),C.price,C.currencyAddress||J.ethers.constants.AddressZero),f=C.currencyAddress||J.ethers.constants.AddressZero;else if(c===I2.V1)throw new Error("No claim found for this address")}}catch(C){if(C?.message==="No claim found for this address")throw C;console.warn("failed to check claim condition merkle root hash, continuing anyways",C)}let m=await i.getCallOverrides()||{},y=h.toString()!==J.ethers.constants.MaxUint256.toString()?h:t.price,I=f!==J.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(Bh(I)?m.value=J.BigNumber.from(y).mul(e).div(J.ethers.utils.parseUnits("1",a)):o&&await qEe(i,I,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:I,priceInProof:h,currencyAddressInProof:f}}async function vNr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await wl.fromUri(n,t))?.getAllEntries()||null;{let i=await REe.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function Bhe(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await wl.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await REe.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function Dlt(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=J.ethers.utils.formatUnits(a,n),s=await dee.parseAsync({...t[r],price:i,...e}),o=await MEe.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=J.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function wNr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await qlt(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=J.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function xNr(r,e){let t=J.BigNumber.from(r),n=J.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function Llt(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await wNr(r,e,t,n,a),o=await Zut.parseAsync(i),c=(await Promise.all(o.map(u=>_Nr(u,e,t,n)))).sort((u,l)=>xNr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function _Nr(r,e,t,n){let a=r.currencyAddress===J.constants.AddressZero?Hu:r.currencyAddress,i=am(r.maxClaimableSupply,e),s=am(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await Tc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function hpe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function fpe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function mpe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function ype(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function gpe(r,e,t,n,a,i){let s=await yp(t,r.currency,r.pricePerToken),o=MX(r.maxClaimableSupply,e),c=MX(r.maxClaimablePerWallet,e),u=MX(J.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=MX(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),MEe.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:J.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await vNr(r.merkleRoot,n,a):void 0,metadata:h})}function MX(r,e){return r.toString()===J.ethers.constants.MaxUint256.toString()?"unlimited":J.ethers.utils.formatUnits(r,e)}function am(r,e){return r==="unlimited"?J.ethers.constants.MaxUint256:J.ethers.utils.parseUnits(r,e)}async function Olt(r,e,t,n,a){let i={},s=n||Hu,c=(await Tc(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Hu?i={value:c}:s!==Hu&&a&&await qEe(r,s,c,t,0)),i}var TNr=2,I2=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),wl=class{constructor(e,t,n,a,i){Y._defineProperty(this,"shardNybbles",void 0),Y._defineProperty(this,"shards",void 0),Y._defineProperty(this,"trees",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"baseUri",void 0),Y._defineProperty(this,"originalEntriesUri",void 0),Y._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return wl.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new wl(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case I2.V1:return J.utils.solidityKeccak256(["address","uint256"],[e.address,am(e.maxClaimable,t)]);case I2.V2:return J.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,am(e.maxClaimable,t),am(e.price||"unlimited",n),e.currencyAddress||J.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await LV(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:TNr,o=await lee.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,V]=F;return[W,new kIe.MerkleTree(await Promise.all(V.map(async K=>{let H=await wl.fetchAndCacheDecimals(u,n,K.currencyAddress);return wl.hashEntry(K,t,H,i)})),J.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new kIe.MerkleTree(Object.values(h),J.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let V={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${F}.json`})}let y=await a.uploadBatch(m),I=y[0].slice(0,y[0].lastIndexOf("/")),C=await a.upload(o),R={merkleRoot:f.getHexRoot(),baseUri:I,originalEntriesUri:C,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(R);return{shardedMerkleInfo:R,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await wl.fetchAndCacheDecimals(s,t,f.currencyAddress);return wl.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new kIe.MerkleTree(h,J.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await wl.fetchAndCacheDecimals(s,t,o.currencyAddress),u=wl.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return SEe.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function qlt(r,e,t,n,a){let i=await lee.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(Glt(),this?this.decode(e,t):AV.prototype.decode.call(mut,e,t)));x2=t>-1?t:e.length,Ee=0,XX=0,Upe=null,mo=null,Ze=e;try{Uu=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Ze=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof AV){if(Vr=this,_l=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return us=this.structures,yut();(!us||us.length>0)&&(us=[])}else Vr=mut,(!us||us.length>0)&&(us=[]),_l=null;return yut()}};function yut(){try{let r=vn();if(mo){if(Ee>=mo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ee=mo.postBundlePosition,mo=null}if(Ee==x2)us=null,Ze=null,kh&&(kh=null);else if(Ee>x2){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!cEe)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw Glt(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function vn(){let r=Ze[Ee++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Ze[Ee++];break;case 25:if(e==7)return BNr();r=Uu.getUint16(Ee),Ee+=2;break;case 26:if(e==7){let t=Uu.getFloat32(Ee);if(Vr.useFloat32>2){let n=Vlt[(Ze[Ee]&127)<<1|Ze[Ee+1]>>7];return Ee+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ee+=4,t}r=Uu.getUint32(Ee),Ee+=4;break;case 27:if(e==7){let t=Uu.getFloat64(Ee);return Ee+=8,t}if(e>1){if(Uu.getUint32(Ee)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Uu.getUint32(Ee+4)}else Vr.int64AsNumber?(r=Uu.getUint32(Ee)*4294967296,r+=Uu.getUint32(Ee+4)):r=Uu.getBigUint64(Ee);Ee+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=vn())!=wV;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if(Vr.mapsAsObjects){let s={};if(Vr.keyMap)for(;(i=vn())!=wV;)s[im(Vr.decodeKey(i))]=vn();else for(;(i=vn())!=wV;)s[im(i)]=vn();return s}else{NX&&(Vr.mapsAsObjects=!0,NX=!1);let s=new Map;if(Vr.keyMap)for(;(i=vn())!=wV;)s.set(Vr.decodeKey(i),vn());else for(;(i=vn())!=wV;)s.set(i,vn());return s}case 7:return wV;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return NNr(r);case 3:if(XX>=Ee)return Upe.slice(Ee-Hpe,(Ee+=r)-Hpe);if(XX==0&&x2<140&&r<32){let a=r<16?Hlt(r):MNr(r);if(a!=null)return a}return RNr(r);case 4:let t=new Array(r);for(let a=0;a=hut){let a=us[r&8191];if(a)return a.read||(a.read=uEe(a)),a.read();if(r<65536){if(r==SNr)return dEe(vn());if(r==PNr){let i=BX(),s=vn();for(let o=2;o23)switch(t){case 24:t=Ze[Ee++];break;case 25:t=Uu.getUint16(Ee),Ee+=2;break;case 26:t=Uu.getUint32(Ee),Ee+=4;break;default:throw new Error("Expected array header, but got "+Ze[Ee-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(vn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Vr.keyMap?new Function("r","return {"+i.map(s=>Vr.decodeKey(s)).map(s=>gut.test(s)?im(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>gut.test(s)?im(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(vn)}let a={};if(Vr.keyMap)for(let i=0;i64&&sEe)return sEe.decode(Ze.subarray(Ee,Ee+=r));let t=Ee+r,n=[];for(e="";Ee65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=zo.apply(String,n),n.length=0)}return n.length>0&&(e+=zo.apply(String,n)),e}var zo=String.fromCharCode;function MNr(r){let e=Ee,t=new Array(r);for(let n=0;n0){Ee=e;return}t[n]=a}return zo.apply(String,t)}function Hlt(r){if(r<4)if(r<2){if(r===0)return"";{let e=Ze[Ee++];if((e&128)>1){Ee-=1;return}return zo(e)}}else{let e=Ze[Ee++],t=Ze[Ee++];if((e&128)>0||(t&128)>0){Ee-=2;return}if(r<3)return zo(e,t);let n=Ze[Ee++];if((n&128)>0){Ee-=3;return}return zo(e,t,n)}else{let e=Ze[Ee++],t=Ze[Ee++],n=Ze[Ee++],a=Ze[Ee++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ee-=4;return}if(r<6){if(r===4)return zo(e,t,n,a);{let i=Ze[Ee++];if((i&128)>0){Ee-=5;return}return zo(e,t,n,a,i)}}else if(r<8){let i=Ze[Ee++],s=Ze[Ee++];if((i&128)>0||(s&128)>0){Ee-=6;return}if(r<7)return zo(e,t,n,a,i,s);let o=Ze[Ee++];if((o&128)>0){Ee-=7;return}return zo(e,t,n,a,i,s,o)}else{let i=Ze[Ee++],s=Ze[Ee++],o=Ze[Ee++],c=Ze[Ee++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ee-=8;return}if(r<10){if(r===8)return zo(e,t,n,a,i,s,o,c);{let u=Ze[Ee++];if((u&128)>0){Ee-=9;return}return zo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Ze[Ee++],l=Ze[Ee++];if((u&128)>0||(l&128)>0){Ee-=10;return}if(r<11)return zo(e,t,n,a,i,s,o,c,u,l);let h=Ze[Ee++];if((h&128)>0){Ee-=11;return}return zo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Ze[Ee++],l=Ze[Ee++],h=Ze[Ee++],f=Ze[Ee++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ee-=12;return}if(r<14){if(r===12)return zo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Ze[Ee++];if((m&128)>0){Ee-=13;return}return zo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Ze[Ee++],y=Ze[Ee++];if((m&128)>0||(y&128)>0){Ee-=14;return}if(r<15)return zo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let I=Ze[Ee++];if((I&128)>0){Ee-=15;return}return zo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,I)}}}}}function NNr(r){return Vr.copyBuffers?Uint8Array.prototype.slice.call(Ze,Ee,Ee+=r):Ze.subarray(Ee,Ee+=r)}var jlt=new Float32Array(1),rpe=new Uint8Array(jlt.buffer,0,4);function BNr(){let r=Ze[Ee++],e=Ze[Ee++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return rpe[3]=r&128|(t>>1)+56,rpe[2]=(r&7)<<5|e>>3,rpe[1]=e<<5,rpe[0]=0,jlt[0]}var PV=class{constructor(e,t){this.value=e,this.tag=t}};Ki[0]=r=>new Date(r);Ki[1]=r=>new Date(Math.round(r*1e3));Ki[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-Ki[2](r);Ki[4]=r=>Number(r[1]+"e"+r[0]);Ki[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var dEe=r=>{let e=r[0]-57344,t=r[1],n=us[e];n&&n.isShared&&((us.restoreStructures||(us.restoreStructures=[]))[e]=n),us[e]=t,t.read=uEe(t);let a={};if(Vr.keyMap)for(let i=2,s=r.length;imo?mo[0].slice(mo.position0,mo.position0+=r):new PV(r,14);Ki[15]=r=>mo?mo[1].slice(mo.position1,mo.position1+=r):new PV(r,15);var DNr={Error,RegExp};Ki[27]=r=>(DNr[r[0]]||Error)(r[1],r[2]);var zlt=r=>{if(Ze[Ee++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return _l=_l?e.concat(_l.slice(e.length)):e,_l.prefixes=r(),_l.suffixes=r(),r()};zlt.handlesRead=!0;Ki[51]=zlt;Ki[fut]=r=>{if(!_l)if(Vr.getShared)WEe();else return new PV(r,fut);if(typeof r=="number")return _l[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};Ki[25]=r=>stringRefs[r];Ki[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};Ki[256].handlesRead=!0;Ki[28]=r=>{kh||(kh=new Map,kh.id=0);let e=kh.id++,t=Ze[Ee],n;t>>5==4?n=[]:n={};let a={target:n};kh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};Ki[28].handlesRead=!0;Ki[29]=r=>{let e=kh.get(r);return e.used=!0,e.target};Ki[258]=r=>new Set(r);(Ki[259]=r=>(Vr.mapsAsObjects&&(Vr.mapsAsObjects=!1,NX=!0),r())).handlesRead=!0;function xV(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function g2(){if(!_l)if(Vr.getShared)WEe();else throw new Error("No packed values available");return _l}var LNr=1399353956;oEe.push((r,e)=>{if(r>=225&&r<=255)return xV(g2().prefixes[r-224],e);if(r>=28704&&r<=32767)return xV(g2().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return xV(g2().prefixes[r-1879048192],e);if(r>=216&&r<=223)return xV(e,g2().suffixes[r-216]);if(r>=27647&&r<=28671)return xV(e,g2().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return xV(e,g2().suffixes[r-1811939328]);if(r==LNr)return{packedValues:_l,structures:us.slice(0),version:e};if(r==55799)return e});var ONr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,but=[Uint8Array],qNr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Ze[Ee++];break;case 25:r=Uu.getUint16(Ee),Ee+=2;break;case 26:r=Uu.getUint32(Ee),Ee+=4;break}return r}function WEe(){if(Vr.getShared){let r=Klt(()=>(Ze=null,Vr.getShared()))||{},e=r.structures||[];Vr.sharedVersion=r.version,_l=Vr.sharedValues=r.packedValues,us===!0?Vr.structures=us=e:us.splice.apply(us,[0,e.length].concat(e))}}function Klt(r){let e=x2,t=Ee,n=Hpe,a=XX,i=Upe,s=kh,o=mo,c=new Uint8Array(Ze.slice(0,x2)),u=us,l=Vr,h=cEe,f=r();return x2=e,Ee=t,Hpe=n,XX=a,Upe=i,kh=s,mo=o,Ze=c,cEe=h,us=u,Vr=l,Uu=new DataView(Ze.buffer,Ze.byteOffset,Ze.byteLength),f}function Glt(){Ze=null,kh=null,us=null}var Vlt=new Array(147);for(let r=0;r<256;r++)Vlt[r]=Number("1e"+Math.floor(45.15-r*.30103));var UNr=new AV({useRecords:!1}),HNr=UNr.decode;function jNr(r,e){return UEe(r,e.abis)}function zNr(r,e){return UEe(Gi.parse(r.abi||[]),[e])}function UEe(r,e){let t=SV(r),n=e.flatMap(i=>SV(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function Ylt(r,e){let t=await RV(r,e);return HEe(t.abi)}async function $lt(r,e){let t=await RV(r,e);return SV(t.abi,t.metadata)}function Qlt(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function HEe(r){let e=Gi.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function Jlt(r,e){let t=Gi.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function SV(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=Qlt(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${pEe(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>pEe(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function Zlt(r,e){let n=Gi.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=Qlt(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function pEe(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>pEe(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function Xlt(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function eee(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=Xlt(t);if(n)return await eee(n,e)}catch{}try{let n=await e.getStorageAt(r,J.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=J.ethers.utils.hexStripZeros(n);if(a!=="0x")return await eee(a,e)}catch{}return await edt(t)}function edt(r){let e=KNr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=HNr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${pMr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function KNr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!GNr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:kNr,t={};for(let n in e){let a=e[n],i=jNr(r,a),s=pee(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function KEe(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),KEe(n.features,e)}}function VNr(r){let e=[];return KEe(pee(r),e),e}function hEe(r){let e=[];return KEe(pee(r),e),e.map(t=>t.name)}function MV(r,e){let t=Gi.parse(r||[]),n=pee(t);return tdt(n,e)}function Xt(r,e){if(!r)throw new P0(e);return r}function Ye(r,e){return MV(Gi.parse(r.abi),e)}function tdt(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=tdt(s.features,e),a)break}return a}return r[e].enabled}function fo(r,e){return r in e.readContract.functions}async function jpe(r,e,t,n,a){let i=[];try{let s=MV(Gi.parse(e),"PluginRouter");if(MV(Gi.parse(e),"ExtensionRouter")){let l=(await new ks(t,r,Ult,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await vut(l,t,a)}else if(s){let l=(await new ks(t,r,Wlt,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await vut(h,t,a)}}catch{}return i.length>0?$Nr([e,...i]):e}function YNr(r){let e=MV(Gi.parse(r),"PluginRouter");return MV(Gi.parse(r),"ExtensionRouter")||e}async function vut(r,e,t){return(await Promise.all(r.map(n=>B0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function $Nr(r){let e=r.map(a=>Gi.parse(a)).flat(),n=pNr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Gi.parse(n)}var zpe=class{constructor(e){Y._defineProperty(this,"args",void 0),Y._defineProperty(this,"overrides",void 0),Y._defineProperty(this,"provider",void 0),Y._defineProperty(this,"signer",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"gasMultiple",void 0),this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.storage=e.storage||new Dg.ThirdwebStorage,this.signer.provider||(this.signer=this.signer.connect(this.provider))}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGasLimitMultiple(e){J.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=J.BigNumber.from(Math.floor(J.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:J.utils.formatEther(n),wei:n}}async getGasPrice(){let e=await this.provider.getGasPrice(),t=J.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}async getSignerAddress(){return this.signer.getAddress()}async getGasOverrides(){if(OEe())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:J.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await Rlt(n):s=J.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=J.utils.parseUnits("300","gwei"),i=J.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}},De=class extends zpe{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new De(n)}static async fromContractInfo(e){let t=e.storage||new Dg.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await B0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new J.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new De(i)}constructor(e){super({args:e.args,overrides:e.overrides,provider:e.provider,signer:e.signer,storage:e.storage}),Y._defineProperty(this,"method",void 0),Y._defineProperty(this,"contract",void 0),Y._defineProperty(this,"gaslessOptions",void 0),Y._defineProperty(this,"parse",void 0),this.method=e.method,this.gaslessOptions=e.gasless,this.parse=e.parse,this.contract=e.contract.connect(this.signer),this.storage=e.storage||new Dg.ThirdwebStorage}getMethod(){return this.method}getGaslessOptions(){return this.gaslessOptions}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?J.BigNumber.from(Math.floor(J.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),await this.transactionError(e)}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(x9r.FormatTypes.json));YNr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async sendGasless(){_t.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>J.utils.solidityPack(["bytes","address"],[m,f]))}_t.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(J.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=J.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=J.BigNumber.from(5e5)),this.overrides.gasLimit&&J.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=J.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await INr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=J.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(R=>JSON.stringify(R).length<=80?JSON.stringify(R):JSON.stringify(R,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` -`+l.map(R=>" "+R.split(` +`,C=`${h.name}(${y})`,P=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,A=s5e(e),B,F;try{let W=await F1(this.readContract.address,this.getProvider(),SX(this,IX));W.name&&(F=W.name),W.metadata.sources&&(B=await Loe(W,SX(this,IX)))}catch{}return new DX({reason:A,from:o,to:c,method:C,data:u,network:s,rpcUrl:p,value:l,hash:P,contractName:F,sources:B})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();Pt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(J.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=J.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=J.BigNumber.from(5e5)),n.gasLimit&&J.BigNumber.from(n.gasLimit).gt(l)&&(l=J.BigNumber.from(n.gasLimit));let p={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(p)}async signTypedData(e,t,n,a){this.emit(af.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await coe(e,t,n,a);return this.emit(af.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){Pt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();Pt.default(t&&n,"signer and provider must be set");let a=new J.ethers.Contract(aoe(e.chainId,"biconomyForwarder"),Zxt,n),i=0,s=await Dge(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:J.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=J.ethers.utils.arrayify(J.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,J.ethers.utils.keccak256(o.data)]));this.emit(af.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(af.Signature,{status:"completed",message:c,signature:u});let l=await Tb.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let p=await l.json();if(!p.txHash)throw new Error(`relay transaction failed: ${p.log}`);return p.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){Pt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();Pt.default(t,"provider is not set"),Pt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?Ug[e.chainId].openzeppelinForwarderEOA||await dNe(this.getProvider(),SX(this,IX)):Ug[e.chainId].openzeppelinForwarder||await Noe(this.getProvider(),SX(this,IX))),i=new J.Contract(a,nxt.default,n),s=await Dge(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:Jxt},u={from:e.from,to:e.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(e.gasLimit).toString(),nonce:J.BigNumber.from(s).toString(),data:e.data,chainid:J.BigNumber.from(e.chainId).toString()}):(o={name:this.options.gasless.openzeppelin.domainName,version:this.options.gasless.openzeppelin.domainVersion,chainId:e.chainId,verifyingContract:a},c={ForwardRequest:Qxt},u={from:e.from,to:e.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(e.gasLimit).toString(),nonce:J.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(af.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],C=e.functionArgs[1],{message:P,signature:A}=await e_t(t,this.writeContract.address,e.from,y,C),{r:B,s:F,v:W}=J.ethers.utils.splitSignature(A);u={to:this.readContract.address,owner:P.owner,spender:P.spender,value:J.BigNumber.from(P.value).toString(),nonce:J.BigNumber.from(P.nonce).toString(),deadline:J.BigNumber.from(P.deadline).toString(),r:B,s:F,v:W},l=A}else{let{signature:y}=await coe(t,o,c,u);l=y}let p="forward";u?.owner&&(p="permit");let h=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:p});this.emit(af.Signature,{status:"completed",message:u,signature:l});let m=await Tb.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:h});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Gh(r){return r.toLowerCase()===xl||r.toLowerCase()===J.constants.AddressZero}function Nge(r){return Gh(r)?xl:r}async function ru(r,e,t){let n=await zX(r,t);return J.utils.parseUnits(Y.AmountSchema.parse(e),n.decimals)}async function zX(r,e){if(Gh(e)){let t=await r.getNetwork(),n=jDe(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new J.Contract(e,hfn.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function kp(r,e,t){let n=await zX(r,e);return{...n,value:J.BigNumber.from(t),displayValue:J.utils.formatUnits(t,n.decimals)}}async function Ib(r,e,t,n){if(Gh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Po(a||i,t,$u.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function tNe(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Po(i||s,e,$u.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),p=J.BigNumber.from(t).mul(J.BigNumber.from(n)).div(J.ethers.utils.parseUnits("1",a));l.lt(p)&&await o.sendTransaction("approve",[u,l.add(p)])}async function hdn(r,e,t){let n=r.getProvider(),a=new Po(n,e,$u.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function mdn(r,e){let t=await r.readContract.decimals();return J.utils.parseUnits(Y.AmountSchema.parse(e),t)}function ydn(r){return J.utils.formatEther(r)}function r_t(r){return J.utils.parseEther(Y.AmountSchema.parse(r))}function bdn(r,e){return J.utils.parseUnits(Y.AmountSchema.parse(r),e)}function gdn(r,e){return J.utils.formatUnits(r,e)}async function n_t(r,e,t,n,a,i,s,o,c){let u=M1(t.maxClaimablePerWallet,a),l=[J.utils.hexZeroPad([0],32)],p=t.price,h=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(J.constants.AddressZero)){let P=await o5e(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(P)l=P.proof,u=P.maxClaimable==="unlimited"?J.ethers.constants.MaxUint256:J.ethers.utils.parseUnits(P.maxClaimable,a),p=P.price===void 0||P.price==="unlimited"?J.ethers.constants.MaxUint256:await ru(i.getProvider(),P.price,P.currencyAddress||J.ethers.constants.AddressZero),h=P.currencyAddress||J.ethers.constants.AddressZero;else if(c===u3.V1)throw new Error("No claim found for this address")}}catch(P){if(P?.message==="No claim found for this address")throw P;console.warn("failed to check claim condition merkle root hash, continuing anyways",P)}let m=await i.getCallOverrides()||{},y=p.toString()!==J.ethers.constants.MaxUint256.toString()?p:t.price,C=h!==J.ethers.constants.AddressZero?h:t.currencyAddress;return y.gt(0)&&(Gh(C)?m.value=J.BigNumber.from(y).mul(e).div(J.ethers.utils.parseUnits("1",a)):o&&await tNe(i,C,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:C,priceInProof:p,currencyAddressInProof:h}}async function vdn(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await nf.fromUri(n,t))?.getAllEntries()||null;{let i=await $De.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function o5e(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await nf.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await $De.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function a_t(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=J.ethers.utils.formatUnits(a,n),s=await Moe.parseAsync({...t[r],price:i,...e}),o=await YDe.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let p=J.ethers.utils.formatUnits(l.price,n);return{...l,price:p}})}async function wdn(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await o_t(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=J.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function xdn(r,e){let t=J.BigNumber.from(r),n=J.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function i_t(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await wdn(r,e,t,n,a),o=await wxt.parseAsync(i),c=(await Promise.all(o.map(u=>_dn(u,e,t,n)))).sort((u,l)=>xdn(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function _dn(r,e,t,n){let a=r.currencyAddress===J.constants.AddressZero?xl:r.currencyAddress,i=M1(r.maxClaimableSupply,e),s=M1(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await ru(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function Oge(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function Fge(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function Lge(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function qge(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function Wge(r,e,t,n,a,i){let s=await kp(t,r.currency,r.pricePerToken),o=Xse(r.maxClaimableSupply,e),c=Xse(r.maxClaimablePerWallet,e),u=Xse(J.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=Xse(r.supplyClaimed,e),p;return r.metadata&&(p=await a.downloadJSON(r.metadata)),YDe.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:J.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await vdn(r.merkleRoot,n,a):void 0,metadata:p})}function Xse(r,e){return r.toString()===J.ethers.constants.MaxUint256.toString()?"unlimited":J.ethers.utils.formatUnits(r,e)}function M1(r,e){return r==="unlimited"?J.ethers.constants.MaxUint256:J.ethers.utils.parseUnits(r,e)}async function s_t(r,e,t,n,a){let i={},s=n||xl,c=(await ru(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===xl?i={value:c}:s!==xl&&a&&await tNe(r,s,c,t,0)),i}var Tdn=2,u3=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),nf=class{constructor(e,t,n,a,i){Y._defineProperty(this,"shardNybbles",void 0),Y._defineProperty(this,"shards",void 0),Y._defineProperty(this,"trees",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"baseUri",void 0),Y._defineProperty(this,"originalEntriesUri",void 0),Y._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return nf.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new nf(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case u3.V1:return J.utils.solidityKeccak256(["address","uint256"],[e.address,M1(e.maxClaimable,t)]);case u3.V2:return J.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,M1(e.maxClaimable,t),M1(e.price||"unlimited",n),e.currencyAddress||J.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await zX(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:Tdn,o=await Roe.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,K]=F;return[W,new WBe.MerkleTree(await Promise.all(K.map(async z=>{let G=await nf.fetchAndCacheDecimals(u,n,z.currencyAddress);return nf.hashEntry(z,t,G,i)})),J.utils.keccak256,{sort:!0}).getHexRoot()]})),p=Object.fromEntries(l),h=new WBe.MerkleTree(Object.values(p),J.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let K={proofs:h.getProof(p[F]).map(z=>"0x"+z.data.toString("hex")),entries:W};m.push({data:JSON.stringify(K),name:`${F}.json`})}let y=await a.uploadBatch(m),C=y[0].slice(0,y[0].lastIndexOf("/")),P=await a.upload(o),A={merkleRoot:h.getHexRoot(),baseUri:C,originalEntriesUri:P,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},B=await a.upload(A);return{shardedMerkleInfo:A,uri:B}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let p=await Promise.all(i.entries.map(async h=>{let m=await nf.fetchAndCacheDecimals(s,t,h.currencyAddress);return nf.hashEntry(h,this.tokenDecimals,m,n)}));this.trees[a]=new WBe.MerkleTree(p,J.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(p=>p.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await nf.fetchAndCacheDecimals(s,t,o.currencyAddress),u=nf.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(p=>"0x"+p.data.toString("hex"));return VDe.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function o_t(r,e,t,n,a){let i=await Roe.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(h_t(),this?this.decode(e,t):OX.prototype.decode.call(O4t,e,t)));o3=t>-1?t:e.length,Ne=0,goe=0,l6e=null,qc=null,Mt=e;try{wl=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Mt=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof OX){if(Fn=this,sf=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return So=this.structures,F4t();(!So||So.length>0)&&(So=[])}else Fn=O4t,(!So||So.length>0)&&(So=[]),sf=null;return F4t()}};function F4t(){try{let r=fa();if(qc){if(Ne>=qc.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ne=qc.postBundlePosition,qc=null}if(Ne==o3)So=null,Mt=null,Fh&&(Fh=null);else if(Ne>o3){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!_De)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw h_t(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function fa(){let r=Mt[Ne++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Mt[Ne++];break;case 25:if(e==7)return Rdn();r=wl.getUint16(Ne),Ne+=2;break;case 26:if(e==7){let t=wl.getFloat32(Ne);if(Fn.useFloat32>2){let n=m_t[(Mt[Ne]&127)<<1|Mt[Ne+1]>>7];return Ne+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ne+=4,t}r=wl.getUint32(Ne),Ne+=4;break;case 27:if(e==7){let t=wl.getFloat64(Ne);return Ne+=8,t}if(e>1){if(wl.getUint32(Ne)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=wl.getUint32(Ne+4)}else Fn.int64AsNumber?(r=wl.getUint32(Ne)*4294967296,r+=wl.getUint32(Ne+4)):r=wl.getBigUint64(Ne);Ne+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=fa())!=CX;)t[a++]=n;return e==4?t:e==3?t.join(""):v.Buffer.concat(t);case 5:let i;if(Fn.mapsAsObjects){let s={};if(Fn.keyMap)for(;(i=fa())!=CX;)s[B1(Fn.decodeKey(i))]=fa();else for(;(i=fa())!=CX;)s[B1(i)]=fa();return s}else{eoe&&(Fn.mapsAsObjects=!0,eoe=!1);let s=new Map;if(Fn.keyMap)for(;(i=fa())!=CX;)s.set(Fn.decodeKey(i),fa());else for(;(i=fa())!=CX;)s.set(i,fa());return s}case 7:return CX;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return Pdn(r);case 3:if(goe>=Ne)return l6e.slice(Ne-f6e,(Ne+=r)-f6e);if(goe==0&&o3<140&&r<32){let a=r<16?l_t(r):Sdn(r);if(a!=null)return a}return kdn(r);case 4:let t=new Array(r);for(let a=0;a=D4t){let a=So[r&8191];if(a)return a.read||(a.read=TDe(a)),a.read();if(r<65536){if(r==Adn)return IDe(fa());if(r==Cdn){let i=toe(),s=fa();for(let o=2;o23)switch(t){case 24:t=Mt[Ne++];break;case 25:t=wl.getUint16(Ne),Ne+=2;break;case 26:t=wl.getUint32(Ne),Ne+=4;break;default:throw new Error("Expected array header, but got "+Mt[Ne-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(fa);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Fn.keyMap?new Function("r","return {"+i.map(s=>Fn.decodeKey(s)).map(s=>L4t.test(s)?B1(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>L4t.test(s)?B1(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(fa)}let a={};if(Fn.keyMap)for(let i=0;i64&&wDe)return wDe.decode(Mt.subarray(Ne,Ne+=r));let t=Ne+r,n=[];for(e="";Ne65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=g0.apply(String,n),n.length=0)}return n.length>0&&(e+=g0.apply(String,n)),e}var g0=String.fromCharCode;function Sdn(r){let e=Ne,t=new Array(r);for(let n=0;n0){Ne=e;return}t[n]=a}return g0.apply(String,t)}function l_t(r){if(r<4)if(r<2){if(r===0)return"";{let e=Mt[Ne++];if((e&128)>1){Ne-=1;return}return g0(e)}}else{let e=Mt[Ne++],t=Mt[Ne++];if((e&128)>0||(t&128)>0){Ne-=2;return}if(r<3)return g0(e,t);let n=Mt[Ne++];if((n&128)>0){Ne-=3;return}return g0(e,t,n)}else{let e=Mt[Ne++],t=Mt[Ne++],n=Mt[Ne++],a=Mt[Ne++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ne-=4;return}if(r<6){if(r===4)return g0(e,t,n,a);{let i=Mt[Ne++];if((i&128)>0){Ne-=5;return}return g0(e,t,n,a,i)}}else if(r<8){let i=Mt[Ne++],s=Mt[Ne++];if((i&128)>0||(s&128)>0){Ne-=6;return}if(r<7)return g0(e,t,n,a,i,s);let o=Mt[Ne++];if((o&128)>0){Ne-=7;return}return g0(e,t,n,a,i,s,o)}else{let i=Mt[Ne++],s=Mt[Ne++],o=Mt[Ne++],c=Mt[Ne++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ne-=8;return}if(r<10){if(r===8)return g0(e,t,n,a,i,s,o,c);{let u=Mt[Ne++];if((u&128)>0){Ne-=9;return}return g0(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Mt[Ne++],l=Mt[Ne++];if((u&128)>0||(l&128)>0){Ne-=10;return}if(r<11)return g0(e,t,n,a,i,s,o,c,u,l);let p=Mt[Ne++];if((p&128)>0){Ne-=11;return}return g0(e,t,n,a,i,s,o,c,u,l,p)}else{let u=Mt[Ne++],l=Mt[Ne++],p=Mt[Ne++],h=Mt[Ne++];if((u&128)>0||(l&128)>0||(p&128)>0||(h&128)>0){Ne-=12;return}if(r<14){if(r===12)return g0(e,t,n,a,i,s,o,c,u,l,p,h);{let m=Mt[Ne++];if((m&128)>0){Ne-=13;return}return g0(e,t,n,a,i,s,o,c,u,l,p,h,m)}}else{let m=Mt[Ne++],y=Mt[Ne++];if((m&128)>0||(y&128)>0){Ne-=14;return}if(r<15)return g0(e,t,n,a,i,s,o,c,u,l,p,h,m,y);let C=Mt[Ne++];if((C&128)>0){Ne-=15;return}return g0(e,t,n,a,i,s,o,c,u,l,p,h,m,y,C)}}}}}function Pdn(r){return Fn.copyBuffers?Uint8Array.prototype.slice.call(Mt,Ne,Ne+=r):Mt.subarray(Ne,Ne+=r)}var f_t=new Float32Array(1),Cge=new Uint8Array(f_t.buffer,0,4);function Rdn(){let r=Mt[Ne++],e=Mt[Ne++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return Cge[3]=r&128|(t>>1)+56,Cge[2]=(r&7)<<5|e>>3,Cge[1]=e<<5,Cge[0]=0,f_t[0]}var FX=class{constructor(e,t){this.value=e,this.tag=t}};eo[0]=r=>new Date(r);eo[1]=r=>new Date(Math.round(r*1e3));eo[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-eo[2](r);eo[4]=r=>Number(r[1]+"e"+r[0]);eo[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var IDe=r=>{let e=r[0]-57344,t=r[1],n=So[e];n&&n.isShared&&((So.restoreStructures||(So.restoreStructures=[]))[e]=n),So[e]=t,t.read=TDe(t);let a={};if(Fn.keyMap)for(let i=2,s=r.length;iqc?qc[0].slice(qc.position0,qc.position0+=r):new FX(r,14);eo[15]=r=>qc?qc[1].slice(qc.position1,qc.position1+=r):new FX(r,15);var Mdn={Error,RegExp};eo[27]=r=>(Mdn[r[0]]||Error)(r[1],r[2]);var d_t=r=>{if(Mt[Ne++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return sf=sf?e.concat(sf.slice(e.length)):e,sf.prefixes=r(),sf.suffixes=r(),r()};d_t.handlesRead=!0;eo[51]=d_t;eo[N4t]=r=>{if(!sf)if(Fn.getShared)aNe();else return new FX(r,N4t);if(typeof r=="number")return sf[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};eo[25]=r=>stringRefs[r];eo[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};eo[256].handlesRead=!0;eo[28]=r=>{Fh||(Fh=new Map,Fh.id=0);let e=Fh.id++,t=Mt[Ne],n;t>>5==4?n=[]:n={};let a={target:n};Fh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};eo[28].handlesRead=!0;eo[29]=r=>{let e=Fh.get(r);return e.used=!0,e.target};eo[258]=r=>new Set(r);(eo[259]=r=>(Fn.mapsAsObjects&&(Fn.mapsAsObjects=!1,eoe=!0),r())).handlesRead=!0;function AX(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function n3(){if(!sf)if(Fn.getShared)aNe();else throw new Error("No packed values available");return sf}var Bdn=1399353956;xDe.push((r,e)=>{if(r>=225&&r<=255)return AX(n3().prefixes[r-224],e);if(r>=28704&&r<=32767)return AX(n3().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return AX(n3().prefixes[r-1879048192],e);if(r>=216&&r<=223)return AX(e,n3().suffixes[r-216]);if(r>=27647&&r<=28671)return AX(e,n3().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return AX(e,n3().suffixes[r-1811939328]);if(r==Bdn)return{packedValues:sf,structures:So.slice(0),version:e};if(r==55799)return e});var Ddn=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,q4t=[Uint8Array],Ndn=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let p=0;p23)switch(r){case 24:r=Mt[Ne++];break;case 25:r=wl.getUint16(Ne),Ne+=2;break;case 26:r=wl.getUint32(Ne),Ne+=4;break}return r}function aNe(){if(Fn.getShared){let r=p_t(()=>(Mt=null,Fn.getShared()))||{},e=r.structures||[];Fn.sharedVersion=r.version,sf=Fn.sharedValues=r.packedValues,So===!0?Fn.structures=So=e:So.splice.apply(So,[0,e.length].concat(e))}}function p_t(r){let e=o3,t=Ne,n=f6e,a=goe,i=l6e,s=Fh,o=qc,c=new Uint8Array(Mt.slice(0,o3)),u=So,l=Fn,p=_De,h=r();return o3=e,Ne=t,f6e=n,goe=a,l6e=i,Fh=s,qc=o,Mt=c,_De=p,So=u,Fn=l,wl=new DataView(Mt.buffer,Mt.byteOffset,Mt.byteLength),h}function h_t(){Mt=null,Fh=null,So=null}var m_t=new Array(147);for(let r=0;r<256;r++)m_t[r]=Number("1e"+Math.floor(45.15-r*.30103));var Ldn=new OX({useRecords:!1}),qdn=Ldn.decode;function Wdn(r,e){return iNe(r,e.abis)}function Udn(r,e){return iNe(Rs.parse(r.abi||[]),[e])}function iNe(r,e){let t=LX(r),n=e.flatMap(i=>LX(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,p)=>l.type===i.inputs[u].components?.[p]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function y_t(r,e){let t=await WX(r,e);return Boe(t.abi)}async function b_t(r,e){let t=await WX(r,e);return LX(t.abi,t.metadata)}function g_t(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function Boe(r){let e=Rs.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function v_t(r,e){let t=Rs.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function LX(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=g_t(a.name,e,"methods"),s=a.inputs?.map(p=>`${p.name||"key"}: ${CDe(p)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(p=>CDe(p,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function w_t(r,e){let n=Rs.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=g_t(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function CDe(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>CDe(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function x_t(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function qX(r,e){let t;try{t=await e.getCode(r)}catch(n){throw new Error(`Failed to get bytecode for address ${r}: ${n}`)}if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=x_t(t);if(n)return await qX(n,e)}catch{}try{let a=`0x${(await e.getStorageAt(r,J.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"))).slice(-40)}`;if(gln.isAddress(a)&&a!==J.ethers.constants.AddressZero)return await qX(a,e)}catch{}return await __t(t)}function __t(r){let e=Hdn(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=qdn(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${pfn.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function Hdn(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!jdn(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:Edn,t={};for(let n in e){let a=e[n],i=Wdn(r,a),s=Doe(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function cNe(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),cNe(n.features,e)}}function zdn(r){let e=[];return cNe(Doe(r),e),e}function ADe(r){let e=[];return cNe(Doe(r),e),e.map(t=>t.name)}function f3(r,e){let t=Rs.parse(r||[]),n=Doe(t);return T_t(n,e)}function vr(r,e){if(!r)throw new Eb(e);return r}function kt(r,e){return f3(Rs.parse(r.abi),e)}function T_t(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=T_t(s.features,e),a)break}return a}return r[e].enabled}function Lc(r,e){return r in e.readContract.functions}async function d6e(r,e,t,n,a){let i=[];try{let s=f3(Rs.parse(e),"PluginRouter");if(f3(Rs.parse(e),"ExtensionRouter")){let l=(await new Po(t,r,u_t,n).call("getAllExtensions")).map(p=>p.metadata.implementation);i=await W4t(l,t,a)}else if(s){let l=(await new Po(t,r,nNe,n).call("getAllPlugins")).map(h=>h.pluginAddress),p=Array.from(new Set(l));i=await W4t(p,t,a)}}catch{}return i.length>0?Gdn([e,...i]):e}function Kdn(r){let e=f3(Rs.parse(r),"PluginRouter");return f3(Rs.parse(r),"ExtensionRouter")||e}async function W4t(r,e,t){return(await Promise.all(r.map(n=>F1(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}async function uNe(r,e){let t=[],{compilerMetadata:n,extendedMetadata:a}=await jg(r,e);if(f3(Rs.parse(n.abi),"PluginRouter")&&a&&a.factoryDeploymentData?.implementationAddresses){let s=Object.entries(a.factoryDeploymentData.implementationAddresses);try{let o=s.find(l=>{let[,p]=l;return p!==""}),[c,u]=o||[];if(c&&u){let l=O1(parseInt(c),{}),m=(await new Po(l,u,nNe,{}).call("getAllPlugins")).map(A=>A.pluginAddress),y=Array.from(new Set(m)),C=(await Promise.all(y.map(async A=>F1(A,l,e)))).map(A=>A.name),P=await Promise.all(C.map(A=>Ooe(A)));t=(await Promise.all(P.map(async A=>jg(A,e)))).map(A=>A.compilerMetadata)}}catch{}}return t}function Gdn(r){let e=r.map(a=>Rs.parse(a)).flat(),n=pdn(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Rs.parse(n)}function E_t(r){return"("+r.map(e=>e.type==="tuple"?E_t(e.components):e.type).join(",")+")"}function Vdn(r,e){let t=new J.ethers.utils.Interface(e),n=[];for(let a of Object.values(t.functions)){let i=t.getFunction(a.name);i.name.includes("_")||n.push({functionSelector:t.getSighash(i),functionSignature:i.name+E_t(i.inputs),pluginAddress:r})}return n}var $dn=["eip-155","eip155","protected","invalid chain id for signer","chain id none","chain_id mismatch","recovered sender mismatch","transaction hash mismatch","chainid no support"],Ydn=[["account","not found"],["wrong","chainid"]],PX={[5001]:{name:"Mantle Testnet",gasPrice:1},[71402]:{name:"Godwoken Mainnet",gasPrice:4e4*10**9},[1351057110]:{name:"Chaos (SKALE Testnet)",gasPrice:1e5}};function U4t(r){let e=$dn.findIndex(n=>r.includes(n)),t=Ydn.findIndex(n=>{let a=!0;return n.forEach(i=>{a&&(a=r.includes(i))}),a});return e!==-1||t!==-1}var H4t="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",I_t="0x604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3",C_t={v:27,r:"0x2222222222222222222222222222222222222222222222222222222222222222",s:"0x2222222222222222222222222222222222222222222222222222222222222222"},voe="0x4e59b44847b379578588920cA78FbF26c0B4956C",A_t=5e6,k_t="0x60806040526040516107f33803806107f383398101604081905261002291610359565b805160005b818110156100c157828181518110610041576100416104c9565b6020026020010151600001516001600160a01b03163b600014156100af576100ad838281518110610074576100746104c9565b602002602001015160200151848381518110610092576100926104c9565b6020026020010151604001516100c960201b6100091760201c565b505b806100b9816104df565b915050610027565b505050610557565b606061011183836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061011860201b60201c565b9392505050565b6060610127848460008561012f565b949350505050565b6060824710156101955760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b6001600160a01b0385163b6101ec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161018c565b600080866001600160a01b031685876040516102089190610508565b60006040518083038185875af1925050503d8060008114610245576040519150601f19603f3d011682016040523d82523d6000602084013e61024a565b606091505b50909250905061025b828286610266565b979650505050505050565b60608315610275575081610111565b8251156102855782518084602001fd5b8160405162461bcd60e51b815260040161018c9190610524565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b03811182821017156102d7576102d761029f565b60405290565b604051601f8201601f191681016001600160401b03811182821017156103055761030561029f565b604052919050565b80516001600160a01b038116811461032457600080fd5b919050565b60005b8381101561034457818101518382015260200161032c565b83811115610353576000848401525b50505050565b6000602080838503121561036c57600080fd5b82516001600160401b038082111561038357600080fd5b818501915085601f83011261039757600080fd5b8151818111156103a9576103a961029f565b8060051b6103b88582016102dd565b91825283810185019185810190898411156103d257600080fd5b86860192505b838310156104bc578251858111156103f05760008081fd5b86016060601f19828d0381018213156104095760008081fd5b6104116102b5565b61041c8b850161030d565b8152604061042b81860161030d565b828d01529284015192898411156104425760008081fd5b83850194508e603f86011261045957600093508384fd5b8b85015193508984111561046f5761046f61029f565b61047f8c84601f870116016102dd565b92508383528e818587010111156104965760008081fd5b6104a5848d8501838801610329565b8101919091528452505091860191908601906103d8565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561050157634e487b7160e01b600052601160045260246000fd5b5060010190565b6000825161051a818460208701610329565b9190910192915050565b6020815260008251806020840152610543816040850160208701610329565b601f01601f19169190910160400192915050565b61028d806105666000396000f3fe6080604052600080fd5b606061004b83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610052565b9392505050565b60606100618484600085610069565b949350505050565b6060824710156100cf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b6001600160a01b0385163b6101265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100c6565b600080866001600160a01b031685876040516101429190610208565b60006040518083038185875af1925050503d806000811461017f576040519150601f19603f3d011682016040523d82523d6000602084013e610184565b606091505b509150915061019482828661019f565b979650505050505050565b606083156101ae57508161004b565b8251156101be5782518084602001fd5b8160405162461bcd60e51b81526004016100c69190610224565b60005b838110156101f35781810151838201526020016101db565b83811115610202576000848401525b50505050565b6000825161021a8184602087016101d8565b9190910192915050565b60208152600082518060208401526102438160408501602087016101d8565b601f01601f1916919091016040019291505056fea26469706673582212200b524eb8ceaafe6c603273ee859fddbc2d6f1b7860c3d853dcf6f129f9d9371364736f6c634300080c0033",S_t=[{inputs:[{components:[{internalType:"address",name:"predictedAddress",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IDeployer.Transaction[]",name:"transactions",type:"tuple[]"}],stateMutability:"payable",type:"constructor"}],R1={},KBe={},GBe={};async function Vh(r,e){let t=await e.getCode(r);return t!=="0x"&&t!=="0x0"}async function lNe(r){try{await r.sendTransaction("0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffafffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222")}catch(e){let t=e.toString().toLowerCase(),n=JSON.stringify(e).toLowerCase();return!!(U4t(t)||U4t(n))}return!1}async function Pb(r){if(await Vh(voe,r))return voe;let t=await lNe(r),n=(await r.getNetwork()).chainId,a=t?n:0;return(PX[n]?xoe(a,PX[n].gasPrice):xoe(a)).deployment}function fNe(r){let t=`tw.${J.ethers.utils.id(r)}`;return J.ethers.utils.id(t)}function p6e(r,e){let t=fNe(r);return J.ethers.utils.solidityPack(["bytes32","bytes","bytes"],[t,r,e])}function kDe(r,e,t){let n=fNe(r),a=J.ethers.utils.solidityPack(["bytes","bytes"],[r,e]),i=J.ethers.utils.solidityPack(["bytes1","address","bytes32","bytes32"],["0xff",t,n,J.ethers.utils.solidityKeccak256(["bytes"],[a])]);return`0x${J.ethers.utils.solidityKeccak256(["bytes"],[i]).slice(26)}`}async function dNe(r,e,t){return t||(t=await Pb(r)),(await ad("infra",r,e,t,{contractName:"ForwarderEOAOnly"})).transaction.predictedAddress}async function Noe(r,e,t){return t||(t=await Pb(r)),(await ad("infra",r,e,t,{contractName:"Forwarder"})).transaction.predictedAddress}async function P_t(r,e,t){return t||(t=await Pb(r)),(await ad("infra",r,e,t,{contractName:"TWCloneFactory"})).transaction.predictedAddress}async function Qdn(r,e,t){return t||(t=await Pb(r)),(await ad("infra",r,e,t,{contractName:"WETH9"})).transaction.predictedAddress}async function R_t(r,e,t){let n=O1(e,{thirdwebApiKey:Y.DEFAULT_API_KEY}),a=await M_t(r,e,t),i=await Vh(a,n);return Pt.default(i,"Contract not deployed yet"),a}async function M_t(r,e,t){let n=O1(e,{thirdwebApiKey:Y.DEFAULT_API_KEY}),a=await Ooe(r),i=await Pb(n);if(Pt.default(i,"Thirdweb stack not found"),(await uNe(a,t)).length>0){let u=(await woe(a,t,n,i)).find(l=>l.type==="implementation")?.transaction.predictedAddress;return Pt.default(u,"Error computing address for plugin router"),u}return(await ad("implementation",n,t,i,{contractName:r})).transaction.predictedAddress}async function B_t(r,e,t,n){let a=O1(e,{thirdwebApiKey:Y.DEFAULT_API_KEY}),i=await Ooe(r),s=await jg(i,t),o=await Pb(a);Pt.default(o,"Thirdweb stack not found");let c=await uNe(i,t),u;return c.length>0?u=(await woe(i,t,a,o)).find(p=>p.type==="implementation")?.encodedArgs:u=await pNe(s.compilerMetadata,a,t,o,n),u}function D_t(r,e){let t=J.ethers.utils.arrayify(J.ethers.utils.keccak256(J.ethers.utils.serializeTransaction(r))),n=J.ethers.utils.recoverAddress(t,e),a=J.ethers.utils.serializeTransaction(r,e);return{signer:n,transaction:a}}async function N_t(r,e){if(Pt.default(r.provider,"No provider"),await Vh(voe,r.provider))return voe;let n=await lNe(r.provider),a=(await r.provider.getNetwork()).chainId,i=n?a:0;console.debug(`ChainId ${a} enforces EIP155: ${n}`);let s=PX[a]?xoe(i,PX[a].gasPrice):xoe(i);if(!await Vh(s.deployment,r.provider)){let c=PX[a]?J.BigNumber.from(PX[a].gasPrice).mul(1e5):r_t("0.01");(await r.provider.getBalance(s.signer)).lt(c)&&await r.sendTransaction({to:s.signer,value:c});try{console.debug(`deploying CREATE2 factory at: ${s.deployment}`),e?.notifier?.("deploying","create2Factory"),await r.provider.sendTransaction(s.transaction),e?.notifier?.("deployed","create2Factory")}catch(u){throw new Error(`Couldn't deploy CREATE2 factory: ${JSON.stringify(u)}`)}}return s.deployment}async function Jdn(r,e,t,n,a,i){let s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:7e6;if(Pt.default(r.provider,"Provider required"),!(i?await Vh(i,r.provider):!1)){console.debug(`deploying contract via create2 factory at: ${i}`);let c=p6e(e,t),u={to:n,data:c};try{await r.estimateGas(u)}catch(l){console.debug("error estimating gas while deploying prebuilt: ",l),u.gasLimit=J.BigNumber.from(s)}await(await r.sendTransaction(u)).wait()}}async function O_t(r,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:7e6;if(Pt.default(r.provider,"Provider required"),!await Vh(e.predictedAddress,r.provider)){console.debug(`deploying contract via create2 factory at: ${e.predictedAddress}`);let i={to:e.to,data:e.data};try{await r.estimateGas(i)}catch(s){console.debug("error estimating gas while deploying prebuilt: ",s),i.gasLimit=J.BigNumber.from(n)}t?.notifier?.("deploying","preset"),await(await r.sendTransaction(i)).wait(),t?.notifier?.("deployed","preset")}}async function woe(r,e,t,n){R1={};let a=n||await Pb(t),i={},s=[],{compilerMetadata:o}=await jg(r,e),c=await uNe(r,e);if(c.length>0){let p=await Promise.all(c.map(async y=>await ad("plugin",t,e,a,{metadata:y}))),h=[];c.forEach((y,C)=>{let P=Vdn(p[C].transaction.predictedAddress,y.abi);h.push(...P)});let m=await ad("plugin",t,e,a,{contractName:"PluginMap",constructorParams:{_pluginsToAdd:{value:h}}});i._pluginMap={value:m.transaction.predictedAddress},s.push(...p,m)}let u=await ad("implementation",t,e,a,{metadata:o,constructorParams:i}),l=await ad("infra",t,e,a,{contractName:"TWCloneFactory"});return s.push(l),s.push(...Object.values(R1)),s.push(u),s}async function F_t(r,e,t){let n=hNe(e);if(n.length===0)return;t?.notifier?.("deploying","infra");let a=await Promise.all(n.map(i=>new J.ethers.ContractFactory(S_t,k_t).connect(r).deploy(i)));await Promise.all(a.map(i=>i.deployed())),t?.notifier?.("deployed","infra")}async function ad(r,e,t,n,a){let i=a&&a.contractName,s=a&&a.metadata;if(Pt.default(i||s,"Require contract name or metadata"),i&&R1[i])return R1[i];if(i==="WETH9"){let p=kDe(b4t,[],n),h=await Vh(p,e),m="";return h||(m=p6e(b4t,[])),{name:i,type:r,transaction:{predictedAddress:p,to:n,data:m}}}if(!s){Pt.default(i,"Require contract name");let p=await Ooe(i);s=(await jg(p,t)).compilerMetadata}let o=await pNe(s,e,t,n,a?.constructorParams),c=kDe(s.bytecode,o,n),u=await Vh(c,e),l="";return u||(l=p6e(s.bytecode,o)),{name:i,type:r,transaction:{predictedAddress:c,to:n,data:l},encodedArgs:o}}async function pNe(r,e,t,n,a){let i=Boe(r.abi),s=i.map(u=>u.type==="tuple[]"?J.ethers.utils.ParamType.from(u):u.type),o=await Promise.all(i.map(async u=>{if(a&&a[u.name])return a[u.name].type&&Pt.default(a[u.name].type===u.type,`Provided type ${a[u.name].type} doesn't match the actual type ${u.type} from Abi`),a[u.name].value;if(u.name&&u.name.includes("nativeTokenWrapper")){let l=(await e.getNetwork()).chainId,p=jDe(l).wrapped.address;if(p===J.ethers.constants.AddressZero){let h=await ad("infra",e,t,n,{contractName:"WETH9"});R1.WETH9||(R1.WETH9=h),p=h.transaction.predictedAddress}return p}else if(u.name&&u.name.includes("trustedForwarder")){if(r.name==="Pack"){let p=await ad("infra",e,t,n,{contractName:"ForwarderEOAOnly"});return R1.ForwarderEOAOnly||(R1.ForwarderEOAOnly=p),p.transaction.predictedAddress}let l=await ad("infra",e,t,n,{contractName:"Forwarder"});return R1.Forwarder||(R1.Forwarder=l),l.transaction.predictedAddress}else throw new Error("Can't resolve constructor arguments")}));return J.ethers.utils.defaultAbiCoder.encode(s,o)}function xoe(r,e){let t=J.ethers.utils.joinSignature(C_t),n=D_t({gasPrice:e||100*10**9,gasLimit:1e5,nonce:0,data:I_t,chainId:r},t),a=J.ethers.utils.getContractAddress({from:n.signer,nonce:0});return{...n,deployment:a}}async function Ooe(r){if(GBe[r])return GBe[r];let e=await new id("polygon").getPublisher().getVersion(H4t,r);if(!e)throw new Error(`No published contract found for ${r} at version by '${H4t}'`);let t=e.metadataUri;return GBe[r]=t,t}async function jg(r,e){if(KBe[r])return KBe[r];let t=await WX(r,e),n;try{n=await oNe(r,e)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return KBe[r]=a,a}function L_t(r){let e=J.ethers.utils.arrayify(r).map(t=>t===0?4:16).reduce((t,n)=>t+n)+200*r.length/2+6*Math.ceil(r.length/64)+32e3+21e3;return e=Math.floor(e*64/63),e}function hNe(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A_t;if(r=r.filter(i=>i.data.length>0),r.length===0)return[];let t=[],n=0,a=[];return r.forEach(i=>{let s=L_t(i.data);n+s>e?a.length===0?t.push([i]):(t.push(a),n=s,a=[i]):(n+=s,a.push(i))}),a.length>0&&t.push(a),t}function b0(r){async function e(){return(await r(...arguments)).execute()}return e.prepare=r,e}function Se(r){async function e(){return(await r(...arguments)).execute()}return e.prepare=r,e}async function Zdn(r,e,t,n,a){return a&&"biconomy"in a?Xdn(r,e,t,a):epn(r,e,t,n,a)}async function Xdn(r,e,t,n){Pt.default(n&&"biconomy"in n,"calling biconomySendFunction without biconomy"),Pt.default(e&&t,"signer and provider must be set");let a=new J.ethers.Contract(aoe(r.chainId,"biconomyForwarder"),Zxt,t),i=0,s=await Dge(a,"getNonce",[r.from,i]),o={from:r.from,to:r.to,token:J.ethers.constants.AddressZero,txGas:r.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(n&&"biconomy"in n&&n.biconomy?.deadlineSeconds||3600)),data:r.data},c=J.ethers.utils.arrayify(J.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,J.ethers.utils.keccak256(o.data)])),u=await e.signMessage(c),l=await Tb.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:r.from,apiId:n.biconomy.apiId,params:[o,u],to:r.to,gasLimit:r.gasLimit.toHexString()}),headers:{"x-api-key":n.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let p=await l.json();if(!p.txHash)throw new Error(`relay transaction failed: ${p.log}`);return p.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async function epn(r,e,t,n,a){Pt.default(a&&"openzeppelin"in a,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options"),Pt.default(e,"provider is not set"),Pt.default(t,"provider is not set");let i=a.openzeppelin.relayerForwarderAddress||(a.openzeppelin.useEOAForwarder?Ug[r.chainId].openzeppelinForwarderEOA||await dNe(t,n):Ug[r.chainId].openzeppelinForwarder||await Noe(t,n)),s=new J.ethers.Contract(i,nxt.default,t),o=await Dge(s,"getNonce",[r.from]),c,u,l;a.experimentalChainlessSupport?(c={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:i},u={ForwardRequest:Jxt},l={from:r.from,to:r.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(r.gasLimit).toString(),nonce:J.BigNumber.from(o).toString(),data:r.data,chainid:J.BigNumber.from(r.chainId).toString()}):(c={name:a.openzeppelin.domainName,version:a.openzeppelin.domainVersion,chainId:r.chainId,verifyingContract:i},u={ForwardRequest:Qxt},l={from:r.from,to:r.to,value:J.BigNumber.from(0).toString(),gas:J.BigNumber.from(r.gasLimit).toString(),nonce:J.BigNumber.from(o).toString(),data:r.data});let p;if(r.functionName==="approve"&&r.functionArgs.length===2){let C=r.functionArgs[0],P=r.functionArgs[1],{message:A,signature:B}=await e_t(e,r.to,r.from,C,P),{r:F,s:W,v:K}=J.ethers.utils.splitSignature(B);l={to:r.to,owner:A.owner,spender:A.spender,value:J.BigNumber.from(A.value).toString(),nonce:J.BigNumber.from(A.nonce).toString(),deadline:J.BigNumber.from(A.deadline).toString(),r:F,s:W,v:K},p=B}else{let{signature:C}=await coe(e,c,u,l);p=C}let h="forward";l?.owner&&(h="permit");let m=JSON.stringify({request:l,signature:p,forwarderAddress:i,type:h}),y=await Tb.default(a.openzeppelin.relayerUrl,{method:"POST",body:m});if(y.ok){let C=await y.json();if(!C.result)throw new Error(`Relay transaction failed: ${C.message}`);return JSON.parse(C.result).txHash}throw new Error(`relay transaction failed with status: ${y.status} (${y.statusText})`)}var h6e=class{constructor(e){Y._defineProperty(this,"args",void 0),Y._defineProperty(this,"overrides",void 0),Y._defineProperty(this,"provider",void 0),Y._defineProperty(this,"signer",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"gasMultiple",void 0),this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.storage=e.storage||new Wg.ThirdwebStorage,this.signer.provider||(this.signer=this.signer.connect(this.provider))}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGasLimitMultiple(e){J.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=J.BigNumber.from(Math.floor(J.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:J.utils.formatEther(n),wei:n}}async getGasPrice(){let e=await this.provider.getGasPrice(),t=J.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}async getSignerAddress(){return this.signer.getAddress()}async getGasOverrides(){if(eNe())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:J.utils.parseUnits("1","gwei"),s;n===Je.Mumbai||n===Je.Polygon?s=await Xxt(n):s=J.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=J.utils.parseUnits("300","gwei"),i=J.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}},Ye=class extends h6e{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new Ye(n)}static async fromContractInfo(e){let t=e.storage||new Wg.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await F1(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new J.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new Ye(i)}constructor(e){super({args:e.args,overrides:e.overrides,provider:e.provider,signer:e.signer,storage:e.storage}),Y._defineProperty(this,"method",void 0),Y._defineProperty(this,"contract",void 0),Y._defineProperty(this,"gaslessOptions",void 0),Y._defineProperty(this,"parse",void 0),this.method=e.method,this.gaslessOptions=e.gasless,this.parse=e.parse,this.contract=e.contract.connect(this.signer),this.storage=e.storage||new Wg.ThirdwebStorage}getTarget(){return this.contract.address}getMethod(){return this.method}getGaslessOptions(){return this.gaslessOptions}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?J.BigNumber.from(Math.floor(J.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),await this.transactionError(e)}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(Tln.FormatTypes.json));Kdn(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){throw await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async sendGasless(){Pt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let h=await this.getSignerAddress();e[0]=e[0].map(m=>J.utils.solidityPack(["bytes","address"],[m,h]))}Pt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(J.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=J.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=J.BigNumber.from(5e5)),this.overrides.gasLimit&&J.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=J.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await Zdn(c,this.signer,this.provider,this.storage,this.gaslessOptions),l,p=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(h=>setTimeout(h,Math.min(p*1e3,1e4))),p++),p>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=J.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(A=>JSON.stringify(A).length<=80?JSON.stringify(A):JSON.stringify(A,void 0,2)),p=l.join(", ").length<=80?l.join(", "):` +`+l.map(A=>" "+A.split(` `).join(` `)).join(`, `)+` -`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Nhe(e),I,C;try{let R=await B0(this.contract.address,this.provider,this.storage);R.name&&(C=R.name),R.metadata.sources&&(I=await Ohe(R,this.storage))}catch{}return new CV({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:C,sources:I})}},Kpe=class extends zpe{constructor(e){super(e),Y._defineProperty(this,"factory",void 0),Y._defineProperty(this,"events",void 0),this.factory=e.factory,this.events=e.events}encode(){return J.utils.hexlify(J.utils.concat([this.factory.bytecode,this.factory.interface.encodeDeploy(this.args)]))}async sign(){let e=await this.populateTransaction();return this.signer.signTransaction(e)}async simulate(){let e=await this.populateTransaction();this.signer.call(e)}async estimateGasLimit(){try{let t={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,t);return this.signer.estimateGas(n)}catch(e){throw await this.deployError(e)}}async send(){try{let e=await this.populateTransaction();return await this.signer.sendTransaction(e)}catch(e){throw await this.deployError(e)}}async execute(){let e=await this.send();try{await e.wait()}catch(n){throw await this.simulate(),await this.deployError(n)}let t=J.utils.getContractAddress({from:e.from,nonce:e.nonce});return this.events&&this.events.emit("contractDeployed",{status:"completed",contractAddress:t,transactionHash:e.hash}),t}async populateTransaction(){let t={...await this.getGasOverrides(),...this.overrides};return t.gasLimit||(t.gasLimit=await this.estimateGasLimit()),this.factory.getDeployTransaction(...this.args,t)}async deployError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.encode(),s=J.BigNumber.from(this.overrides.value||0),o=t.connection?.url,c=this.args.map(m=>JSON.stringify(m).length<=80?JSON.stringify(m):JSON.stringify(m,void 0,2)),l=`deployContract(${c.join(", ").length<=80?c.join(", "):` +`,h=`${u.name}(${p})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=s5e(e),C,P;try{let A=await F1(this.contract.address,this.provider,this.storage);A.name&&(P=A.name),A.metadata.sources&&(C=await Loe(A,this.storage))}catch{}return new DX({reason:y,from:a,to:i,method:h,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:P,sources:C})}},m6e=class extends h6e{constructor(e){super(e),Y._defineProperty(this,"factory",void 0),Y._defineProperty(this,"events",void 0),this.factory=e.factory,this.events=e.events}encode(){return J.utils.hexlify(J.utils.concat([this.factory.bytecode,this.factory.interface.encodeDeploy(this.args)]))}async sign(){let e=await this.populateTransaction();return this.signer.signTransaction(e)}async simulate(){let e=await this.populateTransaction();this.signer.call(e)}async estimateGasLimit(){try{let t={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,t);return this.signer.estimateGas(n)}catch(e){throw await this.deployError(e)}}async send(){try{let e=await this.populateTransaction();return await this.signer.sendTransaction(e)}catch(e){throw await this.deployError(e)}}async execute(){let e=await this.send();try{await e.wait()}catch(n){throw await this.simulate(),await this.deployError(n)}let t=J.utils.getContractAddress({from:e.from,nonce:e.nonce});return this.events&&this.events.emit("contractDeployed",{status:"completed",contractAddress:t,transactionHash:e.hash}),t}async populateTransaction(){let t={...await this.getGasOverrides(),...this.overrides};return t.gasLimit||(t.gasLimit=await this.estimateGasLimit()),this.factory.getDeployTransaction(...this.args,t)}async deployError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.encode(),s=J.BigNumber.from(this.overrides.value||0),o=t.connection?.url,c=this.args.map(m=>JSON.stringify(m).length<=80?JSON.stringify(m):JSON.stringify(m,void 0,2)),l=`deployContract(${c.join(", ").length<=80?c.join(", "):` `+c.map(m=>" "+m.split(` `).join(` `)).join(`, `)+` -`})`,h=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,f=Nhe(e);return new CV({reason:f,from:a,method:l,data:i,network:n,rpcUrl:o,value:s,hash:h})}},A0=class{constructor(e,t,n){Y._defineProperty(this,"featureName",_pe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"schema",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new P0(_pe)})),Y._defineProperty(this,"update",Te(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{fo("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{fo("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await B0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return Ye(e,"ContractMetadata")}},Gpe=class{constructor(e,t){Y._defineProperty(this,"featureName",xpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"setAll",Te(async n=>{let a=Object.keys(n);_t.default(a.length,"you must provide at least one role to set"),_t.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Se(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Se(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[_V(u),y]))}),m.length)for(let y=0;y{_t.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Se(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[_V(n),i]})})),Y._defineProperty(this,"revoke",Te(async(n,a)=>{_t.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Se(a),s=await this.getRevokeRoleFunctionName(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[_V(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){_t.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){_t.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(fo("getRoleMemberCount",t)&&fo("getRoleMember",t)){let n=_V(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Se(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new upe(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Se(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},Vpe=class{constructor(e,t){Y._defineProperty(this,"featureName",bpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"setDefaultRoyaltyInfo",Te(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(fo("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),Y._defineProperty(this,"setTokenRoyaltyInfo",Te(async(n,a)=>{let i=Go.parse(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Go.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Go.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},Ype=class{constructor(e){Y._defineProperty(this,"featureName",vpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"setRecipient",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},Dhe={name:"Failed to load NFT metadata"};async function GEe(r,e,t){let n=e.replace("{id}",J.ethers.utils.hexZeroPad(J.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",J.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=Dhe}}return Y.CommonNFTOutput.parse({...a,id:J.BigNumber.from(r).toString(),uri:e})}async function hee(r,e,t,n){let a,i=new J.Contract(r,Ahe.default,e),s=await i.supportsInterface(see),o=await i.supportsInterface(oee);if(s)a=await new J.Contract(r,fMr.default,e).tokenURI(t);else if(o)a=await new J.Contract(r,mMr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?GEe(t,a,n):Y.CommonNFTOutput.parse({...Dhe,id:J.BigNumber.from(t).toString(),uri:""})}async function VEe(r,e){return typeof r=="string"?r:await e.upload(Y.CommonNFTInput.parse(r))}async function P2(r,e,t,n){if(QNr(r))return r;if(JNr(r))return await e.uploadBatch(r.map(i=>Y.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function EV(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function JNr(r){return r.find(e=>typeof e!="object")===void 0}var tee=class{constructor(e,t,n,a){Y._defineProperty(this,"featureName",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"nextTokenIdToMintFn",void 0),Y._defineProperty(this,"createDelayedRevealBatch",Te(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([Y.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=EV(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>Y.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=EV(f),y=await this.contractWrapper.readContract.getBaseURICount(),I=await this.hashDelayRevealPassword(y,o),C=await this.contractWrapper.readContract.encryptDecrypt(J.ethers.utils.toUtf8Bytes(m),I),R;if(await this.isLegacyContract())R=C;else{let F=await this.contractWrapper.getChainID(),W=J.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[J.ethers.utils.toUtf8Bytes(m),I,F]);R=J.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[C,W])}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,R],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:F});return H}})})),Y._defineProperty(this,"reveal",Te(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(fo("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(fo("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>J.ethers.utils.hexDataLength(u)>0?s?u:J.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:J.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>J.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return hee(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(fo("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new J.ethers.Contract(this.contractWrapper.readContract.address,yMr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Ko=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),Ca=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),ree=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:J.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:J.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +`})`,p=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,h=s5e(e);return new DX({reason:h,from:a,method:l,data:i,network:n,rpcUrl:o,value:s,hash:p})}},_b=class{constructor(e,t,n){Y._defineProperty(this,"featureName",o6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"schema",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Se(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new Eb(o6e)})),Y._defineProperty(this,"update",Se(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{Lc("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{Lc("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await F1(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return kt(e,"ContractMetadata")}},y6e=class{constructor(e,t){Y._defineProperty(this,"featureName",s6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"setAll",Se(async n=>{let a=Object.keys(n);Pt.default(a.length,"you must provide at least one role to set"),Pt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait qe(y))||[]),p=await Promise.all(i[u]?.map(async y=>await qe(y))||[]),h=l.filter(y=>!p.includes(y)),m=p.filter(y=>!l.includes(y));if(h.length&&h.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[kX(u),y]))}),m.length)for(let y=0;y{Pt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await qe(a);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[kX(n),i]})})),Y._defineProperty(this,"revoke",Se(async(n,a)=>{Pt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await qe(a),s=await this.getRevokeRoleFunctionName(i);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[kX(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){Pt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){Pt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(Lc("getRoleMemberCount",t)&&Lc("getRoleMember",t)){let n=kX(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await qe(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new Mge(i,n)}))}async getRevokeRoleFunctionName(e){let t=await qe(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},b6e=class{constructor(e,t){Y._defineProperty(this,"featureName",n6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"setDefaultRoyaltyInfo",Se(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(Lc("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),Y._defineProperty(this,"setTokenRoyaltyInfo",Se(async(n,a)=>{let i=w0.parse(a);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return w0.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return w0.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},g6e=class{constructor(e){Y._defineProperty(this,"featureName",a6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"setRecipient",Se(async t=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},c5e={name:"Failed to load NFT metadata"};async function mNe(r,e,t){let n=e.replace("{id}",J.ethers.utils.hexZeroPad(J.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",J.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=c5e}}return Y.CommonNFTOutput.parse({...a,id:J.BigNumber.from(r).toString(),uri:e})}async function Foe(r,e,t,n){let a,i=new J.Contract(r,X6e.default,e),s=await i.supportsInterface(Aoe),o=await i.supportsInterface(koe);if(s)a=await new J.Contract(r,mfn.default,e).tokenURI(t);else if(o)a=await new J.Contract(r,yfn.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?mNe(t,a,n):Y.CommonNFTOutput.parse({...c5e,id:J.BigNumber.from(t).toString(),uri:""})}async function yNe(r,e){return typeof r=="string"?r:await e.upload(Y.CommonNFTInput.parse(r))}async function m3(r,e,t,n){if(tpn(r))return r;if(rpn(r))return await e.uploadBatch(r.map(i=>Y.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function BX(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function rpn(r){return r.find(e=>typeof e!="object")===void 0}var _oe=class{constructor(e,t,n,a){Y._defineProperty(this,"featureName",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"nextTokenIdToMintFn",void 0),Y._defineProperty(this,"createDelayedRevealBatch",Se(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([Y.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=BX(u),p=await this.nextTokenIdToMintFn(),h=await this.storage.uploadBatch(s.map(F=>Y.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:p.toNumber()}}),m=BX(h),y=await this.contractWrapper.readContract.getBaseURICount(),C=await this.hashDelayRevealPassword(y,o),P=await this.contractWrapper.readContract.encryptDecrypt(J.ethers.utils.toUtf8Bytes(m),C),A;if(await this.isLegacyContract())A=P;else{let F=await this.contractWrapper.getChainID(),W=J.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[J.ethers.utils.toUtf8Bytes(m),C,F]);A=J.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[P,W])}return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[h.length,l.endsWith("/")?l:`${l}/`,A],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),K=W[0].args.startTokenId,z=W[0].args.endTokenId,G=[];for(let j=K;j.lte(z);j=j.add(1))G.push({id:j,receipt:F});return G}})})),Y._defineProperty(this,"reveal",Se(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(Lc("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(Lc("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>J.ethers.utils.hexDataLength(u)>0?s?u:J.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:J.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>J.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return Foe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(Lc("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new J.ethers.Contract(this.contractWrapper.readContract.address,bfn.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},v0=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),_i=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),Toe=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Se(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:J.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:J.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(I=>typeof I=="string"?0:Number(I.maxClaimable?.toString()||0)).reduce((I,C)=>I+C,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await Llt(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!Dut.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),I=await a.metadata._parseAndUploadMetadata(y);if(fo("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[I]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[hpe(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(hpe),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[fpe(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(fpe),s]));else throw new Error("Contract does not support claim conditions");return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"update",Te(async(i,s)=>{let o=await this.getAll(),c=await Dlt(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await gpe(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return mpe(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return mpe(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return ype(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return ype(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cgpe(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Se(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=J.ethers.utils.parseUnits(Y.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[Ca.NoWallet];let c=await Se(t);try{i=await this.getActive()}catch(f){return HX(f,"!CONDITION")||HX(f,"no active mint condition")?(n.push(Ca.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(Ca.Unknown),n)}i.availableSupply!=="unlimited"&&J.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(Ca.NotEnoughSupply);let l=J.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(Ca.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(Ca.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(Ca.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),am(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===J.ethers.constants.MaxUint256||f.maxClaimable===J.BigNumber.from(0))return n.push(Ca.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),am(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===J.ethers.constants.MaxUint256||f.maxClaimable===J.BigNumber.from(0)))return n.push(Ca.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(Ca.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=J.BigNumber.from(0),y=am(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let I=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(I,c)}if(f&&(y=am(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(Ca.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[J.BigNumber.from(0),J.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=J.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(J.constants.MaxUint256)?n.push(Ca.AlreadyClaimed):n.push(Ca.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&Nlt()){let f=i.price.mul(J.BigNumber.from(e)),m=this.contractWrapper.getProvider();Bh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(Ca.NotEnoughTokens):(await new ks(m,i.currencyAddress,bu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(Ca.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(J.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Se(e);return await Bhe(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return Ye(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return Blt(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Se(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},J.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},J.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV2")||Ye(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC721ClaimPhasesV2")||Ye(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV1")||Ye(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC721ClaimPhasesV1")||Ye(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?I2.V1:I2.V2}},$pe=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),Y._defineProperty(this,"setBatch",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:J.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:J.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(R=>{if(R.snapshot&&R.snapshot.length>0&&(R.maxClaimablePerWallet===void 0||R.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(C=>typeof C=="string"?0:Number(C.maxClaimable?.toString()||0)).reduce((C,P)=>C+P,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await i_t(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let p=await a.metadata.get(),h=[];if(!axt.default(p.merkle,l)){let y=await a.metadata.parseInputMetadata({...p,merkle:l}),C=await a.metadata._parseAndUploadMetadata(y);if(Lc("setContractURI",a.contractWrapper))h.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[C]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[Oge(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(Oge),s]));else if(a.isNewSinglePhaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[Fge(u[0]),s]));else if(a.isNewMultiphaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(Fge),s]));else throw new Error("Contract does not support claim conditions");return Ye.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[h]})})),Y._defineProperty(this,"update",Se(async(i,s)=>{let o=await this.getAll(),c=await a_t(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await Wge(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return Lge(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return Lge(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return qge(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return qge(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cWge(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await qe(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=J.ethers.utils.parseUnits(Y.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(h){console.warn("failed to get signer address",h)}if(!t)return[_i.NoWallet];let c=await qe(t);try{i=await this.getActive()}catch(h){return ooe(h,"!CONDITION")||ooe(h,"no active mint condition")?(n.push(_i.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",h),n.push(_i.Unknown),n)}i.availableSupply!=="unlimited"&&J.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(_i.NotEnoughSupply);let l=J.ethers.utils.stripZeros(i.merkleRootHash).length>0,p=null;if(l){if(p=await this.getClaimerProofs(c),!p&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(_i.AddressNotAllowed),n;if(p)try{let h=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,h.proofs,h.maxClaimable),!m)return n.push(_i.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:h.proofs,maxQuantityInAllowlist:h.maxClaimable}),!m)return n.push(_i.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,h.currencyAddress,h.price,{proof:h.proofs,quantityLimitPerWallet:h.maxClaimable,currency:h.currencyAddressInProof,pricePerToken:h.priceInProof}),M1(i.maxClaimablePerWallet,s).eq(0)&&h.maxClaimable===J.ethers.constants.MaxUint256||h.maxClaimable===J.BigNumber.from(0))return n.push(_i.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,h.currencyAddress,h.price,{proof:h.proofs,quantityLimitPerWallet:h.maxClaimable,currency:h.currencyAddressInProof,pricePerToken:h.priceInProof}),M1(i.maxClaimablePerWallet,s).eq(0)&&h.maxClaimable===J.ethers.constants.MaxUint256||h.maxClaimable===J.BigNumber.from(0)))return n.push(_i.AddressNotAllowed),n}catch(h){return console.warn("Merkle proof verification failed:","reason"in h?h.reason:h),n.push(_i.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let h=await this.getClaimerProofs(c),m=J.BigNumber.from(0),y=M1(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let C=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(C,c)}if(h&&(y=M1(h.maxClaimable,s)),(!l||l&&!p)&&(y.lte(m)||y.eq(0)))return n.push(_i.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[h,m]=[J.BigNumber.from(0),J.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[h,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=J.BigNumber.from(Date.now()).div(1e3);h.gt(0)&&y.lt(m)&&(m.eq(J.constants.MaxUint256)?n.push(_i.AlreadyClaimed):n.push(_i.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&t_t()){let h=i.price.mul(J.BigNumber.from(e)),m=this.contractWrapper.getProvider();Gh(i.currencyAddress)?(await m.getBalance(c)).lt(h)&&n.push(_i.NotEnoughTokens):(await new Po(m,i.currencyAddress,$u.default,{}).readContract.balanceOf(c)).lt(h)&&n.push(_i.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(J.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await qe(e);return await o5e(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return kt(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return n_t(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await qe(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},J.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},J.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return kt(e,"ERC721ClaimConditionsV2")||kt(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return kt(e,"ERC721ClaimPhasesV2")||kt(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return kt(e,"ERC721ClaimConditionsV1")||kt(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return kt(e,"ERC721ClaimPhasesV1")||kt(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?u3.V1:u3.V2}},v6e=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Se(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),Y._defineProperty(this,"setBatch",Se(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async p=>{let{tokenId:h,claimConditions:m}=p,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:J.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:J.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(A=>{if(A.snapshot&&A.snapshot.length>0&&(A.maxClaimablePerWallet===void 0||A.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(R.snapshot&&R.snapshot.length>0&&R.maxClaimablePerWallet?.toString()==="0"&&R.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:I,sortedConditions:C}=await Llt(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return I.forEach(R=>{o[R.merkleRoot]=R.snapshotUri}),{tokenId:f,sortedConditions:C}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!Dut.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(fo("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,hpe(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(hpe),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,fpe(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(fpe),s]));else throw new Error("Contract does not support claim conditions")}),De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),Y._defineProperty(this,"update",Te(async(i,s,o)=>{let c=await this.getAll(i),u=await Dlt(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await gpe(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return mpe(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return mpe(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return ype(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return ype(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cgpe(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Se(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[Ca.NoWallet];let o=await Se(n);try{s=await this.getActive(e)}catch(y){return HX(y,"!CONDITION")||HX(y,"no active mint condition")?(a.push(Ca.NoClaimConditionSet),a):(a.push(Ca.Unknown),a)}s.availableSupply!=="unlimited"&&J.BigNumber.from(s.availableSupply).lt(t)&&a.push(Ca.NotEnoughSupply);let u=J.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(Ca.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),I;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!I)return a.push(Ca.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!I)return a.push(Ca.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===J.ethers.constants.MaxUint256||y.maxClaimable===J.BigNumber.from(0))return a.push(Ca.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===J.ethers.constants.MaxUint256||y.maxClaimable===J.BigNumber.from(0)))return a.push(Ca.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(Ca.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(Ca.AddressNotAllowed),a;let[h,f]=[J.BigNumber.from(0),J.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=J.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(J.constants.MaxUint256)?a.push(Ca.AlreadyClaimed):a.push(Ca.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&Nlt()){let y=s.price.mul(t),I=this.contractWrapper.getProvider();Bh(s.currencyAddress)?(await I.getBalance(o)).lt(y)&&a.push(Ca.NotEnoughTokens):(await new ks(I,s.currencyAddress,bu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(Ca.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(J.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Se(t);return await Bhe(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Se(a||await this.contractWrapper.getSignerAddress());return Blt(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Se(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},J.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},J.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?I2.V1:I2.V2}},Qpe=class{constructor(e,t){Y._defineProperty(this,"featureName",YX.name),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),Y._defineProperty(this,"from",Te(async(n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Se(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},fEe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",VX.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new A0(this.contractWrapper,_2,this.storage);this.conditions=new ree(this.contractWrapper,a,this.storage)}},mEe=class{constructor(e,t,n){Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new fEe(this.erc20,this.contractWrapper,this.storage)}},Jpe=class{constructor(e,t){Y._defineProperty(this,"featureName",Cpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"to",Te(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Se(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},Zpe=class{constructor(e,t){Y._defineProperty(this,"featureName",$X.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Te(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(Ye(this.contractWrapper,"ERC20BatchMintable"))return new Jpe(this.erc20,this.contractWrapper)}},Xpe=class{constructor(e,t){Y._defineProperty(this,"featureName",Epe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await S0(this.contractWrapper,J.BigNumber.from(s.price),a.currencyAddress,o),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),Y._defineProperty(this,"mintBatch",Te(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(J.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>NEe.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();_t.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await Xut.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:ilt},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=J.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},ehe=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",kpe.name),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"droppable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Se(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferFrom",Te(async(a,i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Se(a),await Se(i),await this.normalizeAmount(s)]}))),Y._defineProperty(this,"setAllowance",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Se(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferBatch",Te(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Se(s.toAddress),o])}));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),Y._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,$X).to.prepare(a,i))),Y._defineProperty(this,"mintBatchTo",Te(async a=>Xt(this.mintable?.batch,Cpe).to.prepare(a))),Y._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,YX).tokens.prepare(a))),Y._defineProperty(this,"burnFrom",Te(async(a,i)=>Xt(this.burnable,YX).from.prepare(a,i))),Y._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Te(async(a,i,s)=>Xt(this.droppable?.claim,VX).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await LV(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Se(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Se(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Se(e),await Se(t)))}async getMintTransaction(e,t){return Xt(this.mintable,$X).getMintTransaction(e,t)}get claimConditions(){return Xt(this.droppable?.claim,VX).conditions}get signature(){return Xt(this.signatureMintable,Epe)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return J.ethers.utils.parseUnits(Y.AmountSchema.parse(e),t)}async getValue(e){return await yp(this.contractWrapper.getProvider(),this.getAddress(),J.BigNumber.from(e))}detectErc20Mintable(){if(Ye(this.contractWrapper,"ERC20"))return new Zpe(this,this.contractWrapper)}detectErc20Burnable(){if(Ye(this.contractWrapper,"ERC20Burnable"))return new Qpe(this,this.contractWrapper)}detectErc20Droppable(){if(Ye(this.contractWrapper,"ERC20ClaimConditionsV1")||Ye(this.contractWrapper,"ERC20ClaimConditionsV2")||Ye(this.contractWrapper,"ERC20ClaimPhasesV1")||Ye(this.contractWrapper,"ERC20ClaimPhasesV2"))return new mEe(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(Ye(this.contractWrapper,"ERC20SignatureMintable"))return new Xpe(this.contractWrapper)}},the=class{constructor(e){Y._defineProperty(this,"featureName",Ape.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"token",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},yEe=class{constructor(e,t){Y._defineProperty(this,"featureName",JX.name),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Te(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await Olt(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},rhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Spe.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new A0(this.contractWrapper,_2,this.storage);this.conditions=new ree(this.contractWrapper,a,this.storage)}},nhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Rpe.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await P2(a,this.storage,s.toNumber(),i),c=EV(o);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,J.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if(Ye(this.contractWrapper,"ERC721Revealable"))return new tee(this.contractWrapper,this.storage,QX.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC721ClaimConditionsV1")||Ye(this.contractWrapper,"ERC721ClaimConditionsV2")||Ye(this.contractWrapper,"ERC721ClaimPhasesV1")||Ye(this.contractWrapper,"ERC721ClaimPhasesV2"))return new rhe(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if(Ye(this.contractWrapper,"ERC721ClaimCustom"))return new yEe(this.erc721,this.contractWrapper)}},ahe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Mpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=await P2(i,this.storage),o=await Se(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},ihe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Npe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=await VEe(i,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Se(e),t)}detectErc721BatchMintable(){if(Ye(this.contractWrapper,"ERC721BatchMintable"))return new ahe(this.erc721,this.contractWrapper,this.storage)}},she=class{constructor(e,t){Y._defineProperty(this,"featureName",iEe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Se(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},ohe=class{constructor(e,t){Y._defineProperty(this,"featureName",IV.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=J.BigNumber.from(e?.start||0).toNumber(),n=J.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>J.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(Ye(this.contractWrapper,"ERC721Enumerable"))return new she(this.erc721,this.contractWrapper)}},ZNr=She.extend({tierPriority:de.z.array(de.z.string()),royaltyRecipient:Ii.default(J.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0),quantity:Cs.default(1)}),gEe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Ppe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([Y.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=EV(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>Y.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=EV(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(J.ethers.utils.toUtf8Bytes(l),m),I,C=J.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[J.ethers.utils.toUtf8Bytes(l),m,f]);I=J.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,C]);let R=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,I]),L=this.contractWrapper.parseLogs("TokensLazyMinted",R?.logs),F=L[0].args[1],W=L[0].args[2],V=[];for(let K=F;K.lte(W);K=K.add(1))V.push({id:K,receipt:R,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>ZNr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return _t.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:ult},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await Tc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await S0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=J.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},che=class{constructor(e,t){Y._defineProperty(this,"featureName",Bpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await S0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await S0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),Y._defineProperty(this,"mintBatch",Te(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(J.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(fo("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>nlt.parseAsync(c))),a=n.map(c=>c.metadata),i=await P2(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return _t.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await alt.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:slt},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:clt},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return Ye(this.contractWrapper,"ERC721SignatureMintV1")}},uhe=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",Dpe.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"tieredDropable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Te(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Se(a),i]})})),Y._defineProperty(this,"setApprovalForAll",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Se(a),i]}))),Y._defineProperty(this,"setApprovalForToken",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Se(a),i]}))),Y._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,Npe).to.prepare(a,i))),Y._defineProperty(this,"mintBatch",Te(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintBatchTo",Te(async(a,i)=>Xt(this.mintable?.batch,Mpe).to.prepare(a,i))),Y._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,Ape).token.prepare(a))),Y._defineProperty(this,"lazyMint",Te(async(a,i)=>Xt(this.lazyMintable,Rpe).lazyMint.prepare(a,i))),Y._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Te(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new P0(JX)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>J.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Dhe}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Se(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Se(e),await Se(t))}async getAll(e){return Xt(this.query,IV).all(e)}async getAllOwners(){return Xt(this.query,IV).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return Xt(this.query,IV).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Se(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Se(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>J.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new P0(JX)}async totalClaimedSupply(){let e=this.contractWrapper;if(fo("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(fo("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,Spe).conditions}get tieredDrop(){return Xt(this.tieredDropable,Ppe)}get signature(){return Xt(this.signatureMintable,Bpe)}get revealer(){return Xt(this.lazyMintable?.revealer,QX)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new UX;return GEe(e,t,this.storage)}async nextTokenIdToMint(){if(fo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(fo("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(Ye(this.contractWrapper,"ERC721Supply")||fo("nextTokenIdToMint",this.contractWrapper))return new ohe(this,this.contractWrapper)}detectErc721Mintable(){if(Ye(this.contractWrapper,"ERC721Mintable"))return new ihe(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(Ye(this.contractWrapper,"ERC721Burnable"))return new the(this.contractWrapper)}detectErc721LazyMintable(){if(Ye(this.contractWrapper,"ERC721LazyMintable"))return new nhe(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(Ye(this.contractWrapper,"ERC721TieredDrop"))return new gEe(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(Ye(this.contractWrapper,"ERC721SignatureMintV1")||Ye(this.contractWrapper,"ERC721SignatureMintV2"))return new che(this.contractWrapper,this.storage)}},wut=de.z.object({address:Ii,quantity:Y.AmountSchema.default(1)}),XNr=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>wut.parseAsync({address:e})))),de.z.array(wut)]),lhe=class{constructor(e){Y._defineProperty(this,"featureName",b2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),Y._defineProperty(this,"from",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Se(t),n,a]}))),Y._defineProperty(this,"batch",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),Y._defineProperty(this,"batchFrom",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Se(t),n,a]}))),this.contractWrapper=e}},dhe=class{constructor(e,t){Y._defineProperty(this,"featureName",w2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=J.BigNumber.from(e?.start||0).toNumber(),n=J.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Se(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function YEe(r,e){try{let t=new J.ethers.Contract(r,IEe.default,e),[n,a]=await Promise.all([J.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var bEe=class{constructor(e){Y._defineProperty(this,"featureName",ZX.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Te(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await Olt(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Se(e),t,n],overrides:i})}},vEe=class{constructor(e,t){Y._defineProperty(this,"featureName",Lpe.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new A0(this.contractWrapper,_2,this.storage);this.conditions=new $pe(e,n,this.storage)}},phe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Ope.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await P2(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,I=[];for(let C=m;C.lte(y);C=C.add(1))I.push({id:C,receipt:h,data:()=>this.erc1155.getTokenMetadata(C)});return I},l=await YEe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,J.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if(Ye(this.contractWrapper,"ERC1155ClaimCustom"))return new bEe(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC1155ClaimConditionsV1")||Ye(this.contractWrapper,"ERC1155ClaimConditionsV2")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV1")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new vEe(this.contractWrapper,this.storage)}detectErc1155Revealable(){if(Ye(this.contractWrapper,"ERC1155Revealable"))return new tee(this.contractWrapper,this.storage,kV.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},hhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Fpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await P2(s,this.storage),u=await Se(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,J.ethers.constants.MaxUint256,h,o[f]])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},fhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",v2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Te(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),Y._defineProperty(this,"additionalSupplyTo",Te(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(a),i,o.uri,s],parse:c=>({id:J.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await VEe(t.metadata,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Se(e),J.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if(Ye(this.contractWrapper,"ERC1155BatchMintable"))return new hhe(this.erc1155,this.contractWrapper,this.storage)}},mhe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",qpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Te(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await S0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),Y._defineProperty(this,"mintBatch",Te(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(J.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(fo("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:J.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:J.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>tlt.parseAsync(u))),n=t.map(u=>u.metadata),a=await P2(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();_t.default(s,"No signer available");let c=(await YEe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await rlt.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:olt},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await Tc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},yhe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Y._defineProperty(this,"featureName",Wpe.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Te(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Se(i),s,o,c]})})),Y._defineProperty(this,"setApprovalForAll",Te(async(i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),Y._defineProperty(this,"airdrop",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await XNr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:I}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,I,o])});return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"mint",Te(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintTo",Te(async(i,s)=>Xt(this.mintable,v2).to.prepare(i,s))),Y._defineProperty(this,"mintAdditionalSupply",Te(async(i,s)=>Xt(this.mintable,v2).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),Y._defineProperty(this,"mintAdditionalSupplyTo",Te(async(i,s,o)=>Xt(this.mintable,v2).additionalSupplyTo.prepare(i,s,o))),Y._defineProperty(this,"mintBatch",Te(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintBatchTo",Te(async(i,s)=>Xt(this.mintable?.batch,Fpe).to.prepare(i,s))),Y._defineProperty(this,"burn",Te(async(i,s)=>Xt(this.burnable,b2).tokens.prepare(i,s))),Y._defineProperty(this,"burnFrom",Te(async(i,s,o)=>Xt(this.burnable,b2).from.prepare(i,s,o))),Y._defineProperty(this,"burnBatch",Te(async(i,s)=>Xt(this.burnable,b2).batch.prepare(i,s))),Y._defineProperty(this,"burnBatchFrom",Te(async(i,s,o)=>Xt(this.burnable,b2).batchFrom.prepare(i,s,o))),Y._defineProperty(this,"lazyMint",Te(async(i,s)=>Xt(this.lazyMintable,Ope).lazyMint.prepare(i,s))),Y._defineProperty(this,"claim",Te(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),Y._defineProperty(this,"claimTo",Te(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new P0(ZX)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>J.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Dhe}))]);return{owner:J.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Se(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Se(e),await Se(t))}async nextTokenIdToMint(){if(fo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return Xt(this.query,w2).all(e)}async totalCount(){return Xt(this.query,w2).totalCount()}async totalCirculatingSupply(e){return Xt(this.query,w2).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Se(e)),Xt(this.query,w2).owned(e)}async getMintTransaction(e,t){return Xt(this.mintable,v2).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new P0(ZX)}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,Lpe).conditions}get signature(){return Xt(this.signatureMintable,qpe)}get revealer(){return Xt(this.lazyMintable?.revealer,kV)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new UX;return GEe(e,t,this.storage)}detectErc1155Enumerable(){if(Ye(this.contractWrapper,"ERC1155Enumerable"))return new dhe(this,this.contractWrapper)}detectErc1155Mintable(){if(Ye(this.contractWrapper,"ERC1155Mintable"))return new fhe(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(Ye(this.contractWrapper,"ERC1155Burnable"))return new lhe(this.contractWrapper)}detectErc1155LazyMintable(){if(Ye(this.contractWrapper,"ERC1155LazyMintableV1")||Ye(this.contractWrapper,"ERC1155LazyMintableV2"))return new phe(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(Ye(this.contractWrapper,"ERC1155SignatureMintable"))return new mhe(this.contractWrapper,this.storage)}};async function rdt(r,e,t,n,a){try{let i=new J.Contract(t,Ahe.default,r),s=await i.supportsInterface(see),o=await i.supportsInterface(oee);if(s){let c=new J.Contract(t,Ic.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new J.Contract(t,ju.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function nee(r,e,t,n,a){let i=new ks(r.getSignerOrProvider(),t,Ahe.default,r.options),s=await i.readContract.supportsInterface(see),o=await i.readContract.supportsInterface(oee);if(s){let c=new ks(r.getSignerOrProvider(),t,Ic.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new ks(r.getSignerOrProvider(),t,ju.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function eBr(r){switch(_t.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),_t.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),_t.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),_t.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),_t.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),_t.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":_t.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function tBr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await yp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function rBr(r,e,t){return t=J.BigNumber.from(t),r=J.BigNumber.from(r),e=J.BigNumber.from(e),r.eq(J.BigNumber.from(0))?!1:e.sub(r).mul(Y.MAX_BPS).div(r).gte(t)}async function NV(r,e,t){let n=[];for(;e-r>Y.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+Y.DEFAULT_QUERY_ALL_COUNT-1)),r+=Y.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var xut=de.z.object({assetContractAddress:Ii,tokenId:Vs,quantity:Vs.default(1),currencyContractAddress:Ii.default(Hu),pricePerToken:Y.AmountSchema,startTimestamp:cee.default(new Date),endTimestamp:uee,isReservedListing:de.z.boolean().default(!1)}),C2=class{constructor(e){Y._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(xl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(xl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await xut.parseAsync(n);await nee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Tc(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=J.BigNumber.from(o)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:ppe(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),Y._defineProperty(this,"updateListing",Te(async(n,a)=>{let i=await xut.parseAsync(a);await nee(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await Tc(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:ppe(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),Y._defineProperty(this,"cancelListing",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),Y._defineProperty(this,"buyFromListing",Te(async(n,a,i)=>{i&&(i=await Se(i));let s=await this.validateListing(J.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=J.BigNumber.from(a),h=J.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await S0(this.contractWrapper,h,s.currencyContractAddress,f),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Y._defineProperty(this,"approveBuyerForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),Y._defineProperty(this,"revokeBuyerApprovalForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),Y._defineProperty(this,"approveCurrencyForListing",Te(async(n,a,i)=>{let s=await this.validateListing(J.BigNumber.from(n)),o=await Se(a);o===s.currencyContractAddress&&_t.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return _t.default(i===c,"Currency already approved with this price."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),Y._defineProperty(this,"revokeCurrencyApprovalForListing",Te(async(n,a)=>{let i=await this.validateListing(J.BigNumber.from(n)),s=await Se(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return _t.default(!o.isZero(),"Currency not approved."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,J.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(J.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Se(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(J.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Se(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(J.BigNumber.from(e)),a=await Se(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Ko.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.startTimestamp).gt(a)?Ko.Created:J.BigNumber.from(e.endTimestamp).lt(a)?Ko.Expired:Ko.Active;break;case 2:t=Ko.Completed;break;case 3:t=Ko.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await yp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:J.BigNumber.from(e.startTimestamp).toNumber(),asset:await hee(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:J.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await rdt(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new J.Contract(e.assetContractAddress,Ahe.default,a),s=await i.supportsInterface(see),o=await i.supportsInterface(oee);if(s){let u=(await new J.Contract(e.assetContractAddress,Ic.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new J.Contract(e.assetContractAddress,ju.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Se(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Se(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=nBr.parse(n);await nee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Tc(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await Tc(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=J.BigNumber.from(c)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:ppe(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),Y._defineProperty(this,"buyoutAuction",Te(async n=>{let a=await this.validateAuction(J.BigNumber.from(n)),i=await LV(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,J.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),Y._defineProperty(this,"makeBid",Te(async(n,a)=>{let i=await this.validateAuction(J.BigNumber.from(n)),s=await Tc(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(J.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(J.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);_t.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=J.BigNumber.from(i.minimumBidAmount);_t.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await S0(this.contractWrapper,s,i.currencyContractAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),Y._defineProperty(this,"cancelAuction",Te(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),Y._defineProperty(this,"closeAuctionForBidder",Te(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(J.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[J.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new TV(n.toString(),i.endTimeInSeconds.toString()):s}})),Y._defineProperty(this,"closeAuctionForSeller",Te(async n=>{let a=await this.validateAuction(J.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[J.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new TV(n.toString(),a.endTimeInSeconds.toString()):i}})),Y._defineProperty(this,"executeSale",Te(async n=>{let a=await this.validateAuction(J.BigNumber.from(n));try{let i=await this.getWinningBid(n);_t.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new TV(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(J.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==J.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(J.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=J.BigNumber.from(Math.floor(Date.now()/1e3)),i=J.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==J.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(J.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(J.BigNumber.from(e))]),i=n?J.BigNumber.from(n.bidAmount):J.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return yp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Ko.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.startTimestamp).gt(a)?Ko.Created:J.BigNumber.from(e.endTimestamp).lt(a)?Ko.Expired:Ko.Active;break;case 2:t=Ko.Completed;break;case 3:t=Ko.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await yp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await yp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:J.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:J.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:J.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:J.BigNumber.from(e.endTimestamp).toNumber(),asset:await hee(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Se(t),s=await Se(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await yp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Se(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Se(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await aBr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Bh(a.currencyContractAddress)?FX[i].wrapped.address:a.currencyContractAddress,o=await Tc(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await S0(this.contractWrapper,o,s,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),Y._defineProperty(this,"cancelOffer",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),Y._defineProperty(this,"acceptOffer",Te(async n=>{let a=await this.validateOffer(J.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await nee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await NV(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Ko.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.expirationTimestamp).lt(a)?Ko.Expired:Ko.Active;break;case 2:t=Ko.Completed;break;case 3:t=Ko.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await yp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await hee(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:J.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(J.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Bh(e.currencyContractAddress)?FX[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new ks(i,a,bu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Se(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Se(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Vo(V6e())})).default:(await Promise.resolve().then(function(){return Vo(Y6e())})).default}},R0={name:"TokenERC1155",contractType:"edition",schema:Tlt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo($6e())})).default}},gp={name:"Marketplace",contractType:"marketplace",schema:LEe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(X6e())})).default}},om={name:"MarketplaceV3",contractType:"marketplace-v3",schema:LEe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return await jpe(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Vo(eIe())})).default;return await jpe(r,Gi.parse(a||[]),e,{},t)}},bp={name:"Multiwrap",contractType:"multiwrap",schema:sdt,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(rIe())})).default}},M0={name:"TokenERC721",contractType:"nft-collection",schema:xlt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(nIe())})).default}},Ph={name:"DropERC721",contractType:"nft-drop",schema:DEe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Vo(aIe())})).default:(await Promise.resolve().then(function(){return Vo(iIe())})).default}},Tl={name:"Pack",contractType:"pack",schema:mlt,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||Gi.parse((await Promise.resolve().then(function(){return Vo(uIe())})).default||[])}},Sh={name:"SignatureDrop",contractType:"signature-drop",schema:DEe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Vo(lIe())})).default:(await Promise.resolve().then(function(){return Vo(dIe())})).default}},Rh={name:"Split",contractType:"split",schema:glt,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(hIe())})).default}},N0={name:"DropERC20",contractType:"token-drop",schema:adt,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);if(n)return n;let a=await Lhe(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Vo(mIe())})).default:(await Promise.resolve().then(function(){return Vo(yIe())})).default}},Mh={name:"TokenERC20",contractType:"token",schema:vlt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(vIe())})).default}},Nh={name:"VoteERC20",contractType:"vote",schema:Clt,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await El(r,e,t);return n||(await Promise.resolve().then(function(){return Vo(TIe())})).default}};async function Lhe(r,e){try{return await YEe(r,e)}catch{return}}var cm={[Ah.contractType]:Ah,[R0.contractType]:R0,[gp.contractType]:gp,[om.contractType]:om,[bp.contractType]:bp,[M0.contractType]:M0,[Ph.contractType]:Ph,[Tl.contractType]:Tl,[Sh.contractType]:Sh,[Rh.contractType]:Rh,[N0.contractType]:N0,[Mh.contractType]:Mh,[Nh.contractType]:Nh},odt={[Ah.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[R0.contractType]:"",[gp.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[om.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[bp.contractType]:"",[M0.contractType]:"",[Ph.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Tl.contractType]:"",[Sh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Rh.contractType]:"",[N0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Mh.contractType]:"",[Nh.contractType]:""},_ut={name:"SmartContract",contractType:"custom",schema:{},roles:FEe},$Ee={...cm,[_ut.contractType]:_ut};function QEe(r){return Object.values($Ee).find(e=>e.name===r)?.contractType||"custom"}function JEe(r){return Object.values($Ee).find(e=>e.contractType===r)?.name}async function cdt(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Tl.contractType?[]:CEe(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Ph.contractType:case M0.contractType:let o=await Ph.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Sh.contractType:let c=await Sh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case bp.contractType:let u=await bp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Ah.contractType:case R0.contractType:let l=await Ah.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case N0.contractType:case Mh.contractType:let h=await Mh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Nh.contractType:let f=await Nh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,J.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Rh.contractType:let m=await Rh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(C=>C.address),m.recipients.map(C=>J.BigNumber.from(C.sharesBps))];case gp.contractType:case om.contractType:let y=await gp.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Tl.contractType:let I=await Tl.schema.deploy.parseAsync(e);return[i,I.name,I.symbol,t,s,I.fee_recipient,I.seller_fee_basis_points];default:return[]}}function uBr(r,e){return r||(e?.gatewayUrls?new Dg.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new Dg.ThirdwebStorage)}var aee=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Tpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Te(async a=>Ye(this.contractWrapper,"AppURI")?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return Ye(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():Dg.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},whe=class{constructor(e){Y._defineProperty(this,"featureName",wpe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Te(async t=>{let n=await vp.parseAsync(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return vp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},xhe=class{constructor(e,t){Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await B0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return SV(Gi.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return Zlt(Gi.parse(this.contractWrapper.abi),e?.metadata)}},_he=class{get royalties(){return Xt(this.detectRoyalties(),bpe)}get roles(){return Xt(this.detectRoles(),xpe)}get sales(){return Xt(this.detectPrimarySales(),vpe)}get platformFees(){return Xt(this.detectPlatformFees(),wpe)}get owner(){return Xt(this.detectOwnable(),Ipe)}get erc20(){return Xt(this.detectErc20(),kpe)}get erc721(){return Xt(this.detectErc721(),Dpe)}get erc1155(){return Xt(this.detectErc1155(),Wpe)}get app(){return Xt(this.detectApp(),Tpe)}get directListings(){return Xt(this.detectDirectListings(),zX)}get englishAuctions(){return Xt(this.detectEnglishAuctions(),KX)}get offers(){return Xt(this.detectOffers(),GX)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ks(e,t,n,i);Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"interceptor",void 0),Y._defineProperty(this,"encoder",void 0),Y._defineProperty(this,"estimator",void 0),Y._defineProperty(this,"publishedMetadata",void 0),Y._defineProperty(this,"abi",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=Gi.parse(n||[]),this.events=new C2(this.contractWrapper),this.encoder=new E2(this.contractWrapper),this.interceptor=new k2(this.contractWrapper),this.estimator=new A2(this.contractWrapper),this.publishedMetadata=new xhe(this.contractWrapper,this.storage),this.metadata=new A0(this.contractWrapper,_2,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectRoyalties(){if(Ye(this.contractWrapper,"Royalty")){let e=new A0(this.contractWrapper,_2,this.storage);return new Vpe(this.contractWrapper,e)}}detectRoles(){if(Ye(this.contractWrapper,"Permissions"))return new Gpe(this.contractWrapper,FEe)}detectPrimarySales(){if(Ye(this.contractWrapper,"PrimarySale"))return new Ype(this.contractWrapper)}detectPlatformFees(){if(Ye(this.contractWrapper,"PlatformFee"))return new whe(this.contractWrapper)}detectErc20(){if(Ye(this.contractWrapper,"ERC20"))return new ehe(this.contractWrapper,this.storage,this.chainId)}detectErc721(){if(Ye(this.contractWrapper,"ERC721"))return new uhe(this.contractWrapper,this.storage,this.chainId)}detectErc1155(){if(Ye(this.contractWrapper,"ERC1155"))return new yhe(this.contractWrapper,this.storage,this.chainId)}detectOwnable(){if(Ye(this.contractWrapper,"Ownable"))return new Che(this.contractWrapper)}detectApp(){let e=new A0(this.contractWrapper,_2,this.storage);if(Ye(this.contractWrapper,"AppURI"))return new aee(this.contractWrapper,e,this.storage);if(Ye(this.contractWrapper,"ContractMetadata"))return new aee(this.contractWrapper,e,this.storage)}detectDirectListings(){if(Ye(this.contractWrapper,"DirectListings"))return new ghe(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(Ye(this.contractWrapper,"EnglishAuctions"))return new bhe(this.contractWrapper,this.storage)}detectOffers(){if(Ye(this.contractWrapper,"Offers"))return new vhe(this.contractWrapper,this.storage)}},The=class extends T2{constructor(e,t,n){super(e,t),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"publisher",void 0),Y._defineProperty(this,"updatePublisherProfile",Te(async a=>{let i=this.getSigner();_t.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),Y._defineProperty(this,"publish",Te(async(a,i)=>{let s=this.getSigner();_t.default(s,"A signer is required");let o=await s.getAddress(),c=await jEe(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let R=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!ddt(R,i.version))throw Error(`Version ${i.version} is not greater than ${R}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=J.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=bdt.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),I=await this.storage.upload(y);return De.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,I,c.metadataUri,f,J.constants.AddressZero],parse:C=>{let R=this.publisher.parseLogs("ContractPublished",C.logs);if(R.length<1)throw new Error("No ContractPublished event found");let L=R[0].args.publishedContract;return{receipt:C,data:async()=>this.toPublishedContract(L)}}})})),Y._defineProperty(this,"unpublish",Te(async(a,i)=>{let s=await Se(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new ks(e,Hut(),gMr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return Ylt(e,this.storage)}async extractFunctions(e){return $lt(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return RV(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await RV(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Se(e);return B0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return zEe(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Se(e),n=await eee(t,this.getProvider());return _t.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Se(e),n=await this.fetchCompilerMetadataFromAddress(t);return await Ohe(n,this.storage)}async getPublisherProfile(e){let t=await Se(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:xdt.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Se(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Se(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Se(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return _t.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Se(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return _dt.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},wEe=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y._defineProperty(this,"registryLogic",void 0),Y._defineProperty(this,"registryRouter",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Se(o.address),o.chainId])));return De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new ks(e,FIe(),bMr.default,n),this.registryRouter=new ks(e,FIe(),vMr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Se(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Se(e))).filter(t=>J.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==J.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},BV=class{constructor(e,t){Y._defineProperty(this,"connection",void 0),Y._defineProperty(this,"options",void 0),Y._defineProperty(this,"events",new BIe.default),this.connection=new T2(e,t),this.options=t,this.events=new BIe.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hu,a=await Se(e),i=await Se(n),s=this.requireWallet(),o=await Tc(this.connection.getProvider(),t,n);if(Bh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hu;this.requireWallet();let t=await Se(e),n=this.connection.getProvider(),a;return Bh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await yp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await jX(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=J.ethers.utils.hashMessage(e),a=J.ethers.utils.arrayify(n);return J.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Ne.Localhost||t===Ne.Hardhat)return new BV(new J.ethers.Wallet(Wut,WX(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return _t.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new ks(this.connection.getSignerOrProvider(),e,bu.default,this.options)}},sm=class extends T2{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return sm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=WX(t,n);i=e.connect(o)}let s=new sm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=WX(t,n),s=new J.Wallet(e,i);return new sm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;Mhe(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),Y._defineProperty(this,"contractCache",new Map),Y._defineProperty(this,"_publisher",void 0),Y._defineProperty(this,"storageHandler",void 0),Y._defineProperty(this,"deployer",void 0),Y._defineProperty(this,"multiChainRegistry",void 0),Y._defineProperty(this,"wallet",void 0),Y._defineProperty(this,"storage",void 0),qut(t?.supportedChains);let a=uBr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new BV(e,t),this.deployer=new Ehe(e,t,a),this.multiChainRegistry=new wEe(e,this.storageHandler,this.options),this._publisher=new The(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(A.snapshot&&A.snapshot.length>0&&A.maxClaimablePerWallet?.toString()==="0"&&A.snapshot.map(B=>typeof B=="string"?0:Number(B.maxClaimable?.toString()||0)).reduce((B,F)=>B+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:C,sortedConditions:P}=await i_t(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return C.forEach(A=>{o[A.merkleRoot]=A.snapshotUri}),{tokenId:h,sortedConditions:P}})),u=await a.metadata.get(),l=[];for(let p of Object.keys(u.merkle||{}))o[p]=u.merkle[p];if(!axt.default(u.merkle,o)){let p=await a.metadata.parseInputMetadata({...u,merkle:o}),h=await a.metadata._parseAndUploadMetadata(p);if(Lc("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[h]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(p=>{let{tokenId:h,sortedConditions:m}=p;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,Oge(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,m.map(Oge),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,Fge(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,m.map(Fge),s]));else throw new Error("Contract does not support claim conditions")}),Ye.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),Y._defineProperty(this,"update",Se(async(i,s,o)=>{let c=await this.getAll(i),u=await a_t(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await Wge(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return Lge(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return Lge(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return qge(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return qge(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cWge(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await qe(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[_i.NoWallet];let o=await qe(n);try{s=await this.getActive(e)}catch(y){return ooe(y,"!CONDITION")||ooe(y,"no active mint condition")?(a.push(_i.NoClaimConditionSet),a):(a.push(_i.Unknown),a)}s.availableSupply!=="unlimited"&&J.BigNumber.from(s.availableSupply).lt(t)&&a.push(_i.NotEnoughSupply);let u=J.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(_i.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),C;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[C]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!C)return a.push(_i.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([C]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!C)return a.push(_i.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===J.ethers.constants.MaxUint256||y.maxClaimable===J.BigNumber.from(0))return a.push(_i.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===J.ethers.constants.MaxUint256||y.maxClaimable===J.BigNumber.from(0)))return a.push(_i.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(_i.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(_i.AddressNotAllowed),a;let[p,h]=[J.BigNumber.from(0),J.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[p,h]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([p,h]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=J.BigNumber.from(Date.now()).div(1e3);if(p.gt(0)&&m.lt(h)&&(h.eq(J.constants.MaxUint256)?a.push(_i.AlreadyClaimed):a.push(_i.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&t_t()){let y=s.price.mul(t),C=this.contractWrapper.getProvider();Gh(s.currencyAddress)?(await C.getBalance(o)).lt(y)&&a.push(_i.NotEnoughTokens):(await new Po(C,s.currencyAddress,$u.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(_i.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(J.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await qe(t);return await o5e(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await qe(a||await this.contractWrapper.getSignerAddress());return n_t(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await qe(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},J.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},J.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return kt(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return kt(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return kt(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return kt(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?u3.V1:u3.V2}},w6e=class{constructor(e,t){Y._defineProperty(this,"featureName",loe.name),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Se(async n=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),Y._defineProperty(this,"from",Se(async(n,a)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await qe(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},SDe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",uoe.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Se(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new _b(this.contractWrapper,c3,this.storage);this.conditions=new Toe(this.contractWrapper,a,this.storage)}},PDe=class{constructor(e,t,n){Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new SDe(this.erc20,this.contractWrapper,this.storage)}},x6e=class{constructor(e,t){Y._defineProperty(this,"featureName",Hge.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"to",Se(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await qe(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},_6e=class{constructor(e,t){Y._defineProperty(this,"featureName",foe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Se(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await qe(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(kt(this.contractWrapper,"ERC20BatchMintable"))return new x6e(this.erc20,this.contractWrapper)}},T6e=class{constructor(e,t){Y._defineProperty(this,"featureName",Uge.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Se(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await Ib(this.contractWrapper,J.BigNumber.from(s.price),a.currencyAddress,o),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),Y._defineProperty(this,"mintBatch",Se(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(J.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>QDe.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();Pt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await xxt.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Axt},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await ru(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=J.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},E6e=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",jge.name),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"droppable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Se(async(a,i)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await qe(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferFrom",Se(async(a,i,s)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await qe(a),await qe(i),await this.normalizeAmount(s)]}))),Y._defineProperty(this,"setAllowance",Se(async(a,i)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await qe(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferBatch",Se(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await qe(s.toAddress),o])}));return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),Y._defineProperty(this,"mint",Se(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Se(async(a,i)=>vr(this.mintable,foe).to.prepare(a,i))),Y._defineProperty(this,"mintBatchTo",Se(async a=>vr(this.mintable?.batch,Hge).to.prepare(a))),Y._defineProperty(this,"burn",Se(async a=>vr(this.burnable,loe).tokens.prepare(a))),Y._defineProperty(this,"burnFrom",Se(async(a,i)=>vr(this.burnable,loe).from.prepare(a,i))),Y._defineProperty(this,"claim",Se(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Se(async(a,i,s)=>vr(this.droppable?.claim,uoe).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await zX(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await qe(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await qe(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await qe(e),await qe(t)))}async getMintTransaction(e,t){return vr(this.mintable,foe).getMintTransaction(e,t)}get claimConditions(){return vr(this.droppable?.claim,uoe).conditions}get signature(){return vr(this.signatureMintable,Uge)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return J.ethers.utils.parseUnits(Y.AmountSchema.parse(e),t)}async getValue(e){return await kp(this.contractWrapper.getProvider(),this.getAddress(),J.BigNumber.from(e))}detectErc20Mintable(){if(kt(this.contractWrapper,"ERC20"))return new _6e(this,this.contractWrapper)}detectErc20Burnable(){if(kt(this.contractWrapper,"ERC20Burnable"))return new w6e(this,this.contractWrapper)}detectErc20Droppable(){if(kt(this.contractWrapper,"ERC20ClaimConditionsV1")||kt(this.contractWrapper,"ERC20ClaimConditionsV2")||kt(this.contractWrapper,"ERC20ClaimPhasesV1")||kt(this.contractWrapper,"ERC20ClaimPhasesV2"))return new PDe(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(kt(this.contractWrapper,"ERC20SignatureMintable"))return new T6e(this.contractWrapper)}},I6e=class{constructor(e){Y._defineProperty(this,"featureName",zge.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"token",Se(async t=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},C6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Vge.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Se(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await m3(a,this.storage,s.toNumber(),i),c=BX(o);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,J.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),p=l[0].args.startTokenId,h=l[0].args.endTokenId,m=[];for(let y=p;y.lte(h);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable()}detectErc721Revealable(){if(kt(this.contractWrapper,"ERC721Revealable"))return new _oe(this.contractWrapper,this.storage,doe.name,()=>this.erc721.nextTokenIdToMint())}},A6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",$ge.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"to",Se(async(a,i)=>{let s=await m3(i,this.storage),o=await qe(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let h=p.args.tokenIdMinted;return{id:h,receipt:u,data:()=>this.erc721.get(h)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},k6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Yge.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Se(async(a,i)=>{let s=await yNe(i,this.storage);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await qe(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await qe(e),t)}detectErc721BatchMintable(){if(kt(this.contractWrapper,"ERC721BatchMintable"))return new A6e(this.erc721,this.contractWrapper,this.storage)}},S6e=class{constructor(e,t){Y._defineProperty(this,"featureName",gDe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await qe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},P6e=class{constructor(e,t){Y._defineProperty(this,"featureName",MX.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=J.BigNumber.from(e?.start||0).toNumber(),n=J.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>J.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(kt(this.contractWrapper,"ERC721Enumerable"))return new S6e(this.erc721,this.contractWrapper)}},npn=n5e.extend({tierPriority:pe.z.array(pe.z.string()),royaltyRecipient:Ps.default(J.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0),quantity:Jo.default(1)}),RDe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Kge.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"createBatchWithTier",Se(async(a,i,s)=>{let o=await this.erc721.nextTokenIdToMint(),c=await m3(a,this.storage,o.toNumber(),s),u=BX(c);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[c.length,u.endsWith("/")?u:`${u}/`,i,J.ethers.utils.toUtf8Bytes("")],parse:l=>{let p=this.contractWrapper.parseLogs("TokensLazyMinted",l?.logs),h=p[0].args[1],m=p[0].args[2],y=[];for(let C=h;C.lte(m);C=C.add(1))y.push({id:C,receipt:l,data:()=>this.erc721.getTokenMetadata(C)});return y}})})),Y._defineProperty(this,"createDelayedRevealBatchWithTier",Se(async(a,i,s,o,c)=>{if(!s)throw new Error("Password is required");let u=await this.storage.uploadBatch([Y.CommonNFTInput.parse(a)],{rewriteFileNames:{fileStartNumber:0}}),l=BX(u),p=await this.erc721.nextTokenIdToMint(),h=await this.storage.uploadBatch(i.map(W=>Y.CommonNFTInput.parse(W)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:p.toNumber()}}),m=BX(h),y=await this.contractWrapper.readContract.getBaseURICount(),C=await this.contractWrapper.getChainID(),P=J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[s,C,y,this.contractWrapper.readContract.address]),A=await this.contractWrapper.readContract.encryptDecrypt(J.ethers.utils.toUtf8Bytes(m),P),B,F=J.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[J.ethers.utils.toUtf8Bytes(m),P,C]);return B=J.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[A,F]),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[h.length,l.endsWith("/")?l:`${l}/`,o,B],parse:W=>{let K=this.contractWrapper.parseLogs("TokensLazyMinted",W?.logs),z=K[0].args[1],G=K[0].args[2],j=[];for(let H=z;H.lte(G);H=H.add(1))j.push({id:H,receipt:W,data:()=>this.erc721.getTokenMetadata(H)});return j}})})),Y._defineProperty(this,"reveal",Se(async(a,i)=>{if(!i)throw new Error("Password is required");let s=await this.contractWrapper.getChainID(),o=J.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[i,s,a,this.contractWrapper.readContract.address]);try{let c=await this.contractWrapper.callStatic().reveal(a,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[a,o]})})),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();onpn.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return Pt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:Rxt},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await ru(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await Ib(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await ru(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=J.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},R6e=class{constructor(e,t){Y._defineProperty(this,"featureName",Qge.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"mint",Se(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await Ib(this.contractWrapper,u,a.currencyAddress,s),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await Ib(this.contractWrapper,u,a.currencyAddress,s),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),Y._defineProperty(this,"mintBatch",Se(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(J.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(Lc("multicall",this.contractWrapper))return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>Ixt.parseAsync(c))),a=n.map(c=>c.metadata),i=await m3(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return Pt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],p=await Cxt.parseAsync({...c,uri:l}),h;return t?h=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:kxt},await this.mapLegacyPayloadToContractStruct(p)):h=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:Pxt},await this.mapPayloadToContractStruct(p)),{payload:p,signature:h.toString()}}))}async mapPayloadToContractStruct(e){let t=await ru(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await ru(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return kt(this.contractWrapper,"ERC721SignatureMintV1")}},MDe=class{constructor(e,t){Y._defineProperty(this,"featureName",poe.name),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Se(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),p=[];for(let h=u;h.lt(l);h=h.add(1))p.push({id:h,receipt:o,data:()=>this.erc721.get(h)});return p}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await s_t(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},M6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Gge.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Se(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let p=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,h=p.add(s),m=[];for(let y=p;y.lt(h);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new _b(this.contractWrapper,c3,this.storage);this.conditions=new Toe(this.contractWrapper,a,this.storage)}},B6e=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",Jge.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"tieredDropable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claimCustom",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Se(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await qe(a),i]})})),Y._defineProperty(this,"setApprovalForAll",Se(async(a,i)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await qe(a),i]}))),Y._defineProperty(this,"setApprovalForToken",Se(async(a,i)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await qe(a),i]}))),Y._defineProperty(this,"mint",Se(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Se(async(a,i)=>vr(this.mintable,Yge).to.prepare(a,i))),Y._defineProperty(this,"mintBatch",Se(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintBatchTo",Se(async(a,i)=>vr(this.mintable?.batch,$ge).to.prepare(a,i))),Y._defineProperty(this,"burn",Se(async a=>vr(this.burnable,zge).token.prepare(a))),Y._defineProperty(this,"lazyMint",Se(async(a,i)=>vr(this.lazyMintable,Vge).lazyMint.prepare(a,i))),Y._defineProperty(this,"claim",Se(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Se(async(a,i,s)=>{let o=this.claimWithConditions,c=this.claimCustom;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new Eb(poe)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claimCustom=this.detectErc721Claimable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>J.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...c5e}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await qe(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await qe(e),await qe(t))}async getAll(e){return vr(this.query,MX).all(e)}async getAllOwners(){return vr(this.query,MX).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return vr(this.query,MX).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await qe(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await qe(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>J.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.claimWithConditions,i=this.claimCustom;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new Eb(poe)}async totalClaimedSupply(){let e=this.contractWrapper;if(Lc("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(Lc("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return vr(this.claimWithConditions,Gge).conditions}get tieredDrop(){return vr(this.tieredDropable,Kge)}get signature(){return vr(this.signatureMintable,Qge)}get revealer(){return vr(this.lazyMintable?.revealer,doe)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new soe;return mNe(e,t,this.storage)}async nextTokenIdToMint(){if(Lc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(Lc("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(kt(this.contractWrapper,"ERC721Supply")||Lc("nextTokenIdToMint",this.contractWrapper))return new P6e(this,this.contractWrapper)}detectErc721Mintable(){if(kt(this.contractWrapper,"ERC721Mintable"))return new k6e(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(kt(this.contractWrapper,"ERC721Burnable"))return new I6e(this.contractWrapper)}detectErc721LazyMintable(){if(kt(this.contractWrapper,"ERC721LazyMintable"))return new C6e(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(kt(this.contractWrapper,"ERC721TieredDrop"))return new RDe(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(kt(this.contractWrapper,"ERC721SignatureMintV1")||kt(this.contractWrapper,"ERC721SignatureMintV2"))return new R6e(this.contractWrapper,this.storage)}detectErc721ClaimableWithConditions(){if(kt(this.contractWrapper,"ERC721ClaimConditionsV1")||kt(this.contractWrapper,"ERC721ClaimConditionsV2")||kt(this.contractWrapper,"ERC721ClaimPhasesV1")||kt(this.contractWrapper,"ERC721ClaimPhasesV2"))return new M6e(this,this.contractWrapper,this.storage)}detectErc721Claimable(){if(kt(this.contractWrapper,"ERC721ClaimCustom"))return new MDe(this,this.contractWrapper)}},j4t=pe.z.object({address:Ps,quantity:Y.AmountSchema.default(1)}),apn=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>j4t.parseAsync({address:e})))),pe.z.array(j4t)]),D6e=class{constructor(e){Y._defineProperty(this,"featureName",a3.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Se(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),Y._defineProperty(this,"from",Se(async(t,n,a)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await qe(t),n,a]}))),Y._defineProperty(this,"batch",Se(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),Y._defineProperty(this,"batchFrom",Se(async(t,n,a)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await qe(t),n,a]}))),this.contractWrapper=e}},N6e=class{constructor(e,t){Y._defineProperty(this,"featureName",s3.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=J.BigNumber.from(e?.start||0).toNumber(),n=J.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await qe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function bNe(r,e){try{let t=new J.ethers.Contract(r,UDe.default,e),[n,a]=await Promise.all([J.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var O6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Xge.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Se(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await m3(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let p=0;p{let h=this.contractWrapper.parseLogs("TokensLazyMinted",p?.logs),m=h[0].args.startTokenId,y=h[0].args.endTokenId,C=[];for(let P=m;P.lte(y);P=P.add(1))C.push({id:P,receipt:p,data:()=>this.erc1155.getTokenMetadata(P)});return C},l=await bNe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,J.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc1155Revealable()}detectErc1155Revealable(){if(kt(this.contractWrapper,"ERC1155Revealable"))return new _oe(this.contractWrapper,this.storage,NX.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},F6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",t6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Se(async(a,i)=>{let s=i.map(p=>p.metadata),o=i.map(p=>p.supply),c=await m3(s,this.storage),u=await qe(a),l=await Promise.all(c.map(async(p,h)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,J.ethers.constants.MaxUint256,p,o[h]])));return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:p=>{let h=this.contractWrapper.parseLogs("TokensMinted",p.logs);if(h.length===0||h.length{let y=m.args.tokenIdMinted;return{id:y,receipt:p,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},L6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",i3.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Se(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),Y._defineProperty(this,"additionalSupplyTo",Se(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await qe(a),i,o.uri,s],parse:c=>({id:J.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await yNe(t.metadata,this.storage);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await qe(e),J.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if(kt(this.contractWrapper,"ERC1155BatchMintable"))return new F6e(this.erc1155,this.contractWrapper,this.storage)}},q6e=class{constructor(e,t,n){Y._defineProperty(this,"featureName",e6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Se(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await Ib(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),Y._defineProperty(this,"mintBatch",Se(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(J.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(Lc("multicall",this.contractWrapper))return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:J.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:J.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>Txt.parseAsync(u))),n=t.map(u=>u.metadata),a=await m3(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();Pt.default(s,"No signer available");let c=(await bNe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let p=a[l],h=await Ext.parseAsync({...u,uri:p}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Sxt},await this.mapPayloadToContractStruct(h));return{payload:h,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await ru(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},BDe=class{constructor(e){Y._defineProperty(this,"featureName",hoe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Se(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await s_t(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await qe(e),t,n],overrides:i})}},DDe=class{constructor(e,t){Y._defineProperty(this,"featureName",Zge.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Se(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new _b(this.contractWrapper,c3,this.storage);this.conditions=new v6e(e,n,this.storage)}},W6e=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Y._defineProperty(this,"featureName",r6e.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claimCustom",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Se(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return Ye.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await qe(i),s,o,c]})})),Y._defineProperty(this,"setApprovalForAll",Se(async(i,s)=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),Y._defineProperty(this,"airdrop",Se(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await apn.parseAsync(s),p=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:C}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,C,o])});return Ye.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[h]})})),Y._defineProperty(this,"mint",Se(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintTo",Se(async(i,s)=>vr(this.mintable,i3).to.prepare(i,s))),Y._defineProperty(this,"mintAdditionalSupply",Se(async(i,s)=>vr(this.mintable,i3).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),Y._defineProperty(this,"mintAdditionalSupplyTo",Se(async(i,s,o)=>vr(this.mintable,i3).additionalSupplyTo.prepare(i,s,o))),Y._defineProperty(this,"mintBatch",Se(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintBatchTo",Se(async(i,s)=>vr(this.mintable?.batch,t6e).to.prepare(i,s))),Y._defineProperty(this,"burn",Se(async(i,s)=>vr(this.burnable,a3).tokens.prepare(i,s))),Y._defineProperty(this,"burnFrom",Se(async(i,s,o)=>vr(this.burnable,a3).from.prepare(i,s,o))),Y._defineProperty(this,"burnBatch",Se(async(i,s)=>vr(this.burnable,a3).batch.prepare(i,s))),Y._defineProperty(this,"burnBatchFrom",Se(async(i,s,o)=>vr(this.burnable,a3).batchFrom.prepare(i,s,o))),Y._defineProperty(this,"lazyMint",Se(async(i,s)=>vr(this.lazyMintable,Xge).lazyMint.prepare(i,s))),Y._defineProperty(this,"claim",Se(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),Y._defineProperty(this,"claimTo",Se(async(i,s,o,c)=>{let u=this.claimWithConditions,l=this.claimCustom;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new Eb(hoe)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this.claimCustom=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>J.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...c5e}))]);return{owner:J.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await qe(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await qe(e),await qe(t))}async nextTokenIdToMint(){if(Lc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return vr(this.query,s3).all(e)}async totalCount(){return vr(this.query,s3).totalCount()}async totalCirculatingSupply(e){return vr(this.query,s3).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await qe(e)),vr(this.query,s3).owned(e)}async getMintTransaction(e,t){return vr(this.mintable,i3).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.claimWithConditions,s=this.claimCustom;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new Eb(hoe)}get claimConditions(){return vr(this.claimWithConditions,Zge).conditions}get signature(){return vr(this.signatureMintable,e6e)}get revealer(){return vr(this.lazyMintable?.revealer,NX)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new soe;return mNe(e,t,this.storage)}detectErc1155Enumerable(){if(kt(this.contractWrapper,"ERC1155Enumerable"))return new N6e(this,this.contractWrapper)}detectErc1155Mintable(){if(kt(this.contractWrapper,"ERC1155Mintable"))return new L6e(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(kt(this.contractWrapper,"ERC1155Burnable"))return new D6e(this.contractWrapper)}detectErc1155LazyMintable(){if(kt(this.contractWrapper,"ERC1155LazyMintableV1")||kt(this.contractWrapper,"ERC1155LazyMintableV2"))return new O6e(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(kt(this.contractWrapper,"ERC1155SignatureMintable"))return new q6e(this.contractWrapper,this.storage)}detectErc1155Claimable(){if(kt(this.contractWrapper,"ERC1155ClaimCustom"))return new BDe(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(kt(this.contractWrapper,"ERC1155ClaimConditionsV1")||kt(this.contractWrapper,"ERC1155ClaimConditionsV2")||kt(this.contractWrapper,"ERC1155ClaimPhasesV1")||kt(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new DDe(this.contractWrapper,this.storage)}};async function q_t(r,e,t,n,a){try{let i=new J.Contract(t,X6e.default,r),s=await i.supportsInterface(Aoe),o=await i.supportsInterface(koe);if(s){let c=new J.Contract(t,nu.default,r);if(await c.isApprovedForAll(a,e))return!0;let l;try{l=await c.getApproved(n)}catch{}return l?.toLowerCase()===e.toLowerCase()}else return o?await new J.Contract(t,_l.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function Eoe(r,e,t,n,a){let i=new Po(r.getSignerOrProvider(),t,X6e.default,r.options),s=await i.readContract.supportsInterface(Aoe),o=await i.readContract.supportsInterface(koe);if(s){let c=new Po(r.getSignerOrProvider(),t,nu.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Po(r.getSignerOrProvider(),t,_l.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function ipn(r){switch(Pt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),Pt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),Pt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),Pt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),Pt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),Pt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":Pt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function spn(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await kp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function opn(r,e,t){return t=J.BigNumber.from(t),r=J.BigNumber.from(r),e=J.BigNumber.from(e),r.eq(J.BigNumber.from(0))?!1:e.sub(r).mul(Y.MAX_BPS).div(r).gte(t)}async function UX(r,e,t){let n=[];for(;e-r>Y.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+Y.DEFAULT_QUERY_ALL_COUNT-1)),r+=Y.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var z4t=pe.z.object({assetContractAddress:Ps,tokenId:gc,quantity:gc.default(1),currencyContractAddress:Ps.default(xl),pricePerToken:Y.AmountSchema,startTimestamp:Soe.default(new Date),endTimestamp:Poe,isReservedListing:pe.z.boolean().default(!1)}),d3=class{constructor(e){Y._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(af.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(af.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let p=0;p{let a=await z4t.parseAsync(n);await Eoe(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await ru(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=J.BigNumber.from(o)),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:Nge(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),Y._defineProperty(this,"createListingsBatch",Se(async n=>{let a=await Promise.all(n.map(async i=>(await this.createListing.prepare(i)).encode()));return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("NewListing",i?.logs).map(o=>({id:o.args.listingId,receipt:i}))})})),Y._defineProperty(this,"updateListing",Se(async(n,a)=>{let i=await z4t.parseAsync(a);await Eoe(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await ru(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:Nge(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),Y._defineProperty(this,"cancelListing",Se(async n=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),Y._defineProperty(this,"buyFromListing",Se(async(n,a,i)=>{i&&(i=await qe(i));let s=await this.validateListing(J.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=J.BigNumber.from(a),p=J.BigNumber.from(s.pricePerToken).mul(l),h=await this.contractWrapper.getCallOverrides()||{};return await Ib(this.contractWrapper,p,s.currencyContractAddress,h),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,p],overrides:h})})),Y._defineProperty(this,"approveBuyerForReservedListing",Se(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),Y._defineProperty(this,"revokeBuyerApprovalForReservedListing",Se(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),Y._defineProperty(this,"approveCurrencyForListing",Se(async(n,a,i)=>{let s=await this.validateListing(J.BigNumber.from(n)),o=await qe(a);o===s.currencyContractAddress&&Pt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return Pt.default(i===c,"Currency already approved with this price."),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),Y._defineProperty(this,"revokeCurrencyApprovalForListing",Se(async(n,a)=>{let i=await this.validateListing(J.BigNumber.from(n)),s=await qe(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return Pt.default(!o.isZero(),"Currency not approved."),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,J.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new d3(this.contractWrapper),this.encoder=new l3(this.contractWrapper),this.interceptor=new p3(this.contractWrapper),this.estimator=new h3(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await UX(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await UX(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(J.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await qe(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(J.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await qe(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(J.BigNumber.from(e)),a=await qe(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=v0.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.startTimestamp).gt(a)?v0.Created:J.BigNumber.from(e.endTimestamp).lt(a)?v0.Expired:v0.Active;break;case 2:t=v0.Completed;break;case 3:t=v0.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await kp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:J.BigNumber.from(e.startTimestamp).toNumber(),asset:await Foe(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:J.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await q_t(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new J.Contract(e.assetContractAddress,X6e.default,a),s=await i.supportsInterface(Aoe),o=await i.supportsInterface(koe);if(s){let c=new J.Contract(e.assetContractAddress,nu.default,a),u;try{u=await c.ownerOf(e.tokenId)}catch{}let l=u?.toLowerCase()===e.creatorAddress.toLowerCase();return{valid:l,error:l?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new J.Contract(e.assetContractAddress,_l.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await qe(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await qe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=cpn.parse(n);await Eoe(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await ru(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await ru(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=J.BigNumber.from(c)),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:Nge(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),Y._defineProperty(this,"createAuctionsBatch",Se(async n=>{let a=await Promise.all(n.map(async i=>(await this.createAuction.prepare(i)).encode()));return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("NewAuction",i?.logs).map(o=>({id:o.args.auctionId,receipt:i}))})})),Y._defineProperty(this,"buyoutAuction",Se(async n=>{let a=await this.validateAuction(J.BigNumber.from(n)),i=await zX(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,J.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),Y._defineProperty(this,"makeBid",Se(async(n,a)=>{let i=await this.validateAuction(J.BigNumber.from(n)),s=await ru(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(J.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(J.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);Pt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=J.BigNumber.from(i.minimumBidAmount);Pt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await Ib(this.contractWrapper,s,i.currencyContractAddress,c),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),Y._defineProperty(this,"cancelAuction",Se(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),Y._defineProperty(this,"closeAuctionForBidder",Se(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(J.BigNumber.from(n));try{return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[J.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new RX(n.toString(),i.endTimeInSeconds.toString()):s}})),Y._defineProperty(this,"closeAuctionForSeller",Se(async n=>{let a=await this.validateAuction(J.BigNumber.from(n));try{return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[J.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new RX(n.toString(),a.endTimeInSeconds.toString()):i}})),Y._defineProperty(this,"executeSale",Se(async n=>{let a=await this.validateAuction(J.BigNumber.from(n));try{let i=await this.getWinningBid(n);Pt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new RX(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new d3(this.contractWrapper),this.encoder=new l3(this.contractWrapper),this.interceptor=new p3(this.contractWrapper),this.estimator=new h3(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await UX(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await UX(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(J.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==J.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(J.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=J.BigNumber.from(Math.floor(Date.now()/1e3)),i=J.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==J.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(J.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(J.BigNumber.from(e))]),i=n?J.BigNumber.from(n.bidAmount):J.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return kp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=v0.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.startTimestamp).gt(a)?v0.Created:J.BigNumber.from(e.endTimestamp).lt(a)?v0.Expired:v0.Active;break;case 2:t=v0.Completed;break;case 3:t=v0.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await kp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await kp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:J.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:J.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:J.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:J.BigNumber.from(e.endTimestamp).toNumber(),asset:await Foe(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await qe(t),s=await qe(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await kp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await qe(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await qe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await upn.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Gh(a.currencyContractAddress)?ioe[i].wrapped.address:a.currencyContractAddress,o=await ru(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await Ib(this.contractWrapper,o,s,c),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),Y._defineProperty(this,"cancelOffer",Se(async n=>Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),Y._defineProperty(this,"acceptOffer",Se(async n=>{let a=await this.validateOffer(J.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await Eoe(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new d3(this.contractWrapper),this.encoder=new l3(this.contractWrapper),this.interceptor=new p3(this.contractWrapper),this.estimator=new h3(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await UX(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=J.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await UX(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=v0.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=J.BigNumber.from(e.expirationTimestamp).lt(a)?v0.Expired:v0.Active;break;case 2:t=v0.Completed;break;case 3:t=v0.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await kp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await Foe(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:J.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(J.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Gh(e.currencyContractAddress)?ioe[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Po(i,a,$u.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await qe(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await qe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await uf(r,e,t);if(n)return n;let a=await u5e(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return x0(sBe())})).default:(await Promise.resolve().then(function(){return x0(oBe())})).default}},Cb={name:"TokenERC1155",contractType:"edition",schema:Kxt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||(await Promise.resolve().then(function(){return x0(cBe())})).default}},qh={name:"Marketplace",contractType:"marketplace",schema:XDe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||(await Promise.resolve().then(function(){return x0(dBe())})).default}},D1={name:"MarketplaceV3",contractType:"marketplace-v3",schema:XDe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);if(n)return await d6e(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return x0(pBe())})).default;return await d6e(r,Rs.parse(a||[]),e,{},t)}},Wh={name:"Multiwrap",contractType:"multiwrap",schema:j_t,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||(await Promise.resolve().then(function(){return x0(mBe())})).default}},Ab={name:"TokenERC721",contractType:"nft-collection",schema:jxt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||(await Promise.resolve().then(function(){return x0(yBe())})).default}},Uh={name:"DropERC721",contractType:"nft-drop",schema:ZDe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);if(n)return n;let a=await u5e(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return x0(bBe())})).default:(await Promise.resolve().then(function(){return x0(gBe())})).default}},of={name:"Pack",contractType:"pack",schema:Fxt,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||Rs.parse((await Promise.resolve().then(function(){return x0(_Be())})).default||[])}},Hh={name:"SignatureDrop",contractType:"signature-drop",schema:ZDe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);if(n)return n;let a=await u5e(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return x0(TBe())})).default:(await Promise.resolve().then(function(){return x0(EBe())})).default}},jh={name:"Split",contractType:"split",schema:qxt,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||(await Promise.resolve().then(function(){return x0(CBe())})).default}},kb={name:"DropERC20",contractType:"token-drop",schema:U_t,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);if(n)return n;let a=await u5e(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return x0(kBe())})).default:(await Promise.resolve().then(function(){return x0(SBe())})).default}},zh={name:"TokenERC20",contractType:"token",schema:Uxt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||(await Promise.resolve().then(function(){return x0(MBe())})).default}},Kh={name:"VoteERC20",contractType:"vote",schema:$xt,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await uf(r,e,t);return n||(await Promise.resolve().then(function(){return x0(OBe())})).default}};async function u5e(r,e){try{return await bNe(r,e)}catch{return}}var N1={[Lh.contractType]:Lh,[Cb.contractType]:Cb,[qh.contractType]:qh,[D1.contractType]:D1,[Wh.contractType]:Wh,[Ab.contractType]:Ab,[Uh.contractType]:Uh,[of.contractType]:of,[Hh.contractType]:Hh,[jh.contractType]:jh,[kb.contractType]:kb,[zh.contractType]:zh,[Kh.contractType]:Kh},z_t={[Lh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[Cb.contractType]:"",[qh.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[D1.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[Wh.contractType]:"",[Ab.contractType]:"",[Uh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[of.contractType]:"",[Hh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[jh.contractType]:"",[kb.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[zh.contractType]:"",[Kh.contractType]:""},K4t={name:"SmartContract",contractType:"custom",schema:{},roles:rNe},gNe={...N1,[K4t.contractType]:K4t};function vNe(r){return Object.values(gNe).find(e=>e.name===r)?.contractType||"custom"}function wNe(r){return Object.values(gNe).find(e=>e.contractType===r)?.name}async function xNe(r,e,t,n,a){let i=await n.getChainId(),s=await n.getAddress(),o=e5e.find(u=>u===i),c=[];switch(o?c=r===of.contractType?[]:t5e(i):c=[await Noe(n.provider,a)],e.trusted_forwarders&&e.trusted_forwarders.length>0&&c.push(...e.trusted_forwarders),r){case Uh.contractType:case Ab.contractType:let u=await Uh.schema.deploy.parseAsync(e);return[s,u.name,u.symbol,t,c,u.primary_sale_recipient,u.fee_recipient,u.seller_fee_basis_points,u.platform_fee_basis_points,u.platform_fee_recipient];case Hh.contractType:let l=await Hh.schema.deploy.parseAsync(e);return[s,l.name,l.symbol,t,c,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case Wh.contractType:let p=await Wh.schema.deploy.parseAsync(e);return[s,p.name,p.symbol,t,c,p.fee_recipient,p.seller_fee_basis_points];case Lh.contractType:case Cb.contractType:let h=await Lh.schema.deploy.parseAsync(e);return[s,h.name,h.symbol,t,c,h.primary_sale_recipient,h.fee_recipient,h.seller_fee_basis_points,h.platform_fee_basis_points,h.platform_fee_recipient];case kb.contractType:case zh.contractType:let m=await zh.schema.deploy.parseAsync(e);return[s,m.name,m.symbol,t,c,m.primary_sale_recipient,m.platform_fee_recipient,m.platform_fee_basis_points];case Kh.contractType:let y=await Kh.schema.deploy.parseAsync(e);return[y.name,t,c,y.voting_token_address,y.voting_delay_in_blocks,y.voting_period_in_blocks,J.BigNumber.from(y.proposal_token_threshold),y.voting_quorum_fraction];case jh.contractType:let C=await jh.schema.deploy.parseAsync(e);return[s,t,c,C.recipients.map(B=>B.address),C.recipients.map(B=>J.BigNumber.from(B.sharesBps))];case qh.contractType:case D1.contractType:let P=await qh.schema.deploy.parseAsync(e);return[s,t,c,P.platform_fee_recipient,P.platform_fee_basis_points];case of.contractType:let A=await of.schema.deploy.parseAsync(e);return[s,A.name,A.symbol,t,c,A.fee_recipient,A.seller_fee_basis_points];default:return[]}}async function hpn(r,e,t){let n=(await r.getNetwork()).chainId,a=e5e.find(s=>s===n);return t&&t===of.name?[]:a?t5e(n):[await Noe(r,e)]}function mpn(r,e){return r||(e?.gatewayUrls?new Wg.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new Wg.ThirdwebStorage)}var Ioe=class{constructor(e,t,n){Y._defineProperty(this,"featureName",c6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Se(async a=>kt(this.contractWrapper,"AppURI")?Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return kt(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():Wg.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},z6e=class{constructor(e){Y._defineProperty(this,"featureName",i6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Se(async t=>{let n=await Sp.parseAsync(t);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return Sp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},K6e=class{constructor(e,t){Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await F1(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return LX(Rs.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return w_t(Rs.parse(this.contractWrapper.abi),e?.metadata)}},G6e=class{get royalties(){return vr(this.detectRoyalties(),n6e)}get roles(){return vr(this.detectRoles(),s6e)}get sales(){return vr(this.detectPrimarySales(),a6e)}get platformFees(){return vr(this.detectPlatformFees(),i6e)}get owner(){return vr(this.detectOwnable(),u6e)}get erc20(){return vr(this.detectErc20(),jge)}get erc721(){return vr(this.detectErc721(),Jge)}get erc1155(){return vr(this.detectErc1155(),r6e)}get app(){return vr(this.detectApp(),c6e)}get directListings(){return vr(this.detectDirectListings(),moe)}get englishAuctions(){return vr(this.detectEnglishAuctions(),yoe)}get offers(){return vr(this.detectOffers(),boe)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Po(e,t,n,i);Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"interceptor",void 0),Y._defineProperty(this,"encoder",void 0),Y._defineProperty(this,"estimator",void 0),Y._defineProperty(this,"publishedMetadata",void 0),Y._defineProperty(this,"abi",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=Rs.parse(n||[]),this.events=new d3(this.contractWrapper),this.encoder=new l3(this.contractWrapper),this.interceptor=new p3(this.contractWrapper),this.estimator=new h3(this.contractWrapper),this.publishedMetadata=new K6e(this.contractWrapper,this.storage),this.metadata=new _b(this.contractWrapper,c3,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectRoyalties(){if(kt(this.contractWrapper,"Royalty")){let e=new _b(this.contractWrapper,c3,this.storage);return new b6e(this.contractWrapper,e)}}detectRoles(){if(kt(this.contractWrapper,"Permissions"))return new y6e(this.contractWrapper,rNe)}detectPrimarySales(){if(kt(this.contractWrapper,"PrimarySale"))return new g6e(this.contractWrapper)}detectPlatformFees(){if(kt(this.contractWrapper,"PlatformFee"))return new z6e(this.contractWrapper)}detectErc20(){if(kt(this.contractWrapper,"ERC20"))return new E6e(this.contractWrapper,this.storage,this.chainId)}detectErc721(){if(kt(this.contractWrapper,"ERC721"))return new B6e(this.contractWrapper,this.storage,this.chainId)}detectErc1155(){if(kt(this.contractWrapper,"ERC1155"))return new W6e(this.contractWrapper,this.storage,this.chainId)}detectOwnable(){if(kt(this.contractWrapper,"Ownable"))return new Q6e(this.contractWrapper)}detectApp(){let e=new _b(this.contractWrapper,c3,this.storage);if(kt(this.contractWrapper,"AppURI"))return new Ioe(this.contractWrapper,e,this.storage);if(kt(this.contractWrapper,"ContractMetadata"))return new Ioe(this.contractWrapper,e,this.storage)}detectDirectListings(){if(kt(this.contractWrapper,"DirectListings"))return new U6e(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(kt(this.contractWrapper,"EnglishAuctions"))return new H6e(this.contractWrapper,this.storage)}detectOffers(){if(kt(this.contractWrapper,"Offers"))return new j6e(this.contractWrapper,this.storage)}},V6e=class extends Hg{constructor(e,t,n){super(e,t),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"publisher",void 0),Y._defineProperty(this,"updatePublisherProfile",Se(async a=>{let i=this.getSigner();Pt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return Ye.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),Y._defineProperty(this,"publish",Se(async(a,i)=>{let s=this.getSigner();Pt.default(s,"A signer is required");let o=await s.getAddress(),c=await sNe(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let A=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!V_t(A,i.version))throw Error(`Version ${i.version} is not greater than ${A}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),p=l.startsWith("0x")?l:`0x${l}`,h=J.utils.solidityKeccak256(["bytes"],[p]),m=c.name,y=rTt.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),C=await this.storage.upload(y);return Ye.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,C,c.metadataUri,h,J.constants.AddressZero],parse:P=>{let A=this.publisher.parseLogs("ContractPublished",P.logs);if(A.length<1)throw new Error("No ContractPublished event found");let B=A[0].args.publishedContract;return{receipt:P,data:async()=>this.toPublishedContract(B)}}})})),Y._defineProperty(this,"unpublish",Se(async(a,i)=>{let s=await qe(a);return Ye.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Po(e,lxt(),gfn.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return y_t(e,this.storage)}async extractFunctions(e){return b_t(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return WX(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await WX(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await qe(e);return F1(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return oNe(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await qe(e),n=await qX(t,this.getProvider());return Pt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await qe(e),n=await this.fetchCompilerMetadataFromAddress(t);return await Loe(n,this.storage)}async getPublisherProfile(e){let t=await qe(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:iTt.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await qe(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await qe(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await qe(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return Pt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await qe(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return sTt.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},NDe=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y._defineProperty(this,"registryLogic",void 0),Y._defineProperty(this,"registryRouter",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"addContract",Se(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Se(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),Ye.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Se(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Se(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await qe(o.address),o.chainId])));return Ye.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Po(e,eDe(),vfn.default,n),this.registryRouter=new Po(e,eDe(),wfn.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await qe(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await qe(e))).filter(t=>J.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==J.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},HX=class{constructor(e,t){Y._defineProperty(this,"connection",void 0),Y._defineProperty(this,"options",void 0),Y._defineProperty(this,"events",new YBe.default),this.connection=new Hg(e,t),this.options=t,this.events=new YBe.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xl,a=await qe(e),i=await qe(n),s=this.requireWallet(),o=await ru(this.connection.getProvider(),t,n);if(Gh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xl;this.requireWallet();let t=await qe(e),n=this.connection.getProvider(),a;return Gh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await kp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await coe(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=J.ethers.utils.hashMessage(e),a=J.ethers.utils.arrayify(n);return J.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Je.Localhost||t===Je.Hardhat)return new HX(new J.ethers.Wallet(cxt,O1(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return Pt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Po(this.connection.getSignerOrProvider(),e,$u.default,this.options)}},ODe=class extends Hg{constructor(e,t,n){super(e,t),Y._defineProperty(this,"storage",void 0),this.storage=n}updateSignerOrProvider(e){super.updateSignerOrProvider(e)}async verifyThirdwebContract(e,t,n,a){let i=(await this.getProvider().getNetwork()).chainId,s=await Y_t(e,i,t,n,this.storage,a);console.info("Checking verification status...");let o=await LDe(t,n,s);console.info(o)}async verifyContract(e,t,n,a){let i=(await this.getProvider().getNetwork()).chainId,s;if(a){let u=Object.values(a).map(p=>(Pt.default(p.type,"Param type is required"),p.type)),l=Object.values(a).map(p=>p.value);s=J.ethers.utils.defaultAbiCoder.encode(u,l)}let o=await _Ne(e,i,t,n,this.storage,s);console.info("Checking verification status...");let c=await LDe(t,n,o);console.info(c)}},id=class extends Hg{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return id.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=O1(t,n);i=e.connect(o)}let s=new id(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=O1(t,n),s=new J.Wallet(e,i);return new id(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;i5e(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),Y._defineProperty(this,"contractCache",new Map),Y._defineProperty(this,"_publisher",void 0),Y._defineProperty(this,"storageHandler",void 0),Y._defineProperty(this,"deployer",void 0),Y._defineProperty(this,"verifier",void 0),Y._defineProperty(this,"multiChainRegistry",void 0),Y._defineProperty(this,"wallet",void 0),Y._defineProperty(this,"storage",void 0),sxt(t?.supportedChains);let a=mpn(n,t);this.storage=a,this.storageHandler=a,this.wallet=new HX(e,t),this.deployer=new Y6e(e,t,a),this.verifier=new ODe(e,t,a),this.multiChainRegistry=new NDe(e,this.storageHandler,this.options),this._publisher=new V6e(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Se(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in Vct.GENERATED_ABI)return await this.getContractFromAbi(n,Vct.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await cm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in cm?a=await cm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new J.Contract(await Se(e),IEe.default,this.getProvider()),n=J.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return QEe(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Se(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>hEe((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iee.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new sm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>hEe((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Se(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=ui(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new _he(this.getSignerOrProvider(),n,await jpe(n,Gi.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return yp(this.getProvider(),Hu,await this.getProvider().getBalance(await Se(e)))}getPublisher(){return this._publisher}},Ihe=class extends ks{constructor(e,t,n,a){super(t,e,wMr.default,a),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"DEFAULT_VERSION_MAP",{[Ph.contractType]:3,[M0.contractType]:1,[Sh.contractType]:4,[bp.contractType]:1,[Ah.contractType]:2,[R0.contractType]:1,[N0.contractType]:2,[Mh.contractType]:1,[Nh.contractType]:1,[Rh.contractType]:1,[gp.contractType]:2,[om.contractType]:1,[Tl.contractType]:2}),Y._defineProperty(this,"deploy",Te(async(i,s,o,c,u)=>{let l=cm[i],h=await l.schema.deploy.parseAsync(s),f=await this.storage.upload(h),m=await this.getImplementation(l,c)||void 0;if(!m||m===J.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let y=await l.getAbi(m,this.getProvider(),this.storage),I=this.getSigner();_t.default(I,"A signer is required to deploy contracts");let C=await cdt(i,h,f,I),R=J.Contract.getInterface(y).encodeFunctionData("initialize",C),L=await this.getProvider().getBlockNumber(),F=J.ethers.utils.formatBytes32String(L.toString());return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[m,R,F],parse:W=>{u&&u();let V=this.parseLogs("ProxyDeployed",W.logs);if(V.length<1)throw new Error("No ProxyDeployed event found");let K=V[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:K,transactionHash:W.transactionHash}),K}})})),Y._defineProperty(this,"deployProxyByImplementation",Te(async(i,s,o,c,u,l)=>{let h=J.Contract.getInterface(s).encodeFunctionData(o,c),f=await this.getProvider().getBlockNumber();return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,h,J.ethers.utils.formatBytes32String(f.toString())],parse:m=>{l&&l();let y=this.parseLogs("ProxyDeployed",m.logs);if(y.length<1)throw new Error("No ProxyDeployed event found");let I=y[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:I,transactionHash:m.transactionHash}),I}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Tl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Ph.contractType:case M0.contractType:let i=await Ph.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Sh.contractType:let s=await Sh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case bp.contractType:let o=await bp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Ah.contractType:case R0.contractType:let c=await Ah.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case N0.contractType:case Mh.contractType:let u=await Mh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Nh.contractType:let l=await Nh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,J.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Rh.contractType:let h=await Rh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(I=>I.address),h.recipients.map(I=>J.BigNumber.from(I.sharesBps))];case gp.contractType:let f=await gp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case om.contractType:let m=await om.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Tl.contractType:let y=await Tl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return CEe(e)}async getImplementation(e,t){let n=J.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=Uut(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=JEe(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=J.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},xEe=class extends ks{constructor(e,t,n){super(t,e,xMr.default,n),Y._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Se(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Se(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Se(e))).filter(t=>J.utils.isAddress(t)&&t.toLowerCase()!==J.constants.AddressZero)}},lBr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",Ehe=class extends T2{constructor(e,t,n){var a;super(e,t),a=this,Y._defineProperty(this,"_factory",void 0),Y._defineProperty(this,"_registry",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"deployMetadataCache",{}),Y._defineProperty(this,"transactionListener",i=>{i.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.transactionHash})}),Y._defineProperty(this,"deployNFTCollection",jo(async i=>await this.deployBuiltInContract.prepare(M0.contractType,i))),Y._defineProperty(this,"deployNFTDrop",jo(async i=>await this.deployBuiltInContract.prepare(Ph.contractType,i))),Y._defineProperty(this,"deploySignatureDrop",jo(async i=>await this.deployBuiltInContract.prepare(Sh.contractType,i))),Y._defineProperty(this,"deployMultiwrap",jo(async i=>await this.deployBuiltInContract.prepare(bp.contractType,i))),Y._defineProperty(this,"deployEdition",jo(async i=>await this.deployBuiltInContract.prepare(R0.contractType,i))),Y._defineProperty(this,"deployEditionDrop",jo(async i=>await this.deployBuiltInContract.prepare(Ah.contractType,i))),Y._defineProperty(this,"deployToken",jo(async i=>await this.deployBuiltInContract.prepare(Mh.contractType,i))),Y._defineProperty(this,"deployTokenDrop",jo(async i=>await this.deployBuiltInContract.prepare(N0.contractType,i))),Y._defineProperty(this,"deployMarketplace",jo(async i=>await this.deployBuiltInContract.prepare(gp.contractType,i))),Y._defineProperty(this,"deployMarketplaceV3",jo(async i=>await this.deployBuiltInContract.prepare(om.contractType,i))),Y._defineProperty(this,"deployPack",jo(async i=>await this.deployBuiltInContract.prepare(Tl.contractType,i))),Y._defineProperty(this,"deploySplit",jo(async i=>await this.deployBuiltInContract.prepare(Rh.contractType,i))),Y._defineProperty(this,"deployVote",jo(async i=>await this.deployBuiltInContract.prepare(Nh.contractType,i))),Y._defineProperty(this,"deployBuiltInContract",jo(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",c=a.getSigner();_t.default(c,"A signer is required to deploy contracts");let u={app_uri:odt[i],...await cm[i].schema.deploy.parseAsync(s)};if(a.hasLocalFactory()){let R;try{R=parseInt(o),isNaN(R)&&(R=void 0)}catch{R=void 0}let L=await a.getFactory();if(!L)throw new Error("Factory not found");return L.on(xl.Transaction,a.transactionListener),L.deploy.prepare(i,u,a.events,R,()=>{L.off(xl.Transaction,a.transactionListener)})}let l=JEe(i);_t.default(l,"Contract name not found");let h=await a.storage.upload(u),f=await cdt(i,u,h,c),m=(await a.getProvider().getNetwork()).chainId,y=await a.fetchPublishedContractFromPolygon(lBr,l,o),I=await a.fetchAndCacheDeployMetadata(y.metadataUri),C=I.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[m];if(C)return a.deployContractFromUri.prepare(y.metadataUri,f);{C=await a.deployContractFromUri(y.metadataUri,a.getConstructorParamsForImplementation(i,m),{forceDirectDeploy:!0});let R=await Se(C);return a.deployProxy.prepare(R,I.compilerMetadata.abi,"initialize",f)}})),Y._defineProperty(this,"deployReleasedContract",jo(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",u=arguments.length>4?arguments[4]:void 0,l=await a.fetchPublishedContractFromPolygon(i,s,c);return await a.deployContractFromUri.prepare(l.metadataUri,o,u)})),Y._defineProperty(this,"deployViaFactory",Te(async(i,s,o,c,u)=>{let l=await Se(i),h=await Se(s),f=this.getSigner();_t.default(f,"signer is required");let m=new Ihe(l,this.getSignerOrProvider(),this.storage,this.options);return m.on(xl.Transaction,this.transactionListener),await m.deployProxyByImplementation.prepare(h,o,c,u,this.events,()=>{m.off(xl.Transaction,this.transactionListener)})})),Y._defineProperty(this,"deployProxy",jo(async(i,s,o,c)=>{let u=await Se(i),l=J.Contract.getInterface(s).encodeFunctionData(o,c),{TWProxy__factory:h}=await Promise.resolve().then(function(){return Vo(CIe())});return this.deployContractWithAbi.prepare(h.abi,h.bytecode,[u,l])})),Y._defineProperty(this,"deployContractFromUri",jo(async(i,s,o)=>{let c=this.getSigner();_t.default(c,"A signer is required");let{compilerMetadata:u,extendedMetadata:l}=await this.fetchAndCacheDeployMetadata(i),h=o?.forceDirectDeploy||!1;if(l&&l.factoryDeploymentData&&(l.isDeployableViaProxy||l.isDeployableViaFactory)&&!h){console.log("Deploying directly...");let I=(await this.getProvider().getNetwork()).chainId;_t.default(l.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let C=l.factoryDeploymentData.implementationAddresses[I],R=await Se(C);_t.default(R,`implementationAddress not found for chainId '${I}'`),_t.default(l.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let L=Jlt(u.abi,l.factoryDeploymentData.implementationInitializerFunction).map(W=>W.type),F=this.convertParamValues(L,s);if(l.isDeployableViaFactory){_t.default(l.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let W=l.factoryDeploymentData.factoryAddresses[I];_t.default(W,`isDeployableViaFactory is true and factoryAddress not found for chainId '${I}'`);let V=await Se(W);return await this.deployViaFactory.prepare(V,R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}else if(l.isDeployableViaProxy)return await this.deployProxy.prepare(R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}let f=u.bytecode.startsWith("0x")?u.bytecode:`0x${u.bytecode}`;if(!J.ethers.utils.isHexString(f))throw new Error(`Contract bytecode is invalid. + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await qe(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in p4t.GENERATED_ABI)return await this.getContractFromAbi(n,p4t.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await N1[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in N1?a=await N1[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new J.Contract(await qe(e),UDe.default,this.getProvider()),n=J.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return vNe(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await qe(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>ADe((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Coe.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new id(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>ADe((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider()),this.verifier.updateSignerOrProvider(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await qe(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=hs(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new G6e(this.getSignerOrProvider(),n,await d6e(n,Rs.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return kp(this.getProvider(),xl,await this.getProvider().getBalance(await qe(e)))}getPublisher(){return this._publisher}},$6e=class extends Po{constructor(e,t,n,a){super(t,e,xfn.default,a),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"DEFAULT_VERSION_MAP",{[Uh.contractType]:3,[Ab.contractType]:1,[Hh.contractType]:4,[Wh.contractType]:1,[Lh.contractType]:2,[Cb.contractType]:1,[kb.contractType]:2,[zh.contractType]:1,[Kh.contractType]:1,[jh.contractType]:1,[qh.contractType]:2,[D1.contractType]:1,[of.contractType]:2}),Y._defineProperty(this,"deploy",Se(async(i,s,o,c,u)=>{let l=N1[i],p=await l.schema.deploy.parseAsync(s),h=await this.storage.upload(p),m=await this.getImplementation(l,c)||void 0;if(!m||m===J.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let y=await l.getAbi(m,this.getProvider(),this.storage),C=this.getSigner();Pt.default(C,"A signer is required to deploy contracts");let P=await xNe(i,p,h,C,this.storage),A=J.Contract.getInterface(y).encodeFunctionData("initialize",P),B=await this.getProvider().getBlockNumber(),F=J.ethers.utils.formatBytes32String(B.toString());return Ye.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[m,A,F],parse:W=>{u&&u();let K=this.parseLogs("ProxyDeployed",W.logs);if(K.length<1)throw new Error("No ProxyDeployed event found");let z=K[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:z,transactionHash:W.transactionHash}),z}})})),Y._defineProperty(this,"deployProxyByImplementation",Se(async(i,s,o,c,u,l)=>{let p=J.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return Ye.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,p,J.ethers.utils.formatBytes32String(h.toString())],parse:m=>{l&&l();let y=this.parseLogs("ProxyDeployed",m.logs);if(y.length<1)throw new Error("No ProxyDeployed event found");let C=y[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:C,transactionHash:m.transactionHash}),C}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===of.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Uh.contractType:case Ab.contractType:let i=await Uh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Hh.contractType:let s=await Hh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case Wh.contractType:let o=await Wh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Lh.contractType:case Cb.contractType:let c=await Lh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case kb.contractType:case zh.contractType:let u=await zh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Kh.contractType:let l=await Kh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,J.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case jh.contractType:let p=await jh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,p.recipients.map(C=>C.address),p.recipients.map(C=>J.BigNumber.from(C.sharesBps))];case qh.contractType:let h=await qh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.platform_fee_recipient,h.platform_fee_basis_points];case D1.contractType:let m=await D1.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case of.contractType:let y=await of.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return t5e(e)}async getImplementation(e,t){let n=J.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=uxt(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=wNe(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=J.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},FDe=class extends Po{constructor(e,t,n){super(t,e,_fn.default,n),Y._defineProperty(this,"addContract",Se(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Se(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await qe(o)])));return Ye.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Se(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Se(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await qe(o)])));return Ye.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await qe(e))).filter(t=>J.utils.isAddress(t)&&t.toLowerCase()!==J.constants.AddressZero)}},ypn="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",Y6e=class extends Hg{constructor(e,t,n){var a;super(e,t),a=this,Y._defineProperty(this,"_factory",void 0),Y._defineProperty(this,"_registry",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"transactionListener",i=>{i.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.transactionHash})}),Y._defineProperty(this,"deployNFTCollection",b0(async i=>await this.deployBuiltInContract.prepare(Ab.contractType,i))),Y._defineProperty(this,"deployNFTDrop",b0(async i=>await this.deployBuiltInContract.prepare(Uh.contractType,i))),Y._defineProperty(this,"deploySignatureDrop",b0(async i=>await this.deployBuiltInContract.prepare(Hh.contractType,i))),Y._defineProperty(this,"deployMultiwrap",b0(async i=>await this.deployBuiltInContract.prepare(Wh.contractType,i))),Y._defineProperty(this,"deployEdition",b0(async i=>await this.deployBuiltInContract.prepare(Cb.contractType,i))),Y._defineProperty(this,"deployEditionDrop",b0(async i=>await this.deployBuiltInContract.prepare(Lh.contractType,i))),Y._defineProperty(this,"deployToken",b0(async i=>await this.deployBuiltInContract.prepare(zh.contractType,i))),Y._defineProperty(this,"deployTokenDrop",b0(async i=>await this.deployBuiltInContract.prepare(kb.contractType,i))),Y._defineProperty(this,"deployMarketplace",b0(async i=>await this.deployBuiltInContract.prepare(qh.contractType,i))),Y._defineProperty(this,"deployMarketplaceV3",b0(async i=>await this.deployBuiltInContract.prepare(D1.contractType,i))),Y._defineProperty(this,"deployPack",b0(async i=>await this.deployBuiltInContract.prepare(of.contractType,i))),Y._defineProperty(this,"deploySplit",b0(async i=>await this.deployBuiltInContract.prepare(jh.contractType,i))),Y._defineProperty(this,"deployVote",b0(async i=>await this.deployBuiltInContract.prepare(Kh.contractType,i))),Y._defineProperty(this,"deployBuiltInContract",b0(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",c=a.getSigner();Pt.default(c,"A signer is required to deploy contracts");let u={app_uri:z_t[i],...await N1[i].schema.deploy.parseAsync(s)};if(a.hasLocalFactory()){let y;try{y=parseInt(o),isNaN(y)&&(y=void 0)}catch{y=void 0}let C=await a.getFactory();if(!C)throw new Error("Factory not found");return C.on(af.Transaction,a.transactionListener),C.deploy.prepare(i,u,a.events,y,()=>{C.off(af.Transaction,a.transactionListener)})}let l=wNe(i);Pt.default(l,"Contract name not found");let p=await a.storage.upload(u),h=await xNe(i,u,p,c,a.storage),m=await a.fetchPublishedContractFromPolygon(ypn,l,o);return a.deployContractFromUri.prepare(m.metadataUri,h)})),Y._defineProperty(this,"deployReleasedContract",b0(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",u=arguments.length>4?arguments[4]:void 0,l=await a.fetchPublishedContractFromPolygon(i,s,c);return await a.deployContractFromUri.prepare(l.metadataUri,o,u)})),Y._defineProperty(this,"deployViaFactory",Se(async(i,s,o,c,u)=>{let l=await qe(i),p=await qe(s),h=this.getSigner();Pt.default(h,"signer is required");let m=new $6e(l,this.getSignerOrProvider(),this.storage,this.options);return m.on(af.Transaction,this.transactionListener),await m.deployProxyByImplementation.prepare(p,o,c,u,this.events,()=>{m.off(af.Transaction,this.transactionListener)})})),Y._defineProperty(this,"deployProxy",b0(async(i,s,o,c)=>{let u=await qe(i),l=J.Contract.getInterface(s).encodeFunctionData(o,c),{TWProxy__factory:p}=await Promise.resolve().then(function(){return x0(qBe())});return this.deployContractWithAbi.prepare(p.abi,p.bytecode,[u,l])})),Y._defineProperty(this,"deployContractFromUri",b0(async(i,s,o)=>{let c=this.getSigner();Pt.default(c,"A signer is required");let{compilerMetadata:u,extendedMetadata:l}=await jg(i,this.storage),p=o?.forceDirectDeploy||!1;if(l&&l.factoryDeploymentData&&(l.isDeployableViaProxy||l.isDeployableViaFactory)&&!p){let C=(await this.getProvider().getNetwork()).chainId;Pt.default(l.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let P=v_t(u.abi,l.factoryDeploymentData.implementationInitializerFunction).map(F=>F.type),A=this.convertParamValues(P,s),B=l.factoryDeploymentData.implementationAddresses[C];if(B){let F=await qe(B);if(Pt.default(F,`implementationAddress not found for chainId '${C}'`),l.isDeployableViaFactory){Pt.default(l.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let W=l.factoryDeploymentData.factoryAddresses[C];Pt.default(W,`isDeployableViaFactory is true and factoryAddress not found for chainId '${C}'`);let K=await qe(W);return await this.deployViaFactory.prepare(K,F,u.abi,l.factoryDeploymentData.implementationInitializerFunction,A)}else if(l.isDeployableViaProxy)return await this.deployProxy.prepare(F,u.abi,l.factoryDeploymentData.implementationInitializerFunction,A)}else{let F=await N_t(c,o),W=await woe(i,this.storage,this.getProvider(),F);B=W.find(b=>b.type==="implementation")?.transaction.predictedAddress;let K=W.filter(b=>b.transaction.data&&b.transaction.data.length>0),z=K.filter(b=>b.type!=="infra").map(b=>b.transaction),G=K.filter(b=>b.type==="infra").map(b=>b.transaction);await F_t(c,G,o),await Promise.all(z.map(b=>O_t(c,b,o)));let j=await qe(B),H=await P_t(this.getProvider(),this.storage,F);o?.notifier?.("deploying","proxy");let I=await this.deployViaFactory.prepare(H,j,u.abi,l.factoryDeploymentData.implementationInitializerFunction,A);return o?.notifier?.("deployed","proxy"),I}}let h=u.bytecode.startsWith("0x")?u.bytecode:`0x${u.bytecode}`;if(!J.ethers.utils.isHexString(h))throw new Error(`Contract bytecode is invalid. -${f}`);let m=HEe(u.abi).map(I=>I.type),y=this.convertParamValues(m,s);return this.deployContractWithAbi.prepare(u.abi,f,y)})),Y._defineProperty(this,"deployContractWithAbi",jo(async(i,s,o)=>{let c=this.getSigner(),u=this.getProvider();_t.default(c,"Signer is required to deploy contracts");let l=new J.ethers.ContractFactory(i,s).connect(c);return new Kpe({args:o,provider:u,signer:c,factory:l,storage:this.storage,events:this.events})})),this.storage=n,this.events=new Eut.EventEmitter,this.getFactory(),this.getRegistry()}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=qX(t,"twRegistry");if(!!n)return new xEe(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=qX(t,"twFactory");return n?new Ihe(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await RV(e,this.storage),n;try{n=await zEe(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Se(e),i=await new sm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case gp.contractType:case bp.contractType:return[spe(t)?.wrapped?.address||J.ethers.constants.AddressZero];case Tl.contractType:return[spe(t).wrapped.address||J.ethers.constants.AddressZero,J.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(_t.default(J.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),J.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(_t.default(J.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?J.BigNumber.from(t[a].toString()):t[a])}},Che=class{constructor(e){Y._defineProperty(this,"featureName",Ipe.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Te(async t=>{let n=await Se(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},udt={},dBr=new sm("polygon");function ldt(r,e){return`${r}-${e}`}function pBr(r,e,t){udt[ldt(r,e)]=t}function hBr(r,e){return udt[ldt(r,e)]}async function B0(r,e,t){let n=(await e.getNetwork()).chainId,a=hBr(r,n);if(a)return a;let i;try{let s=await eee(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await khe(s,t)}catch{try{let o=await dBr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await khe(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return pBr(r,n,i),i}async function El(r,e,t){try{let n=await B0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function khe(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Gi.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=eCe.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function Ohe(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var Tut=256,MIe="0|[1-9]\\d*",fBr=`(${MIe})\\.(${MIe})\\.(${MIe})`,mBr=new RegExp(fBr);function DV(r){if(r.length>Tut)throw new Error(`version is longer than ${Tut} characters`);let e=r.trim().match(mBr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function ddt(r,e){let t=DV(r),n=DV(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function yBr(r,e){let t=DV(r),n=DV(e);if(n.major{try{return DV(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:de.z.string().optional(),description:de.z.string().optional(),readme:de.z.string().optional(),license:de.z.string().optional(),changelog:de.z.string().optional(),tags:de.z.array(de.z.string()).optional(),audit:Y.FileOrBufferOrStringSchema.nullable().optional(),logo:Y.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:de.z.boolean().optional(),isDeployableViaProxy:de.z.boolean().optional(),factoryDeploymentData:ydt.optional(),constructorParams:de.z.record(de.z.string(),de.z.object({displayName:de.z.string().optional(),description:de.z.string().optional(),defaultValue:de.z.string().optional()}).catchall(de.z.any())).optional()}).catchall(de.z.any()),gdt=XEe.extend({audit:de.z.string().nullable().optional(),logo:de.z.string().nullable().optional()}),bdt=fee.merge(XEe).extend({publisher:Ii.optional()}),vdt=fee.merge(gdt).extend({publisher:Ii.optional()}),wdt=de.z.object({name:de.z.string().optional(),bio:de.z.string().optional(),avatar:Y.FileOrBufferOrStringSchema.nullable().optional(),website:de.z.string().optional(),twitter:de.z.string().optional(),telegram:de.z.string().optional(),facebook:de.z.string().optional(),github:de.z.string().optional(),medium:de.z.string().optional(),linkedin:de.z.string().optional(),reddit:de.z.string().optional(),discord:de.z.string().optional()}),xdt=wdt.extend({avatar:de.z.string().nullable().optional()}),_dt=de.z.object({id:de.z.string(),timestamp:Vs,metadataUri:de.z.string()}),eCe=de.z.object({title:de.z.string().optional(),author:de.z.string().optional(),details:de.z.string().optional(),notice:de.z.string().optional()}),Tdt=de.z.object({name:de.z.string(),abi:Gi,metadata:de.z.record(de.z.string(),de.z.any()),info:eCe,licenses:de.z.array(de.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),Idt=fee.merge(Tdt).extend({bytecode:de.z.string()}),gBr=new Dg.ThirdwebStorage,tCe=new Map;function rCe(r,e){return`${r}-${e}`}function nCe(r,e){let t=rCe(r,e);return tCe.has(t)}function Edt(r,e){if(!nCe(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=rCe(r,e);return tCe.get(t)}function Cdt(r,e,t){let n=rCe(e,t);tCe.set(n,r)}function LX(r){return r||gBr}async function ape(r){let e=await Se(r.address),[t,n]=ui(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(nCe(e,a))return Edt(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new _he(t||n,e,await jpe(e,Gi.parse(i),n,r.sdkOptions,LX(r.storage)),LX(r.storage),r.sdkOptions,a);return Cdt(s,e,a),s}async function bBr(r){try{let e=new J.Contract(r.address,IEe.default,r.provider),t=J.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return QEe(t)}catch{return"custom"}}async function vBr(r){let e=await Se(r.address),[t,n]=ui(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(nCe(e,a))return Edt(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await bBr({address:e,provider:n});if(i==="custom"){let s=new The(r.network,r.sdkOptions,LX(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return ape({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await cm[i].getAbi(e,n,LX(r.storage));return ape({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in cm){let i=await cm[r.contractTypeOrAbi].initialize(t||n,e,LX(r.storage),r.sdkOptions);return Cdt(i,e,a),i}else return ape({...r,address:e,abi:r.contractTypeOrAbi})}var npe=new WeakMap;async function aCe(r){let[,e]=ui(r.network,r.sdkOptions),t;return npe.has(e)?t=npe.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw npe.delete(e),n}),npe.set(e,t)),await t}async function wBr(r){let[,e]=ui(r.network,r.sdkOptions);return e.getBlockNumber()}var DX=new Map;async function kdt(r){let e=await aCe(r),t=r.block,n=`${e}_${t}`,a;if(DX.has(n))a=DX.get(n);else{let[,i]=ui(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw DX.delete(n),s}),DX.set(n,a)}return await a}var NIe=new Map;async function Adt(r){let e=await aCe(r),t=r.block,n=`${e}_${t}`,a;if(DX.has(n))a=NIe.get(n);else{let[,i]=ui(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw NIe.delete(n),s}),NIe.set(n,a)}return await a}function iCe(r){let[,e]=ui(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function xBr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await kdt({block:a,...t}))}catch{}}return iCe({...t,onBlockNumber:n})}function Pdt(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Adt({block:a,...t}))}catch{}}return iCe({...t,onBlockNumber:n})}function _Br(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return Pdt({...n,onBlock:i})}te.ALL_ROLES=FEe;te.APPROVED_IMPLEMENTATIONS=qIe;te.AbiObjectSchema=mdt;te.AbiSchema=Gi;te.AbiTypeSchema=_Ee;te.AddressOrEnsSchema=Ii;te.AddressSchema=AEe;te.AdminRoleMissingError=nEe;te.AssetNotFoundError=zIe;te.AuctionAlreadyStartedError=ZIe;te.AuctionHasNotEndedError=TV;te.BYOCContractMetadataSchema=pdt;te.BaseSignaturePayloadInput=She;te.BigNumberSchema=Cs;te.BigNumberTransformSchema=Gut;te.BigNumberishSchema=Vs;te.CONTRACTS_MAP=$Ee;te.CONTRACT_ADDRESSES=Lg;te.CallOverrideSchema=Vut;te.ChainId=Ne;te.ChainIdToAddressSchema=TEe;te.ChainInfoInputSchema=Yut;te.ClaimConditionInputArray=Zut;te.ClaimConditionInputSchema=dee;te.ClaimConditionMetadataSchema=Jut;te.ClaimConditionOutputSchema=MEe;te.ClaimEligibility=Ca;te.CommonContractOutputSchema=id;te.CommonContractSchema=Il;te.CommonPlatformFeeSchema=vp;te.CommonPrimarySaleSchema=Og;te.CommonRoyaltySchema=Go;te.CommonSymbolSchema=yo;te.CommonTrustedForwarderSchema=sd;te.CompilerMetadataFetchedSchema=Tdt;te.ContractAppURI=aee;te.ContractDeployer=Ehe;te.ContractEncoder=E2;te.ContractEvents=C2;te.ContractInfoSchema=eCe;te.ContractInterceptor=k2;te.ContractMetadata=A0;te.ContractOwner=Che;te.ContractPlatformFee=whe;te.ContractPrimarySale=Ype;te.ContractPublishedMetadata=xhe;te.ContractRoles=Gpe;te.ContractRoyalty=Vpe;te.ContractWrapper=ks;te.CurrencySchema=$ut;te.CurrencyValueSchema=Qut;te.CustomContractDeploy=fdt;te.CustomContractInput=ZEe;te.CustomContractOutput=hdt;te.CustomContractSchema=_2;te.DelayedReveal=tee;te.DeployTransaction=Kpe;te.DropClaimConditions=ree;te.DropErc1155ClaimConditions=$pe;te.DropErc1155ContractSchema=plt;te.DropErc20ContractSchema=adt;te.DropErc721ContractSchema=DEe;te.DuplicateFileNameError=VIe;te.DuplicateLeafsError=lpe;te.EditionDropInitializer=Ah;te.EditionInitializer=R0;te.EndDateSchema=uee;te.Erc1155=yhe;te.Erc1155BatchMintable=hhe;te.Erc1155Burnable=lhe;te.Erc1155Enumerable=dhe;te.Erc1155LazyMintable=phe;te.Erc1155Mintable=fhe;te.Erc1155SignatureMintable=mhe;te.Erc20=ehe;te.Erc20BatchMintable=Jpe;te.Erc20Burnable=Qpe;te.Erc20Mintable=Zpe;te.Erc20SignatureMintable=Xpe;te.Erc721=uhe;te.Erc721BatchMintable=ahe;te.Erc721Burnable=the;te.Erc721ClaimableWithConditions=rhe;te.Erc721Enumerable=she;te.Erc721LazyMintable=nhe;te.Erc721Mintable=ihe;te.Erc721Supply=ohe;te.Erc721WithQuantitySignatureMintable=che;te.EventType=xl;te.ExtensionNotImplementedError=P0;te.ExtraPublishMetadataSchemaInput=XEe;te.ExtraPublishMetadataSchemaOutput=gdt;te.FEATURE_DIRECT_LISTINGS=zX;te.FEATURE_ENGLISH_AUCTIONS=KX;te.FEATURE_NFT_REVEALABLE=QX;te.FEATURE_OFFERS=GX;te.FEATURE_PACK_VRF=aEe;te.FactoryDeploymentSchema=ydt;te.FetchError=JIe;te.FileNameMissingError=GIe;te.FullPublishMetadataSchemaInput=bdt;te.FullPublishMetadataSchemaOutput=vdt;te.FunctionDeprecatedError=XIe;te.GasCostEstimator=A2;te.GenericRequest=ult;te.InterfaceId_IERC1155=oee;te.InterfaceId_IERC721=see;te.InvalidAddressError=jIe;te.LINK_TOKEN_ADDRESS=kMr;te.LOCAL_NODE_PKEY=Wut;te.ListingNotFoundError=eEe;te.MarketplaceContractSchema=LEe;te.MarketplaceInitializer=gp;te.MarketplaceV3DirectListings=ghe;te.MarketplaceV3EnglishAuctions=bhe;te.MarketplaceV3Initializer=om;te.MarketplaceV3Offers=vhe;te.MerkleSchema=D0;te.MintRequest1155=olt;te.MintRequest20=ilt;te.MintRequest721=slt;te.MintRequest721withQuantity=clt;te.MissingOwnerRoleError=$Ie;te.MissingRoleError=upe;te.MultiwrapContractSchema=sdt;te.MultiwrapInitializer=bp;te.NATIVE_TOKENS=FX;te.NATIVE_TOKEN_ADDRESS=Hu;te.NFTCollectionInitializer=M0;te.NFTDropInitializer=Ph;te.NotEnoughTokensError=YIe;te.NotFoundError=UX;te.OZ_DEFENDER_FORWARDER_ADDRESS=Bg;te.PREBUILT_CONTRACTS_APPURI_MAP=odt;te.PREBUILT_CONTRACTS_MAP=cm;te.PackContractSchema=mlt;te.PackInitializer=Tl;te.PartialClaimConditionInputSchema=RMr;te.PreDeployMetadata=fee;te.PreDeployMetadataFetchedSchema=Idt;te.ProfileSchemaInput=wdt;te.ProfileSchemaOutput=xdt;te.PublishedContractSchema=_dt;te.QuantityAboveLimitError=QIe;te.RawDateSchema=cee;te.RestrictedTransferError=rEe;te.SUPPORTED_CHAIN_IDS=Out;te.Signature1155PayloadInput=elt;te.Signature1155PayloadInputWithTokenId=tlt;te.Signature1155PayloadOutput=rlt;te.Signature20PayloadInput=NEe;te.Signature20PayloadOutput=Xut;te.Signature721PayloadInput=Rhe;te.Signature721PayloadOutput=BEe;te.Signature721WithQuantityInput=nlt;te.Signature721WithQuantityOutput=alt;te.SignatureDropInitializer=Sh;te.SnapshotEntryInput=ope;te.SnapshotEntryWithProofSchema=SEe;te.SnapshotInfoSchema=SMr;te.SnapshotInputSchema=lee;te.SnapshotSchema=REe;te.SplitInitializer=Rh;te.SplitsContractSchema=glt;te.StartDateSchema=PEe;te.Status=Ko;te.ThirdwebSDK=sm;te.TokenDropInitializer=N0;te.TokenErc1155ContractSchema=Tlt;te.TokenErc20ContractSchema=vlt;te.TokenErc721ContractSchema=xlt;te.TokenInitializer=Mh;te.Transaction=De;te.TransactionError=CV;te.UploadError=KIe;te.UserWallet=BV;te.VoteContractSchema=Clt;te.VoteInitializer=Nh;te.WrongListingTypeError=tEe;te.approveErc20Allowance=qEe;te.assertEnabled=Xt;te.buildTransactionFunction=Te;te.cleanCurrencyAddress=ppe;te.convertToReadableQuantity=MX;te.createSnapshot=qlt;te.detectContractFeature=Ye;te.detectFeatures=pee;te.extractConstructorParams=Ylt;te.extractConstructorParamsFromAbi=HEe;te.extractEventsFromAbi=Zlt;te.extractFunctionParamsFromAbi=Jlt;te.extractFunctions=$lt;te.extractFunctionsFromAbi=SV;te.extractIPFSHashFromBytecode=edt;te.extractMinimalProxyImplementationAddress=Xlt;te.fetchAbiFromAddress=El;te.fetchContractMetadata=khe;te.fetchContractMetadataFromAddress=B0;te.fetchCurrencyMetadata=LV;te.fetchCurrencyValue=yp;te.fetchExtendedReleaseMetadata=zEe;te.fetchPreDeployMetadata=RV;te.fetchRawPredeployMetadata=jEe;te.fetchSnapshotEntryForAddress=Bhe;te.fetchSourceFilesFromMetadata=Ohe;te.fetchTokenMetadataForContract=hee;te.getAllDetectedFeatureNames=hEe;te.getAllDetectedFeatures=VNr;te.getApprovedImplementation=Uut;te.getBlock=kdt;te.getBlockNumber=wBr;te.getBlockWithTransactions=Adt;te.getChainId=aCe;te.getChainIdFromNetwork=klt;te.getChainProvider=WX;te.getContract=vBr;te.getContractAddressByChainId=qX;te.getContractFromAbi=ape;te.getContractName=JEe;te.getContractPublisherAddress=Hut;te.getContractTypeForRemoteName=QEe;te.getDefaultTrustedForwarders=CEe;te.getMultichainRegistryAddress=FIe;te.getNativeTokenByChainId=spe;te.getProviderFromRpcUrl=cpe;te.getRoleHash=_V;te.getSignerAndProvider=ui;te.getSupportedChains=Fut;te.handleTokenApproval=nee;te.hasERC20Allowance=hNr;te.hasFunction=fo;te.hasMatchingAbi=UEe;te.includesErrorMessage=HX;te.isChainConfig=Mhe;te.isDowngradeVersion=yBr;te.isFeatureEnabled=MV;te.isIncrementalVersion=ddt;te.isNativeToken=Bh;te.isProvider=kEe;te.isSigner=Phe;te.isTokenApprovedForTransfer=rdt;te.isWinningBid=rBr;te.mapOffer=tBr;te.matchesPrebuiltAbi=zNr;te.normalizeAmount=fNr;te.normalizePriceValue=Tc;te.parseRevertReason=Nhe;te.resolveAddress=Se;te.resolveContractUriFromAddress=eee;te.setErc20Allowance=S0;te.setSupportedChains=qut;te.toDisplayValue=bNr;te.toEther=mNr;te.toSemver=DV;te.toUnits=gNr;te.toWei=yNr;te.uploadOrExtractURI=VEe;te.validateNewListingParam=eBr;te.watchBlock=xBr;te.watchBlockNumber=iCe;te.watchBlockWithTransactions=Pdt;te.watchTransactions=_Br});var Ndt=_(L0=>{"use strict";d();p();var OV=os(),um=kr(),qhe=bi(),Sdt=yn(),Rdt=um.z.object({}).catchall(um.z.union([OV.BigNumberTransformSchema,um.z.unknown()])),TBr=um.z.union([um.z.array(Rdt),Rdt]).optional(),Mdt=um.z.object({supply:OV.BigNumberSchema,metadata:qhe.CommonNFTOutput}),IBr=Mdt.extend({owner:um.z.string(),quantityOwned:OV.BigNumberSchema}),EBr=um.z.object({supply:OV.BigNumberishSchema,metadata:qhe.CommonNFTInput}),CBr=um.z.object({supply:OV.BigNumberishSchema,metadata:qhe.NFTInputOrUriSchema}),kBr=um.z.object({toAddress:OV.AddressOrEnsSchema,amount:qhe.AmountSchema}),ABr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function PBr(r){if(r in Sdt.GENERATED_ABI)return Sdt.GENERATED_ABI[r]}L0.EditionMetadataInputOrUriSchema=CBr;L0.EditionMetadataInputSchema=EBr;L0.EditionMetadataOutputSchema=Mdt;L0.EditionMetadataWithOwnerOutputSchema=IBr;L0.OptionalPropertiesInput=TBr;L0.ProposalState=ABr;L0.TokenMintInputSchema=kBr;L0.getCachedAbiForContract=PBr});var Bdt=_(ne=>{"use strict";d();p();Object.defineProperty(ne,"__esModule",{value:!0});var SBr=bi(),se=os(),qg=Ndt(),RBr=H6e(),MBr=bIe(),NBr=Zde(),BBr=lV(),DBr=CX(),sCe=Z6e(),LBr=wIe(),mee=AX();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();globalThis.global=globalThis;ne.getRpcUrl=SBr.getRpcUrl;ne.ALL_ROLES=se.ALL_ROLES;ne.APPROVED_IMPLEMENTATIONS=se.APPROVED_IMPLEMENTATIONS;ne.AbiObjectSchema=se.AbiObjectSchema;ne.AbiSchema=se.AbiSchema;ne.AbiTypeSchema=se.AbiTypeSchema;ne.AddressOrEnsSchema=se.AddressOrEnsSchema;ne.AddressSchema=se.AddressSchema;ne.AdminRoleMissingError=se.AdminRoleMissingError;ne.AssetNotFoundError=se.AssetNotFoundError;ne.AuctionAlreadyStartedError=se.AuctionAlreadyStartedError;ne.AuctionHasNotEndedError=se.AuctionHasNotEndedError;ne.BYOCContractMetadataSchema=se.BYOCContractMetadataSchema;ne.BaseSignaturePayloadInput=se.BaseSignaturePayloadInput;ne.BigNumberSchema=se.BigNumberSchema;ne.BigNumberTransformSchema=se.BigNumberTransformSchema;ne.BigNumberishSchema=se.BigNumberishSchema;ne.CONTRACTS_MAP=se.CONTRACTS_MAP;ne.CONTRACT_ADDRESSES=se.CONTRACT_ADDRESSES;ne.CallOverrideSchema=se.CallOverrideSchema;ne.ChainId=se.ChainId;ne.ChainIdToAddressSchema=se.ChainIdToAddressSchema;ne.ChainInfoInputSchema=se.ChainInfoInputSchema;ne.ClaimConditionInputArray=se.ClaimConditionInputArray;ne.ClaimConditionInputSchema=se.ClaimConditionInputSchema;ne.ClaimConditionMetadataSchema=se.ClaimConditionMetadataSchema;ne.ClaimConditionOutputSchema=se.ClaimConditionOutputSchema;ne.ClaimEligibility=se.ClaimEligibility;ne.CommonContractOutputSchema=se.CommonContractOutputSchema;ne.CommonContractSchema=se.CommonContractSchema;ne.CommonPlatformFeeSchema=se.CommonPlatformFeeSchema;ne.CommonPrimarySaleSchema=se.CommonPrimarySaleSchema;ne.CommonRoyaltySchema=se.CommonRoyaltySchema;ne.CommonSymbolSchema=se.CommonSymbolSchema;ne.CommonTrustedForwarderSchema=se.CommonTrustedForwarderSchema;ne.CompilerMetadataFetchedSchema=se.CompilerMetadataFetchedSchema;ne.ContractAppURI=se.ContractAppURI;ne.ContractDeployer=se.ContractDeployer;ne.ContractEncoder=se.ContractEncoder;ne.ContractEvents=se.ContractEvents;ne.ContractInfoSchema=se.ContractInfoSchema;ne.ContractInterceptor=se.ContractInterceptor;ne.ContractMetadata=se.ContractMetadata;ne.ContractOwner=se.ContractOwner;ne.ContractPlatformFee=se.ContractPlatformFee;ne.ContractPrimarySale=se.ContractPrimarySale;ne.ContractPublishedMetadata=se.ContractPublishedMetadata;ne.ContractRoles=se.ContractRoles;ne.ContractRoyalty=se.ContractRoyalty;ne.CurrencySchema=se.CurrencySchema;ne.CurrencyValueSchema=se.CurrencyValueSchema;ne.CustomContractDeploy=se.CustomContractDeploy;ne.CustomContractInput=se.CustomContractInput;ne.CustomContractOutput=se.CustomContractOutput;ne.CustomContractSchema=se.CustomContractSchema;ne.DelayedReveal=se.DelayedReveal;ne.DeployTransaction=se.DeployTransaction;ne.DropClaimConditions=se.DropClaimConditions;ne.DropErc1155ClaimConditions=se.DropErc1155ClaimConditions;ne.DuplicateFileNameError=se.DuplicateFileNameError;ne.DuplicateLeafsError=se.DuplicateLeafsError;ne.EditionDropInitializer=se.EditionDropInitializer;ne.EditionInitializer=se.EditionInitializer;ne.EndDateSchema=se.EndDateSchema;ne.Erc1155=se.Erc1155;ne.Erc1155BatchMintable=se.Erc1155BatchMintable;ne.Erc1155Burnable=se.Erc1155Burnable;ne.Erc1155Enumerable=se.Erc1155Enumerable;ne.Erc1155LazyMintable=se.Erc1155LazyMintable;ne.Erc1155Mintable=se.Erc1155Mintable;ne.Erc1155SignatureMintable=se.Erc1155SignatureMintable;ne.Erc20=se.Erc20;ne.Erc20BatchMintable=se.Erc20BatchMintable;ne.Erc20Burnable=se.Erc20Burnable;ne.Erc20Mintable=se.Erc20Mintable;ne.Erc20SignatureMintable=se.Erc20SignatureMintable;ne.Erc721=se.Erc721;ne.Erc721BatchMintable=se.Erc721BatchMintable;ne.Erc721Burnable=se.Erc721Burnable;ne.Erc721ClaimableWithConditions=se.Erc721ClaimableWithConditions;ne.Erc721Enumerable=se.Erc721Enumerable;ne.Erc721LazyMintable=se.Erc721LazyMintable;ne.Erc721Mintable=se.Erc721Mintable;ne.Erc721Supply=se.Erc721Supply;ne.Erc721WithQuantitySignatureMintable=se.Erc721WithQuantitySignatureMintable;ne.EventType=se.EventType;ne.ExtensionNotImplementedError=se.ExtensionNotImplementedError;ne.ExtraPublishMetadataSchemaInput=se.ExtraPublishMetadataSchemaInput;ne.ExtraPublishMetadataSchemaOutput=se.ExtraPublishMetadataSchemaOutput;ne.FactoryDeploymentSchema=se.FactoryDeploymentSchema;ne.FetchError=se.FetchError;ne.FileNameMissingError=se.FileNameMissingError;ne.FullPublishMetadataSchemaInput=se.FullPublishMetadataSchemaInput;ne.FullPublishMetadataSchemaOutput=se.FullPublishMetadataSchemaOutput;ne.FunctionDeprecatedError=se.FunctionDeprecatedError;ne.GasCostEstimator=se.GasCostEstimator;ne.GenericRequest=se.GenericRequest;ne.InterfaceId_IERC1155=se.InterfaceId_IERC1155;ne.InterfaceId_IERC721=se.InterfaceId_IERC721;ne.InvalidAddressError=se.InvalidAddressError;ne.LINK_TOKEN_ADDRESS=se.LINK_TOKEN_ADDRESS;ne.LOCAL_NODE_PKEY=se.LOCAL_NODE_PKEY;ne.ListingNotFoundError=se.ListingNotFoundError;ne.MarketplaceInitializer=se.MarketplaceInitializer;ne.MarketplaceV3DirectListings=se.MarketplaceV3DirectListings;ne.MarketplaceV3EnglishAuctions=se.MarketplaceV3EnglishAuctions;ne.MarketplaceV3Initializer=se.MarketplaceV3Initializer;ne.MarketplaceV3Offers=se.MarketplaceV3Offers;ne.MerkleSchema=se.MerkleSchema;ne.MintRequest1155=se.MintRequest1155;ne.MintRequest20=se.MintRequest20;ne.MintRequest721=se.MintRequest721;ne.MintRequest721withQuantity=se.MintRequest721withQuantity;ne.MissingOwnerRoleError=se.MissingOwnerRoleError;ne.MissingRoleError=se.MissingRoleError;ne.MultiwrapInitializer=se.MultiwrapInitializer;ne.NATIVE_TOKENS=se.NATIVE_TOKENS;ne.NATIVE_TOKEN_ADDRESS=se.NATIVE_TOKEN_ADDRESS;ne.NFTCollectionInitializer=se.NFTCollectionInitializer;ne.NFTDropInitializer=se.NFTDropInitializer;ne.NotEnoughTokensError=se.NotEnoughTokensError;ne.NotFoundError=se.NotFoundError;ne.OZ_DEFENDER_FORWARDER_ADDRESS=se.OZ_DEFENDER_FORWARDER_ADDRESS;ne.PREBUILT_CONTRACTS_APPURI_MAP=se.PREBUILT_CONTRACTS_APPURI_MAP;ne.PREBUILT_CONTRACTS_MAP=se.PREBUILT_CONTRACTS_MAP;ne.PackInitializer=se.PackInitializer;ne.PartialClaimConditionInputSchema=se.PartialClaimConditionInputSchema;ne.PreDeployMetadata=se.PreDeployMetadata;ne.PreDeployMetadataFetchedSchema=se.PreDeployMetadataFetchedSchema;ne.ProfileSchemaInput=se.ProfileSchemaInput;ne.ProfileSchemaOutput=se.ProfileSchemaOutput;ne.PublishedContractSchema=se.PublishedContractSchema;ne.QuantityAboveLimitError=se.QuantityAboveLimitError;ne.RawDateSchema=se.RawDateSchema;ne.RestrictedTransferError=se.RestrictedTransferError;ne.SUPPORTED_CHAIN_IDS=se.SUPPORTED_CHAIN_IDS;ne.Signature1155PayloadInput=se.Signature1155PayloadInput;ne.Signature1155PayloadInputWithTokenId=se.Signature1155PayloadInputWithTokenId;ne.Signature1155PayloadOutput=se.Signature1155PayloadOutput;ne.Signature20PayloadInput=se.Signature20PayloadInput;ne.Signature20PayloadOutput=se.Signature20PayloadOutput;ne.Signature721PayloadInput=se.Signature721PayloadInput;ne.Signature721PayloadOutput=se.Signature721PayloadOutput;ne.Signature721WithQuantityInput=se.Signature721WithQuantityInput;ne.Signature721WithQuantityOutput=se.Signature721WithQuantityOutput;ne.SignatureDropInitializer=se.SignatureDropInitializer;ne.SnapshotEntryInput=se.SnapshotEntryInput;ne.SnapshotEntryWithProofSchema=se.SnapshotEntryWithProofSchema;ne.SnapshotInfoSchema=se.SnapshotInfoSchema;ne.SnapshotInputSchema=se.SnapshotInputSchema;ne.SnapshotSchema=se.SnapshotSchema;ne.SplitInitializer=se.SplitInitializer;ne.StartDateSchema=se.StartDateSchema;ne.Status=se.Status;ne.ThirdwebSDK=se.ThirdwebSDK;ne.TokenDropInitializer=se.TokenDropInitializer;ne.TokenInitializer=se.TokenInitializer;ne.Transaction=se.Transaction;ne.TransactionError=se.TransactionError;ne.UploadError=se.UploadError;ne.UserWallet=se.UserWallet;ne.VoteInitializer=se.VoteInitializer;ne.WrongListingTypeError=se.WrongListingTypeError;ne.approveErc20Allowance=se.approveErc20Allowance;ne.assertEnabled=se.assertEnabled;ne.cleanCurrencyAddress=se.cleanCurrencyAddress;ne.convertToReadableQuantity=se.convertToReadableQuantity;ne.createSnapshot=se.createSnapshot;ne.detectContractFeature=se.detectContractFeature;ne.detectFeatures=se.detectFeatures;ne.extractConstructorParams=se.extractConstructorParams;ne.extractConstructorParamsFromAbi=se.extractConstructorParamsFromAbi;ne.extractEventsFromAbi=se.extractEventsFromAbi;ne.extractFunctionParamsFromAbi=se.extractFunctionParamsFromAbi;ne.extractFunctions=se.extractFunctions;ne.extractFunctionsFromAbi=se.extractFunctionsFromAbi;ne.extractIPFSHashFromBytecode=se.extractIPFSHashFromBytecode;ne.extractMinimalProxyImplementationAddress=se.extractMinimalProxyImplementationAddress;ne.fetchAbiFromAddress=se.fetchAbiFromAddress;ne.fetchContractMetadata=se.fetchContractMetadata;ne.fetchContractMetadataFromAddress=se.fetchContractMetadataFromAddress;ne.fetchCurrencyMetadata=se.fetchCurrencyMetadata;ne.fetchCurrencyValue=se.fetchCurrencyValue;ne.fetchExtendedReleaseMetadata=se.fetchExtendedReleaseMetadata;ne.fetchPreDeployMetadata=se.fetchPreDeployMetadata;ne.fetchRawPredeployMetadata=se.fetchRawPredeployMetadata;ne.fetchSnapshotEntryForAddress=se.fetchSnapshotEntryForAddress;ne.fetchSourceFilesFromMetadata=se.fetchSourceFilesFromMetadata;ne.getAllDetectedFeatureNames=se.getAllDetectedFeatureNames;ne.getAllDetectedFeatures=se.getAllDetectedFeatures;ne.getApprovedImplementation=se.getApprovedImplementation;ne.getBlock=se.getBlock;ne.getBlockNumber=se.getBlockNumber;ne.getBlockWithTransactions=se.getBlockWithTransactions;ne.getChainId=se.getChainId;ne.getChainIdFromNetwork=se.getChainIdFromNetwork;ne.getChainProvider=se.getChainProvider;ne.getContract=se.getContract;ne.getContractAddressByChainId=se.getContractAddressByChainId;ne.getContractFromAbi=se.getContractFromAbi;ne.getContractName=se.getContractName;ne.getContractPublisherAddress=se.getContractPublisherAddress;ne.getContractTypeForRemoteName=se.getContractTypeForRemoteName;ne.getDefaultTrustedForwarders=se.getDefaultTrustedForwarders;ne.getMultichainRegistryAddress=se.getMultichainRegistryAddress;ne.getNativeTokenByChainId=se.getNativeTokenByChainId;ne.getProviderFromRpcUrl=se.getProviderFromRpcUrl;ne.getRoleHash=se.getRoleHash;ne.getSignerAndProvider=se.getSignerAndProvider;ne.getSupportedChains=se.getSupportedChains;ne.hasERC20Allowance=se.hasERC20Allowance;ne.hasFunction=se.hasFunction;ne.hasMatchingAbi=se.hasMatchingAbi;ne.includesErrorMessage=se.includesErrorMessage;ne.isChainConfig=se.isChainConfig;ne.isDowngradeVersion=se.isDowngradeVersion;ne.isFeatureEnabled=se.isFeatureEnabled;ne.isIncrementalVersion=se.isIncrementalVersion;ne.isNativeToken=se.isNativeToken;ne.isProvider=se.isProvider;ne.isSigner=se.isSigner;ne.matchesPrebuiltAbi=se.matchesPrebuiltAbi;ne.normalizeAmount=se.normalizeAmount;ne.normalizePriceValue=se.normalizePriceValue;ne.parseRevertReason=se.parseRevertReason;ne.resolveContractUriFromAddress=se.resolveContractUriFromAddress;ne.setErc20Allowance=se.setErc20Allowance;ne.setSupportedChains=se.setSupportedChains;ne.toDisplayValue=se.toDisplayValue;ne.toEther=se.toEther;ne.toSemver=se.toSemver;ne.toUnits=se.toUnits;ne.toWei=se.toWei;ne.watchBlock=se.watchBlock;ne.watchBlockNumber=se.watchBlockNumber;ne.watchBlockWithTransactions=se.watchBlockWithTransactions;ne.watchTransactions=se.watchTransactions;ne.EditionMetadataInputOrUriSchema=qg.EditionMetadataInputOrUriSchema;ne.EditionMetadataInputSchema=qg.EditionMetadataInputSchema;ne.EditionMetadataOutputSchema=qg.EditionMetadataOutputSchema;ne.EditionMetadataWithOwnerOutputSchema=qg.EditionMetadataWithOwnerOutputSchema;ne.OptionalPropertiesInput=qg.OptionalPropertiesInput;ne.ProposalState=qg.ProposalState;ne.TokenMintInputSchema=qg.TokenMintInputSchema;ne.getCachedAbiForContract=qg.getCachedAbiForContract;ne.DropErc1155History=RBr.DropErc1155History;ne.TokenERC20History=MBr.TokenERC20History;ne.StandardErc20=NBr.StandardErc20;ne.StandardErc721=BBr.StandardErc721;ne.StandardErc1155=DBr.StandardErc1155;ne.ListingType=sCe.ListingType;ne.MarketplaceAuction=sCe.MarketplaceAuction;ne.MarketplaceDirect=sCe.MarketplaceDirect;ne.VoteType=LBr.VoteType;ne.PAPER_API_URL=mee.PAPER_API_URL;ne.PaperCheckout=mee.PaperCheckout;ne.createCheckoutLinkIntent=mee.createCheckoutLinkIntent;ne.fetchRegisteredCheckoutId=mee.fetchRegisteredCheckoutId;ne.parseChainIdToPaperChain=mee.parseChainIdToPaperChain});var Ei=_(vu=>{"use strict";d();p();var OBr=Cr(),qV=je(),lt=kr();function qBr(r){return r&&r.__esModule?r:{default:r}}var FV=qBr(OBr),qdt="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function FBr(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qdt;return`https://${r}.rpc.thirdweb.com/${e}`}var WBr=()=>typeof window<"u",Ddt=WBr()?lt.z.instanceof(File):lt.z.instanceof(b.Buffer),UBr=lt.z.union([Ddt,lt.z.object({data:lt.z.union([Ddt,lt.z.string()]),name:lt.z.string()})]),Fhe=lt.z.union([UBr,lt.z.string()]),Fdt=1e4,HBr=lt.z.union([lt.z.array(lt.z.number()),lt.z.string()]),jBr=lt.z.union([lt.z.string(),lt.z.number(),lt.z.bigint(),lt.z.custom(r=>qV.BigNumber.isBigNumber(r)),lt.z.custom(r=>FV.default.isBN(r))]).transform(r=>{let e=FV.default.isBN(r)?new FV.default(r).toString():qV.BigNumber.from(r).toString();return qV.BigNumber.from(e)});jBr.transform(r=>r.toString());var Wdt=lt.z.union([lt.z.bigint(),lt.z.custom(r=>qV.BigNumber.isBigNumber(r)),lt.z.custom(r=>FV.default.isBN(r))]).transform(r=>FV.default.isBN(r)?new FV.default(r).toString():qV.BigNumber.from(r).toString()),zBr=lt.z.number().max(Fdt,"Cannot exceed 100%").min(0,"Cannot be below 0%"),KBr=lt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),GBr=lt.z.union([lt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),lt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),lt.z.string().length(0)]),Udt=lt.z.union([lt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),lt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),VBr=lt.z.union([Udt,lt.z.literal("unlimited")]).default("unlimited"),Hdt=lt.z.date().transform(r=>qV.BigNumber.from(Math.floor(r.getTime()/1e3)));Hdt.default(new Date(0));Hdt.default(new Date(Date.now()+1e3*60*60*24*365*10));function YBr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function $Br(r){var e=YBr(r,"string");return typeof e=="symbol"?e:String(e)}function QBr(r,e,t){return e=$Br(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Ldt=lt.z.object({}).catchall(lt.z.union([Wdt,lt.z.unknown()])),Odt=lt.z.union([lt.z.array(Ldt),Ldt]).optional().nullable(),cCe=lt.z.object({name:lt.z.union([lt.z.string(),lt.z.number()]).optional().nullable(),description:lt.z.string().nullable().optional().nullable(),image:Fhe.nullable().optional(),external_url:Fhe.nullable().optional(),animation_url:Fhe.optional().nullable(),background_color:GBr.optional().nullable(),properties:Odt,attributes:Odt}).catchall(lt.z.union([Wdt,lt.z.unknown()])),JBr=lt.z.union([cCe,lt.z.string()]),ZBr=cCe.extend({id:lt.z.string(),uri:lt.z.string(),image:lt.z.string().nullable().optional(),external_url:lt.z.string().nullable().optional(),animation_url:lt.z.string().nullable().optional()}),oCe=100,XBr=lt.z.object({start:lt.z.number().default(0),count:lt.z.number().default(oCe)}).default({start:0,count:oCe});vu.AmountSchema=Udt;vu.BasisPointsSchema=zBr;vu.BytesLikeSchema=HBr;vu.CommonNFTInput=cCe;vu.CommonNFTOutput=ZBr;vu.DEFAULT_API_KEY=qdt;vu.DEFAULT_QUERY_ALL_COUNT=oCe;vu.FileOrBufferOrStringSchema=Fhe;vu.MAX_BPS=Fdt;vu.NFTInputOrUriSchema=JBr;vu.PercentSchema=KBr;vu.QuantitySchema=VBr;vu.QueryAllParamsSchema=XBr;vu._defineProperty=QBr;vu.getRpcUrl=FBr});var lCe=_(jdt=>{"use strict";d();p();var eDr=Ei(),tDr=je(),uCe=class{constructor(e){eDr._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&tDr.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};jdt.DropErc1155History=uCe});var yee=_(zdt=>{"use strict";d();p();var S2=Ei(),Whe=ls(),dCe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;S2._defineProperty(this,"contractWrapper",void 0),S2._defineProperty(this,"storage",void 0),S2._defineProperty(this,"erc1155",void 0),S2._defineProperty(this,"_chainId",void 0),S2._defineProperty(this,"transfer",Whe.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),S2._defineProperty(this,"setApprovalForAll",Whe.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),S2._defineProperty(this,"airdrop",Whe.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new Whe.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};zdt.StandardErc1155=dCe});var bee=_(WV=>{"use strict";d();p();var rDr=Ei(),nDr=Gr(),gee=ls();function aDr(r){return r&&r.__esModule?r:{default:r}}var hCe=aDr(nDr),iDr="https://paper.xyz/api",sDr="2022-08-12",fCe=`${iDr}/${sDr}/platform/thirdweb`,Kdt={[gee.ChainId.Mainnet]:"Ethereum",[gee.ChainId.Goerli]:"Goerli",[gee.ChainId.Polygon]:"Polygon",[gee.ChainId.Mumbai]:"Mumbai",[gee.ChainId.Avalanche]:"Avalanche"};function Gdt(r){return hCe.default(r in Kdt,`chainId not supported by paper: ${r}`),Kdt[r]}async function Vdt(r,e){let t=Gdt(e),a=await(await fetch(`${fCe}/register-contract?contractAddress=${r}&chain=${t}`)).json();return hCe.default(a.result.id,"Contract is not registered with paper"),a.result.id}var oDr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function Ydt(r,e){let n=await(await fetch(`${fCe}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...oDr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return hCe.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var pCe=class{constructor(e){rDr._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return Vdt(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await Ydt(await this.getCheckoutId(),e)}};WV.PAPER_API_URL=fCe;WV.PaperCheckout=pCe;WV.createCheckoutLinkIntent=Ydt;WV.fetchRegisteredCheckoutId=Vdt;WV.parseChainIdToPaperChain=Gdt});var Qdt=_($dt=>{"use strict";d();p();var Ys=Ei(),As=ls(),cDr=lCe(),uDr=yee(),lDr=bee(),dDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var UV=class extends uDr.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new As.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ys._defineProperty(this,"abi",void 0),Ys._defineProperty(this,"sales",void 0),Ys._defineProperty(this,"platformFees",void 0),Ys._defineProperty(this,"encoder",void 0),Ys._defineProperty(this,"estimator",void 0),Ys._defineProperty(this,"events",void 0),Ys._defineProperty(this,"metadata",void 0),Ys._defineProperty(this,"app",void 0),Ys._defineProperty(this,"roles",void 0),Ys._defineProperty(this,"royalties",void 0),Ys._defineProperty(this,"claimConditions",void 0),Ys._defineProperty(this,"checkout",void 0),Ys._defineProperty(this,"history",void 0),Ys._defineProperty(this,"interceptor",void 0),Ys._defineProperty(this,"owner",void 0),Ys._defineProperty(this,"createBatch",As.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Ys._defineProperty(this,"claimTo",As.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Ys._defineProperty(this,"claim",As.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Ys._defineProperty(this,"burnTokens",As.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=As.AbiSchema.parse(s),this.metadata=new As.ContractMetadata(this.contractWrapper,As.DropErc1155ContractSchema,this.storage),this.app=new As.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new As.ContractRoles(this.contractWrapper,UV.contractRoles),this.royalties=new As.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new As.ContractPrimarySale(this.contractWrapper),this.claimConditions=new As.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new As.ContractEvents(this.contractWrapper),this.history=new cDr.DropErc1155History(this.events),this.encoder=new As.ContractEncoder(this.contractWrapper),this.estimator=new As.GasCostEstimator(this.contractWrapper),this.platformFees=new As.ContractPlatformFee(this.contractWrapper),this.interceptor=new As.ContractInterceptor(this.contractWrapper),this.checkout=new lDr.PaperCheckout(this.contractWrapper),this.owner=new As.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(As.getRoleHash("transfer"),dDr.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return As.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ys._defineProperty(UV,"contractRoles",["admin","minter","transfer"]);$dt.EditionDrop=UV});var Zdt=_(Jdt=>{"use strict";d();p();var Ps=Ei(),Ci=ls(),pDr=yee(),hDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var HV=class extends pDr.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ci.ContractWrapper(e,t,i,a);super(o,n,s),Ps._defineProperty(this,"abi",void 0),Ps._defineProperty(this,"metadata",void 0),Ps._defineProperty(this,"app",void 0),Ps._defineProperty(this,"roles",void 0),Ps._defineProperty(this,"sales",void 0),Ps._defineProperty(this,"platformFees",void 0),Ps._defineProperty(this,"encoder",void 0),Ps._defineProperty(this,"estimator",void 0),Ps._defineProperty(this,"events",void 0),Ps._defineProperty(this,"royalties",void 0),Ps._defineProperty(this,"signature",void 0),Ps._defineProperty(this,"interceptor",void 0),Ps._defineProperty(this,"owner",void 0),Ps._defineProperty(this,"mint",Ci.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),Ps._defineProperty(this,"mintTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),Ps._defineProperty(this,"mintAdditionalSupply",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),Ps._defineProperty(this,"mintAdditionalSupplyTo",Ci.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),Ps._defineProperty(this,"mintBatch",Ci.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),Ps._defineProperty(this,"mintBatchTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),Ps._defineProperty(this,"burn",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=Ci.AbiSchema.parse(i||[]),this.metadata=new Ci.ContractMetadata(this.contractWrapper,Ci.TokenErc1155ContractSchema,this.storage),this.app=new Ci.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ci.ContractRoles(this.contractWrapper,HV.contractRoles),this.royalties=new Ci.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ci.ContractPrimarySale(this.contractWrapper),this.encoder=new Ci.ContractEncoder(this.contractWrapper),this.estimator=new Ci.GasCostEstimator(this.contractWrapper),this.events=new Ci.ContractEvents(this.contractWrapper),this.platformFees=new Ci.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ci.ContractInterceptor(this.contractWrapper),this.signature=new Ci.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.owner=new Ci.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ci.getRoleHash("transfer"),hDr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return Ci.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ps._defineProperty(HV,"contractRoles",["admin","minter","transfer"]);Jdt.Edition=HV});var gCe=_(jhe=>{"use strict";d();p();var Yo=Ei(),Ve=ls(),fDr=mn(),mDr=pn(),yDr=hn(),lr=je(),gDr=Gr();function Hhe(r){return r&&r.__esModule?r:{default:r}}var bDr=Hhe(fDr),vDr=Hhe(mDr),wDr=Hhe(yDr),Uhe=Hhe(gDr),R2=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),mCe=class{constructor(e,t){Yo._defineProperty(this,"contractWrapper",void 0),Yo._defineProperty(this,"storage",void 0),Yo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Yo._defineProperty(this,"makeOffer",Ve.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ve.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=lr.BigNumber.from(a),l=lr.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ve.setErc20Allowance(this.contractWrapper,l,i,h);let f=lr.ethers.constants.MaxUint256;return o&&(f=lr.BigNumber.from(Math.floor(o.getTime()/1e3))),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Yo._defineProperty(this,"acceptOffer",Ve.buildTransactionFunction(async(n,a)=>{await this.validateListing(lr.BigNumber.from(n));let i=await Ve.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Yo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(lr.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=lr.BigNumber.from(a),h=lr.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Yo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ve.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Yo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===lr.constants.AddressZero)throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==R2.Direct)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(lr.BigNumber.from(e)),Uhe.default(lr.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ve.resolveAddress(t));if(n.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:R2.Direct}}async isStillValidListing(e,t){if(!await Ve.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new lr.Contract(e.assetContractAddress,bDr.default,a),s=await i.supportsInterface(Ve.InterfaceId_IERC721),o=await i.supportsInterface(Ve.InterfaceId_IERC1155);if(s){let u=(await new lr.Contract(e.assetContractAddress,vDr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new lr.Contract(e.assetContractAddress,wDr.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},yCe=class{constructor(e,t){Yo._defineProperty(this,"contractWrapper",void 0),Yo._defineProperty(this,"storage",void 0),Yo._defineProperty(this,"encoder",void 0),Yo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Yo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=await Ve.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,lr.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Yo._defineProperty(this,"makeBid",Ve.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(lr.BigNumber.from(n)),s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(lr.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ve.isWinningBid(c.pricePerToken,s,o);Uhe.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=lr.BigNumber.from(i.reservePrice);Uhe.default(f.gte(m),"Bid price is too low based on reserve price")}let u=lr.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,lr.ethers.constants.MaxUint256],overrides:h})})),Yo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=lr.BigNumber.from(Math.floor(Date.now()/1e3)),s=lr.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==lr.constants.AddressZero)throw new Ve.AuctionAlreadyStartedError(n.toString());return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Yo._defineProperty(this,"closeListing",Ve.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(lr.BigNumber.from(n));try{return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Yo._defineProperty(this,"executeSale",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n));try{let i=await this.getWinningBid(n);Uhe.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Yo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ve.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==R2.Auction)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(lr.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(lr.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=lr.BigNumber.from(Math.floor(Date.now()/1e3)),i=lr.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==lr.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(lr.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(lr.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:lr.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:R2.Auction}}};jhe.ListingType=R2;jhe.MarketplaceAuction=yCe;jhe.MarketplaceDirect=mCe});var tpt=_(ept=>{"use strict";d();p();var Vi=Ei(),an=ls(),Dh=gCe(),od=je(),xDr=Gr();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function _Dr(r){return r&&r.__esModule?r:{default:r}}var Xdt=_Dr(xDr),jV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new an.ContractWrapper(e,t,i,a);Vi._defineProperty(this,"abi",void 0),Vi._defineProperty(this,"contractWrapper",void 0),Vi._defineProperty(this,"storage",void 0),Vi._defineProperty(this,"encoder",void 0),Vi._defineProperty(this,"events",void 0),Vi._defineProperty(this,"estimator",void 0),Vi._defineProperty(this,"platformFees",void 0),Vi._defineProperty(this,"metadata",void 0),Vi._defineProperty(this,"app",void 0),Vi._defineProperty(this,"roles",void 0),Vi._defineProperty(this,"interceptor",void 0),Vi._defineProperty(this,"direct",void 0),Vi._defineProperty(this,"auction",void 0),Vi._defineProperty(this,"_chainId",void 0),Vi._defineProperty(this,"getAll",this.getAllListings),Vi._defineProperty(this,"buyoutListing",an.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new an.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Dh.ListingType.Direct:return Xdt.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Dh.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Vi._defineProperty(this,"makeOffer",an.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new an.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Dh.ListingType.Direct:return Xdt.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,an.isNativeToken(h.currency)?an.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Dh.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Vi._defineProperty(this,"setBidBufferBps",an.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,od.BigNumber.from(c)]})})),Vi._defineProperty(this,"setTimeBufferInSeconds",an.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[od.BigNumber.from(c),u]})})),Vi._defineProperty(this,"allowListingFromSpecificAssetOnly",an.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(od.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[an.getRoleHash("asset"),od.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[an.getRoleHash("asset"),c])),an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Vi._defineProperty(this,"allowListingFromAnyAsset",an.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[an.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[an.getRoleHash("asset"),od.constants.AddressZero])),an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=an.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new an.ContractMetadata(this.contractWrapper,an.MarketplaceContractSchema,this.storage),this.app=new an.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new an.ContractRoles(this.contractWrapper,jV.contractRoles),this.encoder=new an.ContractEncoder(this.contractWrapper),this.estimator=new an.GasCostEstimator(this.contractWrapper),this.direct=new Dh.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Dh.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new an.ContractEvents(this.contractWrapper),this.platformFees=new an.ContractPlatformFee(this.contractWrapper),this.interceptor=new an.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===od.constants.AddressZero)throw new an.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Dh.ListingType.Auction:return await this.auction.mapListing(t);case Dh.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=od.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Dh.ListingType.Auction&&od.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&od.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Dh.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(an.getRoleHash("lister"),od.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await an.mapOffer(this.contractWrapper.getProvider(),od.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof an.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Dh.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=od.BigNumber.from(t?.start||0).toNumber(),i=od.BigNumber.from(t?.count||Vi.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return an.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Vi._defineProperty(jV,"contractRoles",["admin","lister","asset"]);ept.Marketplace=jV});var npt=_(rpt=>{"use strict";d();p();var cd=Ei(),ki=ls();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var zV=class{get directListings(){return ki.assertEnabled(this.detectDirectListings(),ki.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return ki.assertEnabled(this.detectEnglishAuctions(),ki.FEATURE_ENGLISH_AUCTIONS)}get offers(){return ki.assertEnabled(this.detectOffers(),ki.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ki.ContractWrapper(e,t,i,a);cd._defineProperty(this,"abi",void 0),cd._defineProperty(this,"contractWrapper",void 0),cd._defineProperty(this,"storage",void 0),cd._defineProperty(this,"encoder",void 0),cd._defineProperty(this,"events",void 0),cd._defineProperty(this,"estimator",void 0),cd._defineProperty(this,"platformFees",void 0),cd._defineProperty(this,"metadata",void 0),cd._defineProperty(this,"app",void 0),cd._defineProperty(this,"roles",void 0),cd._defineProperty(this,"interceptor",void 0),cd._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=ki.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new ki.ContractMetadata(this.contractWrapper,ki.MarketplaceContractSchema,this.storage),this.app=new ki.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ki.ContractRoles(this.contractWrapper,zV.contractRoles),this.encoder=new ki.ContractEncoder(this.contractWrapper),this.estimator=new ki.GasCostEstimator(this.contractWrapper),this.events=new ki.ContractEvents(this.contractWrapper),this.platformFees=new ki.ContractPlatformFee(this.contractWrapper),this.interceptor=new ki.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return ki.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectDirectListings(){if(ki.detectContractFeature(this.contractWrapper,"DirectListings"))return new ki.MarketplaceV3DirectListings(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(ki.detectContractFeature(this.contractWrapper,"EnglishAuctions"))return new ki.MarketplaceV3EnglishAuctions(this.contractWrapper,this.storage)}detectOffers(){if(ki.detectContractFeature(this.contractWrapper,"Offers"))return new ki.MarketplaceV3Offers(this.contractWrapper,this.storage)}};cd._defineProperty(zV,"contractRoles",["admin","lister","asset"]);rpt.MarketplaceV3=zV});var KV=_(apt=>{"use strict";d();p();var M2=Ei(),Fg=ls(),bCe=class{get chainId(){return this._chainId}constructor(e,t,n){M2._defineProperty(this,"contractWrapper",void 0),M2._defineProperty(this,"storage",void 0),M2._defineProperty(this,"erc721",void 0),M2._defineProperty(this,"_chainId",void 0),M2._defineProperty(this,"transfer",Fg.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),M2._defineProperty(this,"setApprovalForAll",Fg.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),M2._defineProperty(this,"setApprovalForToken",Fg.buildTransactionFunction(async(a,i)=>Fg.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Fg.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new Fg.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await Fg.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await Fg.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};apt.StandardErc721=bCe});var spt=_(ipt=>{"use strict";d();p();var xp=Ei(),Ai=ls(),TDr=KV(),IDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var GV=class extends TDr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ai.ContractWrapper(e,t,i,a);super(o,n,s),xp._defineProperty(this,"abi",void 0),xp._defineProperty(this,"encoder",void 0),xp._defineProperty(this,"estimator",void 0),xp._defineProperty(this,"metadata",void 0),xp._defineProperty(this,"app",void 0),xp._defineProperty(this,"events",void 0),xp._defineProperty(this,"roles",void 0),xp._defineProperty(this,"royalties",void 0),xp._defineProperty(this,"owner",void 0),xp._defineProperty(this,"wrap",Ai.buildTransactionFunction(async(c,u,l)=>{let h=await Ai.uploadOrExtractURI(u,this.storage),f=await Ai.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Ai.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let I=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(I.length===0)throw new Error("TokensWrapped event not found");let C=I[0].args.tokenIdOfWrappedToken;return{id:C,receipt:y,data:()=>this.get(C)}}})})),xp._defineProperty(this,"unwrap",Ai.buildTransactionFunction(async(c,u)=>{let l=await Ai.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Ai.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=Ai.AbiSchema.parse(i||[]),this.metadata=new Ai.ContractMetadata(this.contractWrapper,Ai.MultiwrapContractSchema,this.storage),this.app=new Ai.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ai.ContractRoles(this.contractWrapper,GV.contractRoles),this.encoder=new Ai.ContractEncoder(this.contractWrapper),this.estimator=new Ai.GasCostEstimator(this.contractWrapper),this.events=new Ai.ContractEvents(this.contractWrapper),this.royalties=new Ai.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Ai.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Ai.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:IDr.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Ai.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Ai.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +${h}`);let m=Boe(u.abi).map(C=>C.type),y=this.convertParamValues(m,s);return this.deployContractWithAbi.prepare(u.abi,h,y)})),Y._defineProperty(this,"deployContractWithAbi",b0(async(i,s,o)=>{let c=this.getSigner(),u=this.getProvider();Pt.default(c,"Signer is required to deploy contracts");let l=new J.ethers.ContractFactory(i,s).connect(c);return new m6e({args:o,provider:u,signer:c,factory:l,storage:this.storage,events:this.events})})),this.storage=n,this.events=new $4t.EventEmitter,this.getFactory(),this.getRegistry()}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=aoe(t,"twRegistry");if(!!n)return new FDe(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=aoe(t,"twFactory");return n?new $6e(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async getTransactionsForDeploy(e,t){let n=[],a=this.getProvider();Pt.default(a,"A provider is required");let{extendedMetadata:i}=await jg(e,this.storage),s=t?.forceDirectDeploy||!1;if(i&&i.factoryDeploymentData&&(i.isDeployableViaProxy||i.isDeployableViaFactory)&&!s){let o=(await this.getProvider().getNetwork()).chainId;if(!i.factoryDeploymentData.implementationAddresses[o]){let u=await Pb(this.getProvider());n.push({contractType:"create2Factory",addresses:[u]});let p=(await woe(e,this.storage,this.getProvider(),u)).filter(C=>C.transaction.data&&C.transaction.data.length>0);p.filter(C=>C.type!=="infra").map(C=>C.transaction).forEach(C=>{n.push({contractType:"preset",addresses:[C.predictedAddress]})});let m=p.filter(C=>C.type==="infra").map(C=>C.transaction);hNe(m).forEach(C=>{let P=C.map(A=>A.predictedAddress);n.push({contractType:"infra",addresses:P})})}n=(await Promise.all(n.map(async u=>(await Promise.all(u.addresses.map(async p=>await Vh(p,a)?null:p))).filter(Boolean).length>0?u:null))).filter(Boolean),n.push({contractType:"proxy",addresses:[]})}else n.push({contractType:"custom",addresses:[]});return n}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchPublishedContractFromPolygon(e,t,n){let a=await qe(e),i=await new id("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(Pt.default(J.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),J.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(Pt.default(J.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?J.BigNumber.from(t[a].toString()):t[a])}},Q6e=class{constructor(e){Y._defineProperty(this,"featureName",u6e.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Se(async t=>{let n=await qe(t);return Ye.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},K_t={},bpn=new id("polygon");function G_t(r,e){return`${r}-${e}`}function gpn(r,e,t){K_t[G_t(r,e)]=t}function vpn(r,e){return K_t[G_t(r,e)]}async function F1(r,e,t){let n=(await e.getNetwork()).chainId,a=vpn(r,n);if(a)return a;let i;try{let s=await qX(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await J6e(s,t)}catch(s){console.warn("Failed to get Contract Metadata from IPFS, defaulting to onchain registry",s);try{let o=await bpn.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await J6e(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return gpn(r,n,i),i}async function uf(r,e,t){try{let n=await F1(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function J6e(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Rs.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=INe.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function Loe(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,p)=>setTimeout(()=>p("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var G4t=256,VBe="0|[1-9]\\d*",wpn=`(${VBe})\\.(${VBe})\\.(${VBe})`,xpn=new RegExp(wpn);function jX(r){if(r.length>G4t)throw new Error(`version is longer than ${G4t} characters`);let e=r.trim().match(xpn);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function V_t(r,e){let t=jX(r),n=jX(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function _pn(r,e){let t=jX(r),n=jX(e);if(n.majorK===G.filename);if(!z)throw new Error(`Could not find source file for ${K}`);p[K]={content:z.source}}let h={language:"Solidity",sources:p,settings:{optimizer:o.metadata.settings.optimizer,evmVersion:o.metadata.settings.evmVersion,remappings:o.metadata.settings.remappings,outputSelection:{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}}}},m=o.metadata.settings.compilationTarget,C=Object.keys(m)[0],P=i||await Ipn(t,n,r,o.abi,s.getProvider(),a),A={apikey:n,module:"contract",action:"verifysourcecode",contractaddress:r,sourceCode:JSON.stringify(h),codeformat:"solidity-standard-json-input",contractname:`${C}:${o.name}`,compilerversion:`v${c}`,constructorArguements:P},B=new URLSearchParams({...A}),W=await(await Tb.default(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:B.toString()})).json();if(W.status===$_t.OK)return W.result;throw new Error(`${W.result}`)}catch(s){throw new Error(s.toString())}}async function LDe(r,e,t){let n=`${r}?module=contract&action=checkverifystatus&guid=${t}&apikey=${e}"`;return new Promise((a,i)=>{let s=setInterval(async()=>{try{let c=await(await Tb.default(n,{method:"GET"})).json();c?.result!==Tpn.PENDING&&(clearInterval(s),a(c))}catch(o){clearInterval(s),i(o)}},3e3)})}async function Epn(r,e,t,n){let a=O1(e,{thirdwebApiKey:Y.DEFAULT_API_KEY});Pt.default(await Vh(r,a),"Contract not deployed yet.");let i=`${t}?module=contract&action=getsourcecode&address=${r}&apikey=${n}"`;try{return(await(await Tb.default(i,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).json()).result[0].ABI!=="Contract source code not verified"}catch(s){throw new Error(`Error checking verification for contract ${r}: ${s}`)}}async function Ipn(r,e,t,n,a,i){let s=Boe(n);if(s.length===0)return"";let o={apiKey:e,module:"account",action:"txlist",address:t,page:"1",sort:"asc",offset:"1"},c=new URLSearchParams({...o}),l=await(await Tb.default(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c.toString()})).json();if(l&&l.status===$_t.OK&&l.result[0]!==void 0){let p=new J.utils.Interface(n),h=l.result[0].input,m="";if(p.deploy.inputs.length===0)return"";try{let y=await Cpn(t,a,i);if(y){let C=y.startsWith("0x")?y:`0x${y}`;m=h.substring(C.length)}}catch{}if(!m){let y=[...h.matchAll(/(64736f6c6343[\w]{6}[\w]{4})(?!.*\1)(.*)$/g)];y.length>0&&(m=y[0][2])}if(!m){let y=s.length*64;m=h.substring(h.length-y)}try{J.ethers.utils.defaultAbiCoder.decode(p.deploy.inputs,`0x${m}`)}catch{throw new Error("Verifying this contract requires it to be published. Run `npx thirdweb publish` to publish this contract, then try again.")}return m}else return""}async function Cpn(r,e,t){let n=await qX(r,e);if(n){let a=await new id("polygon").getPublisher().resolvePublishMetadataFromCompilerMetadata(n);return a.length>0?await(await t.download(a[0].bytecodeUri)).text():void 0}}var Q_t=cf.catchall(pe.z.union([hxt,pe.z.unknown()])),TNe=Q_t.merge(w0.merge(Sb).merge(Wc).partial()),J_t=sd.merge(w0.merge(Sb).merge(Wc).partial()),Z_t=TNe.merge(Sp.merge(zg).merge(od).partial()),c3={deploy:Z_t,output:J_t,input:TNe},V4t=pe.z.object({type:pe.z.string(),name:pe.z.string().default("")}).catchall(pe.z.any()),qDe=V4t.extend({stateMutability:pe.z.string().optional(),components:pe.z.array(V4t).optional()}).catchall(pe.z.any()),X_t=pe.z.object({type:pe.z.string(),name:pe.z.string().default(""),inputs:pe.z.array(qDe).default([]),outputs:pe.z.array(qDe).default([])}).catchall(pe.z.any()),Rs=pe.z.array(X_t),qoe=pe.z.object({name:pe.z.string(),metadataUri:pe.z.string(),bytecodeUri:pe.z.string(),analytics:pe.z.any().optional()}).catchall(pe.z.any()),WDe=pe.z.record(pe.z.string(),pe.z.string()),eTt=pe.z.object({implementationAddresses:WDe,implementationInitializerFunction:pe.z.string().default("initialize"),factoryAddresses:WDe.optional()}),ENe=pe.z.object({version:pe.z.string().refine(r=>{try{return jX(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:pe.z.string().optional(),description:pe.z.string().optional(),readme:pe.z.string().optional(),license:pe.z.string().optional(),changelog:pe.z.string().optional(),tags:pe.z.array(pe.z.string()).optional(),audit:Y.FileOrBufferOrStringSchema.nullable().optional(),logo:Y.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:pe.z.boolean().optional(),isDeployableViaProxy:pe.z.boolean().optional(),factoryDeploymentData:eTt.optional(),constructorParams:pe.z.record(pe.z.string(),pe.z.object({displayName:pe.z.string().optional(),description:pe.z.string().optional(),defaultValue:pe.z.string().optional()}).catchall(pe.z.any())).optional()}).catchall(pe.z.any()),tTt=ENe.extend({audit:pe.z.string().nullable().optional(),logo:pe.z.string().nullable().optional()}),rTt=qoe.merge(ENe).extend({publisher:Ps.optional()}),nTt=qoe.merge(tTt).extend({publisher:Ps.optional()}),aTt=pe.z.object({name:pe.z.string().optional(),bio:pe.z.string().optional(),avatar:Y.FileOrBufferOrStringSchema.nullable().optional(),website:pe.z.string().optional(),twitter:pe.z.string().optional(),telegram:pe.z.string().optional(),facebook:pe.z.string().optional(),github:pe.z.string().optional(),medium:pe.z.string().optional(),linkedin:pe.z.string().optional(),reddit:pe.z.string().optional(),discord:pe.z.string().optional()}),iTt=aTt.extend({avatar:pe.z.string().nullable().optional()}),sTt=pe.z.object({id:pe.z.string(),timestamp:gc,metadataUri:pe.z.string()}),INe=pe.z.object({title:pe.z.string().optional(),author:pe.z.string().optional(),details:pe.z.string().optional(),notice:pe.z.string().optional()}),oTt=pe.z.object({name:pe.z.string(),abi:Rs,metadata:pe.z.record(pe.z.string(),pe.z.any()),info:INe,licenses:pe.z.array(pe.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),cTt=qoe.merge(oTt).extend({bytecode:pe.z.string()}),Apn=new Wg.ThirdwebStorage,CNe=new Map;function ANe(r,e){return`${r}-${e}`}function kNe(r,e){let t=ANe(r,e);return CNe.has(t)}function uTt(r,e){if(!kNe(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=ANe(r,e);return CNe.get(t)}function lTt(r,e,t){let n=ANe(e,t);CNe.set(n,r)}function noe(r){return r||Apn}async function kge(r){let e=await qe(r.address),[t,n]=hs(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(kNe(e,a))return uTt(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new G6e(t||n,e,await d6e(e,Rs.parse(i),n,r.sdkOptions,noe(r.storage)),noe(r.storage),r.sdkOptions,a);return lTt(s,e,a),s}async function kpn(r){try{let e=new J.Contract(r.address,UDe.default,r.provider),t=J.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return vNe(t)}catch{return"custom"}}async function Spn(r){let e=await qe(r.address),[t,n]=hs(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(kNe(e,a))return uTt(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await kpn({address:e,provider:n});if(i==="custom"){let s=new V6e(r.network,r.sdkOptions,noe(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return kge({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await N1[i].getAbi(e,n,noe(r.storage));return kge({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in N1){let i=await N1[r.contractTypeOrAbi].initialize(t||n,e,noe(r.storage),r.sdkOptions);return lTt(i,e,a),i}else return kge({...r,address:e,abi:r.contractTypeOrAbi})}var Age=new WeakMap;async function SNe(r){let[,e]=hs(r.network,r.sdkOptions),t;return Age.has(e)?t=Age.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw Age.delete(e),n}),Age.set(e,t)),await t}async function Ppn(r){let[,e]=hs(r.network,r.sdkOptions);return e.getBlockNumber()}var roe=new Map;async function fTt(r){let e=await SNe(r),t=r.block,n=`${e}_${t}`,a;if(roe.has(n))a=roe.get(n);else{let[,i]=hs(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw roe.delete(n),s}),roe.set(n,a)}return await a}var $Be=new Map;async function dTt(r){let e=await SNe(r),t=r.block,n=`${e}_${t}`,a;if(roe.has(n))a=$Be.get(n);else{let[,i]=hs(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw $Be.delete(n),s}),$Be.set(n,a)}return await a}function PNe(r){let[,e]=hs(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function Rpn(r){let{onBlock:e,...t}=r;async function n(a){try{e(await fTt({block:a,...t}))}catch{}}return PNe({...t,onBlockNumber:n})}function pTt(r){let{onBlock:e,...t}=r;async function n(a){try{e(await dTt({block:a,...t}))}catch{}}return PNe({...t,onBlockNumber:n})}function Mpn(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return pTt({...n,onBlock:i})}re.ALL_ROLES=rNe;re.APPROVED_IMPLEMENTATIONS=XBe;re.AbiObjectSchema=X_t;re.AbiSchema=Rs;re.AbiTypeSchema=qDe;re.AddressOrEnsSchema=Ps;re.AddressSchema=KDe;re.AdminRoleMissingError=bDe;re.AssetNotFoundError=aDe;re.AuctionAlreadyStartedError=dDe;re.AuctionHasNotEndedError=RX;re.BYOCContractMetadataSchema=Q_t;re.BaseSignaturePayloadInput=n5e;re.BigNumberSchema=Jo;re.BigNumberTransformSchema=hxt;re.BigNumberishSchema=gc;re.COMMON_FACTORY=voe;re.CONTRACTS_MAP=gNe;re.CONTRACT_ADDRESSES=Ug;re.CREATE2_FACTORY_BYTECODE=I_t;re.CallOverrideSchema=mxt;re.ChainId=Je;re.ChainIdToAddressSchema=WDe;re.ChainInfoInputSchema=yxt;re.ClaimConditionInputArray=wxt;re.ClaimConditionInputSchema=Moe;re.ClaimConditionMetadataSchema=vxt;re.ClaimConditionOutputSchema=YDe;re.ClaimEligibility=_i;re.CommonContractOutputSchema=sd;re.CommonContractSchema=cf;re.CommonPlatformFeeSchema=Sp;re.CommonPrimarySaleSchema=zg;re.CommonRoyaltySchema=w0;re.CommonSymbolSchema=Wc;re.CommonTrustedForwarderSchema=od;re.CompilerMetadataFetchedSchema=oTt;re.ContractAppURI=Ioe;re.ContractDeployer=Y6e;re.ContractEncoder=l3;re.ContractEvents=d3;re.ContractInfoSchema=INe;re.ContractInterceptor=p3;re.ContractMetadata=_b;re.ContractOwner=Q6e;re.ContractPlatformFee=z6e;re.ContractPrimarySale=g6e;re.ContractPublishedMetadata=K6e;re.ContractRoles=y6e;re.ContractRoyalty=b6e;re.ContractWrapper=Po;re.CurrencySchema=bxt;re.CurrencyValueSchema=gxt;re.CustomContractDeploy=Z_t;re.CustomContractInput=TNe;re.CustomContractOutput=J_t;re.CustomContractSchema=c3;re.DEPLOYER_ABI=S_t;re.DEPLOYER_BYTECODE=k_t;re.DelayedReveal=_oe;re.DeployTransaction=m6e;re.DropClaimConditions=Toe;re.DropErc1155ClaimConditions=v6e;re.DropErc1155ContractSchema=Dxt;re.DropErc20ContractSchema=U_t;re.DropErc721ContractSchema=ZDe;re.DuplicateFileNameError=oDe;re.DuplicateLeafsError=Bge;re.EditionDropInitializer=Lh;re.EditionInitializer=Cb;re.EndDateSchema=Poe;re.Erc1155=W6e;re.Erc1155BatchMintable=F6e;re.Erc1155Burnable=D6e;re.Erc1155Enumerable=N6e;re.Erc1155LazyMintable=O6e;re.Erc1155Mintable=L6e;re.Erc1155SignatureMintable=q6e;re.Erc20=E6e;re.Erc20BatchMintable=x6e;re.Erc20Burnable=w6e;re.Erc20Mintable=_6e;re.Erc20SignatureMintable=T6e;re.Erc721=B6e;re.Erc721BatchMintable=A6e;re.Erc721Burnable=I6e;re.Erc721ClaimableWithConditions=M6e;re.Erc721Enumerable=S6e;re.Erc721LazyMintable=C6e;re.Erc721Mintable=k6e;re.Erc721Supply=P6e;re.Erc721WithQuantitySignatureMintable=R6e;re.EventType=af;re.ExtensionNotImplementedError=Eb;re.ExtraPublishMetadataSchemaInput=ENe;re.ExtraPublishMetadataSchemaOutput=tTt;re.FEATURE_DIRECT_LISTINGS=moe;re.FEATURE_ENGLISH_AUCTIONS=yoe;re.FEATURE_NFT_REVEALABLE=doe;re.FEATURE_OFFERS=boe;re.FEATURE_PACK_VRF=vDe;re.FactoryDeploymentSchema=eTt;re.FetchError=fDe;re.FileNameMissingError=sDe;re.FullPublishMetadataSchemaInput=rTt;re.FullPublishMetadataSchemaOutput=nTt;re.FunctionDeprecatedError=pDe;re.GAS_LIMIT_FOR_DEPLOYER=A_t;re.GasCostEstimator=h3;re.GenericRequest=Rxt;re.InterfaceId_IERC1155=koe;re.InterfaceId_IERC721=Aoe;re.InvalidAddressError=nDe;re.LINK_TOKEN_ADDRESS=kfn;re.LOCAL_NODE_PKEY=cxt;re.ListingNotFoundError=hDe;re.MarketplaceContractSchema=XDe;re.MarketplaceInitializer=qh;re.MarketplaceV3DirectListings=U6e;re.MarketplaceV3EnglishAuctions=H6e;re.MarketplaceV3Initializer=D1;re.MarketplaceV3Offers=j6e;re.MerkleSchema=Sb;re.MintRequest1155=Sxt;re.MintRequest20=Axt;re.MintRequest721=kxt;re.MintRequest721withQuantity=Pxt;re.MissingOwnerRoleError=uDe;re.MissingRoleError=Mge;re.MultiwrapContractSchema=j_t;re.MultiwrapInitializer=Wh;re.NATIVE_TOKENS=ioe;re.NATIVE_TOKEN_ADDRESS=xl;re.NFTCollectionInitializer=Ab;re.NFTDropInitializer=Uh;re.NotEnoughTokensError=cDe;re.NotFoundError=soe;re.OZ_DEFENDER_FORWARDER_ADDRESS=qg;re.PREBUILT_CONTRACTS_APPURI_MAP=z_t;re.PREBUILT_CONTRACTS_MAP=N1;re.PackContractSchema=Fxt;re.PackInitializer=of;re.PartialClaimConditionInputSchema=Mfn;re.PreDeployMetadata=qoe;re.PreDeployMetadataFetchedSchema=cTt;re.ProfileSchemaInput=aTt;re.ProfileSchemaOutput=iTt;re.PublishedContractSchema=sTt;re.QuantityAboveLimitError=lDe;re.RawDateSchema=Soe;re.RestrictedTransferError=yDe;re.SIGNATURE=C_t;re.SUPPORTED_CHAIN_IDS=e5e;re.Signature1155PayloadInput=_xt;re.Signature1155PayloadInputWithTokenId=Txt;re.Signature1155PayloadOutput=Ext;re.Signature20PayloadInput=QDe;re.Signature20PayloadOutput=xxt;re.Signature721PayloadInput=a5e;re.Signature721PayloadOutput=JDe;re.Signature721WithQuantityInput=Ixt;re.Signature721WithQuantityOutput=Cxt;re.SignatureDropInitializer=Hh;re.SnapshotEntryInput=Pge;re.SnapshotEntryWithProofSchema=VDe;re.SnapshotInfoSchema=Rfn;re.SnapshotInputSchema=Roe;re.SnapshotSchema=$De;re.SplitInitializer=jh;re.SplitsContractSchema=qxt;re.StartDateSchema=GDe;re.StaticJsonRpcBatchProvider=Sge;re.Status=v0;re.ThirdwebSDK=id;re.TokenDropInitializer=kb;re.TokenErc1155ContractSchema=Kxt;re.TokenErc20ContractSchema=Uxt;re.TokenErc721ContractSchema=jxt;re.TokenInitializer=zh;re.Transaction=Ye;re.TransactionError=DX;re.UploadError=iDe;re.UserWallet=HX;re.VoteContractSchema=$xt;re.VoteInitializer=Kh;re.WrongListingTypeError=mDe;re.approveErc20Allowance=tNe;re.assertEnabled=vr;re.buildTransactionFunction=Se;re.checkVerificationStatus=LDe;re.cleanCurrencyAddress=Nge;re.computeCloneFactoryAddress=P_t;re.computeDeploymentAddress=kDe;re.computeDeploymentInfo=ad;re.computeEOAForwarderAddress=dNe;re.computeForwarderAddress=Noe;re.computeNativeTokenAddress=Qdn;re.convertToReadableQuantity=Xse;re.createSnapshot=o_t;re.createTransactionBatches=hNe;re.deployContractDeterministic=O_t;re.deployContractDeterministicRaw=Jdn;re.deployCreate2Factory=N_t;re.deployWithThrowawayDeployer=F_t;re.detectContractFeature=kt;re.detectFeatures=Doe;re.encodeConstructorParamsForImplementation=pNe;re.estimateGasForDeploy=L_t;re.extractConstructorParams=y_t;re.extractConstructorParamsFromAbi=Boe;re.extractEventsFromAbi=w_t;re.extractFunctionParamsFromAbi=v_t;re.extractFunctions=b_t;re.extractFunctionsFromAbi=LX;re.extractIPFSHashFromBytecode=__t;re.extractMinimalProxyImplementationAddress=x_t;re.fetchAbiFromAddress=uf;re.fetchAndCacheDeployMetadata=jg;re.fetchAndCachePublishedContractURI=Ooe;re.fetchContractMetadata=J6e;re.fetchContractMetadataFromAddress=F1;re.fetchCurrencyMetadata=zX;re.fetchCurrencyValue=kp;re.fetchExtendedReleaseMetadata=oNe;re.fetchPreDeployMetadata=WX;re.fetchRawPredeployMetadata=sNe;re.fetchSnapshotEntryForAddress=o5e;re.fetchSourceFilesFromMetadata=Loe;re.fetchTokenMetadataForContract=Foe;re.getAllDetectedFeatureNames=ADe;re.getAllDetectedFeatures=zdn;re.getApprovedImplementation=uxt;re.getBlock=fTt;re.getBlockNumber=Ppn;re.getBlockWithTransactions=dTt;re.getChainId=SNe;re.getChainIdFromNetwork=Yxt;re.getChainProvider=O1;re.getContract=Spn;re.getContractAddressByChainId=aoe;re.getContractFromAbi=kge;re.getContractName=wNe;re.getContractPublisherAddress=lxt;re.getContractTypeForRemoteName=vNe;re.getCreate2FactoryAddress=Pb;re.getCreate2FactoryDeploymentInfo=xoe;re.getDefaultTrustedForwarders=t5e;re.getDeployArguments=xNe;re.getDeploymentInfo=woe;re.getEncodedConstructorParamsForThirdwebContract=B_t;re.getInitBytecodeWithSalt=p6e;re.getKeylessTxn=D_t;re.getMultichainRegistryAddress=eDe;re.getNativeTokenByChainId=jDe;re.getProviderFromRpcUrl=Rge;re.getRoleHash=kX;re.getSaltHash=fNe;re.getSignerAndProvider=hs;re.getSupportedChains=oxt;re.getThirdwebContractAddress=R_t;re.getTrustedForwarders=hpn;re.handleTokenApproval=Eoe;re.hasERC20Allowance=hdn;re.hasFunction=Lc;re.hasMatchingAbi=iNe;re.includesErrorMessage=ooe;re.isChainConfig=i5e;re.isContractDeployed=Vh;re.isDowngradeVersion=_pn;re.isEIP155Enforced=lNe;re.isFeatureEnabled=f3;re.isIncrementalVersion=V_t;re.isNativeToken=Gh;re.isProvider=zDe;re.isSigner=r5e;re.isTokenApprovedForTransfer=q_t;re.isVerifiedOnEtherscan=Epn;re.isWinningBid=opn;re.mapOffer=spn;re.matchesPrebuiltAbi=Udn;re.normalizeAmount=mdn;re.normalizePriceValue=ru;re.parseRevertReason=s5e;re.predictThirdwebContractAddress=M_t;re.resolveAddress=qe;re.resolveContractUriFromAddress=qX;re.setErc20Allowance=Ib;re.setSupportedChains=sxt;re.toDisplayValue=gdn;re.toEther=ydn;re.toSemver=jX;re.toUnits=bdn;re.toWei=r_t;re.uploadOrExtractURI=yNe;re.validateNewListingParam=ipn;re.verify=_Ne;re.verifyThirdwebPrebuiltImplementation=Y_t;re.watchBlock=Rpn;re.watchBlockNumber=PNe;re.watchBlockWithTransactions=pTt;re.watchTransactions=Mpn});var bTt=E(Rb=>{"use strict";f();d();var KX=Ao(),L1=fn(),l5e=Es(),hTt=oa(),mTt=L1.z.object({}).catchall(L1.z.union([KX.BigNumberTransformSchema,L1.z.unknown()])),Bpn=L1.z.union([L1.z.array(mTt),mTt]).optional(),yTt=L1.z.object({supply:KX.BigNumberSchema,metadata:l5e.CommonNFTOutput}),Dpn=yTt.extend({owner:L1.z.string(),quantityOwned:KX.BigNumberSchema}),Npn=L1.z.object({supply:KX.BigNumberishSchema,metadata:l5e.CommonNFTInput}),Opn=L1.z.object({supply:KX.BigNumberishSchema,metadata:l5e.NFTInputOrUriSchema}),Fpn=L1.z.object({toAddress:KX.AddressOrEnsSchema,amount:l5e.AmountSchema}),Lpn=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function qpn(r){if(r in hTt.GENERATED_ABI)return hTt.GENERATED_ABI[r]}Rb.EditionMetadataInputOrUriSchema=Opn;Rb.EditionMetadataInputSchema=Npn;Rb.EditionMetadataOutputSchema=yTt;Rb.EditionMetadataWithOwnerOutputSchema=Dpn;Rb.OptionalPropertiesInput=Bpn;Rb.ProposalState=Lpn;Rb.TokenMintInputSchema=Fpn;Rb.getCachedAbiForContract=qpn});var gTt=E(ae=>{"use strict";f();d();Object.defineProperty(ae,"__esModule",{value:!0});var Wpn=Es(),oe=Ao(),Kg=bTt(),Upn=tBe(),Hpn=RBe(),jpn=Tge(),zpn=mX(),Kpn=Vse(),RNe=fBe(),Gpn=BBe(),Woe=Yse();Fr();ke();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();globalThis.global=globalThis;ae.getRpcUrl=Wpn.getRpcUrl;ae.ALL_ROLES=oe.ALL_ROLES;ae.APPROVED_IMPLEMENTATIONS=oe.APPROVED_IMPLEMENTATIONS;ae.AbiObjectSchema=oe.AbiObjectSchema;ae.AbiSchema=oe.AbiSchema;ae.AbiTypeSchema=oe.AbiTypeSchema;ae.AddressOrEnsSchema=oe.AddressOrEnsSchema;ae.AddressSchema=oe.AddressSchema;ae.AdminRoleMissingError=oe.AdminRoleMissingError;ae.AssetNotFoundError=oe.AssetNotFoundError;ae.AuctionAlreadyStartedError=oe.AuctionAlreadyStartedError;ae.AuctionHasNotEndedError=oe.AuctionHasNotEndedError;ae.BYOCContractMetadataSchema=oe.BYOCContractMetadataSchema;ae.BaseSignaturePayloadInput=oe.BaseSignaturePayloadInput;ae.BigNumberSchema=oe.BigNumberSchema;ae.BigNumberTransformSchema=oe.BigNumberTransformSchema;ae.BigNumberishSchema=oe.BigNumberishSchema;ae.COMMON_FACTORY=oe.COMMON_FACTORY;ae.CONTRACTS_MAP=oe.CONTRACTS_MAP;ae.CONTRACT_ADDRESSES=oe.CONTRACT_ADDRESSES;ae.CREATE2_FACTORY_BYTECODE=oe.CREATE2_FACTORY_BYTECODE;ae.CallOverrideSchema=oe.CallOverrideSchema;ae.ChainId=oe.ChainId;ae.ChainIdToAddressSchema=oe.ChainIdToAddressSchema;ae.ChainInfoInputSchema=oe.ChainInfoInputSchema;ae.ClaimConditionInputArray=oe.ClaimConditionInputArray;ae.ClaimConditionInputSchema=oe.ClaimConditionInputSchema;ae.ClaimConditionMetadataSchema=oe.ClaimConditionMetadataSchema;ae.ClaimConditionOutputSchema=oe.ClaimConditionOutputSchema;ae.ClaimEligibility=oe.ClaimEligibility;ae.CommonContractOutputSchema=oe.CommonContractOutputSchema;ae.CommonContractSchema=oe.CommonContractSchema;ae.CommonPlatformFeeSchema=oe.CommonPlatformFeeSchema;ae.CommonPrimarySaleSchema=oe.CommonPrimarySaleSchema;ae.CommonRoyaltySchema=oe.CommonRoyaltySchema;ae.CommonSymbolSchema=oe.CommonSymbolSchema;ae.CommonTrustedForwarderSchema=oe.CommonTrustedForwarderSchema;ae.CompilerMetadataFetchedSchema=oe.CompilerMetadataFetchedSchema;ae.ContractAppURI=oe.ContractAppURI;ae.ContractDeployer=oe.ContractDeployer;ae.ContractEncoder=oe.ContractEncoder;ae.ContractEvents=oe.ContractEvents;ae.ContractInfoSchema=oe.ContractInfoSchema;ae.ContractInterceptor=oe.ContractInterceptor;ae.ContractMetadata=oe.ContractMetadata;ae.ContractOwner=oe.ContractOwner;ae.ContractPlatformFee=oe.ContractPlatformFee;ae.ContractPrimarySale=oe.ContractPrimarySale;ae.ContractPublishedMetadata=oe.ContractPublishedMetadata;ae.ContractRoles=oe.ContractRoles;ae.ContractRoyalty=oe.ContractRoyalty;ae.CurrencySchema=oe.CurrencySchema;ae.CurrencyValueSchema=oe.CurrencyValueSchema;ae.CustomContractDeploy=oe.CustomContractDeploy;ae.CustomContractInput=oe.CustomContractInput;ae.CustomContractOutput=oe.CustomContractOutput;ae.CustomContractSchema=oe.CustomContractSchema;ae.DEPLOYER_ABI=oe.DEPLOYER_ABI;ae.DEPLOYER_BYTECODE=oe.DEPLOYER_BYTECODE;ae.DelayedReveal=oe.DelayedReveal;ae.DeployTransaction=oe.DeployTransaction;ae.DropClaimConditions=oe.DropClaimConditions;ae.DropErc1155ClaimConditions=oe.DropErc1155ClaimConditions;ae.DuplicateFileNameError=oe.DuplicateFileNameError;ae.DuplicateLeafsError=oe.DuplicateLeafsError;ae.EditionDropInitializer=oe.EditionDropInitializer;ae.EditionInitializer=oe.EditionInitializer;ae.EndDateSchema=oe.EndDateSchema;ae.Erc1155=oe.Erc1155;ae.Erc1155BatchMintable=oe.Erc1155BatchMintable;ae.Erc1155Burnable=oe.Erc1155Burnable;ae.Erc1155Enumerable=oe.Erc1155Enumerable;ae.Erc1155LazyMintable=oe.Erc1155LazyMintable;ae.Erc1155Mintable=oe.Erc1155Mintable;ae.Erc1155SignatureMintable=oe.Erc1155SignatureMintable;ae.Erc20=oe.Erc20;ae.Erc20BatchMintable=oe.Erc20BatchMintable;ae.Erc20Burnable=oe.Erc20Burnable;ae.Erc20Mintable=oe.Erc20Mintable;ae.Erc20SignatureMintable=oe.Erc20SignatureMintable;ae.Erc721=oe.Erc721;ae.Erc721BatchMintable=oe.Erc721BatchMintable;ae.Erc721Burnable=oe.Erc721Burnable;ae.Erc721ClaimableWithConditions=oe.Erc721ClaimableWithConditions;ae.Erc721Enumerable=oe.Erc721Enumerable;ae.Erc721LazyMintable=oe.Erc721LazyMintable;ae.Erc721Mintable=oe.Erc721Mintable;ae.Erc721Supply=oe.Erc721Supply;ae.Erc721WithQuantitySignatureMintable=oe.Erc721WithQuantitySignatureMintable;ae.EventType=oe.EventType;ae.ExtensionNotImplementedError=oe.ExtensionNotImplementedError;ae.ExtraPublishMetadataSchemaInput=oe.ExtraPublishMetadataSchemaInput;ae.ExtraPublishMetadataSchemaOutput=oe.ExtraPublishMetadataSchemaOutput;ae.FactoryDeploymentSchema=oe.FactoryDeploymentSchema;ae.FetchError=oe.FetchError;ae.FileNameMissingError=oe.FileNameMissingError;ae.FullPublishMetadataSchemaInput=oe.FullPublishMetadataSchemaInput;ae.FullPublishMetadataSchemaOutput=oe.FullPublishMetadataSchemaOutput;ae.FunctionDeprecatedError=oe.FunctionDeprecatedError;ae.GAS_LIMIT_FOR_DEPLOYER=oe.GAS_LIMIT_FOR_DEPLOYER;ae.GasCostEstimator=oe.GasCostEstimator;ae.GenericRequest=oe.GenericRequest;ae.InterfaceId_IERC1155=oe.InterfaceId_IERC1155;ae.InterfaceId_IERC721=oe.InterfaceId_IERC721;ae.InvalidAddressError=oe.InvalidAddressError;ae.LINK_TOKEN_ADDRESS=oe.LINK_TOKEN_ADDRESS;ae.LOCAL_NODE_PKEY=oe.LOCAL_NODE_PKEY;ae.ListingNotFoundError=oe.ListingNotFoundError;ae.MarketplaceInitializer=oe.MarketplaceInitializer;ae.MarketplaceV3DirectListings=oe.MarketplaceV3DirectListings;ae.MarketplaceV3EnglishAuctions=oe.MarketplaceV3EnglishAuctions;ae.MarketplaceV3Initializer=oe.MarketplaceV3Initializer;ae.MarketplaceV3Offers=oe.MarketplaceV3Offers;ae.MerkleSchema=oe.MerkleSchema;ae.MintRequest1155=oe.MintRequest1155;ae.MintRequest20=oe.MintRequest20;ae.MintRequest721=oe.MintRequest721;ae.MintRequest721withQuantity=oe.MintRequest721withQuantity;ae.MissingOwnerRoleError=oe.MissingOwnerRoleError;ae.MissingRoleError=oe.MissingRoleError;ae.MultiwrapInitializer=oe.MultiwrapInitializer;ae.NATIVE_TOKENS=oe.NATIVE_TOKENS;ae.NATIVE_TOKEN_ADDRESS=oe.NATIVE_TOKEN_ADDRESS;ae.NFTCollectionInitializer=oe.NFTCollectionInitializer;ae.NFTDropInitializer=oe.NFTDropInitializer;ae.NotEnoughTokensError=oe.NotEnoughTokensError;ae.NotFoundError=oe.NotFoundError;ae.OZ_DEFENDER_FORWARDER_ADDRESS=oe.OZ_DEFENDER_FORWARDER_ADDRESS;ae.PREBUILT_CONTRACTS_APPURI_MAP=oe.PREBUILT_CONTRACTS_APPURI_MAP;ae.PREBUILT_CONTRACTS_MAP=oe.PREBUILT_CONTRACTS_MAP;ae.PackInitializer=oe.PackInitializer;ae.PartialClaimConditionInputSchema=oe.PartialClaimConditionInputSchema;ae.PreDeployMetadata=oe.PreDeployMetadata;ae.PreDeployMetadataFetchedSchema=oe.PreDeployMetadataFetchedSchema;ae.ProfileSchemaInput=oe.ProfileSchemaInput;ae.ProfileSchemaOutput=oe.ProfileSchemaOutput;ae.PublishedContractSchema=oe.PublishedContractSchema;ae.QuantityAboveLimitError=oe.QuantityAboveLimitError;ae.RawDateSchema=oe.RawDateSchema;ae.RestrictedTransferError=oe.RestrictedTransferError;ae.SIGNATURE=oe.SIGNATURE;ae.SUPPORTED_CHAIN_IDS=oe.SUPPORTED_CHAIN_IDS;ae.Signature1155PayloadInput=oe.Signature1155PayloadInput;ae.Signature1155PayloadInputWithTokenId=oe.Signature1155PayloadInputWithTokenId;ae.Signature1155PayloadOutput=oe.Signature1155PayloadOutput;ae.Signature20PayloadInput=oe.Signature20PayloadInput;ae.Signature20PayloadOutput=oe.Signature20PayloadOutput;ae.Signature721PayloadInput=oe.Signature721PayloadInput;ae.Signature721PayloadOutput=oe.Signature721PayloadOutput;ae.Signature721WithQuantityInput=oe.Signature721WithQuantityInput;ae.Signature721WithQuantityOutput=oe.Signature721WithQuantityOutput;ae.SignatureDropInitializer=oe.SignatureDropInitializer;ae.SnapshotEntryInput=oe.SnapshotEntryInput;ae.SnapshotEntryWithProofSchema=oe.SnapshotEntryWithProofSchema;ae.SnapshotInfoSchema=oe.SnapshotInfoSchema;ae.SnapshotInputSchema=oe.SnapshotInputSchema;ae.SnapshotSchema=oe.SnapshotSchema;ae.SplitInitializer=oe.SplitInitializer;ae.StartDateSchema=oe.StartDateSchema;ae.StaticJsonRpcBatchProvider=oe.StaticJsonRpcBatchProvider;ae.Status=oe.Status;ae.ThirdwebSDK=oe.ThirdwebSDK;ae.TokenDropInitializer=oe.TokenDropInitializer;ae.TokenInitializer=oe.TokenInitializer;ae.Transaction=oe.Transaction;ae.TransactionError=oe.TransactionError;ae.UploadError=oe.UploadError;ae.UserWallet=oe.UserWallet;ae.VoteInitializer=oe.VoteInitializer;ae.WrongListingTypeError=oe.WrongListingTypeError;ae.approveErc20Allowance=oe.approveErc20Allowance;ae.assertEnabled=oe.assertEnabled;ae.checkVerificationStatus=oe.checkVerificationStatus;ae.cleanCurrencyAddress=oe.cleanCurrencyAddress;ae.computeCloneFactoryAddress=oe.computeCloneFactoryAddress;ae.computeDeploymentAddress=oe.computeDeploymentAddress;ae.computeDeploymentInfo=oe.computeDeploymentInfo;ae.computeEOAForwarderAddress=oe.computeEOAForwarderAddress;ae.computeForwarderAddress=oe.computeForwarderAddress;ae.computeNativeTokenAddress=oe.computeNativeTokenAddress;ae.convertToReadableQuantity=oe.convertToReadableQuantity;ae.createSnapshot=oe.createSnapshot;ae.createTransactionBatches=oe.createTransactionBatches;ae.deployContractDeterministic=oe.deployContractDeterministic;ae.deployContractDeterministicRaw=oe.deployContractDeterministicRaw;ae.deployCreate2Factory=oe.deployCreate2Factory;ae.deployWithThrowawayDeployer=oe.deployWithThrowawayDeployer;ae.detectContractFeature=oe.detectContractFeature;ae.detectFeatures=oe.detectFeatures;ae.encodeConstructorParamsForImplementation=oe.encodeConstructorParamsForImplementation;ae.estimateGasForDeploy=oe.estimateGasForDeploy;ae.extractConstructorParams=oe.extractConstructorParams;ae.extractConstructorParamsFromAbi=oe.extractConstructorParamsFromAbi;ae.extractEventsFromAbi=oe.extractEventsFromAbi;ae.extractFunctionParamsFromAbi=oe.extractFunctionParamsFromAbi;ae.extractFunctions=oe.extractFunctions;ae.extractFunctionsFromAbi=oe.extractFunctionsFromAbi;ae.extractIPFSHashFromBytecode=oe.extractIPFSHashFromBytecode;ae.extractMinimalProxyImplementationAddress=oe.extractMinimalProxyImplementationAddress;ae.fetchAbiFromAddress=oe.fetchAbiFromAddress;ae.fetchAndCacheDeployMetadata=oe.fetchAndCacheDeployMetadata;ae.fetchAndCachePublishedContractURI=oe.fetchAndCachePublishedContractURI;ae.fetchContractMetadata=oe.fetchContractMetadata;ae.fetchContractMetadataFromAddress=oe.fetchContractMetadataFromAddress;ae.fetchCurrencyMetadata=oe.fetchCurrencyMetadata;ae.fetchCurrencyValue=oe.fetchCurrencyValue;ae.fetchExtendedReleaseMetadata=oe.fetchExtendedReleaseMetadata;ae.fetchPreDeployMetadata=oe.fetchPreDeployMetadata;ae.fetchRawPredeployMetadata=oe.fetchRawPredeployMetadata;ae.fetchSnapshotEntryForAddress=oe.fetchSnapshotEntryForAddress;ae.fetchSourceFilesFromMetadata=oe.fetchSourceFilesFromMetadata;ae.getAllDetectedFeatureNames=oe.getAllDetectedFeatureNames;ae.getAllDetectedFeatures=oe.getAllDetectedFeatures;ae.getApprovedImplementation=oe.getApprovedImplementation;ae.getBlock=oe.getBlock;ae.getBlockNumber=oe.getBlockNumber;ae.getBlockWithTransactions=oe.getBlockWithTransactions;ae.getChainId=oe.getChainId;ae.getChainIdFromNetwork=oe.getChainIdFromNetwork;ae.getChainProvider=oe.getChainProvider;ae.getContract=oe.getContract;ae.getContractAddressByChainId=oe.getContractAddressByChainId;ae.getContractFromAbi=oe.getContractFromAbi;ae.getContractName=oe.getContractName;ae.getContractPublisherAddress=oe.getContractPublisherAddress;ae.getContractTypeForRemoteName=oe.getContractTypeForRemoteName;ae.getCreate2FactoryAddress=oe.getCreate2FactoryAddress;ae.getCreate2FactoryDeploymentInfo=oe.getCreate2FactoryDeploymentInfo;ae.getDefaultTrustedForwarders=oe.getDefaultTrustedForwarders;ae.getDeployArguments=oe.getDeployArguments;ae.getDeploymentInfo=oe.getDeploymentInfo;ae.getEncodedConstructorParamsForThirdwebContract=oe.getEncodedConstructorParamsForThirdwebContract;ae.getInitBytecodeWithSalt=oe.getInitBytecodeWithSalt;ae.getKeylessTxn=oe.getKeylessTxn;ae.getMultichainRegistryAddress=oe.getMultichainRegistryAddress;ae.getNativeTokenByChainId=oe.getNativeTokenByChainId;ae.getProviderFromRpcUrl=oe.getProviderFromRpcUrl;ae.getRoleHash=oe.getRoleHash;ae.getSaltHash=oe.getSaltHash;ae.getSignerAndProvider=oe.getSignerAndProvider;ae.getSupportedChains=oe.getSupportedChains;ae.getThirdwebContractAddress=oe.getThirdwebContractAddress;ae.getTrustedForwarders=oe.getTrustedForwarders;ae.hasERC20Allowance=oe.hasERC20Allowance;ae.hasFunction=oe.hasFunction;ae.hasMatchingAbi=oe.hasMatchingAbi;ae.includesErrorMessage=oe.includesErrorMessage;ae.isChainConfig=oe.isChainConfig;ae.isContractDeployed=oe.isContractDeployed;ae.isDowngradeVersion=oe.isDowngradeVersion;ae.isEIP155Enforced=oe.isEIP155Enforced;ae.isFeatureEnabled=oe.isFeatureEnabled;ae.isIncrementalVersion=oe.isIncrementalVersion;ae.isNativeToken=oe.isNativeToken;ae.isProvider=oe.isProvider;ae.isSigner=oe.isSigner;ae.isVerifiedOnEtherscan=oe.isVerifiedOnEtherscan;ae.matchesPrebuiltAbi=oe.matchesPrebuiltAbi;ae.normalizeAmount=oe.normalizeAmount;ae.normalizePriceValue=oe.normalizePriceValue;ae.parseRevertReason=oe.parseRevertReason;ae.predictThirdwebContractAddress=oe.predictThirdwebContractAddress;ae.resolveContractUriFromAddress=oe.resolveContractUriFromAddress;ae.setErc20Allowance=oe.setErc20Allowance;ae.setSupportedChains=oe.setSupportedChains;ae.toDisplayValue=oe.toDisplayValue;ae.toEther=oe.toEther;ae.toSemver=oe.toSemver;ae.toUnits=oe.toUnits;ae.toWei=oe.toWei;ae.verify=oe.verify;ae.verifyThirdwebPrebuiltImplementation=oe.verifyThirdwebPrebuiltImplementation;ae.watchBlock=oe.watchBlock;ae.watchBlockNumber=oe.watchBlockNumber;ae.watchBlockWithTransactions=oe.watchBlockWithTransactions;ae.watchTransactions=oe.watchTransactions;ae.EditionMetadataInputOrUriSchema=Kg.EditionMetadataInputOrUriSchema;ae.EditionMetadataInputSchema=Kg.EditionMetadataInputSchema;ae.EditionMetadataOutputSchema=Kg.EditionMetadataOutputSchema;ae.EditionMetadataWithOwnerOutputSchema=Kg.EditionMetadataWithOwnerOutputSchema;ae.OptionalPropertiesInput=Kg.OptionalPropertiesInput;ae.ProposalState=Kg.ProposalState;ae.TokenMintInputSchema=Kg.TokenMintInputSchema;ae.getCachedAbiForContract=Kg.getCachedAbiForContract;ae.DropErc1155History=Upn.DropErc1155History;ae.TokenERC20History=Hpn.TokenERC20History;ae.StandardErc20=jpn.StandardErc20;ae.StandardErc721=zpn.StandardErc721;ae.StandardErc1155=Kpn.StandardErc1155;ae.ListingType=RNe.ListingType;ae.MarketplaceAuction=RNe.MarketplaceAuction;ae.MarketplaceDirect=RNe.MarketplaceDirect;ae.VoteType=Gpn.VoteType;ae.PAPER_API_URL=Woe.PAPER_API_URL;ae.PaperCheckout=Woe.PaperCheckout;ae.createCheckoutLinkIntent=Woe.createCheckoutLinkIntent;ae.fetchRegisteredCheckoutId=Woe.fetchRegisteredCheckoutId;ae.parseChainIdToPaperChain=Woe.parseChainIdToPaperChain});var Ms=E(Yu=>{"use strict";f();d();var Vpn=Fr(),GX=ke(),Jt=fn();function $pn(r){return r&&r.__esModule?r:{default:r}}var VX=$pn(Vpn),_Tt="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function Ypn(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_Tt;return`https://${r}.rpc.thirdweb.com/${e}`}var Qpn=()=>typeof window<"u",vTt=Qpn()?Jt.z.instanceof(File):Jt.z.instanceof(v.Buffer),Jpn=Jt.z.union([vTt,Jt.z.object({data:Jt.z.union([vTt,Jt.z.string()]),name:Jt.z.string()})]),f5e=Jt.z.union([Jpn,Jt.z.string()]),TTt=1e4,Zpn=Jt.z.union([Jt.z.array(Jt.z.number()),Jt.z.string()]),Xpn=Jt.z.union([Jt.z.string(),Jt.z.number(),Jt.z.bigint(),Jt.z.custom(r=>GX.BigNumber.isBigNumber(r)),Jt.z.custom(r=>VX.default.isBN(r))]).transform(r=>{let e=VX.default.isBN(r)?new VX.default(r).toString():GX.BigNumber.from(r).toString();return GX.BigNumber.from(e)});Xpn.transform(r=>r.toString());var ETt=Jt.z.union([Jt.z.bigint(),Jt.z.custom(r=>GX.BigNumber.isBigNumber(r)),Jt.z.custom(r=>VX.default.isBN(r))]).transform(r=>VX.default.isBN(r)?new VX.default(r).toString():GX.BigNumber.from(r).toString()),ehn=Jt.z.number().max(TTt,"Cannot exceed 100%").min(0,"Cannot be below 0%"),thn=Jt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),rhn=Jt.z.union([Jt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),Jt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),Jt.z.string().length(0)]),ITt=Jt.z.union([Jt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),Jt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),nhn=Jt.z.union([ITt,Jt.z.literal("unlimited")]).default("unlimited"),CTt=Jt.z.date().transform(r=>GX.BigNumber.from(Math.floor(r.getTime()/1e3)));CTt.default(new Date(0));CTt.default(new Date(Date.now()+1e3*60*60*24*365*10));function ahn(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function ihn(r){var e=ahn(r,"string");return typeof e=="symbol"?e:String(e)}function shn(r,e,t){return e=ihn(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var wTt=Jt.z.object({}).catchall(Jt.z.union([ETt,Jt.z.unknown()])),xTt=Jt.z.union([Jt.z.array(wTt),wTt]).optional().nullable(),BNe=Jt.z.object({name:Jt.z.union([Jt.z.string(),Jt.z.number()]).optional().nullable(),description:Jt.z.string().nullable().optional().nullable(),image:f5e.nullable().optional(),external_url:f5e.nullable().optional(),animation_url:f5e.optional().nullable(),background_color:rhn.optional().nullable(),properties:xTt,attributes:xTt}).catchall(Jt.z.union([ETt,Jt.z.unknown()])),ohn=Jt.z.union([BNe,Jt.z.string()]),chn=BNe.extend({id:Jt.z.string(),uri:Jt.z.string(),image:Jt.z.string().nullable().optional(),external_url:Jt.z.string().nullable().optional(),animation_url:Jt.z.string().nullable().optional()}),MNe=100,uhn=Jt.z.object({start:Jt.z.number().default(0),count:Jt.z.number().default(MNe)}).default({start:0,count:MNe});Yu.AmountSchema=ITt;Yu.BasisPointsSchema=ehn;Yu.BytesLikeSchema=Zpn;Yu.CommonNFTInput=BNe;Yu.CommonNFTOutput=chn;Yu.DEFAULT_API_KEY=_Tt;Yu.DEFAULT_QUERY_ALL_COUNT=MNe;Yu.FileOrBufferOrStringSchema=f5e;Yu.MAX_BPS=TTt;Yu.NFTInputOrUriSchema=ohn;Yu.PercentSchema=thn;Yu.QuantitySchema=nhn;Yu.QueryAllParamsSchema=uhn;Yu._defineProperty=shn;Yu.getRpcUrl=Ypn});var NNe=E(ATt=>{"use strict";f();d();var lhn=Ms(),fhn=ke(),DNe=class{constructor(e){lhn._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&fhn.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};ATt.DropErc1155History=DNe});var Uoe=E(kTt=>{"use strict";f();d();var y3=Ms(),d5e=Ro(),ONe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;y3._defineProperty(this,"contractWrapper",void 0),y3._defineProperty(this,"storage",void 0),y3._defineProperty(this,"erc1155",void 0),y3._defineProperty(this,"_chainId",void 0),y3._defineProperty(this,"transfer",d5e.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),y3._defineProperty(this,"setApprovalForAll",d5e.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),y3._defineProperty(this,"airdrop",d5e.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new d5e.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};kTt.StandardErc1155=ONe});var joe=E($X=>{"use strict";f();d();var dhn=Ms(),phn=On(),Hoe=Ro();function hhn(r){return r&&r.__esModule?r:{default:r}}var LNe=hhn(phn),mhn="https://paper.xyz/api",yhn="2022-08-12",qNe=`${mhn}/${yhn}/platform/thirdweb`,STt={[Hoe.ChainId.Mainnet]:"Ethereum",[Hoe.ChainId.Goerli]:"Goerli",[Hoe.ChainId.Polygon]:"Polygon",[Hoe.ChainId.Mumbai]:"Mumbai",[Hoe.ChainId.Avalanche]:"Avalanche"};function PTt(r){return LNe.default(r in STt,`chainId not supported by paper: ${r}`),STt[r]}async function RTt(r,e){let t=PTt(e),a=await(await fetch(`${qNe}/register-contract?contractAddress=${r}&chain=${t}`)).json();return LNe.default(a.result.id,"Contract is not registered with paper"),a.result.id}var bhn={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function MTt(r,e){let n=await(await fetch(`${qNe}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...bhn,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return LNe.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var FNe=class{constructor(e){dhn._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return RTt(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await MTt(await this.getCheckoutId(),e)}};$X.PAPER_API_URL=qNe;$X.PaperCheckout=FNe;$X.createCheckoutLinkIntent=MTt;$X.fetchRegisteredCheckoutId=RTt;$X.parseChainIdToPaperChain=PTt});var DTt=E(BTt=>{"use strict";f();d();var vc=Ms(),Zo=Ro(),ghn=NNe(),vhn=Uoe(),whn=joe(),xhn=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var YX=class extends vhn.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Zo.ContractWrapper(e,t,s,i);super(c,n,o),a=this,vc._defineProperty(this,"abi",void 0),vc._defineProperty(this,"sales",void 0),vc._defineProperty(this,"platformFees",void 0),vc._defineProperty(this,"encoder",void 0),vc._defineProperty(this,"estimator",void 0),vc._defineProperty(this,"events",void 0),vc._defineProperty(this,"metadata",void 0),vc._defineProperty(this,"app",void 0),vc._defineProperty(this,"roles",void 0),vc._defineProperty(this,"royalties",void 0),vc._defineProperty(this,"claimConditions",void 0),vc._defineProperty(this,"checkout",void 0),vc._defineProperty(this,"history",void 0),vc._defineProperty(this,"interceptor",void 0),vc._defineProperty(this,"owner",void 0),vc._defineProperty(this,"createBatch",Zo.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),vc._defineProperty(this,"claimTo",Zo.buildTransactionFunction(async function(u,l,p){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,p,{checkERC20Allowance:h})})),vc._defineProperty(this,"claim",Zo.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,h=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(h,u,l,p)})),vc._defineProperty(this,"burnTokens",Zo.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=Zo.AbiSchema.parse(s),this.metadata=new Zo.ContractMetadata(this.contractWrapper,Zo.DropErc1155ContractSchema,this.storage),this.app=new Zo.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Zo.ContractRoles(this.contractWrapper,YX.contractRoles),this.royalties=new Zo.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Zo.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Zo.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Zo.ContractEvents(this.contractWrapper),this.history=new ghn.DropErc1155History(this.events),this.encoder=new Zo.ContractEncoder(this.contractWrapper),this.estimator=new Zo.GasCostEstimator(this.contractWrapper),this.platformFees=new Zo.ContractPlatformFee(this.contractWrapper),this.interceptor=new Zo.ContractInterceptor(this.contractWrapper),this.checkout=new whn.PaperCheckout(this.contractWrapper),this.owner=new Zo.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Zo.getRoleHash("transfer"),xhn.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return Zo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};vc._defineProperty(YX,"contractRoles",["admin","minter","transfer"]);BTt.EditionDrop=YX});var OTt=E(NTt=>{"use strict";f();d();var Xo=Ms(),Bs=Ro(),_hn=Uoe(),Thn=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var QX=class extends _hn.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Bs.ContractWrapper(e,t,i,a);super(o,n,s),Xo._defineProperty(this,"abi",void 0),Xo._defineProperty(this,"metadata",void 0),Xo._defineProperty(this,"app",void 0),Xo._defineProperty(this,"roles",void 0),Xo._defineProperty(this,"sales",void 0),Xo._defineProperty(this,"platformFees",void 0),Xo._defineProperty(this,"encoder",void 0),Xo._defineProperty(this,"estimator",void 0),Xo._defineProperty(this,"events",void 0),Xo._defineProperty(this,"royalties",void 0),Xo._defineProperty(this,"signature",void 0),Xo._defineProperty(this,"interceptor",void 0),Xo._defineProperty(this,"owner",void 0),Xo._defineProperty(this,"mint",Bs.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),Xo._defineProperty(this,"mintTo",Bs.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),Xo._defineProperty(this,"mintAdditionalSupply",Bs.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),Xo._defineProperty(this,"mintAdditionalSupplyTo",Bs.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),Xo._defineProperty(this,"mintBatch",Bs.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),Xo._defineProperty(this,"mintBatchTo",Bs.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),Xo._defineProperty(this,"burn",Bs.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=Bs.AbiSchema.parse(i||[]),this.metadata=new Bs.ContractMetadata(this.contractWrapper,Bs.TokenErc1155ContractSchema,this.storage),this.app=new Bs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Bs.ContractRoles(this.contractWrapper,QX.contractRoles),this.royalties=new Bs.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Bs.ContractPrimarySale(this.contractWrapper),this.encoder=new Bs.ContractEncoder(this.contractWrapper),this.estimator=new Bs.GasCostEstimator(this.contractWrapper),this.events=new Bs.ContractEvents(this.contractWrapper),this.platformFees=new Bs.ContractPlatformFee(this.contractWrapper),this.interceptor=new Bs.ContractInterceptor(this.contractWrapper),this.signature=new Bs.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.owner=new Bs.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Bs.getRoleHash("transfer"),Thn.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return Bs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Xo._defineProperty(QX,"contractRoles",["admin","minter","transfer"]);NTt.Edition=QX});var HNe=E(m5e=>{"use strict";f();d();var wc=Ms(),_t=Ro(),Ehn=sa(),Ihn=na(),Chn=aa(),Br=ke(),Ahn=On();function h5e(r){return r&&r.__esModule?r:{default:r}}var khn=h5e(Ehn),Shn=h5e(Ihn),Phn=h5e(Chn),p5e=h5e(Ahn),b3=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),WNe=class{constructor(e,t){wc._defineProperty(this,"contractWrapper",void 0),wc._defineProperty(this,"storage",void 0),wc._defineProperty(this,"createListing",_t.buildTransactionFunction(async n=>{_t.validateNewListingParam(n);let a=await _t.resolveAddress(n.assetContractAddress),i=await _t.resolveAddress(n.currencyContractAddress);await _t.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await _t.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),wc._defineProperty(this,"createListingsBatch",_t.buildTransactionFunction(async n=>{let a=await Promise.all(n.map(async i=>(await this.createListing.prepare(i)).encode()));return _t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("ListingAdded",i?.logs).map(o=>({id:o.args.listingId,receipt:i}))})})),wc._defineProperty(this,"makeOffer",_t.buildTransactionFunction(async(n,a,i,s,o)=>{if(_t.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await _t.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=Br.BigNumber.from(a),l=Br.BigNumber.from(c).mul(u),p=await this.contractWrapper.getCallOverrides()||{};await _t.setErc20Allowance(this.contractWrapper,l,i,p);let h=Br.ethers.constants.MaxUint256;return o&&(h=Br.BigNumber.from(Math.floor(o.getTime()/1e3))),_t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,h],overrides:p})})),wc._defineProperty(this,"acceptOffer",_t.buildTransactionFunction(async(n,a)=>{await this.validateListing(Br.BigNumber.from(n));let i=await _t.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return _t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),wc._defineProperty(this,"buyoutListing",_t.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(Br.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Br.BigNumber.from(a),p=Br.BigNumber.from(s.buyoutPrice).mul(l),h=await this.contractWrapper.getCallOverrides()||{};return await _t.setErc20Allowance(this.contractWrapper,p,s.currencyContractAddress,h),_t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,p],overrides:h})})),wc._defineProperty(this,"updateListing",_t.buildTransactionFunction(async n=>_t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await _t.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),wc._defineProperty(this,"cancelListing",_t.buildTransactionFunction(async n=>_t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===Br.constants.AddressZero)throw new _t.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==b3.Direct)throw new _t.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(Br.BigNumber.from(e)),p5e.default(Br.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await _t.resolveAddress(t));if(n.offeror!==Br.constants.AddressZero)return await _t.mapOffer(this.contractWrapper.getProvider(),Br.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:Br.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await _t.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await _t.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:b3.Direct}}async isStillValidListing(e,t){if(!await _t.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Br.Contract(e.assetContractAddress,khn.default,a),s=await i.supportsInterface(_t.InterfaceId_IERC721),o=await i.supportsInterface(_t.InterfaceId_IERC1155);if(s){let c=new Br.Contract(e.assetContractAddress,Shn.default,a),u;try{u=await c.ownerOf(e.tokenId)}catch{}let l=u?.toLowerCase()===e.sellerAddress.toLowerCase();return{valid:l,error:l?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Br.Contract(e.assetContractAddress,Phn.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},UNe=class{constructor(e,t){wc._defineProperty(this,"contractWrapper",void 0),wc._defineProperty(this,"storage",void 0),wc._defineProperty(this,"encoder",void 0),wc._defineProperty(this,"createListing",_t.buildTransactionFunction(async n=>{_t.validateNewListingParam(n);let a=await _t.resolveAddress(n.assetContractAddress),i=await _t.resolveAddress(n.currencyContractAddress);await _t.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await _t.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await _t.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",p?.logs)[0].args.listingId,receipt:p})})})),wc._defineProperty(this,"createListingsBatch",_t.buildTransactionFunction(async n=>{let a=await Promise.all(n.map(async i=>(await this.createListing.prepare(i)).encode()));return _t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("ListingAdded",i?.logs).map(o=>({id:o.args.listingId,receipt:i}))})})),wc._defineProperty(this,"buyoutListing",_t.buildTransactionFunction(async n=>{let a=await this.validateListing(Br.BigNumber.from(n)),i=await _t.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Br.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),wc._defineProperty(this,"makeBid",_t.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(Br.BigNumber.from(n)),s=await _t.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Br.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let h=_t.isWinningBid(c.pricePerToken,s,o);p5e.default(h,"Bid price is too low based on the current winning bid and the bid buffer")}else{let h=s,m=Br.BigNumber.from(i.reservePrice);p5e.default(h.gte(m),"Bid price is too low based on reserve price")}let u=Br.BigNumber.from(i.quantity),l=s.mul(u),p=await this.contractWrapper.getCallOverrides()||{};return await _t.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,p),_t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,Br.ethers.constants.MaxUint256],overrides:p})})),wc._defineProperty(this,"cancelListing",_t.buildTransactionFunction(async n=>{let a=await this.validateListing(Br.BigNumber.from(n)),i=Br.BigNumber.from(Math.floor(Date.now()/1e3)),s=Br.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==Br.constants.AddressZero)throw new _t.AuctionAlreadyStartedError(n.toString());return _t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[Br.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),wc._defineProperty(this,"closeListing",_t.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(Br.BigNumber.from(n));try{return _t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[Br.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new _t.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),wc._defineProperty(this,"executeSale",_t.buildTransactionFunction(async n=>{let a=await this.validateListing(Br.BigNumber.from(n));try{let i=await this.getWinningBid(n);p5e.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return _t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new _t.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),wc._defineProperty(this,"updateListing",_t.buildTransactionFunction(async n=>_t.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new _t.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new _t.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==b3.Auction)throw new _t.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(Br.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==Br.constants.AddressZero)return await _t.mapOffer(this.contractWrapper.getProvider(),Br.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(Br.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=Br.BigNumber.from(Math.floor(Date.now()/1e3)),i=Br.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==Br.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(Br.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(Br.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return _t.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:Br.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await _t.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await _t.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await _t.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:Br.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:b3.Auction}}};m5e.ListingType=b3;m5e.MarketplaceAuction=UNe;m5e.MarketplaceDirect=WNe});var qTt=E(LTt=>{"use strict";f();d();var to=Ms(),Yn=Ro(),$h=HNe(),cd=ke(),Rhn=On();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function Mhn(r){return r&&r.__esModule?r:{default:r}}var FTt=Mhn(Rhn),JX=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Yn.ContractWrapper(e,t,i,a);to._defineProperty(this,"abi",void 0),to._defineProperty(this,"contractWrapper",void 0),to._defineProperty(this,"storage",void 0),to._defineProperty(this,"encoder",void 0),to._defineProperty(this,"events",void 0),to._defineProperty(this,"estimator",void 0),to._defineProperty(this,"platformFees",void 0),to._defineProperty(this,"metadata",void 0),to._defineProperty(this,"app",void 0),to._defineProperty(this,"roles",void 0),to._defineProperty(this,"interceptor",void 0),to._defineProperty(this,"direct",void 0),to._defineProperty(this,"auction",void 0),to._defineProperty(this,"_chainId",void 0),to._defineProperty(this,"getAll",this.getAllListings),to._defineProperty(this,"buyoutListing",Yn.buildTransactionFunction(async(c,u,l)=>{let p=await this.contractWrapper.readContract.listings(c);if(p.listingId.toString()!==c.toString())throw new Yn.ListingNotFoundError(this.getAddress(),c.toString());switch(p.listingType){case $h.ListingType.Direct:return FTt.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case $h.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${p.listingType}`)}})),to._defineProperty(this,"makeOffer",Yn.buildTransactionFunction(async(c,u,l)=>{let p=await this.contractWrapper.readContract.listings(c);if(p.listingId.toString()!==c.toString())throw new Yn.ListingNotFoundError(this.getAddress(),c.toString());let h=await this.contractWrapper.getChainID();switch(p.listingType){case $h.ListingType.Direct:return FTt.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,Yn.isNativeToken(p.currency)?Yn.NATIVE_TOKENS[h].wrapped.address:p.currency,u);case $h.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${p.listingType}`)}})),to._defineProperty(this,"setBidBufferBps",Yn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return Yn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,cd.BigNumber.from(c)]})})),to._defineProperty(this,"setTimeBufferInSeconds",Yn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return Yn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[cd.BigNumber.from(c),u]})})),to._defineProperty(this,"allowListingFromSpecificAssetOnly",Yn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(cd.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[Yn.getRoleHash("asset"),cd.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[Yn.getRoleHash("asset"),c])),Yn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),to._defineProperty(this,"allowListingFromAnyAsset",Yn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[Yn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[Yn.getRoleHash("asset"),cd.constants.AddressZero])),Yn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=Yn.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Yn.ContractMetadata(this.contractWrapper,Yn.MarketplaceContractSchema,this.storage),this.app=new Yn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Yn.ContractRoles(this.contractWrapper,JX.contractRoles),this.encoder=new Yn.ContractEncoder(this.contractWrapper),this.estimator=new Yn.GasCostEstimator(this.contractWrapper),this.direct=new $h.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new $h.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new Yn.ContractEvents(this.contractWrapper),this.platformFees=new Yn.ContractPlatformFee(this.contractWrapper),this.interceptor=new Yn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===cd.constants.AddressZero)throw new Yn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case $h.ListingType.Auction:return await this.auction.mapListing(t);case $h.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=cd.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===$h.ListingType.Auction&&cd.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&cd.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===$h.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(Yn.getRoleHash("lister"),cd.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await Yn.mapOffer(this.contractWrapper.getProvider(),cd.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof Yn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===$h.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=cd.BigNumber.from(t?.start||0).toNumber(),i=cd.BigNumber.from(t?.count||to.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return Yn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};to._defineProperty(JX,"contractRoles",["admin","lister","asset"]);LTt.Marketplace=JX});var UTt=E(WTt=>{"use strict";f();d();var ud=Ms(),Ds=Ro();Fr();ke();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var ZX=class{get directListings(){return Ds.assertEnabled(this.detectDirectListings(),Ds.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Ds.assertEnabled(this.detectEnglishAuctions(),Ds.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Ds.assertEnabled(this.detectOffers(),Ds.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ds.ContractWrapper(e,t,i,a);ud._defineProperty(this,"abi",void 0),ud._defineProperty(this,"contractWrapper",void 0),ud._defineProperty(this,"storage",void 0),ud._defineProperty(this,"encoder",void 0),ud._defineProperty(this,"events",void 0),ud._defineProperty(this,"estimator",void 0),ud._defineProperty(this,"platformFees",void 0),ud._defineProperty(this,"metadata",void 0),ud._defineProperty(this,"app",void 0),ud._defineProperty(this,"roles",void 0),ud._defineProperty(this,"interceptor",void 0),ud._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=Ds.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ds.ContractMetadata(this.contractWrapper,Ds.MarketplaceContractSchema,this.storage),this.app=new Ds.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ds.ContractRoles(this.contractWrapper,ZX.contractRoles),this.encoder=new Ds.ContractEncoder(this.contractWrapper),this.estimator=new Ds.GasCostEstimator(this.contractWrapper),this.events=new Ds.ContractEvents(this.contractWrapper),this.platformFees=new Ds.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ds.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Ds.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectDirectListings(){if(Ds.detectContractFeature(this.contractWrapper,"DirectListings"))return new Ds.MarketplaceV3DirectListings(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(Ds.detectContractFeature(this.contractWrapper,"EnglishAuctions"))return new Ds.MarketplaceV3EnglishAuctions(this.contractWrapper,this.storage)}detectOffers(){if(Ds.detectContractFeature(this.contractWrapper,"Offers"))return new Ds.MarketplaceV3Offers(this.contractWrapper,this.storage)}};ud._defineProperty(ZX,"contractRoles",["admin","lister","asset"]);WTt.MarketplaceV3=ZX});var XX=E(HTt=>{"use strict";f();d();var g3=Ms(),Gg=Ro(),jNe=class{get chainId(){return this._chainId}constructor(e,t,n){g3._defineProperty(this,"contractWrapper",void 0),g3._defineProperty(this,"storage",void 0),g3._defineProperty(this,"erc721",void 0),g3._defineProperty(this,"_chainId",void 0),g3._defineProperty(this,"transfer",Gg.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),g3._defineProperty(this,"setApprovalForAll",Gg.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),g3._defineProperty(this,"setApprovalForToken",Gg.buildTransactionFunction(async(a,i)=>Gg.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Gg.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new Gg.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await Gg.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await Gg.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};HTt.StandardErc721=jNe});var zTt=E(jTt=>{"use strict";f();d();var Pp=Ms(),Ns=Ro(),Bhn=XX(),Dhn=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var eee=class extends Bhn.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ns.ContractWrapper(e,t,i,a);super(o,n,s),Pp._defineProperty(this,"abi",void 0),Pp._defineProperty(this,"encoder",void 0),Pp._defineProperty(this,"estimator",void 0),Pp._defineProperty(this,"metadata",void 0),Pp._defineProperty(this,"app",void 0),Pp._defineProperty(this,"events",void 0),Pp._defineProperty(this,"roles",void 0),Pp._defineProperty(this,"royalties",void 0),Pp._defineProperty(this,"owner",void 0),Pp._defineProperty(this,"wrap",Ns.buildTransactionFunction(async(c,u,l)=>{let p=await Ns.uploadOrExtractURI(u,this.storage),h=await Ns.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Ns.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,p,h],parse:y=>{let C=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(C.length===0)throw new Error("TokensWrapped event not found");let P=C[0].args.tokenIdOfWrappedToken;return{id:P,receipt:y,data:()=>this.get(P)}}})})),Pp._defineProperty(this,"unwrap",Ns.buildTransactionFunction(async(c,u)=>{let l=await Ns.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Ns.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=Ns.AbiSchema.parse(i||[]),this.metadata=new Ns.ContractMetadata(this.contractWrapper,Ns.MultiwrapContractSchema,this.storage),this.app=new Ns.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ns.ContractRoles(this.contractWrapper,eee.contractRoles),this.encoder=new Ns.ContractEncoder(this.contractWrapper),this.estimator=new Ns.GasCostEstimator(this.contractWrapper),this.events=new Ns.ContractEvents(this.contractWrapper),this.royalties=new Ns.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Ns.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Ns.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:Dhn.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Ns.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Ns.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: await sdk.getToken("${i.contractAddress}").setAllowance("${this.getAddress()}", ${i.quantity}); -`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await Ai.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await Ns.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getNFTCollection("${i.contractAddress}").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); -`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await Ai.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await Ns.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async prepare(e,t,n){return Ai.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};xp._defineProperty(GV,"contractRoles",["admin","transfer","minter","unwrap","asset"]);ipt.Multiwrap=GV});var cpt=_(opt=>{"use strict";d();p();var go=Ei(),ds=ls(),EDr=KV(),CDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var VV=class extends EDr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ds.ContractWrapper(e,t,i,a);super(o,n,s),go._defineProperty(this,"abi",void 0),go._defineProperty(this,"metadata",void 0),go._defineProperty(this,"app",void 0),go._defineProperty(this,"roles",void 0),go._defineProperty(this,"encoder",void 0),go._defineProperty(this,"estimator",void 0),go._defineProperty(this,"events",void 0),go._defineProperty(this,"sales",void 0),go._defineProperty(this,"platformFees",void 0),go._defineProperty(this,"royalties",void 0),go._defineProperty(this,"owner",void 0),go._defineProperty(this,"signature",void 0),go._defineProperty(this,"interceptor",void 0),go._defineProperty(this,"mint",ds.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),go._defineProperty(this,"mintTo",ds.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),go._defineProperty(this,"mintBatch",ds.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),go._defineProperty(this,"mintBatchTo",ds.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),go._defineProperty(this,"burn",ds.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=ds.AbiSchema.parse(i||[]),this.metadata=new ds.ContractMetadata(this.contractWrapper,ds.TokenErc721ContractSchema,this.storage),this.app=new ds.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ds.ContractRoles(this.contractWrapper,VV.contractRoles),this.royalties=new ds.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ds.ContractPrimarySale(this.contractWrapper),this.encoder=new ds.ContractEncoder(this.contractWrapper),this.estimator=new ds.GasCostEstimator(this.contractWrapper),this.events=new ds.ContractEvents(this.contractWrapper),this.platformFees=new ds.ContractPlatformFee(this.contractWrapper),this.interceptor=new ds.ContractInterceptor(this.contractWrapper),this.signature=new ds.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ds.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ds.getRoleHash("transfer"),CDr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return ds.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};go._defineProperty(VV,"contractRoles",["admin","minter","transfer"]);opt.NFTCollection=VV});var lpt=_(upt=>{"use strict";d();p();var li=Ei(),$a=ls(),kDr=KV(),ADr=bee(),N2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var YV=class extends kDr.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $a.ContractWrapper(e,t,s,i);super(c,n,o),a=this,li._defineProperty(this,"abi",void 0),li._defineProperty(this,"encoder",void 0),li._defineProperty(this,"estimator",void 0),li._defineProperty(this,"metadata",void 0),li._defineProperty(this,"app",void 0),li._defineProperty(this,"sales",void 0),li._defineProperty(this,"platformFees",void 0),li._defineProperty(this,"events",void 0),li._defineProperty(this,"roles",void 0),li._defineProperty(this,"interceptor",void 0),li._defineProperty(this,"royalties",void 0),li._defineProperty(this,"claimConditions",void 0),li._defineProperty(this,"revealer",void 0),li._defineProperty(this,"checkout",void 0),li._defineProperty(this,"owner",void 0),li._defineProperty(this,"createBatch",$a.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),li._defineProperty(this,"claimTo",$a.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),li._defineProperty(this,"claim",$a.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),li._defineProperty(this,"burn",$a.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),li._defineProperty(this,"transfer",$a.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),li._defineProperty(this,"setApprovalForAll",$a.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),li._defineProperty(this,"setApprovalForToken",$a.buildTransactionFunction(async(u,l)=>$a.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=$a.AbiSchema.parse(s||[]),this.metadata=new $a.ContractMetadata(this.contractWrapper,$a.DropErc721ContractSchema,this.storage),this.app=new $a.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new $a.ContractRoles(this.contractWrapper,YV.contractRoles),this.royalties=new $a.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new $a.ContractPrimarySale(this.contractWrapper),this.claimConditions=new $a.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new $a.ContractEncoder(this.contractWrapper),this.estimator=new $a.GasCostEstimator(this.contractWrapper),this.events=new $a.ContractEvents(this.contractWrapper),this.platformFees=new $a.ContractPlatformFee(this.contractWrapper),this.revealer=new $a.DelayedReveal(this.contractWrapper,this.storage,$a.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new $a.ContractInterceptor(this.contractWrapper),this.owner=new $a.ContractOwner(this.contractWrapper),this.checkout=new ADr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=N2.BigNumber.from(e?.start||0).toNumber(),n=N2.BigNumber.from(e?.count||li.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=N2.BigNumber.from(e?.start||0).toNumber(),n=N2.BigNumber.from(e?.count||li.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=N2.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=N2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole($a.getRoleHash("transfer"),N2.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return $a.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};li._defineProperty(YV,"contractRoles",["admin","minter","transfer"]);upt.NFTDrop=YV});var gpt=_(ypt=>{"use strict";d();p();var ti=Ei(),Mt=ls(),PDr=yee(),SDr=sIe(),RDr=sa(),_p=je(),O0=kr();Cr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function dpt(r){return r&&r.__esModule?r:{default:r}}var MDr=dpt(SDr),NDr=dpt(RDr),wCe=O0.z.object({contractAddress:Mt.AddressOrEnsSchema}),BDr=wCe.extend({quantity:ti.AmountSchema}),DDr=wCe.extend({tokenId:Mt.BigNumberishSchema}),LDr=wCe.extend({tokenId:Mt.BigNumberishSchema,quantity:Mt.BigNumberishSchema}),ppt=BDr.omit({quantity:!0}).extend({quantityPerReward:ti.AmountSchema}),hpt=DDr,fpt=LDr.omit({quantity:!0}).extend({quantityPerReward:Mt.BigNumberishSchema}),ODr=ppt.extend({totalRewards:Mt.BigNumberishSchema.default("1")}),qDr=hpt,FDr=fpt.extend({totalRewards:Mt.BigNumberishSchema.default("1")});O0.z.object({erc20Rewards:O0.z.array(ppt).default([]),erc721Rewards:O0.z.array(hpt).default([]),erc1155Rewards:O0.z.array(fpt).default([])});var mpt=O0.z.object({erc20Rewards:O0.z.array(ODr).default([]),erc721Rewards:O0.z.array(qDr).default([]),erc1155Rewards:O0.z.array(FDr).default([])}),WDr=mpt.extend({packMetadata:ti.NFTInputOrUriSchema,rewardsPerPack:Mt.BigNumberishSchema.default("1"),openStartTime:Mt.RawDateSchema.default(new Date)}),vCe=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Mt.ContractWrapper(e,t,NDr.default,a);ti._defineProperty(this,"featureName",Mt.FEATURE_PACK_VRF.name),ti._defineProperty(this,"contractWrapper",void 0),ti._defineProperty(this,"storage",void 0),ti._defineProperty(this,"chainId",void 0),ti._defineProperty(this,"events",void 0),ti._defineProperty(this,"open",Mt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=_p.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),ti._defineProperty(this,"claimRewards",Mt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Mt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Mt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:_p.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Mt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:_p.BigNumber.from(5e5)}),i=_p.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Mt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Mt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,MDr.default,this.contractWrapper.options);return new Mt.Erc20(t,this.storage,this.chainId)}},$V=class extends PDr.StandardErc1155{get vrf(){return Mt.assertEnabled(this._vrf,Mt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Mt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,ti._defineProperty(this,"abi",void 0),ti._defineProperty(this,"metadata",void 0),ti._defineProperty(this,"app",void 0),ti._defineProperty(this,"roles",void 0),ti._defineProperty(this,"encoder",void 0),ti._defineProperty(this,"events",void 0),ti._defineProperty(this,"estimator",void 0),ti._defineProperty(this,"royalties",void 0),ti._defineProperty(this,"interceptor",void 0),ti._defineProperty(this,"owner",void 0),ti._defineProperty(this,"_vrf",void 0),ti._defineProperty(this,"create",Mt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),ti._defineProperty(this,"addPackContents",Mt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await mpt.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:I=>{let C=this.contractWrapper.parseLogs("PackUpdated",I?.logs);if(C.length===0)throw new Error("PackUpdated event not found");let R=C[0].args.packId;return{id:R,receipt:I,data:()=>this.erc1155.get(R)}}})})),ti._defineProperty(this,"createTo",Mt.buildTransactionFunction(async(u,l)=>{let h=await Mt.uploadOrExtractURI(l.packMetadata,this.storage),f=await WDr.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I}=f,C={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:I},{contents:R,numOfRewardUnits:L}=await this.toPackContentArgs(C);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[R,L,h,f.openStartTime,f.rewardsPerPack,await Mt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:F,data:()=>this.erc1155.get(V)}}})})),ti._defineProperty(this,"open",Mt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Mt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,I=[],C=[],R=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Mt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);I.push({contractAddress:L.assetContract,quantityPerReward:_p.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{C.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{R.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:I,erc721Rewards:C,erc1155Rewards:R}}})})),this.abi=Mt.AbiSchema.parse(s||[]),this.metadata=new Mt.ContractMetadata(this.contractWrapper,Mt.PackContractSchema,this.storage),this.app=new Mt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Mt.ContractRoles(this.contractWrapper,$V.contractRoles),this.royalties=new Mt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Mt.ContractEncoder(this.contractWrapper),this.estimator=new Mt.GasCostEstimator(this.contractWrapper),this.events=new Mt.ContractEvents(this.contractWrapper),this.interceptor=new Mt.ContractInterceptor(this.contractWrapper),this.owner=new Mt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Mt.getRoleHash("transfer"),_p.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o{"use strict";f();d();var Uc=Ms(),Mo=Ro(),Nhn=XX(),Ohn=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var tee=class extends Nhn.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Mo.ContractWrapper(e,t,i,a);super(o,n,s),Uc._defineProperty(this,"abi",void 0),Uc._defineProperty(this,"metadata",void 0),Uc._defineProperty(this,"app",void 0),Uc._defineProperty(this,"roles",void 0),Uc._defineProperty(this,"encoder",void 0),Uc._defineProperty(this,"estimator",void 0),Uc._defineProperty(this,"events",void 0),Uc._defineProperty(this,"sales",void 0),Uc._defineProperty(this,"platformFees",void 0),Uc._defineProperty(this,"royalties",void 0),Uc._defineProperty(this,"owner",void 0),Uc._defineProperty(this,"signature",void 0),Uc._defineProperty(this,"interceptor",void 0),Uc._defineProperty(this,"mint",Mo.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Uc._defineProperty(this,"mintTo",Mo.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Uc._defineProperty(this,"mintBatch",Mo.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Uc._defineProperty(this,"mintBatchTo",Mo.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Uc._defineProperty(this,"burn",Mo.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=Mo.AbiSchema.parse(i||[]),this.metadata=new Mo.ContractMetadata(this.contractWrapper,Mo.TokenErc721ContractSchema,this.storage),this.app=new Mo.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Mo.ContractRoles(this.contractWrapper,tee.contractRoles),this.royalties=new Mo.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Mo.ContractPrimarySale(this.contractWrapper),this.encoder=new Mo.ContractEncoder(this.contractWrapper),this.estimator=new Mo.GasCostEstimator(this.contractWrapper),this.events=new Mo.ContractEvents(this.contractWrapper),this.platformFees=new Mo.ContractPlatformFee(this.contractWrapper),this.interceptor=new Mo.ContractInterceptor(this.contractWrapper),this.signature=new Mo.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new Mo.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Mo.getRoleHash("transfer"),Ohn.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return Mo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Uc._defineProperty(tee,"contractRoles",["admin","minter","transfer"]);KTt.NFTCollection=tee});var $Tt=E(VTt=>{"use strict";f();d();var ms=Ms(),es=Ro(),Fhn=XX(),Lhn=joe(),v3=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var ree=class extends Fhn.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new es.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ms._defineProperty(this,"abi",void 0),ms._defineProperty(this,"encoder",void 0),ms._defineProperty(this,"estimator",void 0),ms._defineProperty(this,"metadata",void 0),ms._defineProperty(this,"app",void 0),ms._defineProperty(this,"sales",void 0),ms._defineProperty(this,"platformFees",void 0),ms._defineProperty(this,"events",void 0),ms._defineProperty(this,"roles",void 0),ms._defineProperty(this,"interceptor",void 0),ms._defineProperty(this,"royalties",void 0),ms._defineProperty(this,"claimConditions",void 0),ms._defineProperty(this,"revealer",void 0),ms._defineProperty(this,"checkout",void 0),ms._defineProperty(this,"owner",void 0),ms._defineProperty(this,"createBatch",es.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),ms._defineProperty(this,"claimTo",es.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:p})})),ms._defineProperty(this,"claim",es.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),ms._defineProperty(this,"burn",es.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),ms._defineProperty(this,"transfer",es.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),ms._defineProperty(this,"setApprovalForAll",es.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),ms._defineProperty(this,"setApprovalForToken",es.buildTransactionFunction(async(u,l)=>es.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=es.AbiSchema.parse(s||[]),this.metadata=new es.ContractMetadata(this.contractWrapper,es.DropErc721ContractSchema,this.storage),this.app=new es.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new es.ContractRoles(this.contractWrapper,ree.contractRoles),this.royalties=new es.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new es.ContractPrimarySale(this.contractWrapper),this.claimConditions=new es.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new es.ContractEncoder(this.contractWrapper),this.estimator=new es.GasCostEstimator(this.contractWrapper),this.events=new es.ContractEvents(this.contractWrapper),this.platformFees=new es.ContractPlatformFee(this.contractWrapper),this.revealer=new es.DelayedReveal(this.contractWrapper,this.storage,es.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new es.ContractInterceptor(this.contractWrapper),this.owner=new es.ContractOwner(this.contractWrapper),this.checkout=new Lhn.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=v3.BigNumber.from(e?.start||0).toNumber(),n=v3.BigNumber.from(e?.count||ms.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=v3.BigNumber.from(e?.start||0).toNumber(),n=v3.BigNumber.from(e?.count||ms.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=v3.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=v3.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(es.getRoleHash("transfer"),v3.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return es.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};ms._defineProperty(ree,"contractRoles",["admin","minter","transfer"]);VTt.NFTDrop=ree});var tEt=E(eEt=>{"use strict";f();d();var os=Ms(),lr=Ro(),qhn=Uoe(),Whn=vBe(),Uhn=ri(),Rp=ke(),Mb=fn();Fr();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function YTt(r){return r&&r.__esModule?r:{default:r}}var Hhn=YTt(Whn),jhn=YTt(Uhn),KNe=Mb.z.object({contractAddress:lr.AddressOrEnsSchema}),zhn=KNe.extend({quantity:os.AmountSchema}),Khn=KNe.extend({tokenId:lr.BigNumberishSchema}),Ghn=KNe.extend({tokenId:lr.BigNumberishSchema,quantity:lr.BigNumberishSchema}),QTt=zhn.omit({quantity:!0}).extend({quantityPerReward:os.AmountSchema}),JTt=Khn,ZTt=Ghn.omit({quantity:!0}).extend({quantityPerReward:lr.BigNumberishSchema}),Vhn=QTt.extend({totalRewards:lr.BigNumberishSchema.default("1")}),$hn=JTt,Yhn=ZTt.extend({totalRewards:lr.BigNumberishSchema.default("1")});Mb.z.object({erc20Rewards:Mb.z.array(QTt).default([]),erc721Rewards:Mb.z.array(JTt).default([]),erc1155Rewards:Mb.z.array(ZTt).default([])});var XTt=Mb.z.object({erc20Rewards:Mb.z.array(Vhn).default([]),erc721Rewards:Mb.z.array($hn).default([]),erc1155Rewards:Mb.z.array(Yhn).default([])}),Qhn=XTt.extend({packMetadata:os.NFTInputOrUriSchema,rewardsPerPack:lr.BigNumberishSchema.default("1"),openStartTime:lr.RawDateSchema.default(new Date)}),zNe=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new lr.ContractWrapper(e,t,jhn.default,a);os._defineProperty(this,"featureName",lr.FEATURE_PACK_VRF.name),os._defineProperty(this,"contractWrapper",void 0),os._defineProperty(this,"storage",void 0),os._defineProperty(this,"chainId",void 0),os._defineProperty(this,"events",void 0),os._defineProperty(this,"open",lr.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return lr.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:p=>{let h=Rp.BigNumber.from(0);try{h=s.contractWrapper.parseLogs("PackOpenRequested",p?.logs)[0].args.requestId}catch{}return{receipt:p,id:h}}})})),os._defineProperty(this,"claimRewards",lr.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return lr.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let p=l[0].args.rewardUnitsDistributed;return await s.parseRewards(p)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new lr.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await lr.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:Rp.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await lr.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:Rp.BigNumber.from(5e5)}),i=Rp.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=lr.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new lr.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,Hhn.default,this.contractWrapper.options);return new lr.Erc20(t,this.storage,this.chainId)}},nee=class extends qhn.StandardErc1155{get vrf(){return lr.assertEnabled(this._vrf,lr.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new lr.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{...i.gasless,openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,os._defineProperty(this,"abi",void 0),os._defineProperty(this,"metadata",void 0),os._defineProperty(this,"app",void 0),os._defineProperty(this,"roles",void 0),os._defineProperty(this,"encoder",void 0),os._defineProperty(this,"events",void 0),os._defineProperty(this,"estimator",void 0),os._defineProperty(this,"royalties",void 0),os._defineProperty(this,"interceptor",void 0),os._defineProperty(this,"owner",void 0),os._defineProperty(this,"_vrf",void 0),os._defineProperty(this,"create",lr.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),os._defineProperty(this,"addPackContents",lr.buildTransactionFunction(async(u,l)=>{let p=await this.contractWrapper.getSignerAddress(),h=await XTt.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(h);return lr.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,p],parse:C=>{let P=this.contractWrapper.parseLogs("PackUpdated",C?.logs);if(P.length===0)throw new Error("PackUpdated event not found");let A=P[0].args.packId;return{id:A,receipt:C,data:()=>this.erc1155.get(A)}}})})),os._defineProperty(this,"createTo",lr.buildTransactionFunction(async(u,l)=>{let p=await lr.uploadOrExtractURI(l.packMetadata,this.storage),h=await Qhn.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:C}=h,P={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:C},{contents:A,numOfRewardUnits:B}=await this.toPackContentArgs(P);return lr.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[A,B,p,h.openStartTime,h.rewardsPerPack,await lr.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let K=W[0].args.packId;return{id:K,receipt:F,data:()=>this.erc1155.get(K)}}})})),os._defineProperty(this,"open",lr.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return lr.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:p},parse:async h=>{let m=a.contractWrapper.parseLogs("PackOpened",h?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,C=[],P=[],A=[];for(let B of y)switch(B.tokenType){case 0:{let F=await lr.fetchCurrencyMetadata(a.contractWrapper.getProvider(),B.assetContract);C.push({contractAddress:B.assetContract,quantityPerReward:Rp.ethers.utils.formatUnits(B.totalAmount,F.decimals).toString()});break}case 1:{P.push({contractAddress:B.assetContract,tokenId:B.tokenId.toString()});break}case 2:{A.push({contractAddress:B.assetContract,tokenId:B.tokenId.toString(),quantityPerReward:B.totalAmount.toString()});break}}return{erc20Rewards:C,erc721Rewards:P,erc1155Rewards:A}}})})),this.abi=lr.AbiSchema.parse(s||[]),this.metadata=new lr.ContractMetadata(this.contractWrapper,lr.PackContractSchema,this.storage),this.app=new lr.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new lr.ContractRoles(this.contractWrapper,nee.contractRoles),this.royalties=new lr.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new lr.ContractEncoder(this.contractWrapper),this.estimator=new lr.GasCostEstimator(this.contractWrapper),this.events=new lr.ContractEvents(this.contractWrapper),this.interceptor=new lr.ContractInterceptor(this.contractWrapper),this.owner=new lr.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(lr.getRoleHash("transfer"),Rp.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o{"use strict";d();p();var Yi=Ei(),di=ls(),UDr=KV(),HDr=bee(),B2=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var QV=class extends UDr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new di.ContractWrapper(e,t,i,a);super(o,n,s),Yi._defineProperty(this,"abi",void 0),Yi._defineProperty(this,"owner",void 0),Yi._defineProperty(this,"encoder",void 0),Yi._defineProperty(this,"estimator",void 0),Yi._defineProperty(this,"metadata",void 0),Yi._defineProperty(this,"app",void 0),Yi._defineProperty(this,"sales",void 0),Yi._defineProperty(this,"platformFees",void 0),Yi._defineProperty(this,"events",void 0),Yi._defineProperty(this,"roles",void 0),Yi._defineProperty(this,"interceptor",void 0),Yi._defineProperty(this,"royalties",void 0),Yi._defineProperty(this,"claimConditions",void 0),Yi._defineProperty(this,"revealer",void 0),Yi._defineProperty(this,"signature",void 0),Yi._defineProperty(this,"checkout",void 0),Yi._defineProperty(this,"createBatch",di.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),Yi._defineProperty(this,"claimTo",di.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),Yi._defineProperty(this,"claim",di.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),Yi._defineProperty(this,"burn",di.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=di.AbiSchema.parse(i||[]),this.metadata=new di.ContractMetadata(this.contractWrapper,di.DropErc721ContractSchema,this.storage),this.app=new di.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new di.ContractRoles(this.contractWrapper,QV.contractRoles),this.royalties=new di.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new di.ContractPrimarySale(this.contractWrapper),this.encoder=new di.ContractEncoder(this.contractWrapper),this.estimator=new di.GasCostEstimator(this.contractWrapper),this.events=new di.ContractEvents(this.contractWrapper),this.platformFees=new di.ContractPlatformFee(this.contractWrapper),this.interceptor=new di.ContractInterceptor(this.contractWrapper),this.claimConditions=new di.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new di.DelayedReveal(this.contractWrapper,this.storage,di.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new di.ContractOwner(this.contractWrapper),this.checkout=new HDr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=B2.BigNumber.from(e?.start||0).toNumber(),n=B2.BigNumber.from(e?.count||Yi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=B2.BigNumber.from(e?.start||0).toNumber(),n=B2.BigNumber.from(e?.count||Yi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=B2.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=B2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(di.getRoleHash("transfer"),B2.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return di.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Yi._defineProperty(QV,"contractRoles",["admin","minter","transfer"]);bpt.SignatureDrop=QV});var xpt=_(wpt=>{"use strict";d();p();var wu=Ei(),Ma=ls(),jDr=Pn(),xCe=je();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function zDr(r){return r&&r.__esModule?r:{default:r}}var KDr=zDr(jDr),JV=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ma.ContractWrapper(e,t,i,a);wu._defineProperty(this,"contractWrapper",void 0),wu._defineProperty(this,"storage",void 0),wu._defineProperty(this,"abi",void 0),wu._defineProperty(this,"metadata",void 0),wu._defineProperty(this,"app",void 0),wu._defineProperty(this,"encoder",void 0),wu._defineProperty(this,"estimator",void 0),wu._defineProperty(this,"events",void 0),wu._defineProperty(this,"roles",void 0),wu._defineProperty(this,"interceptor",void 0),wu._defineProperty(this,"_chainId",void 0),wu._defineProperty(this,"withdraw",Ma.buildTransactionFunction(async c=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ma.resolveAddress(c)]}))),wu._defineProperty(this,"withdrawToken",Ma.buildTransactionFunction(async(c,u)=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ma.resolveAddress(u),await Ma.resolveAddress(c)]}))),wu._defineProperty(this,"distribute",Ma.buildTransactionFunction(async()=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),wu._defineProperty(this,"distributeToken",Ma.buildTransactionFunction(async c=>Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ma.resolveAddress(c)]}))),this._chainId=s,this.abi=Ma.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Ma.ContractMetadata(this.contractWrapper,Ma.SplitsContractSchema,this.storage),this.app=new Ma.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ma.ContractRoles(this.contractWrapper,JV.contractRoles),this.encoder=new Ma.ContractEncoder(this.contractWrapper),this.estimator=new Ma.GasCostEstimator(this.contractWrapper),this.events=new Ma.ContractEvents(this.contractWrapper),this.interceptor=new Ma.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=xCe.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ma.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ma.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ma.resolveAddress(t),a=await Ma.resolveAddress(e),s=await new xCe.Contract(n,KDr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ma.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ma.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(xCe.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ma.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ma.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};wu._defineProperty(JV,"contractRoles",["admin"]);wpt.Split=JV});var zhe=_(_pt=>{"use strict";d();p();var Wg=Ei(),vee=ls(),_Ce=class{get chainId(){return this._chainId}constructor(e,t,n){Wg._defineProperty(this,"contractWrapper",void 0),Wg._defineProperty(this,"storage",void 0),Wg._defineProperty(this,"erc20",void 0),Wg._defineProperty(this,"_chainId",void 0),Wg._defineProperty(this,"transfer",vee.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Wg._defineProperty(this,"transferFrom",vee.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),Wg._defineProperty(this,"setAllowance",vee.buildTransactionFunction(async(a,i)=>this.erc20.setAllowance.prepare(a,i))),Wg._defineProperty(this,"transferBatch",vee.buildTransactionFunction(async a=>this.erc20.transferBatch.prepare(a))),this.contractWrapper=e,this.storage=t,this.erc20=new vee.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}};_pt.StandardErc20=_Ce});var Ipt=_(Tpt=>{"use strict";d();p();var Ec=Ei(),Pi=ls(),GDr=zhe(),VDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var ZV=class extends GDr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Pi.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ec._defineProperty(this,"abi",void 0),Ec._defineProperty(this,"metadata",void 0),Ec._defineProperty(this,"app",void 0),Ec._defineProperty(this,"roles",void 0),Ec._defineProperty(this,"encoder",void 0),Ec._defineProperty(this,"estimator",void 0),Ec._defineProperty(this,"sales",void 0),Ec._defineProperty(this,"platformFees",void 0),Ec._defineProperty(this,"events",void 0),Ec._defineProperty(this,"claimConditions",void 0),Ec._defineProperty(this,"interceptor",void 0),Ec._defineProperty(this,"claim",Pi.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),Ec._defineProperty(this,"claimTo",Pi.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),Ec._defineProperty(this,"delegateTo",Pi.buildTransactionFunction(async u=>Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Pi.resolveAddress(u)]}))),Ec._defineProperty(this,"burnTokens",Pi.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),Ec._defineProperty(this,"burnFrom",Pi.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=Pi.AbiSchema.parse(s||[]),this.metadata=new Pi.ContractMetadata(this.contractWrapper,Pi.DropErc20ContractSchema,this.storage),this.app=new Pi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Pi.ContractRoles(this.contractWrapper,ZV.contractRoles),this.encoder=new Pi.ContractEncoder(this.contractWrapper),this.estimator=new Pi.GasCostEstimator(this.contractWrapper),this.events=new Pi.ContractEvents(this.contractWrapper),this.sales=new Pi.ContractPrimarySale(this.contractWrapper),this.platformFees=new Pi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Pi.ContractInterceptor(this.contractWrapper),this.claimConditions=new Pi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await Pi.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Pi.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Pi.getRoleHash("transfer"),VDr.constants.AddressZero)}async prepare(e,t,n){return Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Ec._defineProperty(ZV,"contractRoles",["admin","transfer"]);Tpt.TokenDrop=ZV});var ICe=_(Cpt=>{"use strict";d();p();var Ept=Ei(),YDr=ls(),Khe=je(),TCe=class{constructor(e,t){Ept._defineProperty(this,"events",void 0),Ept._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==Khe.constants.AddressZero&&(i in n||(n[i]=Khe.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==Khe.constants.AddressZero&&(s in n||(n[s]=Khe.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await YDr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};Cpt.TokenERC20History=TCe});var Apt=_(kpt=>{"use strict";d();p();var bo=Ei(),Si=ls(),$Dr=ICe(),QDr=zhe(),JDr=je();Cr();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();var XV=class extends QDr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Si.ContractWrapper(e,t,i,a);super(o,n,s),bo._defineProperty(this,"abi",void 0),bo._defineProperty(this,"metadata",void 0),bo._defineProperty(this,"app",void 0),bo._defineProperty(this,"roles",void 0),bo._defineProperty(this,"encoder",void 0),bo._defineProperty(this,"estimator",void 0),bo._defineProperty(this,"history",void 0),bo._defineProperty(this,"events",void 0),bo._defineProperty(this,"platformFees",void 0),bo._defineProperty(this,"sales",void 0),bo._defineProperty(this,"signature",void 0),bo._defineProperty(this,"interceptor",void 0),bo._defineProperty(this,"mint",Si.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),bo._defineProperty(this,"mintTo",Si.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),bo._defineProperty(this,"mintBatchTo",Si.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),bo._defineProperty(this,"delegateTo",Si.buildTransactionFunction(async c=>Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Si.resolveAddress(c)]}))),bo._defineProperty(this,"burn",Si.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),bo._defineProperty(this,"burnFrom",Si.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=Si.AbiSchema.parse(i||[]),this.metadata=new Si.ContractMetadata(this.contractWrapper,Si.TokenErc20ContractSchema,this.storage),this.app=new Si.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Si.ContractRoles(this.contractWrapper,XV.contractRoles),this.sales=new Si.ContractPrimarySale(this.contractWrapper),this.events=new Si.ContractEvents(this.contractWrapper),this.history=new $Dr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Si.ContractEncoder(this.contractWrapper),this.estimator=new Si.GasCostEstimator(this.contractWrapper),this.platformFees=new Si.ContractPlatformFee(this.contractWrapper),this.interceptor=new Si.ContractInterceptor(this.contractWrapper),this.signature=new Si.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Si.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Si.getRoleHash("transfer"),JDr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Si.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};bo._defineProperty(XV,"contractRoles",["admin","minter","transfer"]);kpt.Token=XV});var ECe=_(Ppt=>{"use strict";d();p();var ZDr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});Ppt.VoteType=ZDr});var Rpt=_(Spt=>{"use strict";d();p();var ud=Ei(),$s=ls(),XDr=Pn(),wee=je(),CCe=ECe();Cr();kr();Tn();In();En();Cn();kn();An();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();function eLr(r){return r&&r.__esModule?r:{default:r}}var tLr=eLr(XDr),kCe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $s.ContractWrapper(e,t,s,i);ud._defineProperty(this,"contractWrapper",void 0),ud._defineProperty(this,"storage",void 0),ud._defineProperty(this,"abi",void 0),ud._defineProperty(this,"metadata",void 0),ud._defineProperty(this,"app",void 0),ud._defineProperty(this,"encoder",void 0),ud._defineProperty(this,"estimator",void 0),ud._defineProperty(this,"events",void 0),ud._defineProperty(this,"interceptor",void 0),ud._defineProperty(this,"_chainId",void 0),ud._defineProperty(this,"propose",$s.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return $s.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),ud._defineProperty(this,"vote",$s.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),$s.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),ud._defineProperty(this,"execute",$s.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(I=>I.toAddress),f=l.executions.map(I=>I.nativeTokenValue),m=l.executions.map(I=>I.transactionData),y=wee.ethers.utils.id(l.description);return $s.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=$s.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new $s.ContractMetadata(this.contractWrapper,$s.VoteContractSchema,this.storage),this.app=new $s.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new $s.ContractEncoder(this.contractWrapper),this.estimator=new $s.GasCostEstimator(this.contractWrapper),this.events=new $s.ContractEvents(this.contractWrapper),this.interceptor=new $s.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(wee.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:CCe.VoteType.Against,label:"Against",count:t.againstVotes},{type:CCe.VoteType.For,label:"For",count:t.forVotes},{type:CCe.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await $s.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=wee.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:wee.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new wee.Contract(await $s.resolveAddress(e),tLr.default,this.contractWrapper.getProvider());return await $s.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await $s.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return $s.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Spt.Vote=kCe});var ls=_(re=>{"use strict";d();p();var rLr=Tn(),Z=je(),nLr=In(),aLr=En(),iLr=Cn(),sLr=kn(),oLr=An(),cLr=Pn(),uLr=Sn(),lLr=Rn(),dLr=Mn(),pLr=Nn(),hLr=Bn(),fLr=Dn(),mLr=Ln(),yLr=On(),gLr=pn(),bLr=qn(),vLr=Fn(),wLr=Wn(),xLr=Un(),_Lr=Hn(),TLr=jn(),ILr=zn(),ELr=Kn(),CLr=Gn(),kLr=Vn(),ALr=Yn(),PLr=$n(),SLr=Qn(),RLr=hn(),MLr=Jn(),NLr=Zn(),BLr=Xn(),DLr=ea(),LLr=ta(),OLr=ra(),qLr=na(),FLr=aa(),WLr=ia(),ULr=sa(),HLr=oa(),jLr=ca(),zLr=ua(),KLr=la(),GLr=da(),VLr=pa(),$=Ei(),pe=kr(),Yee=vt(),YLr=ha(),$Lr=tn(),lht=Je(),QLr=fa(),zg=bn(),JLr=Gr(),ZLr=Xr(),XLr=ma(),ACe=ya(),eOr=ga(),tOr=Fr(),rOr=mn(),nOr=ba(),aOr=va(),iOr=wa(),sOr=xa(),oOr=_a(),cOr=Ta(),Mpt=yn(),uOr=Ia(),lOr=Ea();function rt(r){return r&&r.__esModule?r:{default:r}}function Xo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var E8e=rt(rLr),dOr=rt(nLr),dht=rt(aLr),pOr=rt(iLr),pht=rt(sLr),hht=rt(oLr),xu=rt(cLr),hOr=rt(uLr),fht=rt(lLr),C8e=rt(dLr),fOr=rt(pLr),mOr=rt(hLr),yOr=rt(fLr),mht=rt(mLr),gOr=rt(yLr),kc=rt(gLr),bOr=rt(bLr),vOr=rt(vLr),kp=rt(wLr),yht=rt(xLr),wOr=rt(_Lr),xOr=rt(TLr),_Or=rt(ILr),TOr=rt(ELr),IOr=rt(CLr),EOr=rt(kLr),ght=rt(ALr),COr=rt(PLr),kOr=rt(SLr),Gu=rt(RLr),AOr=rt(MLr),bht=rt(NLr),POr=rt(BLr),SOr=rt(DLr),ROr=rt(LLr),MOr=rt(OLr),NOr=rt(qLr),BOr=rt(FLr),DOr=rt(WLr),LOr=rt(ULr),OOr=rt(HLr),qOr=rt(jLr),FOr=rt(zLr),WOr=rt(KLr),UOr=rt(GLr),HOr=rt(VLr),jOr=rt(YLr),Cee=rt($Lr),DCe=rt(lht),vht=rt(QLr),Tt=rt(JLr),zOr=rt(XLr),wht=rt(eOr),vme=rt(rOr),KOr=rt(nOr),GOr=rt(aOr),VOr=rt(iOr),YOr=rt(sOr),$Or=rt(oOr),QOr=rt(cOr),JOr=rt(uOr),ZOr=rt(lOr);function XOr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function LCe(r,e,t){XOr(r,e),e.set(r,t)}function eqr(r,e){return e.get?e.get.call(r):e.value}function xht(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function Qhe(r,e){var t=xht(r,e,"get");return eqr(r,t)}function tqr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function OCe(r,e,t){var n=xht(r,e,"set");return tqr(r,n,t),t}var Be=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),_ht=[Be.Mainnet,Be.Goerli,Be.Polygon,Be.Mumbai,Be.Fantom,Be.FantomTestnet,Be.Avalanche,Be.AvalancheFujiTestnet,Be.Optimism,Be.OptimismGoerli,Be.Arbitrum,Be.ArbitrumGoerli,Be.BinanceSmartChainMainnet,Be.BinanceSmartChainTestnet,Be.Hardhat,Be.Localhost],qCe=Yee.defaultChains;function Tht(r){r&&r.length>0?qCe=r:qCe=Yee.defaultChains}function Iht(){return qCe}var Eht="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",jg="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",Ug="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",D2="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",rqr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",nqr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",Kg={[Be.Mainnet]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:D2,twRegistry:Ug,twBYOCRegistry:Z.constants.AddressZero},[Be.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Be.Polygon]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Be.Mumbai]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Be.Avalanche]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:D2,twRegistry:Ug,twBYOCRegistry:Z.constants.AddressZero},[Be.AvalancheFujiTestnet]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Fantom]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:Ug,twBYOCRegistry:Z.constants.AddressZero},[Be.FantomTestnet]:{openzeppelinForwarder:jg,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:D2,twRegistry:Ug,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.Hardhat]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero},[Be.Localhost]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero}},FCe={[Be.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Be.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Be.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Be.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Be.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Be.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Be.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Be.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Be.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Be.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function Cht(r,e){if(r in FCe){let t=FCe[r];if(e in t)return t[e]}return null}function kee(r,e){return r===Be.Hardhat||r===Be.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Z.constants.AddressZero:Kg[r]?.[e]}function kht(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:rqr}function WCe(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:nqr}function k8e(r){let e=_ht.find(a=>a===r),t=e?Kg[e].biconomyForwarder:Z.constants.AddressZero,n=e?Kg[e].openzeppelinForwarder:Z.constants.AddressZero;return t!==Z.constants.AddressZero?[n,t]:[n]}var $ee=Z.utils.arrayify("0x80ac58cd"),Qee=Z.utils.arrayify("0xd9b67a26"),Ku="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Aee={[Be.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Be.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Be.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Be.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Be.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Be.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function Jhe(r){let e=Iht().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:Aee[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var aqr={[Be.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Be.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Be.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Be.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Be.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Be.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Be.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},kl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function wme(r){return!!(r&&r._isSigner)}function A8e(r){return!!(r&&r._isProvider)}function pi(r,e){let t,n;if(wme(r)?(t=r,r.provider&&(n=r.provider)):A8e(r)?n=r:n=Pee(r,e),e?.readonlySettings&&(n=Xhe(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var Aht=50,Pht=250,iqr={timeLimitMs:Aht,sizeLimit:Pht},UCe=class extends Z.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:iqr;super(e,t),$._defineProperty(this,"_timeLimitMs",void 0),$._defineProperty(this,"_sizeLimit",void 0),$._defineProperty(this,"_pendingBatchAggregator",void 0),$._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||Pht,this._sizeLimit=n.sizeLimit||Aht,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Z.utils.deepCopy(e),provider:this}),Z.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},PCe,SCe=new Map;async function Sht(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;PCe||(PCe=pi("ethereum")[1]);let t;SCe.has(r)?t=SCe.get(r):t=PCe.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>Sht(r)).refine(r=>!!r&&Z.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Ss=pe.z.union([pe.z.string(),pe.z.number(),pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r)),Qs=Ss.transform(r=>r.toString()),Rht=pe.z.union([pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r).toString()),P8e=pe.z.custom(r=>typeof r=="string"&&Z.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ri=pe.z.union([P8e,sqr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),Jee=pe.z.union([pe.z.date().transform(r=>Z.BigNumber.from(Math.floor(r.getTime()/1e3))),pe.z.number().transform(r=>Z.BigNumber.from(r))]),S8e=Jee.default(new Date(0)),Zee=Jee.default(new Date(Date.now()+1e3*60*60*24*365*10)),Mht=pe.z.object({gasLimit:Qs.optional(),gasPrice:Qs.optional(),maxFeePerGas:Qs.optional(),maxPriorityFeePerGas:Qs.optional(),nonce:Qs.optional(),value:Qs.optional(),blockTag:pe.z.union([pe.z.string(),pe.z.number()]).optional(),from:Ri.optional(),type:pe.z.number().optional()}).strict(),Nht=pe.z.object({rpc:pe.z.array(pe.z.string().url()),chainId:pe.z.number(),nativeCurrency:pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),slug:pe.z.string()}),HCe=pe.z.object({supportedChains:pe.z.array(Nht).default(Yee.defaultChains),thirdwebApiKey:pe.z.string().default($.DEFAULT_API_KEY),alchemyApiKey:pe.z.string().optional(),infuraApiKey:pe.z.string().optional(),readonlySettings:pe.z.object({rpcUrl:pe.z.string().url(),chainId:pe.z.number().optional()}).optional(),gasSettings:pe.z.object({maxPriceInGwei:pe.z.number().min(1,"gas price cannot be less than 1").default(300),speed:pe.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:pe.z.union([pe.z.object({openzeppelin:pe.z.object({relayerUrl:pe.z.string().url(),relayerForwarderAddress:pe.z.string().optional(),useEOAForwarder:pe.z.boolean().default(!1)}),experimentalChainlessSupport:pe.z.boolean().default(!1)}),pe.z.object({biconomy:pe.z.object({apiId:pe.z.string(),apiKey:pe.z.string(),deadlineSeconds:pe.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:pe.z.array(pe.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),Bht=pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),Dht=Bht.extend({value:Ss,displayValue:pe.z.string()}),K0=pe.z.object({merkle:pe.z.record(pe.z.string()).default({})}),Zhe=pe.z.object({address:Ri,maxClaimable:$.QuantitySchema.default(0),price:$.QuantitySchema.optional(),currencyAddress:Ri.default(Z.ethers.constants.AddressZero).optional()}),Xee=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>Zhe.parseAsync({address:e})))),pe.z.array(Zhe)]),R8e=Zhe.extend({proof:pe.z.array(pe.z.string())}),M8e=pe.z.object({merkleRoot:pe.z.string(),claims:pe.z.array(R8e)}),oqr=pe.z.object({merkleRoot:pe.z.string(),snapshotUri:pe.z.string()}),Lht=pe.z.object({name:pe.z.string().optional()}).catchall(pe.z.unknown()),ete=pe.z.object({startTime:S8e,currencyAddress:pe.z.string().default(Ku),price:$.AmountSchema.default(0),maxClaimableSupply:$.QuantitySchema,maxClaimablePerWallet:$.QuantitySchema,waitInSeconds:Qs.default(0),merkleRootHash:$.BytesLikeSchema.default(Z.utils.hexZeroPad([0],32)),snapshot:pe.z.optional(Xee).nullable(),metadata:Lht.optional()}),Oht=pe.z.array(ete),cqr=ete.partial(),N8e=ete.extend({availableSupply:$.QuantitySchema,currentMintSupply:$.QuantitySchema,currencyMetadata:Dht.default({value:Z.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Ss,waitInSeconds:Ss,startTime:Ss.transform(r=>new Date(r.toNumber()*1e3)),snapshot:Xee.optional().nullable()});function uqr(r){if(r===void 0){let e=b.Buffer.alloc(16);return tOr.v4({},e),Z.utils.hexlify(Z.utils.toUtf8Bytes(e.toString("hex")))}else return Z.utils.hexlify(r)}var xme=pe.z.object({to:Ri.refine(r=>r.toLowerCase()!==Z.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:$.AmountSchema.default(0),currencyAddress:P8e.default(Ku),mintStartTime:S8e,mintEndTime:Zee,uid:pe.z.string().optional().transform(r=>uqr(r)),primarySaleRecipient:Ri.default(Z.constants.AddressZero)}),B8e=xme.extend({quantity:$.AmountSchema}),qht=B8e.extend({mintStartTime:Ss,mintEndTime:Ss}),_me=xme.extend({metadata:$.NFTInputOrUriSchema,royaltyRecipient:pe.z.string().default(Z.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0)}),D8e=_me.extend({metadata:$.NFTInputOrUriSchema.default(""),uri:pe.z.string(),royaltyBps:Ss,mintStartTime:Ss,mintEndTime:Ss}),Fht=_me.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Qs}),Wht=Fht.extend({tokenId:Qs}),Uht=D8e.extend({tokenId:Ss,quantity:Ss}),Hht=_me.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Ss.default(1)}),jht=D8e.extend({quantity:Ss.default(1)}),zht=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Kht=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Ght=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Vht=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Yht=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Sl=pe.z.object({name:pe.z.string(),description:pe.z.string().optional(),image:$.FileOrBufferOrStringSchema.optional(),external_link:pe.z.string().optional(),app_uri:pe.z.string().optional()}),ld=Sl.extend({image:pe.z.string().optional()}).catchall(pe.z.unknown()),Zo=pe.z.object({seller_fee_basis_points:$.BasisPointsSchema.default(0),fee_recipient:Ri.default(Z.constants.AddressZero)}),Gg=pe.z.object({primary_sale_recipient:Ri}),Cp=pe.z.object({platform_fee_basis_points:$.BasisPointsSchema.default(0),platform_fee_recipient:Ri.default(Z.constants.AddressZero)}),dd=pe.z.object({trusted_forwarders:pe.z.array(Ri).default([])}),xo=pe.z.object({symbol:pe.z.string().default("")}),$ht=Sl.merge(Zo).merge(K0).merge(xo),lqr=ld.merge(Zo).merge(K0).merge(xo),dqr=$ht.merge(Cp).merge(Gg).merge(dd),L8e={deploy:dqr,output:lqr,input:$ht},Qht=Sl.merge(Zo).merge(K0).merge(xo),pqr=ld.merge(Zo).merge(K0).merge(xo),hqr=Qht.merge(Cp).merge(Gg).merge(dd),Jht={deploy:hqr,output:pqr,input:Qht},Zht=Sl,fqr=ld,mqr=Zht.merge(Cp).merge(dd),O8e={deploy:mqr,output:fqr,input:Zht},Xht=Sl.merge(Zo).merge(xo),yqr=ld.merge(Zo).merge(xo),gqr=Xht.merge(Cp).merge(dd),eft={deploy:gqr,output:yqr,input:Xht},tft=pe.z.object({address:Ri,sharesBps:$.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),bqr=tft.extend({address:Ri,sharesBps:$.BasisPointsSchema}),jCe=Sl.extend({recipients:pe.z.array(tft).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),vqr=ld.extend({recipients:pe.z.array(bqr)}),wqr=jCe.merge(jCe).merge(dd),rft={deploy:wqr,output:vqr,input:jCe},nft=Sl.merge(xo),xqr=ld.merge(xo),_qr=nft.merge(Cp).merge(Gg).merge(dd),aft={deploy:_qr,output:xqr,input:nft},ift=Sl.merge(Zo).merge(xo),Tqr=ld.merge(Zo).merge(xo),Iqr=ift.merge(Cp).merge(Gg).merge(dd),sft={deploy:Iqr,output:Tqr,input:ift},oft=Sl.merge(Zo).merge(xo),Eqr=ld.merge(Zo).merge(xo),Cqr=oft.merge(Cp).merge(Gg).merge(dd),cft={deploy:Cqr,output:Eqr,input:oft},uft=pe.z.object({voting_delay_in_blocks:pe.z.number().min(0).default(0),voting_period_in_blocks:pe.z.number().min(1).default(1),voting_token_address:Ri,voting_quorum_fraction:$.PercentSchema.default(0),proposal_token_threshold:Qs.default(1)}),kqr=uft.extend({proposal_token_threshold:Ss}),lft=Sl.merge(uft),Aqr=ld.merge(kqr),Pqr=lft.merge(dd),dft={deploy:Pqr,output:Aqr,input:lft};pe.z.object({proposalId:Ss,proposer:pe.z.string(),targets:pe.z.array(pe.z.string()),values:pe.z.array(Ss),signatures:pe.z.array(pe.z.string()),calldatas:pe.z.array(pe.z.string()),startBlock:Ss,endBlock:Ss,description:pe.z.string()});function Sqr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function Pee(r,e){if(typeof r=="string"&&Rqr(r))return Xhe(r);let t=HCe.parse(e);Tme(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=Sqr(t),a="",i;try{i=pft(r,t),a=Yee.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||$.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||$.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return Xhe(a,i)}function pft(r,e){if(Tme(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function Tme(r){return typeof r!="string"&&typeof r!="number"&&!wme(r)&&!A8e(r)}function Rqr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var Npt=new Map;function Xhe(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=Npt.get(n);if(a)return a;let i=e?new UCe(r,e):new Z.providers.JsonRpcBatchProvider(r);return Npt.set(n,i),i;case"ws":case"wss":return new Z.providers.WebSocketProvider(r,e)}}catch{}return Z.providers.getDefaultProvider(r)}var See=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},zCe=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},efe=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},KCe=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},GCe=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},VCe=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},YCe=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},$Ce=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},QCe=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},JCe=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},ZCe=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),$._defineProperty(this,"innerError",void 0),this.innerError=t}},tfe=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},XCe=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},e8e=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},t8e=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},r8e=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},n8e=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},a8e=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},aY=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},F0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},RCe=new WeakMap,MCe=new WeakMap,oY=class extends Error{constructor(e){let t=` +`);n.push(u.totalRewards),t.push({assetContract:u.contractAddress,tokenType:2,totalAmount:Rp.BigNumber.from(u.quantityPerReward).mul(Rp.BigNumber.from(u.totalRewards)),tokenId:u.tokenId})}return{contents:t,numOfRewardUnits:n}}async prepare(e,t,n){return lr.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectVrf(){if(lr.detectContractFeature(this.contractWrapper,"PackVRF"))return new zNe(this.contractWrapper.getSignerOrProvider(),this.contractWrapper.readContract.address,this.storage,this.contractWrapper.options,this.chainId)}};os._defineProperty(nee,"contractRoles",["admin","minter","asset","transfer"]);eEt.Pack=nee});var nEt=E(rEt=>{"use strict";f();d();var ro=Ms(),ys=Ro(),Jhn=XX(),Zhn=joe(),w3=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var aee=class extends Jhn.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ys.ContractWrapper(e,t,i,a);super(o,n,s),ro._defineProperty(this,"abi",void 0),ro._defineProperty(this,"owner",void 0),ro._defineProperty(this,"encoder",void 0),ro._defineProperty(this,"estimator",void 0),ro._defineProperty(this,"metadata",void 0),ro._defineProperty(this,"app",void 0),ro._defineProperty(this,"sales",void 0),ro._defineProperty(this,"platformFees",void 0),ro._defineProperty(this,"events",void 0),ro._defineProperty(this,"roles",void 0),ro._defineProperty(this,"interceptor",void 0),ro._defineProperty(this,"royalties",void 0),ro._defineProperty(this,"claimConditions",void 0),ro._defineProperty(this,"revealer",void 0),ro._defineProperty(this,"signature",void 0),ro._defineProperty(this,"checkout",void 0),ro._defineProperty(this,"createBatch",ys.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),ro._defineProperty(this,"claimTo",ys.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),ro._defineProperty(this,"claim",ys.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),ro._defineProperty(this,"burn",ys.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=ys.AbiSchema.parse(i||[]),this.metadata=new ys.ContractMetadata(this.contractWrapper,ys.DropErc721ContractSchema,this.storage),this.app=new ys.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ys.ContractRoles(this.contractWrapper,aee.contractRoles),this.royalties=new ys.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new ys.ContractPrimarySale(this.contractWrapper),this.encoder=new ys.ContractEncoder(this.contractWrapper),this.estimator=new ys.GasCostEstimator(this.contractWrapper),this.events=new ys.ContractEvents(this.contractWrapper),this.platformFees=new ys.ContractPlatformFee(this.contractWrapper),this.interceptor=new ys.ContractInterceptor(this.contractWrapper),this.claimConditions=new ys.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new ys.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new ys.DelayedReveal(this.contractWrapper,this.storage,ys.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new ys.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new ys.ContractOwner(this.contractWrapper),this.checkout=new Zhn.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=w3.BigNumber.from(e?.start||0).toNumber(),n=w3.BigNumber.from(e?.count||ro.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=w3.BigNumber.from(e?.start||0).toNumber(),n=w3.BigNumber.from(e?.count||ro.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=w3.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=w3.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ys.getRoleHash("transfer"),w3.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return ys.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};ro._defineProperty(aee,"contractRoles",["admin","minter","transfer"]);rEt.SignatureDrop=aee});var iEt=E(aEt=>{"use strict";f();d();var Qu=Ms(),Pi=Ro(),Xhn=Ia(),GNe=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function emn(r){return r&&r.__esModule?r:{default:r}}var tmn=emn(Xhn),iee=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Pi.ContractWrapper(e,t,i,a);Qu._defineProperty(this,"contractWrapper",void 0),Qu._defineProperty(this,"storage",void 0),Qu._defineProperty(this,"abi",void 0),Qu._defineProperty(this,"metadata",void 0),Qu._defineProperty(this,"app",void 0),Qu._defineProperty(this,"encoder",void 0),Qu._defineProperty(this,"estimator",void 0),Qu._defineProperty(this,"events",void 0),Qu._defineProperty(this,"roles",void 0),Qu._defineProperty(this,"interceptor",void 0),Qu._defineProperty(this,"_chainId",void 0),Qu._defineProperty(this,"withdraw",Pi.buildTransactionFunction(async c=>Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Pi.resolveAddress(c)]}))),Qu._defineProperty(this,"withdrawToken",Pi.buildTransactionFunction(async(c,u)=>Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Pi.resolveAddress(u),await Pi.resolveAddress(c)]}))),Qu._defineProperty(this,"distribute",Pi.buildTransactionFunction(async()=>Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),Qu._defineProperty(this,"distributeToken",Pi.buildTransactionFunction(async c=>Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Pi.resolveAddress(c)]}))),this._chainId=s,this.abi=Pi.AbiSchema.parse(i||[]),this.contractWrapper=o,this.storage=n,this.metadata=new Pi.ContractMetadata(this.contractWrapper,Pi.SplitsContractSchema,this.storage),this.app=new Pi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Pi.ContractRoles(this.contractWrapper,iee.contractRoles),this.encoder=new Pi.ContractEncoder(this.contractWrapper),this.estimator=new Pi.GasCostEstimator(this.contractWrapper),this.events=new Pi.ContractEvents(this.contractWrapper),this.interceptor=new Pi.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=GNe.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Pi.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Pi.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Pi.resolveAddress(t),a=await Pi.resolveAddress(e),s=await new GNe.Contract(n,tmn.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Pi.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Pi.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(GNe.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Pi.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Pi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Qu._defineProperty(iee,"contractRoles",["admin"]);aEt.Split=iee});var y5e=E(sEt=>{"use strict";f();d();var Vg=Ms(),zoe=Ro(),VNe=class{get chainId(){return this._chainId}constructor(e,t,n){Vg._defineProperty(this,"contractWrapper",void 0),Vg._defineProperty(this,"storage",void 0),Vg._defineProperty(this,"erc20",void 0),Vg._defineProperty(this,"_chainId",void 0),Vg._defineProperty(this,"transfer",zoe.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Vg._defineProperty(this,"transferFrom",zoe.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),Vg._defineProperty(this,"setAllowance",zoe.buildTransactionFunction(async(a,i)=>this.erc20.setAllowance.prepare(a,i))),Vg._defineProperty(this,"transferBatch",zoe.buildTransactionFunction(async a=>this.erc20.transferBatch.prepare(a))),this.contractWrapper=e,this.storage=t,this.erc20=new zoe.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}};sEt.StandardErc20=VNe});var cEt=E(oEt=>{"use strict";f();d();var au=Ms(),Os=Ro(),rmn=y5e(),nmn=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var see=class extends rmn.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Os.ContractWrapper(e,t,s,i);super(c,n,o),a=this,au._defineProperty(this,"abi",void 0),au._defineProperty(this,"metadata",void 0),au._defineProperty(this,"app",void 0),au._defineProperty(this,"roles",void 0),au._defineProperty(this,"encoder",void 0),au._defineProperty(this,"estimator",void 0),au._defineProperty(this,"sales",void 0),au._defineProperty(this,"platformFees",void 0),au._defineProperty(this,"events",void 0),au._defineProperty(this,"claimConditions",void 0),au._defineProperty(this,"interceptor",void 0),au._defineProperty(this,"claim",Os.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),au._defineProperty(this,"claimTo",Os.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:p})})),au._defineProperty(this,"delegateTo",Os.buildTransactionFunction(async u=>Os.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Os.resolveAddress(u)]}))),au._defineProperty(this,"burnTokens",Os.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),au._defineProperty(this,"burnFrom",Os.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=Os.AbiSchema.parse(s||[]),this.metadata=new Os.ContractMetadata(this.contractWrapper,Os.DropErc20ContractSchema,this.storage),this.app=new Os.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Os.ContractRoles(this.contractWrapper,see.contractRoles),this.encoder=new Os.ContractEncoder(this.contractWrapper),this.estimator=new Os.GasCostEstimator(this.contractWrapper),this.events=new Os.ContractEvents(this.contractWrapper),this.sales=new Os.ContractPrimarySale(this.contractWrapper),this.platformFees=new Os.ContractPlatformFee(this.contractWrapper),this.interceptor=new Os.ContractInterceptor(this.contractWrapper),this.claimConditions=new Os.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await Os.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Os.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Os.getRoleHash("transfer"),nmn.constants.AddressZero)}async prepare(e,t,n){return Os.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};au._defineProperty(see,"contractRoles",["admin","transfer"]);oEt.TokenDrop=see});var YNe=E(lEt=>{"use strict";f();d();var uEt=Ms(),amn=Ro(),b5e=ke(),$Ne=class{constructor(e,t){uEt._defineProperty(this,"events",void 0),uEt._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==b5e.constants.AddressZero&&(i in n||(n[i]=b5e.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==b5e.constants.AddressZero&&(s in n||(n[s]=b5e.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await amn.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};lEt.TokenERC20History=$Ne});var dEt=E(fEt=>{"use strict";f();d();var Hc=Ms(),Fs=Ro(),imn=YNe(),smn=y5e(),omn=ke();Fr();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();var oee=class extends smn.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Fs.ContractWrapper(e,t,i,a);super(o,n,s),Hc._defineProperty(this,"abi",void 0),Hc._defineProperty(this,"metadata",void 0),Hc._defineProperty(this,"app",void 0),Hc._defineProperty(this,"roles",void 0),Hc._defineProperty(this,"encoder",void 0),Hc._defineProperty(this,"estimator",void 0),Hc._defineProperty(this,"history",void 0),Hc._defineProperty(this,"events",void 0),Hc._defineProperty(this,"platformFees",void 0),Hc._defineProperty(this,"sales",void 0),Hc._defineProperty(this,"signature",void 0),Hc._defineProperty(this,"interceptor",void 0),Hc._defineProperty(this,"mint",Fs.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),Hc._defineProperty(this,"mintTo",Fs.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),Hc._defineProperty(this,"mintBatchTo",Fs.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),Hc._defineProperty(this,"delegateTo",Fs.buildTransactionFunction(async c=>Fs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Fs.resolveAddress(c)]}))),Hc._defineProperty(this,"burn",Fs.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),Hc._defineProperty(this,"burnFrom",Fs.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=Fs.AbiSchema.parse(i||[]),this.metadata=new Fs.ContractMetadata(this.contractWrapper,Fs.TokenErc20ContractSchema,this.storage),this.app=new Fs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Fs.ContractRoles(this.contractWrapper,oee.contractRoles),this.sales=new Fs.ContractPrimarySale(this.contractWrapper),this.events=new Fs.ContractEvents(this.contractWrapper),this.history=new imn.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Fs.ContractEncoder(this.contractWrapper),this.estimator=new Fs.GasCostEstimator(this.contractWrapper),this.platformFees=new Fs.ContractPlatformFee(this.contractWrapper),this.interceptor=new Fs.ContractInterceptor(this.contractWrapper),this.signature=new Fs.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Fs.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Fs.getRoleHash("transfer"),omn.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Fs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};Hc._defineProperty(oee,"contractRoles",["admin","minter","transfer"]);fEt.Token=oee});var QNe=E(pEt=>{"use strict";f();d();var cmn=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});pEt.VoteType=cmn});var mEt=E(hEt=>{"use strict";f();d();var ld=Ms(),xc=Ro(),umn=Ia(),Koe=ke(),JNe=QNe();Fr();fn();va();wa();xa();_a();Ta();Ea();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();function lmn(r){return r&&r.__esModule?r:{default:r}}var fmn=lmn(umn),ZNe=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new xc.ContractWrapper(e,t,s,i);ld._defineProperty(this,"contractWrapper",void 0),ld._defineProperty(this,"storage",void 0),ld._defineProperty(this,"abi",void 0),ld._defineProperty(this,"metadata",void 0),ld._defineProperty(this,"app",void 0),ld._defineProperty(this,"encoder",void 0),ld._defineProperty(this,"estimator",void 0),ld._defineProperty(this,"events",void 0),ld._defineProperty(this,"interceptor",void 0),ld._defineProperty(this,"_chainId",void 0),ld._defineProperty(this,"propose",xc.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let p=l.map(y=>y.toAddress),h=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return xc.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[p,h,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),ld._defineProperty(this,"vote",xc.buildTransactionFunction(async function(u,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),xc.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,p]})})),ld._defineProperty(this,"execute",xc.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),p=l.executions.map(C=>C.toAddress),h=l.executions.map(C=>C.nativeTokenValue),m=l.executions.map(C=>C.transactionData),y=Koe.ethers.utils.id(l.description);return xc.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[p,h,m,y]})})),this._chainId=o,this.abi=xc.AbiSchema.parse(s||[]),this.contractWrapper=c,this.storage=n,this.metadata=new xc.ContractMetadata(this.contractWrapper,xc.VoteContractSchema,this.storage),this.app=new xc.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new xc.ContractEncoder(this.contractWrapper),this.estimator=new xc.GasCostEstimator(this.contractWrapper),this.events=new xc.ContractEvents(this.contractWrapper),this.interceptor=new xc.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(Koe.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:JNe.VoteType.Against,label:"Against",count:t.againstVotes},{type:JNe.VoteType.For,label:"For",count:t.forVotes},{type:JNe.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await xc.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=Koe.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:Koe.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new Koe.Contract(await xc.resolveAddress(e),fmn.default,this.contractWrapper.getProvider());return await xc.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await xc.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return xc.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}};hEt.Vote=ZNe});var Ro=E(ne=>{"use strict";f();d();var dmn=va(),Z=ke(),pmn=wa(),hmn=xa(),mmn=_a(),ymn=Ta(),bmn=Ea(),gmn=Ia(),vmn=Ca(),wmn=Aa(),xmn=ka(),_mn=Sa(),Tmn=Pa(),Emn=Ra(),Imn=Ma(),Cmn=Ba(),Amn=na(),kmn=Da(),Smn=Na(),Pmn=Oa(),Rmn=Fa(),Mmn=La(),Bmn=qa(),Dmn=Wa(),Nmn=Ua(),Omn=Ha(),Fmn=ja(),Lmn=za(),qmn=Ka(),Wmn=Ga(),Umn=aa(),Hmn=Va(),jmn=$a(),zmn=Ya(),Kmn=Qa(),Gmn=Ja(),Vmn=Za(),$mn=Xa(),Ymn=ei(),Qmn=ti(),Jmn=ri(),Zmn=ni(),Xmn=ai(),e1n=ii(),t1n=si(),r1n=oi(),n1n=ci(),Q=Ms(),he=fn(),vce=Ct(),a1n=ui(),i1n=dt(),s1n=Pn(),JEt=Xe(),o1n=li(),Jg=la(),c1n=On(),u1n=fi(),l1n=dt(),XNe=di(),f1n=pi(),d1n=Cn(),p1n=sa(),h1n=hi(),m1n=mi(),y1n=yi(),b1n=bi(),g1n=gi(),v1n=vi(),yEt=oa(),w1n=wi(),x1n=xi();function Wt(r){return r&&r.__esModule?r:{default:r}}function C0(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var eFe=Wt(dmn),_1n=Wt(pmn),ZEt=Wt(hmn),T1n=Wt(mmn),XEt=Wt(ymn),e9t=Wt(bmn),Ju=Wt(gmn),E1n=Wt(vmn),t9t=Wt(wmn),tFe=Wt(xmn),I1n=Wt(_mn),C1n=Wt(Tmn),A1n=Wt(Emn),r9t=Wt(Imn),k1n=Wt(Cmn),su=Wt(Amn),S1n=Wt(kmn),P1n=Wt(Smn),zve=Wt(Pmn),n9t=Wt(Rmn),R1n=Wt(Mmn),M1n=Wt(Bmn),B1n=Wt(Dmn),D1n=Wt(Nmn),N1n=Wt(Omn),O1n=Wt(Fmn),a9t=Wt(Lmn),F1n=Wt(qmn),L1n=Wt(Wmn),Il=Wt(Umn),q1n=Wt(Hmn),i9t=Wt(jmn),W1n=Wt(zmn),U1n=Wt(Kmn),H1n=Wt(Gmn),j1n=Wt(Vmn),z1n=Wt($mn),K1n=Wt(Ymn),G1n=Wt(Qmn),V1n=Wt(Jmn),$1n=Wt(Zmn),Y1n=Wt(Xmn),Q1n=Wt(e1n),J1n=Wt(t1n),Z1n=Wt(r1n),X1n=Wt(n1n),eyn=Wt(a1n),Db=Wt(s1n),cOe=Wt(JEt),s9t=Wt(o1n),Rt=Wt(c1n),tyn=Wt(u1n),o9t=Wt(f1n),Kve=Wt(p1n),ryn=Wt(h1n),nyn=Wt(m1n),ayn=Wt(y1n),iyn=Wt(b1n),syn=Wt(g1n),oyn=Wt(v1n),cyn=Wt(w1n),uyn=Wt(x1n);function lyn(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function uOe(r,e,t){lyn(r,e),e.set(r,t)}function fyn(r,e){return e.get?e.get.call(r):e.value}function c9t(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function pee(r,e){var t=c9t(r,e,"get");return fyn(r,t)}function dyn(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function lOe(r,e,t){var n=c9t(r,e,"set");return dyn(r,n,t),t}var Ze=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),Gve=[Ze.Mainnet,Ze.Goerli,Ze.Polygon,Ze.Mumbai,Ze.Fantom,Ze.FantomTestnet,Ze.Avalanche,Ze.AvalancheFujiTestnet,Ze.Optimism,Ze.OptimismGoerli,Ze.Arbitrum,Ze.ArbitrumGoerli,Ze.BinanceSmartChainMainnet,Ze.BinanceSmartChainTestnet,Ze.Hardhat,Ze.Localhost],fOe=vce.defaultChains;function u9t(r){r&&r.length>0?fOe=r:fOe=vce.defaultChains}function l9t(){return fOe}var f9t="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",Qg="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",$g="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",x3="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",pyn="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",hyn="0xcdAD8FA86e18538aC207872E8ff3536501431B73",Zg={[Ze.Mainnet]:{openzeppelinForwarder:Qg,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:x3,twRegistry:$g,twBYOCRegistry:Z.constants.AddressZero},[Ze.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:x3,twRegistry:$g,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Ze.Polygon]:{openzeppelinForwarder:Qg,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:x3,twRegistry:$g,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Ze.Mumbai]:{openzeppelinForwarder:Qg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:x3,twRegistry:$g,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Ze.Avalanche]:{openzeppelinForwarder:Qg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:x3,twRegistry:$g,twBYOCRegistry:Z.constants.AddressZero},[Ze.AvalancheFujiTestnet]:{openzeppelinForwarder:Qg,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:x3,twRegistry:$g,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ze.Fantom]:{openzeppelinForwarder:Qg,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:$g,twBYOCRegistry:Z.constants.AddressZero},[Ze.FantomTestnet]:{openzeppelinForwarder:Qg,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:x3,twRegistry:$g,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ze.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Ze.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Ze.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Ze.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Ze.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ze.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ze.Hardhat]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero},[Ze.Localhost]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero}},dOe={[Ze.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Ze.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Ze.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Ze.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Ze.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Ze.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ze.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Ze.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ze.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ze.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Ze.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Ze.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ze.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Ze.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ze.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ze.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function d9t(r,e){if(r in dOe){let t=dOe[r];if(e in t)return t[e]}return null}function Joe(r,e){return r===Ze.Hardhat||r===Ze.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Z.constants.AddressZero:Zg[r]?.[e]}function p9t(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:pyn}function pOe(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:hyn}function Vve(r){let e=Gve.find(a=>a===r),t=e?Zg[e].biconomyForwarder:Z.constants.AddressZero;return[e?Zg[e].openzeppelinForwarder:Z.constants.AddressZero,t].filter(a=>a!==Z.constants.AddressZero)}var wce=Z.utils.arrayify("0x80ac58cd"),xce=Z.utils.arrayify("0xd9b67a26"),El="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",Zoe={[Ze.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Ze.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Ze.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Ze.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Ze.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ze.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ze.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Ze.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Ze.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Ze.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Ze.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ze.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ze.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Ze.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Ze.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Ze.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[84531]:{name:"Base Goerli Testnet",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}}};function rFe(r){let e=l9t().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:Zoe[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var myn={[Ze.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Ze.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ze.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Ze.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Ze.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ze.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Ze.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Ze.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Ze.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},ff=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function $ve(r){return!!(r&&r._isSigner)}function nFe(r){return!!(r&&r._isProvider)}function bs(r,e){let t,n;if($ve(r)?(t=r,r.provider&&(n=r.provider)):nFe(r)?n=r:n=z1(r,e),e?.readonlySettings&&(n=T5e(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var h9t=50,m9t=250,yyn={timeLimitMs:h9t,sizeLimit:m9t},x5e=class extends Z.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yyn;super(e,t),Q._defineProperty(this,"_timeLimitMs",void 0),Q._defineProperty(this,"_sizeLimit",void 0),Q._defineProperty(this,"_pendingBatchAggregator",void 0),Q._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||m9t,this._sizeLimit=n.sizeLimit||h9t,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Z.utils.deepCopy(e),provider:this}),Z.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.push(a),this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},eOe,tOe=new Map;async function y9t(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;eOe||(eOe=bs("ethereum")[1]);let t;tOe.has(r)?t=tOe.get(r):t=eOe.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>y9t(r)).refine(r=>!!r&&Z.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),ec=he.z.union([he.z.string(),he.z.number(),he.z.bigint(),he.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r)),_c=ec.transform(r=>r.toString()),b9t=he.z.union([he.z.bigint(),he.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r).toString()),aFe=he.z.custom(r=>typeof r=="string"&&Z.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ls=he.z.union([aFe,byn],{invalid_type_error:"Provided value was not a valid address or ENS name"}),_ce=he.z.union([he.z.date().transform(r=>Z.BigNumber.from(Math.floor(r.getTime()/1e3))),he.z.number().transform(r=>Z.BigNumber.from(r))]),iFe=_ce.default(new Date(0)),Tce=_ce.default(new Date(Date.now()+1e3*60*60*24*365*10)),g9t=he.z.object({gasLimit:_c.optional(),gasPrice:_c.optional(),maxFeePerGas:_c.optional(),maxPriorityFeePerGas:_c.optional(),nonce:_c.optional(),value:_c.optional(),blockTag:he.z.union([he.z.string(),he.z.number()]).optional(),from:Ls.optional(),type:he.z.number().optional()}).strict(),v9t=he.z.object({rpc:he.z.array(he.z.string().url()),chainId:he.z.number(),nativeCurrency:he.z.object({name:he.z.string(),symbol:he.z.string(),decimals:he.z.number()}),slug:he.z.string()}),hOe=he.z.object({supportedChains:he.z.array(v9t).default(vce.defaultChains),thirdwebApiKey:he.z.string().default(Q.DEFAULT_API_KEY),alchemyApiKey:he.z.string().optional(),infuraApiKey:he.z.string().optional(),readonlySettings:he.z.object({rpcUrl:he.z.string().url(),chainId:he.z.number().optional()}).optional(),gasSettings:he.z.object({maxPriceInGwei:he.z.number().min(1,"gas price cannot be less than 1").default(300),speed:he.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:he.z.union([he.z.object({openzeppelin:he.z.object({relayerUrl:he.z.string().url(),relayerForwarderAddress:he.z.string().optional(),useEOAForwarder:he.z.boolean().default(!1),domainName:he.z.string().default("GSNv2 Forwarder"),domainVersion:he.z.string().default("0.0.1")}),experimentalChainlessSupport:he.z.boolean().default(!1)}),he.z.object({biconomy:he.z.object({apiId:he.z.string(),apiKey:he.z.string(),deadlineSeconds:he.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:he.z.array(he.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),w9t=he.z.object({name:he.z.string(),symbol:he.z.string(),decimals:he.z.number()}),x9t=w9t.extend({value:ec,displayValue:he.z.string()}),Wb=he.z.object({merkle:he.z.record(he.z.string()).default({})}),_5e=he.z.object({address:Ls,maxClaimable:Q.QuantitySchema.default(0),price:Q.QuantitySchema.optional(),currencyAddress:Ls.default(Z.ethers.constants.AddressZero).optional()}),Ece=he.z.union([he.z.array(he.z.string()).transform(async r=>await Promise.all(r.map(e=>_5e.parseAsync({address:e})))),he.z.array(_5e)]),sFe=_5e.extend({proof:he.z.array(he.z.string())}),oFe=he.z.object({merkleRoot:he.z.string(),claims:he.z.array(sFe)}),gyn=he.z.object({merkleRoot:he.z.string(),snapshotUri:he.z.string()}),_9t=he.z.object({name:he.z.string().optional()}).catchall(he.z.unknown()),Ice=he.z.object({startTime:iFe,currencyAddress:he.z.string().default(El),price:Q.AmountSchema.default(0),maxClaimableSupply:Q.QuantitySchema,maxClaimablePerWallet:Q.QuantitySchema,waitInSeconds:_c.default(0),merkleRootHash:Q.BytesLikeSchema.default(Z.utils.hexZeroPad([0],32)),snapshot:he.z.optional(Ece).nullable(),metadata:_9t.optional()}),T9t=he.z.array(Ice),vyn=Ice.partial(),cFe=Ice.extend({availableSupply:Q.QuantitySchema,currentMintSupply:Q.QuantitySchema,currencyMetadata:x9t.default({value:Z.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:ec,waitInSeconds:ec,startTime:ec.transform(r=>new Date(r.toNumber()*1e3)),snapshot:Ece.optional().nullable()});function wyn(r){if(r===void 0){let e=v.Buffer.alloc(16);return d1n.v4({},e),Z.utils.hexlify(Z.utils.toUtf8Bytes(e.toString("hex")))}else return Z.utils.hexlify(r)}var Yve=he.z.object({to:Ls.refine(r=>r.toLowerCase()!==Z.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:Q.AmountSchema.default(0),currencyAddress:aFe.default(El),mintStartTime:iFe,mintEndTime:Tce,uid:he.z.string().optional().transform(r=>wyn(r)),primarySaleRecipient:Ls.default(Z.constants.AddressZero)}),uFe=Yve.extend({quantity:Q.AmountSchema}),E9t=uFe.extend({mintStartTime:ec,mintEndTime:ec}),Qve=Yve.extend({metadata:Q.NFTInputOrUriSchema,royaltyRecipient:he.z.string().default(Z.constants.AddressZero),royaltyBps:Q.BasisPointsSchema.default(0)}),lFe=Qve.extend({metadata:Q.NFTInputOrUriSchema.default(""),uri:he.z.string(),royaltyBps:ec,mintStartTime:ec,mintEndTime:ec}),I9t=Qve.extend({metadata:Q.NFTInputOrUriSchema.default(""),quantity:_c}),C9t=I9t.extend({tokenId:_c}),A9t=lFe.extend({tokenId:ec,quantity:ec}),k9t=Qve.extend({metadata:Q.NFTInputOrUriSchema.default(""),quantity:ec.default(1)}),S9t=lFe.extend({quantity:ec.default(1)}),P9t=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],R9t=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],M9t=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],B9t=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],D9t=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],hf=he.z.object({name:he.z.string(),description:he.z.string().optional(),image:Q.FileOrBufferOrStringSchema.optional(),external_link:he.z.string().optional(),app_uri:he.z.string().optional()}),pd=hf.extend({image:he.z.string().optional()}).catchall(he.z.unknown()),I0=he.z.object({seller_fee_basis_points:Q.BasisPointsSchema.default(0),fee_recipient:Ls.default(Z.constants.AddressZero)}),t6=he.z.object({primary_sale_recipient:Ls}),Bp=he.z.object({platform_fee_basis_points:Q.BasisPointsSchema.default(0),platform_fee_recipient:Ls.default(Z.constants.AddressZero)}),hd=he.z.object({trusted_forwarders:he.z.array(Ls).default([])}),Kc=he.z.object({symbol:he.z.string().default("")}),N9t=hf.merge(I0).merge(Wb).merge(Kc),xyn=pd.merge(I0).merge(Wb).merge(Kc),_yn=N9t.merge(Bp).merge(t6).merge(hd),fFe={deploy:_yn,output:xyn,input:N9t},O9t=hf.merge(I0).merge(Wb).merge(Kc),Tyn=pd.merge(I0).merge(Wb).merge(Kc),Eyn=O9t.merge(Bp).merge(t6).merge(hd),F9t={deploy:Eyn,output:Tyn,input:O9t},L9t=hf,Iyn=pd,Cyn=L9t.merge(Bp).merge(hd),dFe={deploy:Cyn,output:Iyn,input:L9t},q9t=hf.merge(I0).merge(Kc),Ayn=pd.merge(I0).merge(Kc),kyn=q9t.merge(Bp).merge(hd),W9t={deploy:kyn,output:Ayn,input:q9t},U9t=he.z.object({address:Ls,sharesBps:Q.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),Syn=U9t.extend({address:Ls,sharesBps:Q.BasisPointsSchema}),mOe=hf.extend({recipients:he.z.array(U9t).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:he.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:he.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),Pyn=pd.extend({recipients:he.z.array(Syn)}),Ryn=mOe.merge(mOe).merge(hd),H9t={deploy:Ryn,output:Pyn,input:mOe},j9t=hf.merge(Kc),Myn=pd.merge(Kc),Byn=j9t.merge(Bp).merge(t6).merge(hd),z9t={deploy:Byn,output:Myn,input:j9t},K9t=hf.merge(I0).merge(Kc),Dyn=pd.merge(I0).merge(Kc),Nyn=K9t.merge(Bp).merge(t6).merge(hd),G9t={deploy:Nyn,output:Dyn,input:K9t},V9t=hf.merge(I0).merge(Kc),Oyn=pd.merge(I0).merge(Kc),Fyn=V9t.merge(Bp).merge(t6).merge(hd),$9t={deploy:Fyn,output:Oyn,input:V9t},Y9t=he.z.object({voting_delay_in_blocks:he.z.number().min(0).default(0),voting_period_in_blocks:he.z.number().min(1).default(1),voting_token_address:Ls,voting_quorum_fraction:Q.PercentSchema.default(0),proposal_token_threshold:_c.default(1)}),Lyn=Y9t.extend({proposal_token_threshold:ec}),Q9t=hf.merge(Y9t),qyn=pd.merge(Lyn),Wyn=Q9t.merge(hd),J9t={deploy:Wyn,output:qyn,input:Q9t};he.z.object({proposalId:ec,proposer:he.z.string(),targets:he.z.array(he.z.string()),values:he.z.array(ec),signatures:he.z.array(he.z.string()),calldatas:he.z.array(he.z.string()),startBlock:ec,endBlock:ec,description:he.z.string()});function Uyn(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function z1(r,e){if(typeof r=="string"&&Hyn(r))return T5e(r);let t=hOe.parse(e);Jve(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=Uyn(t),a="",i;try{i=Z9t(r,t),a=vce.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||Q.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||Q.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return T5e(a,i)}function Z9t(r,e){if(Jve(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function Jve(r){return typeof r!="string"&&typeof r!="number"&&!$ve(r)&&!nFe(r)}function Hyn(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var bEt=new Map;function T5e(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=bEt.get(n);if(a)return a;let i=e?new x5e(r,e):new Z.providers.JsonRpcBatchProvider(r);return bEt.set(n,i),i;case"ws":case"wss":return new Z.providers.WebSocketProvider(r,e)}}catch{}return Z.providers.getDefaultProvider(r)}var Xoe=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},yOe=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},E5e=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},bOe=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},gOe=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},vOe=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},wOe=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},xOe=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},_Oe=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},TOe=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},EOe=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),Q._defineProperty(this,"innerError",void 0),this.innerError=t}},I5e=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},IOe=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},COe=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},AOe=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},kOe=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},SOe=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},POe=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},mee=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},Nb=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},rOe=new WeakMap,nOe=new WeakMap,gee=class extends Error{constructor(e){let t=` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 @@ -196,7 +196,7 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=Hg("from",e.from),e.to&&(t+=Hg("to",e.contractName?`${e.to} (${e.contractName})`:e.to)),t+=Hg("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=Hg("rpc",n.hostname)}catch{}if(e.hash&&(t+=Hg("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=Hg("value",`${Z.ethers.utils.formatEther(e.value)} ${Aee[e.network.chainId]?.symbol||""}`)),t+=Hg("data",`${e.data}`),e.method&&(t+=Hg("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` +`,t+=Yg("from",e.from),e.to&&(t+=Yg("to",e.contractName?`${e.to} (${e.contractName})`:e.to)),t+=Yg("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=Yg("rpc",n.hostname)}catch{}if(e.hash&&(t+=Yg("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=Yg("value",`${Z.ethers.utils.formatEther(e.value)} ${Zoe[e.network.chainId]?.symbol||""}`)),t+=Yg("data",`${e.data}`),e.method&&(t+=Yg("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` `).map((o,c)=>`${c+1} ${o}`),i=a.findIndex(o=>o.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` @@ -216,72 +216,72 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres `,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` -`,super(t),LCe(this,RCe,{writable:!0,value:void 0}),LCe(this,MCe,{writable:!0,value:void 0}),OCe(this,RCe,e.reason),OCe(this,MCe,e)}get reason(){return Qhe(this,RCe)}get info(){return Qhe(this,MCe)}};function Ime(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),Bpt(/.*?"message":"([^"\\]*).*?/,e)||Bpt(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function Hg(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` +`,super(t),uOe(this,rOe,{writable:!0,value:void 0}),uOe(this,nOe,{writable:!0,value:void 0}),lOe(this,rOe,e.reason),lOe(this,nOe,e)}get reason(){return pee(this,rOe)}get info(){return pee(this,nOe)}};function Zve(r){if(r.reason&&!r.reason.includes("cannot estimate gas"))return r.reason;if(r.error)return r.error;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),gEt(/.*?"message":"([^"\\]*).*?/,e)||gEt(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function Yg(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` `)?e=` `+e.split(` `).join(` `):e=`${t}${e}`,` -${r}:${e}`}function Bpt(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function Ree(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var hft=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],fft=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],mft=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],eY={},Dpt={};async function rfe(r,e,t){let n=t.join("|"),a=Dpt[n],i=Date.now()-a>=2e3;if(!(n in eY)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?eY[n]=Z.BigNumber.from(o[0]):eY[n]=Z.BigNumber.from(o),Dpt[n]=Date.now()}let s=eY[n];return eY[n]=Z.BigNumber.from(eY[n]).add(1),s}function Mqr(r){switch(r){case Be.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Be.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var Nqr=Z.ethers.utils.parseUnits("31","gwei"),Bqr=Z.ethers.utils.parseUnits("1","gwei");function Dqr(r){switch(r){case Be.Polygon:return Nqr;case Be.Mumbai:return Bqr}}async function yft(r){let e=Mqr(r);try{let n=(await(await Cee.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Z.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return Dqr(r)}async function Mee(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Z.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Z.utils.joinSignature(Z.utils.splitSignature(s))}}var Lqr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],Oqr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],qqr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function Fqr(r,e){let t=new Z.Contract(e,qqr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function Wqr(r,e){let t=new Z.Contract(e,Oqr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function Uqr(r,e){return new Z.Contract(e,Lqr,r).name()}async function Hqr(r,e){let t=await Wqr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Z.ethers.utils.hexZeroPad(Z.BigNumber.from(e.chainId).toHexString(),32)};return Z.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function gft(r,e,t,n,a,i,s){let o=await Hqr(r,{name:await Uqr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await Fqr(r,e)).toString(),i=i||Z.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await Mee(r,o,u,c);return{message:c,signature:l}}var q8e=()=>typeof window<"u",bft=()=>!q8e();function jqr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),$._defineProperty(this,"writeContract",void 0),$._defineProperty(this,"readContract",void 0),$._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Z.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),OCe(this,Ghe,new zg.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(q8e())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.ethers.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await yft(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Z.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Z.ethers.utils.parseUnits(n.toString(),"gwei"),o=Z.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Z.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Z.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(kl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=n?await Mht.parseAsync(n):void 0,i=dY(Qi.parse(this.abi)).filter(u=>u.name===e);if(!i.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let s=i.find(u=>u.name===e&&u.inputs.length===t.length);if(!s)throw new Error(`Function "${e}" requires ${i[0].inputs.length} arguments, but ${t.length} were provided. -Expected function signature: ${i[0].signature}`);let o=`${e}(${s.inputs.map(u=>u.type).join()})`,c=o in this.readContract.functions?o:e;return s.stateMutability==="view"||s.stateMutability==="pure"?this.readContract[c](...t):{receipt:await this.sendTransaction(c,t,a)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>Z.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=Z.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` +${r}:${e}`}function gEt(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function ece(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var X9t=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],e7t=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],t7t=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],cee={},vEt={};async function C5e(r,e,t){let n=t.join("|"),a=vEt[n],i=Date.now()-a>=2e3;if(!(n in cee)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?cee[n]=Z.BigNumber.from(o[0]):cee[n]=Z.BigNumber.from(o),vEt[n]=Date.now()}let s=cee[n];return cee[n]=Z.BigNumber.from(cee[n]).add(1),s}function jyn(r){switch(r){case Ze.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Ze.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var zyn=Z.ethers.utils.parseUnits("31","gwei"),Kyn=Z.ethers.utils.parseUnits("1","gwei");function Gyn(r){switch(r){case Ze.Polygon:return zyn;case Ze.Mumbai:return Kyn}}async function r7t(r){let e=jyn(r);try{let n=(await(await Db.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Z.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return Gyn(r)}async function tce(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Z.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Z.utils.joinSignature(Z.utils.splitSignature(s))}}var Vyn=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],$yn=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],Yyn=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function Qyn(r,e){let t=new Z.Contract(e,Yyn,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function Jyn(r,e){let t=new Z.Contract(e,$yn,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function Zyn(r,e){return new Z.Contract(e,Vyn,r).name()}async function Xyn(r,e){let t=await Jyn(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Z.ethers.utils.hexZeroPad(Z.BigNumber.from(e.chainId).toHexString(),32)};return Z.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function n7t(r,e,t,n,a,i,s){let o=await Xyn(r,{name:await Zyn(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await Qyn(r,e)).toString(),i=i||Z.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await tce(r,o,u,c);return{message:c,signature:l}}var pFe=()=>typeof window<"u",a7t=()=>!pFe();function ebn(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),Q._defineProperty(this,"writeContract",void 0),Q._defineProperty(this,"readContract",void 0),Q._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Z.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),lOe(this,uee,new Jg.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(pFe())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.ethers.utils.parseUnits("1","gwei"),s;n===Ze.Mumbai||n===Ze.Polygon?s=await r7t(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Z.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Z.ethers.utils.parseUnits(n.toString(),"gwei"),o=Z.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Z.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Z.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(ff.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=n?await g9t.parseAsync(n):void 0,i=_ee(qs.parse(this.abi)).filter(u=>u.name===e);if(!i.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let s=i.find(u=>u.name===e&&u.inputs.length===t.length);if(!s)throw new Error(`Function "${e}" requires ${i[0].inputs.length} arguments, but ${t.length} were provided. +Expected function signature: ${i[0].signature}`);let o=`${e}(${s.inputs.map(u=>u.type).join()})`,c=o in this.readContract.functions?o:e;return s.stateMutability==="view"||s.stateMutability==="pure"?this.readContract[c](...t):{receipt:await this.sendTransaction(c,t,a)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>Z.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=Z.BigNumber.from(a.value||0),p=i.connection?.url,h=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` `+m.map(W=>" "+W.split(` `).join(` `)).join(`, `)+` -`,I=`${f.name}(${y})`,C=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,R=Ime(e),L,F;try{let W=await z0(this.readContract.address,this.getProvider(),Qhe(this,Ghe));W.name&&(F=W.name),W.metadata.sources&&(L=await Ame(W,Qhe(this,Ghe)))}catch{}return new oY({reason:R,from:o,to:c,method:I,data:u,network:s,rpcUrl:h,value:l,hash:C,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();Tt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Z.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Z.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Z.BigNumber.from(5e5)),n.gasLimit&&Z.BigNumber.from(n.gasLimit).gt(l)&&(l=Z.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(kl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await Mee(e,t,n,a);return this.emit(kl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){Tt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();Tt.default(t&&n,"signer and provider must be set");let a=new Z.ethers.Contract(kee(e.chainId,"biconomyForwarder"),mft,n),i=0,s=await rfe(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Z.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Z.ethers.utils.arrayify(Z.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Z.ethers.utils.keccak256(o.data)]));this.emit(kl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(kl.Signature,{status:"completed",message:c,signature:u});let l=await Cee.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){Tt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();Tt.default(t,"provider is not set"),Tt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?Kg[e.chainId].openzeppelinForwarderEOA:Kg[e.chainId].openzeppelinForwarder),i=new Z.Contract(a,vht.default,n),s=await rfe(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:fft},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data,chainid:Z.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:hft},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(kl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],I=e.functionArgs[1],{message:C,signature:R}=await gft(t,this.writeContract.address,e.from,y,I),{r:L,s:F,v:W}=Z.ethers.utils.splitSignature(R);u={to:this.readContract.address,owner:C.owner,spender:C.spender,value:Z.BigNumber.from(C.value).toString(),nonce:Z.BigNumber.from(C.nonce).toString(),deadline:Z.BigNumber.from(C.deadline).toString(),r:L,s:F,v:W},l=R}else{let{signature:y}=await Mee(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(kl.Signature,{status:"completed",message:u,signature:l});let m=await Cee.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function jh(r){return r.toLowerCase()===Ku||r.toLowerCase()===Z.constants.AddressZero}function nfe(r){return jh(r)?Ku:r}async function Cc(r,e,t){let n=await gY(r,t);return Z.utils.parseUnits($.AmountSchema.parse(e),n.decimals)}async function gY(r,e){if(jh(e)){let t=await r.getNetwork(),n=Jhe(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Z.Contract(e,zOr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function Tp(r,e,t){let n=await gY(r,e);return{...n,value:Z.BigNumber.from(t),displayValue:Z.utils.formatUnits(t,n.decimals)}}async function W0(r,e,t,n){if(jh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Rs(a||i,t,xu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function F8e(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Rs(i||s,e,xu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Z.BigNumber.from(t).mul(Z.BigNumber.from(n)).div(Z.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function zqr(r,e,t){let n=r.getProvider(),a=new Rs(n,e,xu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function Kqr(r,e){let t=await r.readContract.decimals();return Z.utils.parseUnits($.AmountSchema.parse(e),t)}function Gqr(r){return Z.utils.formatEther(r)}function Vqr(r){return Z.utils.parseEther($.AmountSchema.parse(r))}function Yqr(r,e){return Z.utils.parseUnits($.AmountSchema.parse(r),e)}function $qr(r,e){return Z.utils.formatUnits(r,e)}async function vft(r,e,t,n,a,i,s,o,c){let u=lm(t.maxClaimablePerWallet,a),l=[Z.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Z.constants.AddressZero)){let C=await Eme(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(C)l=C.proof,u=C.maxClaimable==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(C.maxClaimable,a),h=C.price===void 0||C.price==="unlimited"?Z.ethers.constants.MaxUint256:await Cc(i.getProvider(),C.price,C.currencyAddress||Z.ethers.constants.AddressZero),f=C.currencyAddress||Z.ethers.constants.AddressZero;else if(c===j2.V1)throw new Error("No claim found for this address")}}catch(C){if(C?.message==="No claim found for this address")throw C;console.warn("failed to check claim condition merkle root hash, continuing anyways",C)}let m=await i.getCallOverrides()||{},y=h.toString()!==Z.ethers.constants.MaxUint256.toString()?h:t.price,I=f!==Z.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(jh(I)?m.value=Z.BigNumber.from(y).mul(e).div(Z.ethers.utils.parseUnits("1",a)):o&&await F8e(i,I,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:I,priceInProof:h,currencyAddressInProof:f}}async function Qqr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await Cl.fromUri(n,t))?.getAllEntries()||null;{let i=await M8e.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function Eme(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await Cl.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await M8e.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function wft(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Z.ethers.utils.formatUnits(a,n),s=await ete.parseAsync({...t[r],price:i,...e}),o=await N8e.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Z.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function Jqr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await Tft(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Z.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function Zqr(r,e){let t=Z.BigNumber.from(r),n=Z.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function xft(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await Jqr(r,e,t,n,a),o=await Oht.parseAsync(i),c=(await Promise.all(o.map(u=>Xqr(u,e,t,n)))).sort((u,l)=>Zqr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function Xqr(r,e,t,n){let a=r.currencyAddress===Z.constants.AddressZero?Ku:r.currencyAddress,i=lm(r.maxClaimableSupply,e),s=lm(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await Cc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function afe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function ife(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function sfe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function ofe(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function cfe(r,e,t,n,a,i){let s=await Tp(t,r.currency,r.pricePerToken),o=xee(r.maxClaimableSupply,e),c=xee(r.maxClaimablePerWallet,e),u=xee(Z.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=xee(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),N8e.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Z.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await Qqr(r.merkleRoot,n,a):void 0,metadata:h})}function xee(r,e){return r.toString()===Z.ethers.constants.MaxUint256.toString()?"unlimited":Z.ethers.utils.formatUnits(r,e)}function lm(r,e){return r==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(r,e)}async function _ft(r,e,t,n,a){let i={},s=n||Ku,c=(await Cc(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Ku?i={value:c}:s!==Ku&&a&&await F8e(r,s,c,t,0)),i}var eFr=2,j2=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),Cl=class{constructor(e,t,n,a,i){$._defineProperty(this,"shardNybbles",void 0),$._defineProperty(this,"shards",void 0),$._defineProperty(this,"trees",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"baseUri",void 0),$._defineProperty(this,"originalEntriesUri",void 0),$._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return Cl.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new Cl(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case j2.V1:return Z.utils.solidityKeccak256(["address","uint256"],[e.address,lm(e.maxClaimable,t)]);case j2.V2:return Z.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,lm(e.maxClaimable,t),lm(e.price||"unlimited",n),e.currencyAddress||Z.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await gY(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:eFr,o=await Xee.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,V]=F;return[W,new ACe.MerkleTree(await Promise.all(V.map(async K=>{let H=await Cl.fetchAndCacheDecimals(u,n,K.currencyAddress);return Cl.hashEntry(K,t,H,i)})),Z.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new ACe.MerkleTree(Object.values(h),Z.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let V={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${F}.json`})}let y=await a.uploadBatch(m),I=y[0].slice(0,y[0].lastIndexOf("/")),C=await a.upload(o),R={merkleRoot:f.getHexRoot(),baseUri:I,originalEntriesUri:C,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(R);return{shardedMerkleInfo:R,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await Cl.fetchAndCacheDecimals(s,t,f.currencyAddress);return Cl.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new ACe.MerkleTree(h,Z.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await Cl.fetchAndCacheDecimals(s,t,o.currencyAddress),u=Cl.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return R8e.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function Tft(r,e,t,n,a){let i=await Xee.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(Rft(),this?this.decode(e,t):uY.prototype.decode.call(eht,e,t)));W2=t>-1?t:e.length,Ce=0,Hee=0,Mfe=null,wo=null,Xe=e;try{zu=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Xe=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof uY){if(Yr=this,Al=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ps=this.structures,tht();(!ps||ps.length>0)&&(ps=[])}else Yr=eht,(!ps||ps.length>0)&&(ps=[]),Al=null;return tht()}};function tht(){try{let r=wn();if(wo){if(Ce>=wo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ce=wo.postBundlePosition,wo=null}if(Ce==W2)ps=null,Xe=null,Lh&&(Lh=null);else if(Ce>W2){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!u8e)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw Rft(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function wn(){let r=Xe[Ce++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Xe[Ce++];break;case 25:if(e==7)return dFr();r=zu.getUint16(Ce),Ce+=2;break;case 26:if(e==7){let t=zu.getFloat32(Ce);if(Yr.useFloat32>2){let n=Mft[(Xe[Ce]&127)<<1|Xe[Ce+1]>>7];return Ce+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ce+=4,t}r=zu.getUint32(Ce),Ce+=4;break;case 27:if(e==7){let t=zu.getFloat64(Ce);return Ce+=8,t}if(e>1){if(zu.getUint32(Ce)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=zu.getUint32(Ce+4)}else Yr.int64AsNumber?(r=zu.getUint32(Ce)*4294967296,r+=zu.getUint32(Ce+4)):r=zu.getBigUint64(Ce);Ce+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=wn())!=tY;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if(Yr.mapsAsObjects){let s={};if(Yr.keyMap)for(;(i=wn())!=tY;)s[dm(Yr.decodeKey(i))]=wn();else for(;(i=wn())!=tY;)s[dm(i)]=wn();return s}else{_ee&&(Yr.mapsAsObjects=!0,_ee=!1);let s=new Map;if(Yr.keyMap)for(;(i=wn())!=tY;)s.set(Yr.decodeKey(i),wn());else for(;(i=wn())!=tY;)s.set(i,wn());return s}case 7:return tY;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return lFr(r);case 3:if(Hee>=Ce)return Mfe.slice(Ce-Nfe,(Ce+=r)-Nfe);if(Hee==0&&W2<140&&r<32){let a=r<16?kft(r):uFr(r);if(a!=null)return a}return cFr(r);case 4:let t=new Array(r);for(let a=0;a=Zpt){let a=ps[r&8191];if(a)return a.read||(a.read=l8e(a)),a.read();if(r<65536){if(r==oFr)return p8e(wn());if(r==sFr){let i=Tee(),s=wn();for(let o=2;o23)switch(t){case 24:t=Xe[Ce++];break;case 25:t=zu.getUint16(Ce),Ce+=2;break;case 26:t=zu.getUint32(Ce),Ce+=4;break;default:throw new Error("Expected array header, but got "+Xe[Ce-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(wn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Yr.keyMap?new Function("r","return {"+i.map(s=>Yr.decodeKey(s)).map(s=>rht.test(s)?dm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>rht.test(s)?dm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(wn)}let a={};if(Yr.keyMap)for(let i=0;i64&&o8e)return o8e.decode(Xe.subarray(Ce,Ce+=r));let t=Ce+r,n=[];for(e="";Ce65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=Qo.apply(String,n),n.length=0)}return n.length>0&&(e+=Qo.apply(String,n)),e}var Qo=String.fromCharCode;function uFr(r){let e=Ce,t=new Array(r);for(let n=0;n0){Ce=e;return}t[n]=a}return Qo.apply(String,t)}function kft(r){if(r<4)if(r<2){if(r===0)return"";{let e=Xe[Ce++];if((e&128)>1){Ce-=1;return}return Qo(e)}}else{let e=Xe[Ce++],t=Xe[Ce++];if((e&128)>0||(t&128)>0){Ce-=2;return}if(r<3)return Qo(e,t);let n=Xe[Ce++];if((n&128)>0){Ce-=3;return}return Qo(e,t,n)}else{let e=Xe[Ce++],t=Xe[Ce++],n=Xe[Ce++],a=Xe[Ce++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ce-=4;return}if(r<6){if(r===4)return Qo(e,t,n,a);{let i=Xe[Ce++];if((i&128)>0){Ce-=5;return}return Qo(e,t,n,a,i)}}else if(r<8){let i=Xe[Ce++],s=Xe[Ce++];if((i&128)>0||(s&128)>0){Ce-=6;return}if(r<7)return Qo(e,t,n,a,i,s);let o=Xe[Ce++];if((o&128)>0){Ce-=7;return}return Qo(e,t,n,a,i,s,o)}else{let i=Xe[Ce++],s=Xe[Ce++],o=Xe[Ce++],c=Xe[Ce++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ce-=8;return}if(r<10){if(r===8)return Qo(e,t,n,a,i,s,o,c);{let u=Xe[Ce++];if((u&128)>0){Ce-=9;return}return Qo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Xe[Ce++],l=Xe[Ce++];if((u&128)>0||(l&128)>0){Ce-=10;return}if(r<11)return Qo(e,t,n,a,i,s,o,c,u,l);let h=Xe[Ce++];if((h&128)>0){Ce-=11;return}return Qo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Xe[Ce++],l=Xe[Ce++],h=Xe[Ce++],f=Xe[Ce++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ce-=12;return}if(r<14){if(r===12)return Qo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Xe[Ce++];if((m&128)>0){Ce-=13;return}return Qo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Xe[Ce++],y=Xe[Ce++];if((m&128)>0||(y&128)>0){Ce-=14;return}if(r<15)return Qo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let I=Xe[Ce++];if((I&128)>0){Ce-=15;return}return Qo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,I)}}}}}function lFr(r){return Yr.copyBuffers?Uint8Array.prototype.slice.call(Xe,Ce,Ce+=r):Xe.subarray(Ce,Ce+=r)}var Aft=new Float32Array(1),Vhe=new Uint8Array(Aft.buffer,0,4);function dFr(){let r=Xe[Ce++],e=Xe[Ce++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return Vhe[3]=r&128|(t>>1)+56,Vhe[2]=(r&7)<<5|e>>3,Vhe[1]=e<<5,Vhe[0]=0,Aft[0]}var lY=class{constructor(e,t){this.value=e,this.tag=t}};$i[0]=r=>new Date(r);$i[1]=r=>new Date(Math.round(r*1e3));$i[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-$i[2](r);$i[4]=r=>Number(r[1]+"e"+r[0]);$i[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var p8e=r=>{let e=r[0]-57344,t=r[1],n=ps[e];n&&n.isShared&&((ps.restoreStructures||(ps.restoreStructures=[]))[e]=n),ps[e]=t,t.read=l8e(t);let a={};if(Yr.keyMap)for(let i=2,s=r.length;iwo?wo[0].slice(wo.position0,wo.position0+=r):new lY(r,14);$i[15]=r=>wo?wo[1].slice(wo.position1,wo.position1+=r):new lY(r,15);var pFr={Error,RegExp};$i[27]=r=>(pFr[r[0]]||Error)(r[1],r[2]);var Pft=r=>{if(Xe[Ce++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return Al=Al?e.concat(Al.slice(e.length)):e,Al.prefixes=r(),Al.suffixes=r(),r()};Pft.handlesRead=!0;$i[51]=Pft;$i[Xpt]=r=>{if(!Al)if(Yr.getShared)U8e();else return new lY(r,Xpt);if(typeof r=="number")return Al[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};$i[25]=r=>stringRefs[r];$i[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};$i[256].handlesRead=!0;$i[28]=r=>{Lh||(Lh=new Map,Lh.id=0);let e=Lh.id++,t=Xe[Ce],n;t>>5==4?n=[]:n={};let a={target:n};Lh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};$i[28].handlesRead=!0;$i[29]=r=>{let e=Lh.get(r);return e.used=!0,e.target};$i[258]=r=>new Set(r);($i[259]=r=>(Yr.mapsAsObjects&&(Yr.mapsAsObjects=!1,_ee=!0),r())).handlesRead=!0;function rY(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function L2(){if(!Al)if(Yr.getShared)U8e();else throw new Error("No packed values available");return Al}var hFr=1399353956;c8e.push((r,e)=>{if(r>=225&&r<=255)return rY(L2().prefixes[r-224],e);if(r>=28704&&r<=32767)return rY(L2().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return rY(L2().prefixes[r-1879048192],e);if(r>=216&&r<=223)return rY(e,L2().suffixes[r-216]);if(r>=27647&&r<=28671)return rY(e,L2().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return rY(e,L2().suffixes[r-1811939328]);if(r==hFr)return{packedValues:Al,structures:ps.slice(0),version:e};if(r==55799)return e});var fFr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,nht=[Uint8Array],mFr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Xe[Ce++];break;case 25:r=zu.getUint16(Ce),Ce+=2;break;case 26:r=zu.getUint32(Ce),Ce+=4;break}return r}function U8e(){if(Yr.getShared){let r=Sft(()=>(Xe=null,Yr.getShared()))||{},e=r.structures||[];Yr.sharedVersion=r.version,Al=Yr.sharedValues=r.packedValues,ps===!0?Yr.structures=ps=e:ps.splice.apply(ps,[0,e.length].concat(e))}}function Sft(r){let e=W2,t=Ce,n=Nfe,a=Hee,i=Mfe,s=Lh,o=wo,c=new Uint8Array(Xe.slice(0,W2)),u=ps,l=Yr,h=u8e,f=r();return W2=e,Ce=t,Nfe=n,Hee=a,Mfe=i,Lh=s,wo=o,Xe=c,u8e=h,ps=u,Yr=l,zu=new DataView(Xe.buffer,Xe.byteOffset,Xe.byteLength),f}function Rft(){Xe=null,Lh=null,ps=null}var Mft=new Array(147);for(let r=0;r<256;r++)Mft[r]=Number("1e"+Math.floor(45.15-r*.30103));var bFr=new uY({useRecords:!1}),vFr=bFr.decode;function wFr(r,e){return H8e(r,e.abis)}function xFr(r,e){return H8e(Qi.parse(r.abi||[]),[e])}function H8e(r,e){let t=dY(r),n=e.flatMap(i=>dY(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function Nft(r,e){let t=await pY(r,e);return j8e(t.abi)}async function Bft(r,e){let t=await pY(r,e);return dY(t.abi,t.metadata)}function Dft(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function j8e(r){let e=Qi.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function Lft(r,e){let t=Qi.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function dY(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=Dft(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${h8e(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>h8e(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function Oft(r,e){let n=Qi.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=Dft(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function h8e(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>h8e(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function qft(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function jee(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=qft(t);if(n)return await jee(n,e)}catch{}try{let n=await e.getStorageAt(r,Z.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Z.ethers.utils.hexStripZeros(n);if(a!=="0x")return await jee(a,e)}catch{}return await Fft(t)}function Fft(r){let e=_Fr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=vFr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${jOr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function _Fr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!TFr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:aFr,t={};for(let n in e){let a=e[n],i=wFr(r,a),s=tte(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function G8e(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),G8e(n.features,e)}}function IFr(r){let e=[];return G8e(tte(r),e),e}function f8e(r){let e=[];return G8e(tte(r),e),e.map(t=>t.name)}function hY(r,e){let t=Qi.parse(r||[]),n=tte(t);return Wft(n,e)}function er(r,e){if(!r)throw new F0(e);return r}function $e(r,e){return hY(Qi.parse(r.abi),e)}function Wft(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=Wft(s.features,e),a)break}return a}return r[e].enabled}function vo(r,e){return r in e.readContract.functions}async function Bfe(r,e,t,n,a){let i=[];try{let s=hY(Qi.parse(e),"PluginRouter");if(hY(Qi.parse(e),"ExtensionRouter")){let l=(await new Rs(t,r,Cft,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await aht(l,t,a)}else if(s){let l=(await new Rs(t,r,Eft,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await aht(h,t,a)}}catch{}return i.length>0?CFr([e,...i]):e}function EFr(r){let e=hY(Qi.parse(r),"PluginRouter");return hY(Qi.parse(r),"ExtensionRouter")||e}async function aht(r,e,t){return(await Promise.all(r.map(n=>z0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function CFr(r){let e=r.map(a=>Qi.parse(a)).flat(),n=jqr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Qi.parse(n)}var Dfe=class{constructor(e){$._defineProperty(this,"args",void 0),$._defineProperty(this,"overrides",void 0),$._defineProperty(this,"provider",void 0),$._defineProperty(this,"signer",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"gasMultiple",void 0),this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.storage=e.storage||new zg.ThirdwebStorage,this.signer.provider||(this.signer=this.signer.connect(this.provider))}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGasLimitMultiple(e){Z.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Z.BigNumber.from(Math.floor(Z.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Z.utils.formatEther(n),wei:n}}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Z.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}async getSignerAddress(){return this.signer.getAddress()}async getGasOverrides(){if(q8e())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await yft(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Z.utils.parseUnits("300","gwei"),i=Z.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}},Le=class extends Dfe{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new Le(n)}static async fromContractInfo(e){let t=e.storage||new zg.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await z0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Z.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new Le(i)}constructor(e){super({args:e.args,overrides:e.overrides,provider:e.provider,signer:e.signer,storage:e.storage}),$._defineProperty(this,"method",void 0),$._defineProperty(this,"contract",void 0),$._defineProperty(this,"gaslessOptions",void 0),$._defineProperty(this,"parse",void 0),this.method=e.method,this.gaslessOptions=e.gasless,this.parse=e.parse,this.contract=e.contract.connect(this.signer),this.storage=e.storage||new zg.ThirdwebStorage}getMethod(){return this.method}getGaslessOptions(){return this.gaslessOptions}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Z.BigNumber.from(Math.floor(Z.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),await this.transactionError(e)}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(ZLr.FormatTypes.json));EFr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async sendGasless(){Tt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Z.utils.solidityPack(["bytes","address"],[m,f]))}Tt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Z.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Z.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Z.BigNumber.from(5e5)),this.overrides.gasLimit&&Z.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Z.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await tFr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Z.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(R=>JSON.stringify(R).length<=80?JSON.stringify(R):JSON.stringify(R,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` -`+l.map(R=>" "+R.split(` +`,C=`${h.name}(${y})`,P=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,A=Zve(e),B,F;try{let W=await K1(this.readContract.address,this.getProvider(),pee(this,uee));W.name&&(F=W.name),W.metadata.sources&&(B=await Rce(W,pee(this,uee)))}catch{}return new gee({reason:A,from:o,to:c,method:C,data:u,network:s,rpcUrl:p,value:l,hash:P,contractName:F,sources:B})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();Rt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Z.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Z.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Z.BigNumber.from(5e5)),n.gasLimit&&Z.BigNumber.from(n.gasLimit).gt(l)&&(l=Z.BigNumber.from(n.gasLimit));let p={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(p)}async signTypedData(e,t,n,a){this.emit(ff.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await tce(e,t,n,a);return this.emit(ff.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){Rt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();Rt.default(t&&n,"signer and provider must be set");let a=new Z.ethers.Contract(Joe(e.chainId,"biconomyForwarder"),t7t,n),i=0,s=await C5e(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Z.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Z.ethers.utils.arrayify(Z.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Z.ethers.utils.keccak256(o.data)]));this.emit(ff.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(ff.Signature,{status:"completed",message:c,signature:u});let l=await Db.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let p=await l.json();if(!p.txHash)throw new Error(`relay transaction failed: ${p.log}`);return p.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){Rt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();Rt.default(t,"provider is not set"),Rt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?Zg[e.chainId].openzeppelinForwarderEOA||await IFe(this.getProvider(),pee(this,uee)):Zg[e.chainId].openzeppelinForwarder||await kce(this.getProvider(),pee(this,uee))),i=new Z.Contract(a,s9t.default,n),s=await C5e(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:e7t},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data,chainid:Z.BigNumber.from(e.chainId).toString()}):(o={name:this.options.gasless.openzeppelin.domainName,version:this.options.gasless.openzeppelin.domainVersion,chainId:e.chainId,verifyingContract:a},c={ForwardRequest:X9t},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(ff.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],C=e.functionArgs[1],{message:P,signature:A}=await n7t(t,this.writeContract.address,e.from,y,C),{r:B,s:F,v:W}=Z.ethers.utils.splitSignature(A);u={to:this.readContract.address,owner:P.owner,spender:P.spender,value:Z.BigNumber.from(P.value).toString(),nonce:Z.BigNumber.from(P.nonce).toString(),deadline:Z.BigNumber.from(P.deadline).toString(),r:B,s:F,v:W},l=A}else{let{signature:y}=await tce(t,o,c,u);l=y}let p="forward";u?.owner&&(p="permit");let h=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:p});this.emit(ff.Signature,{status:"completed",message:u,signature:l});let m=await Db.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:h});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function am(r){return r.toLowerCase()===El||r.toLowerCase()===Z.constants.AddressZero}function A5e(r){return am(r)?El:r}async function iu(r,e,t){let n=await kee(r,t);return Z.utils.parseUnits(Q.AmountSchema.parse(e),n.decimals)}async function kee(r,e){if(am(e)){let t=await r.getNetwork(),n=rFe(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Z.Contract(e,tyn.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function Mp(r,e,t){let n=await kee(r,e);return{...n,value:Z.BigNumber.from(t),displayValue:Z.utils.formatUnits(t,n.decimals)}}async function Ob(r,e,t,n){if(am(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Do(a||i,t,Ju.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function hFe(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Do(i||s,e,Ju.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),p=Z.BigNumber.from(t).mul(Z.BigNumber.from(n)).div(Z.ethers.utils.parseUnits("1",a));l.lt(p)&&await o.sendTransaction("approve",[u,l.add(p)])}async function tbn(r,e,t){let n=r.getProvider(),a=new Do(n,e,Ju.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function rbn(r,e){let t=await r.readContract.decimals();return Z.utils.parseUnits(Q.AmountSchema.parse(e),t)}function nbn(r){return Z.utils.formatEther(r)}function i7t(r){return Z.utils.parseEther(Q.AmountSchema.parse(r))}function abn(r,e){return Z.utils.parseUnits(Q.AmountSchema.parse(r),e)}function ibn(r,e){return Z.utils.formatUnits(r,e)}async function s7t(r,e,t,n,a,i,s,o,c){let u=W1(t.maxClaimablePerWallet,a),l=[Z.utils.hexZeroPad([0],32)],p=t.price,h=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Z.constants.AddressZero)){let P=await Xve(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(P)l=P.proof,u=P.maxClaimable==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(P.maxClaimable,a),p=P.price===void 0||P.price==="unlimited"?Z.ethers.constants.MaxUint256:await iu(i.getProvider(),P.price,P.currencyAddress||Z.ethers.constants.AddressZero),h=P.currencyAddress||Z.ethers.constants.AddressZero;else if(c===k3.V1)throw new Error("No claim found for this address")}}catch(P){if(P?.message==="No claim found for this address")throw P;console.warn("failed to check claim condition merkle root hash, continuing anyways",P)}let m=await i.getCallOverrides()||{},y=p.toString()!==Z.ethers.constants.MaxUint256.toString()?p:t.price,C=h!==Z.ethers.constants.AddressZero?h:t.currencyAddress;return y.gt(0)&&(am(C)?m.value=Z.BigNumber.from(y).mul(e).div(Z.ethers.utils.parseUnits("1",a)):o&&await hFe(i,C,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:C,priceInProof:p,currencyAddressInProof:h}}async function sbn(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await lf.fromUri(n,t))?.getAllEntries()||null;{let i=await oFe.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function Xve(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await lf.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await oFe.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function o7t(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Z.ethers.utils.formatUnits(a,n),s=await Ice.parseAsync({...t[r],price:i,...e}),o=await cFe.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let p=Z.ethers.utils.formatUnits(l.price,n);return{...l,price:p}})}async function obn(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await l7t(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Z.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function cbn(r,e){let t=Z.BigNumber.from(r),n=Z.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function c7t(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await obn(r,e,t,n,a),o=await T9t.parseAsync(i),c=(await Promise.all(o.map(u=>ubn(u,e,t,n)))).sort((u,l)=>cbn(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function ubn(r,e,t,n){let a=r.currencyAddress===Z.constants.AddressZero?El:r.currencyAddress,i=W1(r.maxClaimableSupply,e),s=W1(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await iu(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function k5e(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function S5e(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function P5e(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function R5e(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function M5e(r,e,t,n,a,i){let s=await Mp(t,r.currency,r.pricePerToken),o=Goe(r.maxClaimableSupply,e),c=Goe(r.maxClaimablePerWallet,e),u=Goe(Z.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=Goe(r.supplyClaimed,e),p;return r.metadata&&(p=await a.downloadJSON(r.metadata)),cFe.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Z.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await sbn(r.merkleRoot,n,a):void 0,metadata:p})}function Goe(r,e){return r.toString()===Z.ethers.constants.MaxUint256.toString()?"unlimited":Z.ethers.utils.formatUnits(r,e)}function W1(r,e){return r==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(r,e)}async function u7t(r,e,t,n,a){let i={},s=n||El,c=(await iu(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===El?i={value:c}:s!==El&&a&&await hFe(r,s,c,t,0)),i}var lbn=2,k3=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),lf=class{constructor(e,t,n,a,i){Q._defineProperty(this,"shardNybbles",void 0),Q._defineProperty(this,"shards",void 0),Q._defineProperty(this,"trees",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"baseUri",void 0),Q._defineProperty(this,"originalEntriesUri",void 0),Q._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return lf.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new lf(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case k3.V1:return Z.utils.solidityKeccak256(["address","uint256"],[e.address,W1(e.maxClaimable,t)]);case k3.V2:return Z.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,W1(e.maxClaimable,t),W1(e.price||"unlimited",n),e.currencyAddress||Z.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await kee(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:lbn,o=await Ece.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,K]=F;return[W,new XNe.MerkleTree(await Promise.all(K.map(async z=>{let G=await lf.fetchAndCacheDecimals(u,n,z.currencyAddress);return lf.hashEntry(z,t,G,i)})),Z.utils.keccak256,{sort:!0}).getHexRoot()]})),p=Object.fromEntries(l),h=new XNe.MerkleTree(Object.values(p),Z.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let K={proofs:h.getProof(p[F]).map(z=>"0x"+z.data.toString("hex")),entries:W};m.push({data:JSON.stringify(K),name:`${F}.json`})}let y=await a.uploadBatch(m),C=y[0].slice(0,y[0].lastIndexOf("/")),P=await a.upload(o),A={merkleRoot:h.getHexRoot(),baseUri:C,originalEntriesUri:P,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},B=await a.upload(A);return{shardedMerkleInfo:A,uri:B}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let p=await Promise.all(i.entries.map(async h=>{let m=await lf.fetchAndCacheDecimals(s,t,h.currencyAddress);return lf.hashEntry(h,this.tokenDecimals,m,n)}));this.trees[a]=new XNe.MerkleTree(p,Z.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(p=>p.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await lf.fetchAndCacheDecimals(s,t,o.currencyAddress),u=lf.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(p=>"0x"+p.data.toString("hex"));return sFe.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function l7t(r,e,t,n,a){let i=await Ece.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(b7t(),this?this.decode(e,t):wee.prototype.decode.call(qEt,e,t)));C3=t>-1?t:e.length,Oe=0,fce=0,rve=null,zc=null,Bt=e;try{Tl=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Bt=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof wee){if(Ln=this,df=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return Bo=this.structures,WEt();(!Bo||Bo.length>0)&&(Bo=[])}else Ln=qEt,(!Bo||Bo.length>0)&&(Bo=[]),df=null;return WEt()}};function WEt(){try{let r=da();if(zc){if(Oe>=zc.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Oe=zc.postBundlePosition,zc=null}if(Oe==C3)Bo=null,Bt=null,Yh&&(Yh=null);else if(Oe>C3){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!NOe)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw b7t(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function da(){let r=Bt[Oe++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Bt[Oe++];break;case 25:if(e==7)return gbn();r=Tl.getUint16(Oe),Oe+=2;break;case 26:if(e==7){let t=Tl.getFloat32(Oe);if(Ln.useFloat32>2){let n=g7t[(Bt[Oe]&127)<<1|Bt[Oe+1]>>7];return Oe+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Oe+=4,t}r=Tl.getUint32(Oe),Oe+=4;break;case 27:if(e==7){let t=Tl.getFloat64(Oe);return Oe+=8,t}if(e>1){if(Tl.getUint32(Oe)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Tl.getUint32(Oe+4)}else Ln.int64AsNumber?(r=Tl.getUint32(Oe)*4294967296,r+=Tl.getUint32(Oe+4)):r=Tl.getBigUint64(Oe);Oe+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=da())!=lee;)t[a++]=n;return e==4?t:e==3?t.join(""):v.Buffer.concat(t);case 5:let i;if(Ln.mapsAsObjects){let s={};if(Ln.keyMap)for(;(i=da())!=lee;)s[U1(Ln.decodeKey(i))]=da();else for(;(i=da())!=lee;)s[U1(i)]=da();return s}else{Voe&&(Ln.mapsAsObjects=!0,Voe=!1);let s=new Map;if(Ln.keyMap)for(;(i=da())!=lee;)s.set(Ln.decodeKey(i),da());else for(;(i=da())!=lee;)s.set(i,da());return s}case 7:return lee;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return bbn(r);case 3:if(fce>=Oe)return rve.slice(Oe-nve,(Oe+=r)-nve);if(fce==0&&C3<140&&r<32){let a=r<16?p7t(r):ybn(r);if(a!=null)return a}return mbn(r);case 4:let t=new Array(r);for(let a=0;a=FEt){let a=Bo[r&8191];if(a)return a.read||(a.read=OOe(a)),a.read();if(r<65536){if(r==hbn)return LOe(da());if(r==pbn){let i=$oe(),s=da();for(let o=2;o23)switch(t){case 24:t=Bt[Oe++];break;case 25:t=Tl.getUint16(Oe),Oe+=2;break;case 26:t=Tl.getUint32(Oe),Oe+=4;break;default:throw new Error("Expected array header, but got "+Bt[Oe-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(da);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Ln.keyMap?new Function("r","return {"+i.map(s=>Ln.decodeKey(s)).map(s=>UEt.test(s)?U1(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>UEt.test(s)?U1(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(da)}let a={};if(Ln.keyMap)for(let i=0;i64&&BOe)return BOe.decode(Bt.subarray(Oe,Oe+=r));let t=Oe+r,n=[];for(e="";Oe65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=T0.apply(String,n),n.length=0)}return n.length>0&&(e+=T0.apply(String,n)),e}var T0=String.fromCharCode;function ybn(r){let e=Oe,t=new Array(r);for(let n=0;n0){Oe=e;return}t[n]=a}return T0.apply(String,t)}function p7t(r){if(r<4)if(r<2){if(r===0)return"";{let e=Bt[Oe++];if((e&128)>1){Oe-=1;return}return T0(e)}}else{let e=Bt[Oe++],t=Bt[Oe++];if((e&128)>0||(t&128)>0){Oe-=2;return}if(r<3)return T0(e,t);let n=Bt[Oe++];if((n&128)>0){Oe-=3;return}return T0(e,t,n)}else{let e=Bt[Oe++],t=Bt[Oe++],n=Bt[Oe++],a=Bt[Oe++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Oe-=4;return}if(r<6){if(r===4)return T0(e,t,n,a);{let i=Bt[Oe++];if((i&128)>0){Oe-=5;return}return T0(e,t,n,a,i)}}else if(r<8){let i=Bt[Oe++],s=Bt[Oe++];if((i&128)>0||(s&128)>0){Oe-=6;return}if(r<7)return T0(e,t,n,a,i,s);let o=Bt[Oe++];if((o&128)>0){Oe-=7;return}return T0(e,t,n,a,i,s,o)}else{let i=Bt[Oe++],s=Bt[Oe++],o=Bt[Oe++],c=Bt[Oe++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Oe-=8;return}if(r<10){if(r===8)return T0(e,t,n,a,i,s,o,c);{let u=Bt[Oe++];if((u&128)>0){Oe-=9;return}return T0(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Bt[Oe++],l=Bt[Oe++];if((u&128)>0||(l&128)>0){Oe-=10;return}if(r<11)return T0(e,t,n,a,i,s,o,c,u,l);let p=Bt[Oe++];if((p&128)>0){Oe-=11;return}return T0(e,t,n,a,i,s,o,c,u,l,p)}else{let u=Bt[Oe++],l=Bt[Oe++],p=Bt[Oe++],h=Bt[Oe++];if((u&128)>0||(l&128)>0||(p&128)>0||(h&128)>0){Oe-=12;return}if(r<14){if(r===12)return T0(e,t,n,a,i,s,o,c,u,l,p,h);{let m=Bt[Oe++];if((m&128)>0){Oe-=13;return}return T0(e,t,n,a,i,s,o,c,u,l,p,h,m)}}else{let m=Bt[Oe++],y=Bt[Oe++];if((m&128)>0||(y&128)>0){Oe-=14;return}if(r<15)return T0(e,t,n,a,i,s,o,c,u,l,p,h,m,y);let C=Bt[Oe++];if((C&128)>0){Oe-=15;return}return T0(e,t,n,a,i,s,o,c,u,l,p,h,m,y,C)}}}}}function bbn(r){return Ln.copyBuffers?Uint8Array.prototype.slice.call(Bt,Oe,Oe+=r):Bt.subarray(Oe,Oe+=r)}var h7t=new Float32Array(1),g5e=new Uint8Array(h7t.buffer,0,4);function gbn(){let r=Bt[Oe++],e=Bt[Oe++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return g5e[3]=r&128|(t>>1)+56,g5e[2]=(r&7)<<5|e>>3,g5e[1]=e<<5,g5e[0]=0,h7t[0]}var xee=class{constructor(e,t){this.value=e,this.tag=t}};no[0]=r=>new Date(r);no[1]=r=>new Date(Math.round(r*1e3));no[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-no[2](r);no[4]=r=>Number(r[1]+"e"+r[0]);no[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var LOe=r=>{let e=r[0]-57344,t=r[1],n=Bo[e];n&&n.isShared&&((Bo.restoreStructures||(Bo.restoreStructures=[]))[e]=n),Bo[e]=t,t.read=OOe(t);let a={};if(Ln.keyMap)for(let i=2,s=r.length;izc?zc[0].slice(zc.position0,zc.position0+=r):new xee(r,14);no[15]=r=>zc?zc[1].slice(zc.position1,zc.position1+=r):new xee(r,15);var vbn={Error,RegExp};no[27]=r=>(vbn[r[0]]||Error)(r[1],r[2]);var m7t=r=>{if(Bt[Oe++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return df=df?e.concat(df.slice(e.length)):e,df.prefixes=r(),df.suffixes=r(),r()};m7t.handlesRead=!0;no[51]=m7t;no[LEt]=r=>{if(!df)if(Ln.getShared)bFe();else return new xee(r,LEt);if(typeof r=="number")return df[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};no[25]=r=>stringRefs[r];no[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};no[256].handlesRead=!0;no[28]=r=>{Yh||(Yh=new Map,Yh.id=0);let e=Yh.id++,t=Bt[Oe],n;t>>5==4?n=[]:n={};let a={target:n};Yh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};no[28].handlesRead=!0;no[29]=r=>{let e=Yh.get(r);return e.used=!0,e.target};no[258]=r=>new Set(r);(no[259]=r=>(Ln.mapsAsObjects&&(Ln.mapsAsObjects=!1,Voe=!0),r())).handlesRead=!0;function fee(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function _3(){if(!df)if(Ln.getShared)bFe();else throw new Error("No packed values available");return df}var wbn=1399353956;DOe.push((r,e)=>{if(r>=225&&r<=255)return fee(_3().prefixes[r-224],e);if(r>=28704&&r<=32767)return fee(_3().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return fee(_3().prefixes[r-1879048192],e);if(r>=216&&r<=223)return fee(e,_3().suffixes[r-216]);if(r>=27647&&r<=28671)return fee(e,_3().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return fee(e,_3().suffixes[r-1811939328]);if(r==wbn)return{packedValues:df,structures:Bo.slice(0),version:e};if(r==55799)return e});var xbn=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,HEt=[Uint8Array],_bn=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let p=0;p23)switch(r){case 24:r=Bt[Oe++];break;case 25:r=Tl.getUint16(Oe),Oe+=2;break;case 26:r=Tl.getUint32(Oe),Oe+=4;break}return r}function bFe(){if(Ln.getShared){let r=y7t(()=>(Bt=null,Ln.getShared()))||{},e=r.structures||[];Ln.sharedVersion=r.version,df=Ln.sharedValues=r.packedValues,Bo===!0?Ln.structures=Bo=e:Bo.splice.apply(Bo,[0,e.length].concat(e))}}function y7t(r){let e=C3,t=Oe,n=nve,a=fce,i=rve,s=Yh,o=zc,c=new Uint8Array(Bt.slice(0,C3)),u=Bo,l=Ln,p=NOe,h=r();return C3=e,Oe=t,nve=n,fce=a,rve=i,Yh=s,zc=o,Bt=c,NOe=p,Bo=u,Ln=l,Tl=new DataView(Bt.buffer,Bt.byteOffset,Bt.byteLength),h}function b7t(){Bt=null,Yh=null,Bo=null}var g7t=new Array(147);for(let r=0;r<256;r++)g7t[r]=Number("1e"+Math.floor(45.15-r*.30103));var Ibn=new wee({useRecords:!1}),Cbn=Ibn.decode;function Abn(r,e){return gFe(r,e.abis)}function kbn(r,e){return gFe(qs.parse(r.abi||[]),[e])}function gFe(r,e){let t=_ee(r),n=e.flatMap(i=>_ee(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,p)=>l.type===i.inputs[u].components?.[p]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function v7t(r,e){let t=await Eee(r,e);return Cce(t.abi)}async function w7t(r,e){let t=await Eee(r,e);return _ee(t.abi,t.metadata)}function x7t(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function Cce(r){let e=qs.parse(r||[]);for(let t of e)if(t.type==="constructor")return t.inputs||[];return[]}function _7t(r,e){let t=qs.parse(r||[]);for(let n of t)if(n.type==="function"&&n.name===e)return n.inputs||[];return[]}function _ee(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=x7t(a.name,e,"methods"),s=a.inputs?.map(p=>`${p.name||"key"}: ${qOe(p)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(p=>qOe(p,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function T7t(r,e){let n=qs.parse(r||[]).filter(i=>i.type==="event"),a=[];for(let i of n){let s=x7t(i.name,e,"events");a.push({inputs:i.inputs||[],outputs:i.outputs||[],name:i.name||"unknown",comment:s})}return a}function qOe(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>qOe(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function E7t(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function Tee(r,e){let t;try{t=await e.getCode(r)}catch(n){throw new Error(`Failed to get bytecode for address ${r}: ${n}`)}if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=E7t(t);if(n)return await Tee(n,e)}catch{}try{let a=`0x${(await e.getStorageAt(r,Z.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc"))).slice(-40)}`;if(i1n.isAddress(a)&&a!==Z.ethers.constants.AddressZero)return await Tee(a,e)}catch{}return await I7t(t)}function I7t(r){let e=Sbn(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=Cbn(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${eyn.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function Sbn(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!Pbn(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:fbn,t={};for(let n in e){let a=e[n],i=Abn(r,a),s=Ace(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function xFe(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),xFe(n.features,e)}}function Rbn(r){let e=[];return xFe(Ace(r),e),e}function WOe(r){let e=[];return xFe(Ace(r),e),e.map(t=>t.name)}function P3(r,e){let t=qs.parse(r||[]),n=Ace(t);return C7t(n,e)}function wr(r,e){if(!r)throw new Nb(e);return r}function St(r,e){return P3(qs.parse(r.abi),e)}function C7t(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=C7t(s.features,e),a)break}return a}return r[e].enabled}function jc(r,e){return r in e.readContract.functions}async function ave(r,e,t,n,a){let i=[];try{let s=P3(qs.parse(e),"PluginRouter");if(P3(qs.parse(e),"ExtensionRouter")){let l=(await new Do(t,r,d7t,n).call("getAllExtensions")).map(p=>p.metadata.implementation);i=await jEt(l,t,a)}else if(s){let l=(await new Do(t,r,yFe,n).call("getAllPlugins")).map(h=>h.pluginAddress),p=Array.from(new Set(l));i=await jEt(p,t,a)}}catch{}return i.length>0?Bbn([e,...i]):e}function Mbn(r){let e=P3(qs.parse(r),"PluginRouter");return P3(qs.parse(r),"ExtensionRouter")||e}async function jEt(r,e,t){return(await Promise.all(r.map(n=>K1(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}async function _Fe(r,e){let t=[],{compilerMetadata:n,extendedMetadata:a}=await e6(r,e);if(P3(qs.parse(n.abi),"PluginRouter")&&a&&a.factoryDeploymentData?.implementationAddresses){let s=Object.entries(a.factoryDeploymentData.implementationAddresses);try{let o=s.find(l=>{let[,p]=l;return p!==""}),[c,u]=o||[];if(c&&u){let l=z1(parseInt(c),{}),m=(await new Do(l,u,yFe,{}).call("getAllPlugins")).map(A=>A.pluginAddress),y=Array.from(new Set(m)),C=(await Promise.all(y.map(async A=>K1(A,l,e)))).map(A=>A.name),P=await Promise.all(C.map(A=>Sce(A)));t=(await Promise.all(P.map(async A=>e6(A,e)))).map(A=>A.compilerMetadata)}}catch{}}return t}function Bbn(r){let e=r.map(a=>qs.parse(a)).flat(),n=ebn(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return qs.parse(n)}function A7t(r){return"("+r.map(e=>e.type==="tuple"?A7t(e.components):e.type).join(",")+")"}function Dbn(r,e){let t=new Z.ethers.utils.Interface(e),n=[];for(let a of Object.values(t.functions)){let i=t.getFunction(a.name);i.name.includes("_")||n.push({functionSelector:t.getSighash(i),functionSignature:i.name+A7t(i.inputs),pluginAddress:r})}return n}var Nbn=["eip-155","eip155","protected","invalid chain id for signer","chain id none","chain_id mismatch","recovered sender mismatch","transaction hash mismatch","chainid no support"],Obn=[["account","not found"],["wrong","chainid"]],hee={[5001]:{name:"Mantle Testnet",gasPrice:1},[71402]:{name:"Godwoken Mainnet",gasPrice:4e4*10**9},[1351057110]:{name:"Chaos (SKALE Testnet)",gasPrice:1e5}};function zEt(r){let e=Nbn.findIndex(n=>r.includes(n)),t=Obn.findIndex(n=>{let a=!0;return n.forEach(i=>{a&&(a=r.includes(i))}),a});return e!==-1||t!==-1}var KEt="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",k7t="0x604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf3",S7t={v:27,r:"0x2222222222222222222222222222222222222222222222222222222222222222",s:"0x2222222222222222222222222222222222222222222222222222222222222222"},dce="0x4e59b44847b379578588920cA78FbF26c0B4956C",P7t=5e6,R7t="0x60806040526040516107f33803806107f383398101604081905261002291610359565b805160005b818110156100c157828181518110610041576100416104c9565b6020026020010151600001516001600160a01b03163b600014156100af576100ad838281518110610074576100746104c9565b602002602001015160200151848381518110610092576100926104c9565b6020026020010151604001516100c960201b6100091760201c565b505b806100b9816104df565b915050610027565b505050610557565b606061011183836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c6564000081525061011860201b60201c565b9392505050565b6060610127848460008561012f565b949350505050565b6060824710156101955760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b6001600160a01b0385163b6101ec5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161018c565b600080866001600160a01b031685876040516102089190610508565b60006040518083038185875af1925050503d8060008114610245576040519150601f19603f3d011682016040523d82523d6000602084013e61024a565b606091505b50909250905061025b828286610266565b979650505050505050565b60608315610275575081610111565b8251156102855782518084602001fd5b8160405162461bcd60e51b815260040161018c9190610524565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b03811182821017156102d7576102d761029f565b60405290565b604051601f8201601f191681016001600160401b03811182821017156103055761030561029f565b604052919050565b80516001600160a01b038116811461032457600080fd5b919050565b60005b8381101561034457818101518382015260200161032c565b83811115610353576000848401525b50505050565b6000602080838503121561036c57600080fd5b82516001600160401b038082111561038357600080fd5b818501915085601f83011261039757600080fd5b8151818111156103a9576103a961029f565b8060051b6103b88582016102dd565b91825283810185019185810190898411156103d257600080fd5b86860192505b838310156104bc578251858111156103f05760008081fd5b86016060601f19828d0381018213156104095760008081fd5b6104116102b5565b61041c8b850161030d565b8152604061042b81860161030d565b828d01529284015192898411156104425760008081fd5b83850194508e603f86011261045957600093508384fd5b8b85015193508984111561046f5761046f61029f565b61047f8c84601f870116016102dd565b92508383528e818587010111156104965760008081fd5b6104a5848d8501838801610329565b8101919091528452505091860191908601906103d8565b9998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060001982141561050157634e487b7160e01b600052601160045260246000fd5b5060010190565b6000825161051a818460208701610329565b9190910192915050565b6020815260008251806020840152610543816040850160208701610329565b601f01601f19169190910160400192915050565b61028d806105666000396000f3fe6080604052600080fd5b606061004b83836040518060400160405280601e81526020017f416464726573733a206c6f772d6c6576656c2063616c6c206661696c65640000815250610052565b9392505050565b60606100618484600085610069565b949350505050565b6060824710156100cf5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084015b60405180910390fd5b6001600160a01b0385163b6101265760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016100c6565b600080866001600160a01b031685876040516101429190610208565b60006040518083038185875af1925050503d806000811461017f576040519150601f19603f3d011682016040523d82523d6000602084013e610184565b606091505b509150915061019482828661019f565b979650505050505050565b606083156101ae57508161004b565b8251156101be5782518084602001fd5b8160405162461bcd60e51b81526004016100c69190610224565b60005b838110156101f35781810151838201526020016101db565b83811115610202576000848401525b50505050565b6000825161021a8184602087016101d8565b9190910192915050565b60208152600082518060208401526102438160408501602087016101d8565b601f01601f1916919091016040019291505056fea26469706673582212200b524eb8ceaafe6c603273ee859fddbc2d6f1b7860c3d853dcf6f129f9d9371364736f6c634300080c0033",M7t=[{inputs:[{components:[{internalType:"address",name:"predictedAddress",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IDeployer.Transaction[]",name:"transactions",type:"tuple[]"}],stateMutability:"payable",type:"constructor"}],q1={},aOe={},iOe={};async function im(r,e){let t=await e.getCode(r);return t!=="0x"&&t!=="0x0"}async function TFe(r){try{await r.sendTransaction("0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffafffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222")}catch(e){let t=e.toString().toLowerCase(),n=JSON.stringify(e).toLowerCase();return!!(zEt(t)||zEt(n))}return!1}async function Ub(r){if(await im(dce,r))return dce;let t=await TFe(r),n=(await r.getNetwork()).chainId,a=t?n:0;return(hee[n]?hce(a,hee[n].gasPrice):hce(a)).deployment}function EFe(r){let t=`tw.${Z.ethers.utils.id(r)}`;return Z.ethers.utils.id(t)}function ive(r,e){let t=EFe(r);return Z.ethers.utils.solidityPack(["bytes32","bytes","bytes"],[t,r,e])}function UOe(r,e,t){let n=EFe(r),a=Z.ethers.utils.solidityPack(["bytes","bytes"],[r,e]),i=Z.ethers.utils.solidityPack(["bytes1","address","bytes32","bytes32"],["0xff",t,n,Z.ethers.utils.solidityKeccak256(["bytes"],[a])]);return`0x${Z.ethers.utils.solidityKeccak256(["bytes"],[i]).slice(26)}`}async function IFe(r,e,t){return t||(t=await Ub(r)),(await fd("infra",r,e,t,{contractName:"ForwarderEOAOnly"})).transaction.predictedAddress}async function kce(r,e,t){return t||(t=await Ub(r)),(await fd("infra",r,e,t,{contractName:"Forwarder"})).transaction.predictedAddress}async function B7t(r,e,t){return t||(t=await Ub(r)),(await fd("infra",r,e,t,{contractName:"TWCloneFactory"})).transaction.predictedAddress}async function Fbn(r,e,t){return t||(t=await Ub(r)),(await fd("infra",r,e,t,{contractName:"WETH9"})).transaction.predictedAddress}async function D7t(r,e,t){let n=z1(e,{thirdwebApiKey:Q.DEFAULT_API_KEY}),a=await N7t(r,e,t),i=await im(a,n);return Rt.default(i,"Contract not deployed yet"),a}async function N7t(r,e,t){let n=z1(e,{thirdwebApiKey:Q.DEFAULT_API_KEY}),a=await Sce(r),i=await Ub(n);if(Rt.default(i,"Thirdweb stack not found"),(await _Fe(a,t)).length>0){let u=(await pce(a,t,n,i)).find(l=>l.type==="implementation")?.transaction.predictedAddress;return Rt.default(u,"Error computing address for plugin router"),u}return(await fd("implementation",n,t,i,{contractName:r})).transaction.predictedAddress}async function O7t(r,e,t,n){let a=z1(e,{thirdwebApiKey:Q.DEFAULT_API_KEY}),i=await Sce(r),s=await e6(i,t),o=await Ub(a);Rt.default(o,"Thirdweb stack not found");let c=await _Fe(i,t),u;return c.length>0?u=(await pce(i,t,a,o)).find(p=>p.type==="implementation")?.encodedArgs:u=await CFe(s.compilerMetadata,a,t,o,n),u}function F7t(r,e){let t=Z.ethers.utils.arrayify(Z.ethers.utils.keccak256(Z.ethers.utils.serializeTransaction(r))),n=Z.ethers.utils.recoverAddress(t,e),a=Z.ethers.utils.serializeTransaction(r,e);return{signer:n,transaction:a}}async function L7t(r,e){if(Rt.default(r.provider,"No provider"),await im(dce,r.provider))return dce;let n=await TFe(r.provider),a=(await r.provider.getNetwork()).chainId,i=n?a:0;console.debug(`ChainId ${a} enforces EIP155: ${n}`);let s=hee[a]?hce(i,hee[a].gasPrice):hce(i);if(!await im(s.deployment,r.provider)){let c=hee[a]?Z.BigNumber.from(hee[a].gasPrice).mul(1e5):i7t("0.01");(await r.provider.getBalance(s.signer)).lt(c)&&await r.sendTransaction({to:s.signer,value:c});try{console.debug(`deploying CREATE2 factory at: ${s.deployment}`),e?.notifier?.("deploying","create2Factory"),await r.provider.sendTransaction(s.transaction),e?.notifier?.("deployed","create2Factory")}catch(u){throw new Error(`Couldn't deploy CREATE2 factory: ${JSON.stringify(u)}`)}}return s.deployment}async function Lbn(r,e,t,n,a,i){let s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:7e6;if(Rt.default(r.provider,"Provider required"),!(i?await im(i,r.provider):!1)){console.debug(`deploying contract via create2 factory at: ${i}`);let c=ive(e,t),u={to:n,data:c};try{await r.estimateGas(u)}catch(l){console.debug("error estimating gas while deploying prebuilt: ",l),u.gasLimit=Z.BigNumber.from(s)}await(await r.sendTransaction(u)).wait()}}async function q7t(r,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:7e6;if(Rt.default(r.provider,"Provider required"),!await im(e.predictedAddress,r.provider)){console.debug(`deploying contract via create2 factory at: ${e.predictedAddress}`);let i={to:e.to,data:e.data};try{await r.estimateGas(i)}catch(s){console.debug("error estimating gas while deploying prebuilt: ",s),i.gasLimit=Z.BigNumber.from(n)}t?.notifier?.("deploying","preset"),await(await r.sendTransaction(i)).wait(),t?.notifier?.("deployed","preset")}}async function pce(r,e,t,n){q1={};let a=n||await Ub(t),i={},s=[],{compilerMetadata:o}=await e6(r,e),c=await _Fe(r,e);if(c.length>0){let p=await Promise.all(c.map(async y=>await fd("plugin",t,e,a,{metadata:y}))),h=[];c.forEach((y,C)=>{let P=Dbn(p[C].transaction.predictedAddress,y.abi);h.push(...P)});let m=await fd("plugin",t,e,a,{contractName:"PluginMap",constructorParams:{_pluginsToAdd:{value:h}}});i._pluginMap={value:m.transaction.predictedAddress},s.push(...p,m)}let u=await fd("implementation",t,e,a,{metadata:o,constructorParams:i}),l=await fd("infra",t,e,a,{contractName:"TWCloneFactory"});return s.push(l),s.push(...Object.values(q1)),s.push(u),s}async function W7t(r,e,t){let n=AFe(e);if(n.length===0)return;t?.notifier?.("deploying","infra");let a=await Promise.all(n.map(i=>new Z.ethers.ContractFactory(M7t,R7t).connect(r).deploy(i)));await Promise.all(a.map(i=>i.deployed())),t?.notifier?.("deployed","infra")}async function fd(r,e,t,n,a){let i=a&&a.contractName,s=a&&a.metadata;if(Rt.default(i||s,"Require contract name or metadata"),i&&q1[i])return q1[i];if(i==="WETH9"){let p=UOe(wEt,[],n),h=await im(p,e),m="";return h||(m=ive(wEt,[])),{name:i,type:r,transaction:{predictedAddress:p,to:n,data:m}}}if(!s){Rt.default(i,"Require contract name");let p=await Sce(i);s=(await e6(p,t)).compilerMetadata}let o=await CFe(s,e,t,n,a?.constructorParams),c=UOe(s.bytecode,o,n),u=await im(c,e),l="";return u||(l=ive(s.bytecode,o)),{name:i,type:r,transaction:{predictedAddress:c,to:n,data:l},encodedArgs:o}}async function CFe(r,e,t,n,a){let i=Cce(r.abi),s=i.map(u=>u.type==="tuple[]"?Z.ethers.utils.ParamType.from(u):u.type),o=await Promise.all(i.map(async u=>{if(a&&a[u.name])return a[u.name].type&&Rt.default(a[u.name].type===u.type,`Provided type ${a[u.name].type} doesn't match the actual type ${u.type} from Abi`),a[u.name].value;if(u.name&&u.name.includes("nativeTokenWrapper")){let l=(await e.getNetwork()).chainId,p=rFe(l).wrapped.address;if(p===Z.ethers.constants.AddressZero){let h=await fd("infra",e,t,n,{contractName:"WETH9"});q1.WETH9||(q1.WETH9=h),p=h.transaction.predictedAddress}return p}else if(u.name&&u.name.includes("trustedForwarder")){if(r.name==="Pack"){let p=await fd("infra",e,t,n,{contractName:"ForwarderEOAOnly"});return q1.ForwarderEOAOnly||(q1.ForwarderEOAOnly=p),p.transaction.predictedAddress}let l=await fd("infra",e,t,n,{contractName:"Forwarder"});return q1.Forwarder||(q1.Forwarder=l),l.transaction.predictedAddress}else throw new Error("Can't resolve constructor arguments")}));return Z.ethers.utils.defaultAbiCoder.encode(s,o)}function hce(r,e){let t=Z.ethers.utils.joinSignature(S7t),n=F7t({gasPrice:e||100*10**9,gasLimit:1e5,nonce:0,data:k7t,chainId:r},t),a=Z.ethers.utils.getContractAddress({from:n.signer,nonce:0});return{...n,deployment:a}}async function Sce(r){if(iOe[r])return iOe[r];let e=await new dd("polygon").getPublisher().getVersion(KEt,r);if(!e)throw new Error(`No published contract found for ${r} at version by '${KEt}'`);let t=e.metadataUri;return iOe[r]=t,t}async function e6(r,e){if(aOe[r])return aOe[r];let t=await Eee(r,e),n;try{n=await wFe(r,e)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return aOe[r]=a,a}function U7t(r){let e=Z.ethers.utils.arrayify(r).map(t=>t===0?4:16).reduce((t,n)=>t+n)+200*r.length/2+6*Math.ceil(r.length/64)+32e3+21e3;return e=Math.floor(e*64/63),e}function AFe(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P7t;if(r=r.filter(i=>i.data.length>0),r.length===0)return[];let t=[],n=0,a=[];return r.forEach(i=>{let s=U7t(i.data);n+s>e?a.length===0?t.push([i]):(t.push(a),n=s,a=[i]):(n+=s,a.push(i))}),a.length>0&&t.push(a),t}function _0(r){async function e(){return(await r(...arguments)).execute()}return e.prepare=r,e}function Pe(r){async function e(){return(await r(...arguments)).execute()}return e.prepare=r,e}async function qbn(r,e,t,n,a){return a&&"biconomy"in a?Wbn(r,e,t,a):Ubn(r,e,t,n,a)}async function Wbn(r,e,t,n){Rt.default(n&&"biconomy"in n,"calling biconomySendFunction without biconomy"),Rt.default(e&&t,"signer and provider must be set");let a=new Z.ethers.Contract(Joe(r.chainId,"biconomyForwarder"),t7t,t),i=0,s=await C5e(a,"getNonce",[r.from,i]),o={from:r.from,to:r.to,token:Z.ethers.constants.AddressZero,txGas:r.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(n&&"biconomy"in n&&n.biconomy?.deadlineSeconds||3600)),data:r.data},c=Z.ethers.utils.arrayify(Z.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Z.ethers.utils.keccak256(o.data)])),u=await e.signMessage(c),l=await Db.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:r.from,apiId:n.biconomy.apiId,params:[o,u],to:r.to,gasLimit:r.gasLimit.toHexString()}),headers:{"x-api-key":n.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let p=await l.json();if(!p.txHash)throw new Error(`relay transaction failed: ${p.log}`);return p.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async function Ubn(r,e,t,n,a){Rt.default(a&&"openzeppelin"in a,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options"),Rt.default(e,"provider is not set"),Rt.default(t,"provider is not set");let i=a.openzeppelin.relayerForwarderAddress||(a.openzeppelin.useEOAForwarder?Zg[r.chainId].openzeppelinForwarderEOA||await IFe(t,n):Zg[r.chainId].openzeppelinForwarder||await kce(t,n)),s=new Z.ethers.Contract(i,s9t.default,t),o=await C5e(s,"getNonce",[r.from]),c,u,l;a.experimentalChainlessSupport?(c={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:i},u={ForwardRequest:e7t},l={from:r.from,to:r.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(r.gasLimit).toString(),nonce:Z.BigNumber.from(o).toString(),data:r.data,chainid:Z.BigNumber.from(r.chainId).toString()}):(c={name:a.openzeppelin.domainName,version:a.openzeppelin.domainVersion,chainId:r.chainId,verifyingContract:i},u={ForwardRequest:X9t},l={from:r.from,to:r.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(r.gasLimit).toString(),nonce:Z.BigNumber.from(o).toString(),data:r.data});let p;if(r.functionName==="approve"&&r.functionArgs.length===2){let C=r.functionArgs[0],P=r.functionArgs[1],{message:A,signature:B}=await n7t(e,r.to,r.from,C,P),{r:F,s:W,v:K}=Z.ethers.utils.splitSignature(B);l={to:r.to,owner:A.owner,spender:A.spender,value:Z.BigNumber.from(A.value).toString(),nonce:Z.BigNumber.from(A.nonce).toString(),deadline:Z.BigNumber.from(A.deadline).toString(),r:F,s:W,v:K},p=B}else{let{signature:C}=await tce(e,c,u,l);p=C}let h="forward";l?.owner&&(h="permit");let m=JSON.stringify({request:l,signature:p,forwarderAddress:i,type:h}),y=await Db.default(a.openzeppelin.relayerUrl,{method:"POST",body:m});if(y.ok){let C=await y.json();if(!C.result)throw new Error(`Relay transaction failed: ${C.message}`);return JSON.parse(C.result).txHash}throw new Error(`relay transaction failed with status: ${y.status} (${y.statusText})`)}var sve=class{constructor(e){Q._defineProperty(this,"args",void 0),Q._defineProperty(this,"overrides",void 0),Q._defineProperty(this,"provider",void 0),Q._defineProperty(this,"signer",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"gasMultiple",void 0),this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.storage=e.storage||new Jg.ThirdwebStorage,this.signer.provider||(this.signer=this.signer.connect(this.provider))}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGasLimitMultiple(e){Z.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Z.BigNumber.from(Math.floor(Z.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Z.utils.formatEther(n),wei:n}}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Z.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}async getSignerAddress(){return this.signer.getAddress()}async getGasOverrides(){if(pFe())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.utils.parseUnits("1","gwei"),s;n===Ze.Mumbai||n===Ze.Polygon?s=await r7t(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Z.utils.parseUnits("300","gwei"),i=Z.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}},Qe=class extends sve{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new Qe(n)}static async fromContractInfo(e){let t=e.storage||new Jg.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await K1(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Z.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new Qe(i)}constructor(e){super({args:e.args,overrides:e.overrides,provider:e.provider,signer:e.signer,storage:e.storage}),Q._defineProperty(this,"method",void 0),Q._defineProperty(this,"contract",void 0),Q._defineProperty(this,"gaslessOptions",void 0),Q._defineProperty(this,"parse",void 0),this.method=e.method,this.gaslessOptions=e.gasless,this.parse=e.parse,this.contract=e.contract.connect(this.signer),this.storage=e.storage||new Jg.ThirdwebStorage}getTarget(){return this.contract.address}getMethod(){return this.method}getGaslessOptions(){return this.gaslessOptions}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Z.BigNumber.from(Math.floor(Z.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),await this.transactionError(e)}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(l1n.FormatTypes.json));Mbn(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){throw await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async sendGasless(){Rt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let h=await this.getSignerAddress();e[0]=e[0].map(m=>Z.utils.solidityPack(["bytes","address"],[m,h]))}Rt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Z.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Z.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Z.BigNumber.from(5e5)),this.overrides.gasLimit&&Z.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Z.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await qbn(c,this.signer,this.provider,this.storage,this.gaslessOptions),l,p=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(h=>setTimeout(h,Math.min(p*1e3,1e4))),p++),p>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Z.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(A=>JSON.stringify(A).length<=80?JSON.stringify(A):JSON.stringify(A,void 0,2)),p=l.join(", ").length<=80?l.join(", "):` +`+l.map(A=>" "+A.split(` `).join(` `)).join(`, `)+` -`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Ime(e),I,C;try{let R=await z0(this.contract.address,this.provider,this.storage);R.name&&(C=R.name),R.metadata.sources&&(I=await Ame(R,this.storage))}catch{}return new oY({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:C,sources:I})}},Lfe=class extends Dfe{constructor(e){super(e),$._defineProperty(this,"factory",void 0),$._defineProperty(this,"events",void 0),this.factory=e.factory,this.events=e.events}encode(){return Z.utils.hexlify(Z.utils.concat([this.factory.bytecode,this.factory.interface.encodeDeploy(this.args)]))}async sign(){let e=await this.populateTransaction();return this.signer.signTransaction(e)}async simulate(){let e=await this.populateTransaction();this.signer.call(e)}async estimateGasLimit(){try{let t={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,t);return this.signer.estimateGas(n)}catch(e){throw await this.deployError(e)}}async send(){try{let e=await this.populateTransaction();return await this.signer.sendTransaction(e)}catch(e){throw await this.deployError(e)}}async execute(){let e=await this.send();try{await e.wait()}catch(n){throw await this.simulate(),await this.deployError(n)}let t=Z.utils.getContractAddress({from:e.from,nonce:e.nonce});return this.events&&this.events.emit("contractDeployed",{status:"completed",contractAddress:t,transactionHash:e.hash}),t}async populateTransaction(){let t={...await this.getGasOverrides(),...this.overrides};return t.gasLimit||(t.gasLimit=await this.estimateGasLimit()),this.factory.getDeployTransaction(...this.args,t)}async deployError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.encode(),s=Z.BigNumber.from(this.overrides.value||0),o=t.connection?.url,c=this.args.map(m=>JSON.stringify(m).length<=80?JSON.stringify(m):JSON.stringify(m,void 0,2)),l=`deployContract(${c.join(", ").length<=80?c.join(", "):` +`,h=`${u.name}(${p})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Zve(e),C,P;try{let A=await K1(this.contract.address,this.provider,this.storage);A.name&&(P=A.name),A.metadata.sources&&(C=await Rce(A,this.storage))}catch{}return new gee({reason:y,from:a,to:i,method:h,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:P,sources:C})}},ove=class extends sve{constructor(e){super(e),Q._defineProperty(this,"factory",void 0),Q._defineProperty(this,"events",void 0),this.factory=e.factory,this.events=e.events}encode(){return Z.utils.hexlify(Z.utils.concat([this.factory.bytecode,this.factory.interface.encodeDeploy(this.args)]))}async sign(){let e=await this.populateTransaction();return this.signer.signTransaction(e)}async simulate(){let e=await this.populateTransaction();this.signer.call(e)}async estimateGasLimit(){try{let t={...await this.getGasOverrides(),...this.overrides},n=this.factory.getDeployTransaction(...this.args,t);return this.signer.estimateGas(n)}catch(e){throw await this.deployError(e)}}async send(){try{let e=await this.populateTransaction();return await this.signer.sendTransaction(e)}catch(e){throw await this.deployError(e)}}async execute(){let e=await this.send();try{await e.wait()}catch(n){throw await this.simulate(),await this.deployError(n)}let t=Z.utils.getContractAddress({from:e.from,nonce:e.nonce});return this.events&&this.events.emit("contractDeployed",{status:"completed",contractAddress:t,transactionHash:e.hash}),t}async populateTransaction(){let t={...await this.getGasOverrides(),...this.overrides};return t.gasLimit||(t.gasLimit=await this.estimateGasLimit()),this.factory.getDeployTransaction(...this.args,t)}async deployError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.encode(),s=Z.BigNumber.from(this.overrides.value||0),o=t.connection?.url,c=this.args.map(m=>JSON.stringify(m).length<=80?JSON.stringify(m):JSON.stringify(m,void 0,2)),l=`deployContract(${c.join(", ").length<=80?c.join(", "):` `+c.map(m=>" "+m.split(` `).join(` `)).join(`, `)+` -`})`,h=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,f=Ime(e);return new oY({reason:f,from:a,method:l,data:i,network:n,rpcUrl:o,value:s,hash:h})}},q0=class{constructor(e,t,n){$._defineProperty(this,"featureName",hfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"schema",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new F0(hfe)})),$._defineProperty(this,"update",Ie(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{vo("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{vo("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await z0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return $e(e,"ContractMetadata")}},Ofe=class{constructor(e,t){$._defineProperty(this,"featureName",pfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"setAll",Ie(async n=>{let a=Object.keys(n);Tt.default(a.length,"you must provide at least one role to set"),Tt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Re(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Re(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[nY(u),y]))}),m.length)for(let y=0;y{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[nY(n),i]})})),$._defineProperty(this,"revoke",Ie(async(n,a)=>{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a),s=await this.getRevokeRoleFunctionName(i);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[nY(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){Tt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){Tt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(vo("getRoleMemberCount",t)&&vo("getRoleMember",t)){let n=nY(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Re(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new efe(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Re(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},qfe=class{constructor(e,t){$._defineProperty(this,"featureName",ufe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"setDefaultRoyaltyInfo",Ie(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(vo("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),$._defineProperty(this,"setTokenRoyaltyInfo",Ie(async(n,a)=>{let i=Zo.parse(a);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Zo.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Zo.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},Ffe=class{constructor(e){$._defineProperty(this,"featureName",lfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"setRecipient",Ie(async t=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},Cme={name:"Failed to load NFT metadata"};async function V8e(r,e,t){let n=e.replace("{id}",Z.ethers.utils.hexZeroPad(Z.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Z.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=Cme}}return $.CommonNFTOutput.parse({...a,id:Z.BigNumber.from(r).toString(),uri:e})}async function rte(r,e,t,n){let a,i=new Z.Contract(r,vme.default,e),s=await i.supportsInterface($ee),o=await i.supportsInterface(Qee);if(s)a=await new Z.Contract(r,KOr.default,e).tokenURI(t);else if(o)a=await new Z.Contract(r,GOr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?V8e(t,a,n):$.CommonNFTOutput.parse({...Cme,id:Z.BigNumber.from(t).toString(),uri:""})}async function Y8e(r,e){return typeof r=="string"?r:await e.upload($.CommonNFTInput.parse(r))}async function Y2(r,e,t,n){if(kFr(r))return r;if(AFr(r))return await e.uploadBatch(r.map(i=>$.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function sY(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function AFr(r){return r.find(e=>typeof e!="object")===void 0}var zee=class{constructor(e,t,n,a){$._defineProperty(this,"featureName",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"nextTokenIdToMintFn",void 0),$._defineProperty(this,"createDelayedRevealBatch",Ie(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([$.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=sY(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>$.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=sY(f),y=await this.contractWrapper.readContract.getBaseURICount(),I=await this.hashDelayRevealPassword(y,o),C=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(m),I),R;if(await this.isLegacyContract())R=C;else{let F=await this.contractWrapper.getChainID(),W=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(m),I,F]);R=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[C,W])}return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,R],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:F});return H}})})),$._defineProperty(this,"reveal",Ie(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(vo("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(vo("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Z.ethers.utils.hexDataLength(u)>0?s?u:Z.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Z.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Z.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return rte(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(vo("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Z.ethers.Contract(this.contractWrapper.readContract.address,VOr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Jo=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),ka=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),Kee=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +`})`,p=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,h=Zve(e);return new gee({reason:h,from:a,method:l,data:i,network:n,rpcUrl:o,value:s,hash:p})}},Bb=class{constructor(e,t,n){Q._defineProperty(this,"featureName",X5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"schema",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"set",Pe(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new Nb(X5e)})),Q._defineProperty(this,"update",Pe(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{jc("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{jc("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await K1(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return St(e,"ContractMetadata")}},cve=class{constructor(e,t){Q._defineProperty(this,"featureName",Z5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"roles",void 0),Q._defineProperty(this,"setAll",Pe(async n=>{let a=Object.keys(n);Rt.default(a.length,"you must provide at least one role to set"),Rt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait We(y))||[]),p=await Promise.all(i[u]?.map(async y=>await We(y))||[]),h=l.filter(y=>!p.includes(y)),m=p.filter(y=>!l.includes(y));if(h.length&&h.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[dee(u),y]))}),m.length)for(let y=0;y{Rt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await We(a);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[dee(n),i]})})),Q._defineProperty(this,"revoke",Pe(async(n,a)=>{Rt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await We(a),s=await this.getRevokeRoleFunctionName(i);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[dee(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){Rt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){Rt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(jc("getRoleMemberCount",t)&&jc("getRoleMember",t)){let n=dee(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await We(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new E5e(i,n)}))}async getRevokeRoleFunctionName(e){let t=await We(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},uve=class{constructor(e,t){Q._defineProperty(this,"featureName",Y5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"metadata",void 0),Q._defineProperty(this,"setDefaultRoyaltyInfo",Pe(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(jc("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),Q._defineProperty(this,"setTokenRoyaltyInfo",Pe(async(n,a)=>{let i=I0.parse(a);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return I0.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return I0.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},lve=class{constructor(e){Q._defineProperty(this,"featureName",Q5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"setRecipient",Pe(async t=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},ewe={name:"Failed to load NFT metadata"};async function kFe(r,e,t){let n=e.replace("{id}",Z.ethers.utils.hexZeroPad(Z.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Z.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=ewe}}return Q.CommonNFTOutput.parse({...a,id:Z.BigNumber.from(r).toString(),uri:e})}async function Pce(r,e,t,n){let a,i=new Z.Contract(r,Kve.default,e),s=await i.supportsInterface(wce),o=await i.supportsInterface(xce);if(s)a=await new Z.Contract(r,ryn.default,e).tokenURI(t);else if(o)a=await new Z.Contract(r,nyn.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?kFe(t,a,n):Q.CommonNFTOutput.parse({...ewe,id:Z.BigNumber.from(t).toString(),uri:""})}async function SFe(r,e){return typeof r=="string"?r:await e.upload(Q.CommonNFTInput.parse(r))}async function D3(r,e,t,n){if(Hbn(r))return r;if(jbn(r))return await e.uploadBatch(r.map(i=>Q.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function bee(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function jbn(r){return r.find(e=>typeof e!="object")===void 0}var mce=class{constructor(e,t,n,a){Q._defineProperty(this,"featureName",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"nextTokenIdToMintFn",void 0),Q._defineProperty(this,"createDelayedRevealBatch",Pe(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([Q.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=bee(u),p=await this.nextTokenIdToMintFn(),h=await this.storage.uploadBatch(s.map(F=>Q.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:p.toNumber()}}),m=bee(h),y=await this.contractWrapper.readContract.getBaseURICount(),C=await this.hashDelayRevealPassword(y,o),P=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(m),C),A;if(await this.isLegacyContract())A=P;else{let F=await this.contractWrapper.getChainID(),W=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(m),C,F]);A=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[P,W])}return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[h.length,l.endsWith("/")?l:`${l}/`,A],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),K=W[0].args.startTokenId,z=W[0].args.endTokenId,G=[];for(let j=K;j.lte(z);j=j.add(1))G.push({id:j,receipt:F});return G}})})),Q._defineProperty(this,"reveal",Pe(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(jc("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(jc("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Z.ethers.utils.hexDataLength(u)>0?s?u:Z.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Z.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Z.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return Pce(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(jc("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Z.ethers.Contract(this.contractWrapper.readContract.address,ayn.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},E0=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),Ti=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),yce=class{constructor(e,t,n){var a=this;Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"metadata",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"set",Pe(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(I=>typeof I=="string"?0:Number(I.maxClaimable?.toString()||0)).reduce((I,C)=>I+C,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await xft(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!wht.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),I=await a.metadata._parseAndUploadMetadata(y);if(vo("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[I]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[afe(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(afe),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[ife(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(ife),s]));else throw new Error("Contract does not support claim conditions");return Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"update",Ie(async(i,s)=>{let o=await this.getAll(),c=await wft(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await cfe(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return sfe(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return sfe(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return ofe(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return ofe(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;ccfe(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Re(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Z.ethers.utils.parseUnits($.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[ka.NoWallet];let c=await Re(t);try{i=await this.getActive()}catch(f){return Ree(f,"!CONDITION")||Ree(f,"no active mint condition")?(n.push(ka.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(ka.Unknown),n)}i.availableSupply!=="unlimited"&&Z.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(ka.NotEnoughSupply);let l=Z.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(ka.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0))return n.push(ka.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0)))return n.push(ka.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(ka.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Z.BigNumber.from(0),y=lm(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let I=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(I,c)}if(f&&(y=lm(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(ka.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Z.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Z.constants.MaxUint256)?n.push(ka.AlreadyClaimed):n.push(ka.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&bft()){let f=i.price.mul(Z.BigNumber.from(e)),m=this.contractWrapper.getProvider();jh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(ka.NotEnoughTokens):(await new Rs(m,i.currencyAddress,xu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(ka.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Z.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Re(e);return await Eme(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return $e(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return vft(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Re(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV2")||$e(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC721ClaimPhasesV2")||$e(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV1")||$e(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC721ClaimPhasesV1")||$e(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?j2.V1:j2.V2}},Wfe=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),$._defineProperty(this,"setBatch",Ie(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(R=>{if(R.snapshot&&R.snapshot.length>0&&(R.maxClaimablePerWallet===void 0||R.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(C=>typeof C=="string"?0:Number(C.maxClaimable?.toString()||0)).reduce((C,P)=>C+P,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await c7t(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let p=await a.metadata.get(),h=[];if(!o9t.default(p.merkle,l)){let y=await a.metadata.parseInputMetadata({...p,merkle:l}),C=await a.metadata._parseAndUploadMetadata(y);if(jc("setContractURI",a.contractWrapper))h.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[C]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[k5e(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(k5e),s]));else if(a.isNewSinglePhaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[S5e(u[0]),s]));else if(a.isNewMultiphaseDrop(m))h.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(S5e),s]));else throw new Error("Contract does not support claim conditions");return Qe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[h]})})),Q._defineProperty(this,"update",Pe(async(i,s)=>{let o=await this.getAll(),c=await o7t(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await M5e(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return P5e(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return P5e(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return R5e(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return R5e(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cM5e(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await We(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Z.ethers.utils.parseUnits(Q.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(h){console.warn("failed to get signer address",h)}if(!t)return[Ti.NoWallet];let c=await We(t);try{i=await this.getActive()}catch(h){return ece(h,"!CONDITION")||ece(h,"no active mint condition")?(n.push(Ti.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",h),n.push(Ti.Unknown),n)}i.availableSupply!=="unlimited"&&Z.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(Ti.NotEnoughSupply);let l=Z.ethers.utils.stripZeros(i.merkleRootHash).length>0,p=null;if(l){if(p=await this.getClaimerProofs(c),!p&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(Ti.AddressNotAllowed),n;if(p)try{let h=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,h.proofs,h.maxClaimable),!m)return n.push(Ti.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:h.proofs,maxQuantityInAllowlist:h.maxClaimable}),!m)return n.push(Ti.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,h.currencyAddress,h.price,{proof:h.proofs,quantityLimitPerWallet:h.maxClaimable,currency:h.currencyAddressInProof,pricePerToken:h.priceInProof}),W1(i.maxClaimablePerWallet,s).eq(0)&&h.maxClaimable===Z.ethers.constants.MaxUint256||h.maxClaimable===Z.BigNumber.from(0))return n.push(Ti.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,h.currencyAddress,h.price,{proof:h.proofs,quantityLimitPerWallet:h.maxClaimable,currency:h.currencyAddressInProof,pricePerToken:h.priceInProof}),W1(i.maxClaimablePerWallet,s).eq(0)&&h.maxClaimable===Z.ethers.constants.MaxUint256||h.maxClaimable===Z.BigNumber.from(0)))return n.push(Ti.AddressNotAllowed),n}catch(h){return console.warn("Merkle proof verification failed:","reason"in h?h.reason:h),n.push(Ti.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let h=await this.getClaimerProofs(c),m=Z.BigNumber.from(0),y=W1(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let C=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(C,c)}if(h&&(y=W1(h.maxClaimable,s)),(!l||l&&!p)&&(y.lte(m)||y.eq(0)))return n.push(Ti.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[h,m]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[h,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Z.BigNumber.from(Date.now()).div(1e3);h.gt(0)&&y.lt(m)&&(m.eq(Z.constants.MaxUint256)?n.push(Ti.AlreadyClaimed):n.push(Ti.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&a7t()){let h=i.price.mul(Z.BigNumber.from(e)),m=this.contractWrapper.getProvider();am(i.currencyAddress)?(await m.getBalance(c)).lt(h)&&n.push(Ti.NotEnoughTokens):(await new Do(m,i.currencyAddress,Ju.default,{}).readContract.balanceOf(c)).lt(h)&&n.push(Ti.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Z.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await We(e);return await Xve(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return St(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return s7t(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await We(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return St(e,"ERC721ClaimConditionsV2")||St(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return St(e,"ERC721ClaimPhasesV2")||St(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return St(e,"ERC721ClaimConditionsV1")||St(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return St(e,"ERC721ClaimPhasesV1")||St(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?k3.V1:k3.V2}},fve=class{constructor(e,t,n){var a=this;Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"metadata",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"set",Pe(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),Q._defineProperty(this,"setBatch",Pe(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async p=>{let{tokenId:h,claimConditions:m}=p,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(A=>{if(A.snapshot&&A.snapshot.length>0&&(A.maxClaimablePerWallet===void 0||A.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(R.snapshot&&R.snapshot.length>0&&R.maxClaimablePerWallet?.toString()==="0"&&R.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:I,sortedConditions:C}=await xft(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return I.forEach(R=>{o[R.merkleRoot]=R.snapshotUri}),{tokenId:f,sortedConditions:C}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!wht.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(vo("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,afe(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(afe),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,ife(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(ife),s]));else throw new Error("Contract does not support claim conditions")}),Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),$._defineProperty(this,"update",Ie(async(i,s,o)=>{let c=await this.getAll(i),u=await wft(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await cfe(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return sfe(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return sfe(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return ofe(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return ofe(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;ccfe(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Re(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[ka.NoWallet];let o=await Re(n);try{s=await this.getActive(e)}catch(y){return Ree(y,"!CONDITION")||Ree(y,"no active mint condition")?(a.push(ka.NoClaimConditionSet),a):(a.push(ka.Unknown),a)}s.availableSupply!=="unlimited"&&Z.BigNumber.from(s.availableSupply).lt(t)&&a.push(ka.NotEnoughSupply);let u=Z.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(ka.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),I;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!I)return a.push(ka.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([I]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!I)return a.push(ka.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0))return a.push(ka.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0)))return a.push(ka.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(ka.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(ka.AddressNotAllowed),a;let[h,f]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Z.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Z.constants.MaxUint256)?a.push(ka.AlreadyClaimed):a.push(ka.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&bft()){let y=s.price.mul(t),I=this.contractWrapper.getProvider();jh(s.currencyAddress)?(await I.getBalance(o)).lt(y)&&a.push(ka.NotEnoughTokens):(await new Rs(I,s.currencyAddress,xu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(ka.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Z.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Re(t);return await Eme(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Re(a||await this.contractWrapper.getSignerAddress());return vft(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Re(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?j2.V1:j2.V2}},Ufe=class{constructor(e,t){$._defineProperty(this,"featureName",Oee.name),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Ie(async n=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),$._defineProperty(this,"from",Ie(async(n,a)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Re(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},m8e=class{constructor(e,t,n){$._defineProperty(this,"featureName",Lee.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new q0(this.contractWrapper,U2,this.storage);this.conditions=new Kee(this.contractWrapper,a,this.storage)}},y8e=class{constructor(e,t,n){$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new m8e(this.erc20,this.contractWrapper,this.storage)}},Hfe=class{constructor(e,t){$._defineProperty(this,"featureName",gfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"to",Ie(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Re(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},jfe=class{constructor(e,t){$._defineProperty(this,"featureName",qee.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Ie(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if($e(this.contractWrapper,"ERC20BatchMintable"))return new Hfe(this.erc20,this.contractWrapper)}},zfe=class{constructor(e,t){$._defineProperty(this,"featureName",yfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Ie(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await W0(this.contractWrapper,Z.BigNumber.from(s.price),a.currencyAddress,o),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),$._defineProperty(this,"mintBatch",Ie(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Z.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>B8e.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();Tt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await qht.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:zht},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},Kfe=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",bfe.name),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"droppable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Re(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferFrom",Ie(async(a,i,s)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Re(a),await Re(i),await this.normalizeAmount(s)]}))),$._defineProperty(this,"setAllowance",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferBatch",Ie(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Re(s.toAddress),o])}));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),$._defineProperty(this,"mint",Ie(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Ie(async(a,i)=>er(this.mintable,qee).to.prepare(a,i))),$._defineProperty(this,"mintBatchTo",Ie(async a=>er(this.mintable?.batch,gfe).to.prepare(a))),$._defineProperty(this,"burn",Ie(async a=>er(this.burnable,Oee).tokens.prepare(a))),$._defineProperty(this,"burnFrom",Ie(async(a,i)=>er(this.burnable,Oee).from.prepare(a,i))),$._defineProperty(this,"claim",Ie(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Ie(async(a,i,s)=>er(this.droppable?.claim,Lee).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await gY(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Re(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Re(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Re(e),await Re(t)))}async getMintTransaction(e,t){return er(this.mintable,qee).getMintTransaction(e,t)}get claimConditions(){return er(this.droppable?.claim,Lee).conditions}get signature(){return er(this.signatureMintable,yfe)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Z.ethers.utils.parseUnits($.AmountSchema.parse(e),t)}async getValue(e){return await Tp(this.contractWrapper.getProvider(),this.getAddress(),Z.BigNumber.from(e))}detectErc20Mintable(){if($e(this.contractWrapper,"ERC20"))return new jfe(this,this.contractWrapper)}detectErc20Burnable(){if($e(this.contractWrapper,"ERC20Burnable"))return new Ufe(this,this.contractWrapper)}detectErc20Droppable(){if($e(this.contractWrapper,"ERC20ClaimConditionsV1")||$e(this.contractWrapper,"ERC20ClaimConditionsV2")||$e(this.contractWrapper,"ERC20ClaimPhasesV1")||$e(this.contractWrapper,"ERC20ClaimPhasesV2"))return new y8e(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if($e(this.contractWrapper,"ERC20SignatureMintable"))return new zfe(this.contractWrapper)}},Gfe=class{constructor(e){$._defineProperty(this,"featureName",vfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"token",Ie(async t=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},g8e=class{constructor(e,t){$._defineProperty(this,"featureName",Wee.name),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Ie(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await _ft(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},Vfe=class{constructor(e,t,n){$._defineProperty(this,"featureName",xfe.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new q0(this.contractWrapper,U2,this.storage);this.conditions=new Kee(this.contractWrapper,a,this.storage)}},Yfe=class{constructor(e,t,n){$._defineProperty(this,"featureName",_fe.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Ie(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await Y2(a,this.storage,s.toNumber(),i),c=sY(o);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Z.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if($e(this.contractWrapper,"ERC721Revealable"))return new zee(this.contractWrapper,this.storage,Fee.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if($e(this.contractWrapper,"ERC721ClaimConditionsV1")||$e(this.contractWrapper,"ERC721ClaimConditionsV2")||$e(this.contractWrapper,"ERC721ClaimPhasesV1")||$e(this.contractWrapper,"ERC721ClaimPhasesV2"))return new Vfe(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if($e(this.contractWrapper,"ERC721ClaimCustom"))return new g8e(this.erc721,this.contractWrapper)}},$fe=class{constructor(e,t,n){$._defineProperty(this,"featureName",Tfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=await Y2(i,this.storage),o=await Re(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},Qfe=class{constructor(e,t,n){$._defineProperty(this,"featureName",Ife.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=await Y8e(i,this.storage);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Re(e),t)}detectErc721BatchMintable(){if($e(this.contractWrapper,"ERC721BatchMintable"))return new $fe(this.erc721,this.contractWrapper,this.storage)}},Jfe=class{constructor(e,t){$._defineProperty(this,"featureName",s8e.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},Zfe=class{constructor(e,t){$._defineProperty(this,"featureName",iY.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Z.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if($e(this.contractWrapper,"ERC721Enumerable"))return new Jfe(this.erc721,this.contractWrapper)}},PFr=xme.extend({tierPriority:pe.z.array(pe.z.string()),royaltyRecipient:Ri.default(Z.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0),quantity:Ss.default(1)}),b8e=class{constructor(e,t,n){$._defineProperty(this,"featureName",wfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([$.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=sY(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>$.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=sY(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(l),m),I,C=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(l),m,f]);I=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,C]);let R=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,I]),L=this.contractWrapper.parseLogs("TokensLazyMinted",R?.logs),F=L[0].args[1],W=L[0].args[2],V=[];for(let K=F;K.lte(W);K=K.add(1))V.push({id:K,receipt:R,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>PFr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return Tt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:Yht},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await Cc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await W0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},Xfe=class{constructor(e,t){$._defineProperty(this,"featureName",Efe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"mint",Ie(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await W0(this.contractWrapper,u,a.currencyAddress,s),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await W0(this.contractWrapper,u,a.currencyAddress,s),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),$._defineProperty(this,"mintBatch",Ie(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(vo("multicall",this.contractWrapper))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>Hht.parseAsync(c))),a=n.map(c=>c.metadata),i=await Y2(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return Tt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await jht.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Kht},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:Vht},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return $e(this.contractWrapper,"ERC721SignatureMintV1")}},eme=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",Cfe.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"tieredDropable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Ie(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Re(a),i]})})),$._defineProperty(this,"setApprovalForAll",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Re(a),i]}))),$._defineProperty(this,"setApprovalForToken",Ie(async(a,i)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),i]}))),$._defineProperty(this,"mint",Ie(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Ie(async(a,i)=>er(this.mintable,Ife).to.prepare(a,i))),$._defineProperty(this,"mintBatch",Ie(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintBatchTo",Ie(async(a,i)=>er(this.mintable?.batch,Tfe).to.prepare(a,i))),$._defineProperty(this,"burn",Ie(async a=>er(this.burnable,vfe).token.prepare(a))),$._defineProperty(this,"lazyMint",Ie(async(a,i)=>er(this.lazyMintable,_fe).lazyMint.prepare(a,i))),$._defineProperty(this,"claim",Ie(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Ie(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new F0(Wee)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Z.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Cme}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Re(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async getAll(e){return er(this.query,iY).all(e)}async getAllOwners(){return er(this.query,iY).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return er(this.query,iY).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Z.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new F0(Wee)}async totalClaimedSupply(){let e=this.contractWrapper;if(vo("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(vo("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,xfe).conditions}get tieredDrop(){return er(this.tieredDropable,wfe)}get signature(){return er(this.signatureMintable,Efe)}get revealer(){return er(this.lazyMintable?.revealer,Fee)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new See;return V8e(e,t,this.storage)}async nextTokenIdToMint(){if(vo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(vo("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if($e(this.contractWrapper,"ERC721Supply")||vo("nextTokenIdToMint",this.contractWrapper))return new Zfe(this,this.contractWrapper)}detectErc721Mintable(){if($e(this.contractWrapper,"ERC721Mintable"))return new Qfe(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if($e(this.contractWrapper,"ERC721Burnable"))return new Gfe(this.contractWrapper)}detectErc721LazyMintable(){if($e(this.contractWrapper,"ERC721LazyMintable"))return new Yfe(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if($e(this.contractWrapper,"ERC721TieredDrop"))return new b8e(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if($e(this.contractWrapper,"ERC721SignatureMintV1")||$e(this.contractWrapper,"ERC721SignatureMintV2"))return new Xfe(this.contractWrapper,this.storage)}},iht=pe.z.object({address:Ri,quantity:$.AmountSchema.default(1)}),SFr=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>iht.parseAsync({address:e})))),pe.z.array(iht)]),tme=class{constructor(e){$._defineProperty(this,"featureName",O2.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Ie(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),$._defineProperty(this,"from",Ie(async(t,n,a)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Re(t),n,a]}))),$._defineProperty(this,"batch",Ie(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),$._defineProperty(this,"batchFrom",Ie(async(t,n,a)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Re(t),n,a]}))),this.contractWrapper=e}},rme=class{constructor(e,t){$._defineProperty(this,"featureName",F2.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function $8e(r,e){try{let t=new Z.ethers.Contract(r,E8e.default,e),[n,a]=await Promise.all([Z.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var v8e=class{constructor(e){$._defineProperty(this,"featureName",Uee.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Ie(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await _ft(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Re(e),t,n],overrides:i})}},w8e=class{constructor(e,t){$._defineProperty(this,"featureName",kfe.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new q0(this.contractWrapper,U2,this.storage);this.conditions=new Wfe(e,n,this.storage)}},nme=class{constructor(e,t,n){$._defineProperty(this,"featureName",Afe.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Ie(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await Y2(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,I=[];for(let C=m;C.lte(y);C=C.add(1))I.push({id:C,receipt:h,data:()=>this.erc1155.getTokenMetadata(C)});return I},l=await $8e(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Z.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if($e(this.contractWrapper,"ERC1155ClaimCustom"))return new v8e(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if($e(this.contractWrapper,"ERC1155ClaimConditionsV1")||$e(this.contractWrapper,"ERC1155ClaimConditionsV2")||$e(this.contractWrapper,"ERC1155ClaimPhasesV1")||$e(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new w8e(this.contractWrapper,this.storage)}detectErc1155Revealable(){if($e(this.contractWrapper,"ERC1155Revealable"))return new zee(this.contractWrapper,this.storage,cY.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},ame=class{constructor(e,t,n){$._defineProperty(this,"featureName",Sfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await Y2(s,this.storage),u=await Re(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Z.ethers.constants.MaxUint256,h,o[f]])));return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},ime=class{constructor(e,t,n){$._defineProperty(this,"featureName",q2.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Ie(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),$._defineProperty(this,"additionalSupplyTo",Ie(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),i,o.uri,s],parse:c=>({id:Z.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await Y8e(t.metadata,this.storage);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),Z.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if($e(this.contractWrapper,"ERC1155BatchMintable"))return new ame(this.erc1155,this.contractWrapper,this.storage)}},sme=class{constructor(e,t,n){$._defineProperty(this,"featureName",Pfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Ie(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await W0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),$._defineProperty(this,"mintBatch",Ie(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(vo("multicall",this.contractWrapper))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Z.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Z.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>Wht.parseAsync(u))),n=t.map(u=>u.metadata),a=await Y2(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();Tt.default(s,"No signer available");let c=(await $8e(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await Uht.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Ght},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await Cc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},ome=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;$._defineProperty(this,"featureName",Rfe.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Ie(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Re(i),s,o,c]})})),$._defineProperty(this,"setApprovalForAll",Ie(async(i,s)=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),$._defineProperty(this,"airdrop",Ie(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await SFr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:I}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,I,o])});return Le.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"mint",Ie(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintTo",Ie(async(i,s)=>er(this.mintable,q2).to.prepare(i,s))),$._defineProperty(this,"mintAdditionalSupply",Ie(async(i,s)=>er(this.mintable,q2).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),$._defineProperty(this,"mintAdditionalSupplyTo",Ie(async(i,s,o)=>er(this.mintable,q2).additionalSupplyTo.prepare(i,s,o))),$._defineProperty(this,"mintBatch",Ie(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintBatchTo",Ie(async(i,s)=>er(this.mintable?.batch,Sfe).to.prepare(i,s))),$._defineProperty(this,"burn",Ie(async(i,s)=>er(this.burnable,O2).tokens.prepare(i,s))),$._defineProperty(this,"burnFrom",Ie(async(i,s,o)=>er(this.burnable,O2).from.prepare(i,s,o))),$._defineProperty(this,"burnBatch",Ie(async(i,s)=>er(this.burnable,O2).batch.prepare(i,s))),$._defineProperty(this,"burnBatchFrom",Ie(async(i,s,o)=>er(this.burnable,O2).batchFrom.prepare(i,s,o))),$._defineProperty(this,"lazyMint",Ie(async(i,s)=>er(this.lazyMintable,Afe).lazyMint.prepare(i,s))),$._defineProperty(this,"claim",Ie(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),$._defineProperty(this,"claimTo",Ie(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new F0(Uee)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Z.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Cme}))]);return{owner:Z.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Re(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async nextTokenIdToMint(){if(vo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return er(this.query,F2).all(e)}async totalCount(){return er(this.query,F2).totalCount()}async totalCirculatingSupply(e){return er(this.query,F2).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Re(e)),er(this.query,F2).owned(e)}async getMintTransaction(e,t){return er(this.mintable,q2).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new F0(Uee)}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,kfe).conditions}get signature(){return er(this.signatureMintable,Pfe)}get revealer(){return er(this.lazyMintable?.revealer,cY)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new See;return V8e(e,t,this.storage)}detectErc1155Enumerable(){if($e(this.contractWrapper,"ERC1155Enumerable"))return new rme(this,this.contractWrapper)}detectErc1155Mintable(){if($e(this.contractWrapper,"ERC1155Mintable"))return new ime(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if($e(this.contractWrapper,"ERC1155Burnable"))return new tme(this.contractWrapper)}detectErc1155LazyMintable(){if($e(this.contractWrapper,"ERC1155LazyMintableV1")||$e(this.contractWrapper,"ERC1155LazyMintableV2"))return new nme(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if($e(this.contractWrapper,"ERC1155SignatureMintable"))return new sme(this.contractWrapper,this.storage)}};async function Uft(r,e,t,n,a){try{let i=new Z.Contract(t,vme.default,r),s=await i.supportsInterface($ee),o=await i.supportsInterface(Qee);if(s){let c=new Z.Contract(t,kc.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Z.Contract(t,Gu.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function Gee(r,e,t,n,a){let i=new Rs(r.getSignerOrProvider(),t,vme.default,r.options),s=await i.readContract.supportsInterface($ee),o=await i.readContract.supportsInterface(Qee);if(s){let c=new Rs(r.getSignerOrProvider(),t,kc.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Rs(r.getSignerOrProvider(),t,Gu.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function RFr(r){switch(Tt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),Tt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),Tt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),Tt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),Tt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),Tt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":Tt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function MFr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await Tp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function NFr(r,e,t){return t=Z.BigNumber.from(t),r=Z.BigNumber.from(r),e=Z.BigNumber.from(e),r.eq(Z.BigNumber.from(0))?!1:e.sub(r).mul($.MAX_BPS).div(r).gte(t)}async function fY(r,e,t){let n=[];for(;e-r>$.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+$.DEFAULT_QUERY_ALL_COUNT-1)),r+=$.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var sht=pe.z.object({assetContractAddress:Ri,tokenId:Qs,quantity:Qs.default(1),currencyContractAddress:Ri.default(Ku),pricePerToken:$.AmountSchema,startTimestamp:Jee.default(new Date),endTimestamp:Zee,isReservedListing:pe.z.boolean().default(!1)}),K2=class{constructor(e){$._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(kl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(kl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await sht.parseAsync(n);await Gee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Cc(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Z.BigNumber.from(o)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:nfe(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),$._defineProperty(this,"updateListing",Ie(async(n,a)=>{let i=await sht.parseAsync(a);await Gee(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await Cc(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:nfe(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),$._defineProperty(this,"cancelListing",Ie(async n=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),$._defineProperty(this,"buyFromListing",Ie(async(n,a,i)=>{i&&(i=await Re(i));let s=await this.validateListing(Z.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Z.BigNumber.from(a),h=Z.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await W0(this.contractWrapper,h,s.currencyContractAddress,f),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),$._defineProperty(this,"approveBuyerForReservedListing",Ie(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),$._defineProperty(this,"revokeBuyerApprovalForReservedListing",Ie(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),$._defineProperty(this,"approveCurrencyForListing",Ie(async(n,a,i)=>{let s=await this.validateListing(Z.BigNumber.from(n)),o=await Re(a);o===s.currencyContractAddress&&Tt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return Tt.default(i===c,"Currency already approved with this price."),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),$._defineProperty(this,"revokeCurrencyApprovalForListing",Ie(async(n,a)=>{let i=await this.validateListing(Z.BigNumber.from(n)),s=await Re(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return Tt.default(!o.isZero(),"Currency not approved."),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Z.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Z.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Re(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Z.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Re(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Z.BigNumber.from(e)),a=await Re(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Jo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Jo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Jo.Expired:Jo.Active;break;case 2:t=Jo.Completed;break;case 3:t=Jo.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await Tp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),asset:await rte(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await Uft(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Z.Contract(e.assetContractAddress,vme.default,a),s=await i.supportsInterface($ee),o=await i.supportsInterface(Qee);if(s){let u=(await new Z.Contract(e.assetContractAddress,kc.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Z.Contract(e.assetContractAddress,Gu.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=BFr.parse(n);await Gee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Cc(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await Cc(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Z.BigNumber.from(c)),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:nfe(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),$._defineProperty(this,"buyoutAuction",Ie(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n)),i=await gY(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Z.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),$._defineProperty(this,"makeBid",Ie(async(n,a)=>{let i=await this.validateAuction(Z.BigNumber.from(n)),s=await Cc(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Z.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Z.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);Tt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Z.BigNumber.from(i.minimumBidAmount);Tt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await W0(this.contractWrapper,s,i.currencyContractAddress,c),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),$._defineProperty(this,"cancelAuction",Ie(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),$._defineProperty(this,"closeAuctionForBidder",Ie(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Z.BigNumber.from(n));try{return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Z.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new aY(n.toString(),i.endTimeInSeconds.toString()):s}})),$._defineProperty(this,"closeAuctionForSeller",Ie(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Z.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new aY(n.toString(),a.endTimeInSeconds.toString()):i}})),$._defineProperty(this,"executeSale",Ie(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{let i=await this.getWinningBid(n);Tt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new aY(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Z.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Z.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Z.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Z.BigNumber.from(Math.floor(Date.now()/1e3)),i=Z.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Z.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Z.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Z.BigNumber.from(e))]),i=n?Z.BigNumber.from(n.bidAmount):Z.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return Tp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Jo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Jo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Jo.Expired:Jo.Active;break;case 2:t=Jo.Completed;break;case 3:t=Jo.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Z.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Z.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),asset:await rte(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Re(t),s=await Re(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await Tp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await DFr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=jh(a.currencyContractAddress)?Aee[i].wrapped.address:a.currencyContractAddress,o=await Cc(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await W0(this.contractWrapper,o,s,c),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),$._defineProperty(this,"cancelOffer",Ie(async n=>Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),$._defineProperty(this,"acceptOffer",Ie(async n=>{let a=await this.validateOffer(Z.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await Gee(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await fY(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Jo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.expirationTimestamp).lt(a)?Jo.Expired:Jo.Active;break;case 2:t=Jo.Completed;break;case 3:t=Jo.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await rte(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Z.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=jh(e.currencyContractAddress)?Aee[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Rs(i,a,xu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Re(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Xo(V6e())})).default:(await Promise.resolve().then(function(){return Xo(Y6e())})).default}},U0={name:"TokenERC1155",contractType:"edition",schema:cft,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo($6e())})).default}},Ip={name:"Marketplace",contractType:"marketplace",schema:O8e,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(X6e())})).default}},hm={name:"MarketplaceV3",contractType:"marketplace-v3",schema:O8e,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return await Bfe(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Xo(eIe())})).default;return await Bfe(r,Qi.parse(a||[]),e,{},t)}},Ep={name:"Multiwrap",contractType:"multiwrap",schema:Kft,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(rIe())})).default}},H0={name:"TokenERC721",contractType:"nft-collection",schema:sft,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(nIe())})).default}},qh={name:"DropERC721",contractType:"nft-drop",schema:L8e,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Xo(aIe())})).default:(await Promise.resolve().then(function(){return Xo(iIe())})).default}},Pl={name:"Pack",contractType:"pack",schema:eft,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||Qi.parse((await Promise.resolve().then(function(){return Xo(uIe())})).default||[])}},Fh={name:"SignatureDrop",contractType:"signature-drop",schema:L8e,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Xo(lIe())})).default:(await Promise.resolve().then(function(){return Xo(dIe())})).default}},Wh={name:"Split",contractType:"split",schema:rft,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(hIe())})).default}},j0={name:"DropERC20",contractType:"token-drop",schema:jft,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await kme(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Xo(mIe())})).default:(await Promise.resolve().then(function(){return Xo(yIe())})).default}},Uh={name:"TokenERC20",contractType:"token",schema:aft,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(vIe())})).default}},Hh={name:"VoteERC20",contractType:"vote",schema:dft,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Xo(TIe())})).default}};async function kme(r,e){try{return await $8e(r,e)}catch{return}}var fm={[Oh.contractType]:Oh,[U0.contractType]:U0,[Ip.contractType]:Ip,[hm.contractType]:hm,[Ep.contractType]:Ep,[H0.contractType]:H0,[qh.contractType]:qh,[Pl.contractType]:Pl,[Fh.contractType]:Fh,[Wh.contractType]:Wh,[j0.contractType]:j0,[Uh.contractType]:Uh,[Hh.contractType]:Hh},Gft={[Oh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[U0.contractType]:"",[Ip.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[hm.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[Ep.contractType]:"",[H0.contractType]:"",[qh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Pl.contractType]:"",[Fh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Wh.contractType]:"",[j0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Uh.contractType]:"",[Hh.contractType]:""},oht={name:"SmartContract",contractType:"custom",schema:{},roles:W8e},Q8e={...fm,[oht.contractType]:oht};function J8e(r){return Object.values(Q8e).find(e=>e.name===r)?.contractType||"custom"}function Z8e(r){return Object.values(Q8e).find(e=>e.contractType===r)?.name}async function Vft(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Pl.contractType?[]:k8e(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case qh.contractType:case H0.contractType:let o=await qh.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Fh.contractType:let c=await Fh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case Ep.contractType:let u=await Ep.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Oh.contractType:case U0.contractType:let l=await Oh.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case j0.contractType:case Uh.contractType:let h=await Uh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Hh.contractType:let f=await Hh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Z.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Wh.contractType:let m=await Wh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(C=>C.address),m.recipients.map(C=>Z.BigNumber.from(C.sharesBps))];case Ip.contractType:case hm.contractType:let y=await Ip.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Pl.contractType:let I=await Pl.schema.deploy.parseAsync(e);return[i,I.name,I.symbol,t,s,I.fee_recipient,I.seller_fee_basis_points];default:return[]}}function WFr(r,e){return r||(e?.gatewayUrls?new zg.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new zg.ThirdwebStorage)}var Vee=class{constructor(e,t,n){$._defineProperty(this,"featureName",ffe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Ie(async a=>$e(this.contractWrapper,"AppURI")?Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return $e(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():zg.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},dme=class{constructor(e){$._defineProperty(this,"featureName",dfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Ie(async t=>{let n=await Cp.parseAsync(t);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return Cp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},pme=class{constructor(e,t){$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await z0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return dY(Qi.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return Oft(Qi.parse(this.contractWrapper.abi),e?.metadata)}},hme=class{get royalties(){return er(this.detectRoyalties(),ufe)}get roles(){return er(this.detectRoles(),pfe)}get sales(){return er(this.detectPrimarySales(),lfe)}get platformFees(){return er(this.detectPlatformFees(),dfe)}get owner(){return er(this.detectOwnable(),mfe)}get erc20(){return er(this.detectErc20(),bfe)}get erc721(){return er(this.detectErc721(),Cfe)}get erc1155(){return er(this.detectErc1155(),Rfe)}get app(){return er(this.detectApp(),ffe)}get directListings(){return er(this.detectDirectListings(),Nee)}get englishAuctions(){return er(this.detectEnglishAuctions(),Bee)}get offers(){return er(this.detectOffers(),Dee)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Rs(e,t,n,i);$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"interceptor",void 0),$._defineProperty(this,"encoder",void 0),$._defineProperty(this,"estimator",void 0),$._defineProperty(this,"publishedMetadata",void 0),$._defineProperty(this,"abi",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=Qi.parse(n||[]),this.events=new K2(this.contractWrapper),this.encoder=new z2(this.contractWrapper),this.interceptor=new G2(this.contractWrapper),this.estimator=new V2(this.contractWrapper),this.publishedMetadata=new pme(this.contractWrapper,this.storage),this.metadata=new q0(this.contractWrapper,U2,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectRoyalties(){if($e(this.contractWrapper,"Royalty")){let e=new q0(this.contractWrapper,U2,this.storage);return new qfe(this.contractWrapper,e)}}detectRoles(){if($e(this.contractWrapper,"Permissions"))return new Ofe(this.contractWrapper,W8e)}detectPrimarySales(){if($e(this.contractWrapper,"PrimarySale"))return new Ffe(this.contractWrapper)}detectPlatformFees(){if($e(this.contractWrapper,"PlatformFee"))return new dme(this.contractWrapper)}detectErc20(){if($e(this.contractWrapper,"ERC20"))return new Kfe(this.contractWrapper,this.storage,this.chainId)}detectErc721(){if($e(this.contractWrapper,"ERC721"))return new eme(this.contractWrapper,this.storage,this.chainId)}detectErc1155(){if($e(this.contractWrapper,"ERC1155"))return new ome(this.contractWrapper,this.storage,this.chainId)}detectOwnable(){if($e(this.contractWrapper,"Ownable"))return new gme(this.contractWrapper)}detectApp(){let e=new q0(this.contractWrapper,U2,this.storage);if($e(this.contractWrapper,"AppURI"))return new Vee(this.contractWrapper,e,this.storage);if($e(this.contractWrapper,"ContractMetadata"))return new Vee(this.contractWrapper,e,this.storage)}detectDirectListings(){if($e(this.contractWrapper,"DirectListings"))return new cme(this.contractWrapper,this.storage)}detectEnglishAuctions(){if($e(this.contractWrapper,"EnglishAuctions"))return new ume(this.contractWrapper,this.storage)}detectOffers(){if($e(this.contractWrapper,"Offers"))return new lme(this.contractWrapper,this.storage)}},fme=class extends H2{constructor(e,t,n){super(e,t),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"publisher",void 0),$._defineProperty(this,"updatePublisherProfile",Ie(async a=>{let i=this.getSigner();Tt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return Le.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),$._defineProperty(this,"publish",Ie(async(a,i)=>{let s=this.getSigner();Tt.default(s,"A signer is required");let o=await s.getAddress(),c=await z8e(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let R=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!Qft(R,i.version))throw Error(`Version ${i.version} is not greater than ${R}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Z.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=nmt.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),I=await this.storage.upload(y);return Le.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,I,c.metadataUri,f,Z.constants.AddressZero],parse:C=>{let R=this.publisher.parseLogs("ContractPublished",C.logs);if(R.length<1)throw new Error("No ContractPublished event found");let L=R[0].args.publishedContract;return{receipt:C,data:async()=>this.toPublishedContract(L)}}})})),$._defineProperty(this,"unpublish",Ie(async(a,i)=>{let s=await Re(a);return Le.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Rs(e,kht(),YOr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return Nft(e,this.storage)}async extractFunctions(e){return Bft(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return pY(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await pY(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Re(e);return z0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return K8e(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Re(e),n=await jee(t,this.getProvider());return Tt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Re(e),n=await this.fetchCompilerMetadataFromAddress(t);return await Ame(n,this.storage)}async getPublisherProfile(e){let t=await Re(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:smt.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Re(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Re(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return Tt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return omt.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},x8e=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$._defineProperty(this,"registryLogic",void 0),$._defineProperty(this,"registryRouter",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"addContract",Ie(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Ie(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),Le.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Ie(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Ie(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Re(o.address),o.chainId])));return Le.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Rs(e,WCe(),$Or.default,n),this.registryRouter=new Rs(e,WCe(),QOr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Re(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Z.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},mY=class{constructor(e,t){$._defineProperty(this,"connection",void 0),$._defineProperty(this,"options",void 0),$._defineProperty(this,"events",new DCe.default),this.connection=new H2(e,t),this.options=t,this.events=new DCe.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ku,a=await Re(e),i=await Re(n),s=this.requireWallet(),o=await Cc(this.connection.getProvider(),t,n);if(jh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ku;this.requireWallet();let t=await Re(e),n=this.connection.getProvider(),a;return jh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await Tp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await Mee(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Z.ethers.utils.hashMessage(e),a=Z.ethers.utils.arrayify(n);return Z.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Be.Localhost||t===Be.Hardhat)return new mY(new Z.ethers.Wallet(Eht,Pee(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return Tt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Rs(this.connection.getSignerOrProvider(),e,xu.default,this.options)}},pm=class extends H2{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return pm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=Pee(t,n);i=e.connect(o)}let s=new pm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=Pee(t,n),s=new Z.Wallet(e,i);return new pm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;Tme(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),$._defineProperty(this,"contractCache",new Map),$._defineProperty(this,"_publisher",void 0),$._defineProperty(this,"storageHandler",void 0),$._defineProperty(this,"deployer",void 0),$._defineProperty(this,"multiChainRegistry",void 0),$._defineProperty(this,"wallet",void 0),$._defineProperty(this,"storage",void 0),Tht(t?.supportedChains);let a=WFr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new mY(e,t),this.deployer=new yme(e,t,a),this.multiChainRegistry=new x8e(e,this.storageHandler,this.options),this._publisher=new fme(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(A.snapshot&&A.snapshot.length>0&&A.maxClaimablePerWallet?.toString()==="0"&&A.snapshot.map(B=>typeof B=="string"?0:Number(B.maxClaimable?.toString()||0)).reduce((B,F)=>B+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:C,sortedConditions:P}=await c7t(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return C.forEach(A=>{o[A.merkleRoot]=A.snapshotUri}),{tokenId:h,sortedConditions:P}})),u=await a.metadata.get(),l=[];for(let p of Object.keys(u.merkle||{}))o[p]=u.merkle[p];if(!o9t.default(u.merkle,o)){let p=await a.metadata.parseInputMetadata({...u,merkle:o}),h=await a.metadata._parseAndUploadMetadata(p);if(jc("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[h]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(p=>{let{tokenId:h,sortedConditions:m}=p;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,k5e(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,m.map(k5e),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,S5e(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[h,m.map(S5e),s]));else throw new Error("Contract does not support claim conditions")}),Qe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),Q._defineProperty(this,"update",Pe(async(i,s,o)=>{let c=await this.getAll(i),u=await o7t(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await M5e(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return P5e(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return P5e(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return R5e(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return R5e(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cM5e(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await We(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[Ti.NoWallet];let o=await We(n);try{s=await this.getActive(e)}catch(y){return ece(y,"!CONDITION")||ece(y,"no active mint condition")?(a.push(Ti.NoClaimConditionSet),a):(a.push(Ti.Unknown),a)}s.availableSupply!=="unlimited"&&Z.BigNumber.from(s.availableSupply).lt(t)&&a.push(Ti.NotEnoughSupply);let u=Z.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(Ti.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),C;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[C]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!C)return a.push(Ti.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([C]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!C)return a.push(Ti.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0))return a.push(Ti.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0)))return a.push(Ti.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(Ti.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(Ti.AddressNotAllowed),a;let[p,h]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[p,h]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([p,h]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Z.BigNumber.from(Date.now()).div(1e3);if(p.gt(0)&&m.lt(h)&&(h.eq(Z.constants.MaxUint256)?a.push(Ti.AlreadyClaimed):a.push(Ti.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&a7t()){let y=s.price.mul(t),C=this.contractWrapper.getProvider();am(s.currencyAddress)?(await C.getBalance(o)).lt(y)&&a.push(Ti.NotEnoughTokens):(await new Do(C,s.currencyAddress,Ju.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(Ti.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Z.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await We(t);return await Xve(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await We(a||await this.contractWrapper.getSignerAddress());return s7t(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await We(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return St(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return St(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return St(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return St(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?k3.V1:k3.V2}},dve=class{constructor(e,t){Q._defineProperty(this,"featureName",nce.name),Q._defineProperty(this,"erc20",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"tokens",Pe(async n=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),Q._defineProperty(this,"from",Pe(async(n,a)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await We(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},HOe=class{constructor(e,t,n){Q._defineProperty(this,"featureName",rce.name),Q._defineProperty(this,"conditions",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc20",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"to",Pe(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new Bb(this.contractWrapper,A3,this.storage);this.conditions=new yce(this.contractWrapper,a,this.storage)}},jOe=class{constructor(e,t,n){Q._defineProperty(this,"claim",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc20",void 0),Q._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new HOe(this.erc20,this.contractWrapper,this.storage)}},pve=class{constructor(e,t){Q._defineProperty(this,"featureName",D5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc20",void 0),Q._defineProperty(this,"to",Pe(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await We(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},hve=class{constructor(e,t){Q._defineProperty(this,"featureName",ace.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc20",void 0),Q._defineProperty(this,"batch",void 0),Q._defineProperty(this,"to",Pe(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await We(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(St(this.contractWrapper,"ERC20BatchMintable"))return new pve(this.erc20,this.contractWrapper)}},mve=class{constructor(e,t){Q._defineProperty(this,"featureName",B5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"roles",void 0),Q._defineProperty(this,"mint",Pe(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await Ob(this.contractWrapper,Z.BigNumber.from(s.price),a.currencyAddress,o),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),Q._defineProperty(this,"mintBatch",Pe(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Z.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>uFe.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();Rt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await E9t.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:P9t},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await iu(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},yve=class{get chainId(){return this._chainId}constructor(e,t,n){Q._defineProperty(this,"featureName",N5e.name),Q._defineProperty(this,"mintable",void 0),Q._defineProperty(this,"burnable",void 0),Q._defineProperty(this,"droppable",void 0),Q._defineProperty(this,"signatureMintable",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"_chainId",void 0),Q._defineProperty(this,"transfer",Pe(async(a,i)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await We(a),await this.normalizeAmount(i)]}))),Q._defineProperty(this,"transferFrom",Pe(async(a,i,s)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await We(a),await We(i),await this.normalizeAmount(s)]}))),Q._defineProperty(this,"setAllowance",Pe(async(a,i)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await We(a),await this.normalizeAmount(i)]}))),Q._defineProperty(this,"transferBatch",Pe(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await We(s.toAddress),o])}));return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),Q._defineProperty(this,"mint",Pe(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Q._defineProperty(this,"mintTo",Pe(async(a,i)=>wr(this.mintable,ace).to.prepare(a,i))),Q._defineProperty(this,"mintBatchTo",Pe(async a=>wr(this.mintable?.batch,D5e).to.prepare(a))),Q._defineProperty(this,"burn",Pe(async a=>wr(this.burnable,nce).tokens.prepare(a))),Q._defineProperty(this,"burnFrom",Pe(async(a,i)=>wr(this.burnable,nce).from.prepare(a,i))),Q._defineProperty(this,"claim",Pe(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Q._defineProperty(this,"claimTo",Pe(async(a,i,s)=>wr(this.droppable?.claim,rce).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await kee(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await We(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await We(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await We(e),await We(t)))}async getMintTransaction(e,t){return wr(this.mintable,ace).getMintTransaction(e,t)}get claimConditions(){return wr(this.droppable?.claim,rce).conditions}get signature(){return wr(this.signatureMintable,B5e)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Z.ethers.utils.parseUnits(Q.AmountSchema.parse(e),t)}async getValue(e){return await Mp(this.contractWrapper.getProvider(),this.getAddress(),Z.BigNumber.from(e))}detectErc20Mintable(){if(St(this.contractWrapper,"ERC20"))return new hve(this,this.contractWrapper)}detectErc20Burnable(){if(St(this.contractWrapper,"ERC20Burnable"))return new dve(this,this.contractWrapper)}detectErc20Droppable(){if(St(this.contractWrapper,"ERC20ClaimConditionsV1")||St(this.contractWrapper,"ERC20ClaimConditionsV2")||St(this.contractWrapper,"ERC20ClaimPhasesV1")||St(this.contractWrapper,"ERC20ClaimPhasesV2"))return new jOe(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(St(this.contractWrapper,"ERC20SignatureMintable"))return new mve(this.contractWrapper)}},bve=class{constructor(e){Q._defineProperty(this,"featureName",O5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"token",Pe(async t=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},gve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",q5e.name),Q._defineProperty(this,"revealer",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc721",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"lazyMint",Pe(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await D3(a,this.storage,s.toNumber(),i),c=bee(o);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Z.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),p=l[0].args.startTokenId,h=l[0].args.endTokenId,m=[];for(let y=p;y.lte(h);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable()}detectErc721Revealable(){if(St(this.contractWrapper,"ERC721Revealable"))return new mce(this.contractWrapper,this.storage,ice.name,()=>this.erc721.nextTokenIdToMint())}},vve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",W5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"erc721",void 0),Q._defineProperty(this,"to",Pe(async(a,i)=>{let s=await D3(i,this.storage),o=await We(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let h=p.args.tokenIdMinted;return{id:h,receipt:u,data:()=>this.erc721.get(h)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},wve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",U5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"erc721",void 0),Q._defineProperty(this,"batch",void 0),Q._defineProperty(this,"to",Pe(async(a,i)=>{let s=await SFe(i,this.storage);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await We(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await We(e),t)}detectErc721BatchMintable(){if(St(this.contractWrapper,"ERC721BatchMintable"))return new vve(this.erc721,this.contractWrapper,this.storage)}},xve=class{constructor(e,t){Q._defineProperty(this,"featureName",ROe.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await We(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},_ve=class{constructor(e,t){Q._defineProperty(this,"featureName",yee.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc721",void 0),Q._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Q.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Z.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(St(this.contractWrapper,"ERC721Enumerable"))return new xve(this.erc721,this.contractWrapper)}},zbn=Yve.extend({tierPriority:he.z.array(he.z.string()),royaltyRecipient:Ls.default(Z.constants.AddressZero),royaltyBps:Q.BasisPointsSchema.default(0),quantity:ec.default(1)}),zOe=class{constructor(e,t,n){Q._defineProperty(this,"featureName",F5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc721",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"createBatchWithTier",Pe(async(a,i,s)=>{let o=await this.erc721.nextTokenIdToMint(),c=await D3(a,this.storage,o.toNumber(),s),u=bee(c);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[c.length,u.endsWith("/")?u:`${u}/`,i,Z.ethers.utils.toUtf8Bytes("")],parse:l=>{let p=this.contractWrapper.parseLogs("TokensLazyMinted",l?.logs),h=p[0].args[1],m=p[0].args[2],y=[];for(let C=h;C.lte(m);C=C.add(1))y.push({id:C,receipt:l,data:()=>this.erc721.getTokenMetadata(C)});return y}})})),Q._defineProperty(this,"createDelayedRevealBatchWithTier",Pe(async(a,i,s,o,c)=>{if(!s)throw new Error("Password is required");let u=await this.storage.uploadBatch([Q.CommonNFTInput.parse(a)],{rewriteFileNames:{fileStartNumber:0}}),l=bee(u),p=await this.erc721.nextTokenIdToMint(),h=await this.storage.uploadBatch(i.map(W=>Q.CommonNFTInput.parse(W)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:p.toNumber()}}),m=bee(h),y=await this.contractWrapper.readContract.getBaseURICount(),C=await this.contractWrapper.getChainID(),P=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[s,C,y,this.contractWrapper.readContract.address]),A=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(m),P),B,F=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(m),P,C]);return B=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[A,F]),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[h.length,l.endsWith("/")?l:`${l}/`,o,B],parse:W=>{let K=this.contractWrapper.parseLogs("TokensLazyMinted",W?.logs),z=K[0].args[1],G=K[0].args[2],j=[];for(let H=z;H.lte(G);H=H.add(1))j.push({id:H,receipt:W,data:()=>this.erc721.getTokenMetadata(H)});return j}})})),Q._defineProperty(this,"reveal",Pe(async(a,i)=>{if(!i)throw new Error("Password is required");let s=await this.contractWrapper.getChainID(),o=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[i,s,a,this.contractWrapper.readContract.address]);try{let c=await this.contractWrapper.callStatic().reveal(a,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[a,o]})})),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();ozbn.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return Rt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:D9t},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await iu(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await Ob(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await iu(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},Tve=class{constructor(e,t){Q._defineProperty(this,"featureName",H5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"mint",Pe(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await Ob(this.contractWrapper,u,a.currencyAddress,s),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await Ob(this.contractWrapper,u,a.currencyAddress,s),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),Q._defineProperty(this,"mintBatch",Pe(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(jc("multicall",this.contractWrapper))return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>k9t.parseAsync(c))),a=n.map(c=>c.metadata),i=await D3(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return Rt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],p=await S9t.parseAsync({...c,uri:l}),h;return t?h=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:R9t},await this.mapLegacyPayloadToContractStruct(p)):h=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:B9t},await this.mapPayloadToContractStruct(p)),{payload:p,signature:h.toString()}}))}async mapPayloadToContractStruct(e){let t=await iu(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await iu(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return St(this.contractWrapper,"ERC721SignatureMintV1")}},KOe=class{constructor(e,t){Q._defineProperty(this,"featureName",sce.name),Q._defineProperty(this,"erc721",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"to",Pe(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),p=[];for(let h=u;h.lt(l);h=h.add(1))p.push({id:h,receipt:o,data:()=>this.erc721.get(h)});return p}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await u7t(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},Eve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",L5e.name),Q._defineProperty(this,"conditions",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc721",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"to",Pe(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let p=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,h=p.add(s),m=[];for(let y=p;y.lt(h);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new Bb(this.contractWrapper,A3,this.storage);this.conditions=new yce(this.contractWrapper,a,this.storage)}},Ive=class{get chainId(){return this._chainId}constructor(e,t,n){Q._defineProperty(this,"featureName",j5e.name),Q._defineProperty(this,"query",void 0),Q._defineProperty(this,"mintable",void 0),Q._defineProperty(this,"burnable",void 0),Q._defineProperty(this,"lazyMintable",void 0),Q._defineProperty(this,"tieredDropable",void 0),Q._defineProperty(this,"signatureMintable",void 0),Q._defineProperty(this,"claimWithConditions",void 0),Q._defineProperty(this,"claimCustom",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"_chainId",void 0),Q._defineProperty(this,"transfer",Pe(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await We(a),i]})})),Q._defineProperty(this,"setApprovalForAll",Pe(async(a,i)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await We(a),i]}))),Q._defineProperty(this,"setApprovalForToken",Pe(async(a,i)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await We(a),i]}))),Q._defineProperty(this,"mint",Pe(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Q._defineProperty(this,"mintTo",Pe(async(a,i)=>wr(this.mintable,U5e).to.prepare(a,i))),Q._defineProperty(this,"mintBatch",Pe(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Q._defineProperty(this,"mintBatchTo",Pe(async(a,i)=>wr(this.mintable?.batch,W5e).to.prepare(a,i))),Q._defineProperty(this,"burn",Pe(async a=>wr(this.burnable,O5e).token.prepare(a))),Q._defineProperty(this,"lazyMint",Pe(async(a,i)=>wr(this.lazyMintable,q5e).lazyMint.prepare(a,i))),Q._defineProperty(this,"claim",Pe(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Q._defineProperty(this,"claimTo",Pe(async(a,i,s)=>{let o=this.claimWithConditions,c=this.claimCustom;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new Nb(sce)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claimCustom=this.detectErc721Claimable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Z.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...ewe}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await We(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await We(e),await We(t))}async getAll(e){return wr(this.query,yee).all(e)}async getAllOwners(){return wr(this.query,yee).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return wr(this.query,yee).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await We(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await We(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Z.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.claimWithConditions,i=this.claimCustom;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new Nb(sce)}async totalClaimedSupply(){let e=this.contractWrapper;if(jc("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(jc("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return wr(this.claimWithConditions,L5e).conditions}get tieredDrop(){return wr(this.tieredDropable,F5e)}get signature(){return wr(this.signatureMintable,H5e)}get revealer(){return wr(this.lazyMintable?.revealer,ice)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new Xoe;return kFe(e,t,this.storage)}async nextTokenIdToMint(){if(jc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(jc("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(St(this.contractWrapper,"ERC721Supply")||jc("nextTokenIdToMint",this.contractWrapper))return new _ve(this,this.contractWrapper)}detectErc721Mintable(){if(St(this.contractWrapper,"ERC721Mintable"))return new wve(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(St(this.contractWrapper,"ERC721Burnable"))return new bve(this.contractWrapper)}detectErc721LazyMintable(){if(St(this.contractWrapper,"ERC721LazyMintable"))return new gve(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(St(this.contractWrapper,"ERC721TieredDrop"))return new zOe(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(St(this.contractWrapper,"ERC721SignatureMintV1")||St(this.contractWrapper,"ERC721SignatureMintV2"))return new Tve(this.contractWrapper,this.storage)}detectErc721ClaimableWithConditions(){if(St(this.contractWrapper,"ERC721ClaimConditionsV1")||St(this.contractWrapper,"ERC721ClaimConditionsV2")||St(this.contractWrapper,"ERC721ClaimPhasesV1")||St(this.contractWrapper,"ERC721ClaimPhasesV2"))return new Eve(this,this.contractWrapper,this.storage)}detectErc721Claimable(){if(St(this.contractWrapper,"ERC721ClaimCustom"))return new KOe(this,this.contractWrapper)}},GEt=he.z.object({address:Ls,quantity:Q.AmountSchema.default(1)}),Kbn=he.z.union([he.z.array(he.z.string()).transform(async r=>await Promise.all(r.map(e=>GEt.parseAsync({address:e})))),he.z.array(GEt)]),Cve=class{constructor(e){Q._defineProperty(this,"featureName",T3.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"tokens",Pe(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),Q._defineProperty(this,"from",Pe(async(t,n,a)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await We(t),n,a]}))),Q._defineProperty(this,"batch",Pe(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),Q._defineProperty(this,"batchFrom",Pe(async(t,n,a)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await We(t),n,a]}))),this.contractWrapper=e}},Ave=class{constructor(e,t){Q._defineProperty(this,"featureName",I3.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Q.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await We(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function PFe(r,e){try{let t=new Z.ethers.Contract(r,eFe.default,e),[n,a]=await Promise.all([Z.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var kve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",K5e.name),Q._defineProperty(this,"revealer",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc1155",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"lazyMint",Pe(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await D3(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let p=0;p{let h=this.contractWrapper.parseLogs("TokensLazyMinted",p?.logs),m=h[0].args.startTokenId,y=h[0].args.endTokenId,C=[];for(let P=m;P.lte(y);P=P.add(1))C.push({id:P,receipt:p,data:()=>this.erc1155.getTokenMetadata(P)});return C},l=await PFe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Z.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc1155Revealable()}detectErc1155Revealable(){if(St(this.contractWrapper,"ERC1155Revealable"))return new mce(this.contractWrapper,this.storage,vee.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},Sve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",V5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc1155",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"to",Pe(async(a,i)=>{let s=i.map(p=>p.metadata),o=i.map(p=>p.supply),c=await D3(s,this.storage),u=await We(a),l=await Promise.all(c.map(async(p,h)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Z.ethers.constants.MaxUint256,p,o[h]])));return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:p=>{let h=this.contractWrapper.parseLogs("TokensMinted",p.logs);if(h.length===0||h.length{let y=m.args.tokenIdMinted;return{id:y,receipt:p,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},Pve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",E3.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"erc1155",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"batch",void 0),Q._defineProperty(this,"to",Pe(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),Q._defineProperty(this,"additionalSupplyTo",Pe(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await We(a),i,o.uri,s],parse:c=>({id:Z.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await SFe(t.metadata,this.storage);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await We(e),Z.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if(St(this.contractWrapper,"ERC1155BatchMintable"))return new Sve(this.erc1155,this.contractWrapper,this.storage)}},Rve=class{constructor(e,t,n){Q._defineProperty(this,"featureName",G5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"roles",void 0),Q._defineProperty(this,"mint",Pe(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await Ob(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),Q._defineProperty(this,"mintBatch",Pe(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(jc("multicall",this.contractWrapper))return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Z.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Z.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>C9t.parseAsync(u))),n=t.map(u=>u.metadata),a=await D3(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();Rt.default(s,"No signer available");let c=(await PFe(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let p=a[l],h=await A9t.parseAsync({...u,uri:p}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:M9t},await this.mapPayloadToContractStruct(h));return{payload:h,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await iu(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},GOe=class{constructor(e){Q._defineProperty(this,"featureName",oce.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"to",Pe(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await u7t(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await We(e),t,n],overrides:i})}},VOe=class{constructor(e,t){Q._defineProperty(this,"featureName",z5e.name),Q._defineProperty(this,"conditions",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"to",Pe(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new Bb(this.contractWrapper,A3,this.storage);this.conditions=new fve(e,n,this.storage)}},Mve=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Q._defineProperty(this,"featureName",$5e.name),Q._defineProperty(this,"query",void 0),Q._defineProperty(this,"mintable",void 0),Q._defineProperty(this,"burnable",void 0),Q._defineProperty(this,"lazyMintable",void 0),Q._defineProperty(this,"signatureMintable",void 0),Q._defineProperty(this,"claimWithConditions",void 0),Q._defineProperty(this,"claimCustom",void 0),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"_chainId",void 0),Q._defineProperty(this,"transfer",Pe(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return Qe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await We(i),s,o,c]})})),Q._defineProperty(this,"setApprovalForAll",Pe(async(i,s)=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),Q._defineProperty(this,"airdrop",Pe(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await Kbn.parseAsync(s),p=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:C}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,C,o])});return Qe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[h]})})),Q._defineProperty(this,"mint",Pe(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Q._defineProperty(this,"mintTo",Pe(async(i,s)=>wr(this.mintable,E3).to.prepare(i,s))),Q._defineProperty(this,"mintAdditionalSupply",Pe(async(i,s)=>wr(this.mintable,E3).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),Q._defineProperty(this,"mintAdditionalSupplyTo",Pe(async(i,s,o)=>wr(this.mintable,E3).additionalSupplyTo.prepare(i,s,o))),Q._defineProperty(this,"mintBatch",Pe(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Q._defineProperty(this,"mintBatchTo",Pe(async(i,s)=>wr(this.mintable?.batch,V5e).to.prepare(i,s))),Q._defineProperty(this,"burn",Pe(async(i,s)=>wr(this.burnable,T3).tokens.prepare(i,s))),Q._defineProperty(this,"burnFrom",Pe(async(i,s,o)=>wr(this.burnable,T3).from.prepare(i,s,o))),Q._defineProperty(this,"burnBatch",Pe(async(i,s)=>wr(this.burnable,T3).batch.prepare(i,s))),Q._defineProperty(this,"burnBatchFrom",Pe(async(i,s,o)=>wr(this.burnable,T3).batchFrom.prepare(i,s,o))),Q._defineProperty(this,"lazyMint",Pe(async(i,s)=>wr(this.lazyMintable,K5e).lazyMint.prepare(i,s))),Q._defineProperty(this,"claim",Pe(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),Q._defineProperty(this,"claimTo",Pe(async(i,s,o,c)=>{let u=this.claimWithConditions,l=this.claimCustom;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new Nb(oce)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this.claimCustom=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Z.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...ewe}))]);return{owner:Z.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await We(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await We(e),await We(t))}async nextTokenIdToMint(){if(jc("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return wr(this.query,I3).all(e)}async totalCount(){return wr(this.query,I3).totalCount()}async totalCirculatingSupply(e){return wr(this.query,I3).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await We(e)),wr(this.query,I3).owned(e)}async getMintTransaction(e,t){return wr(this.mintable,E3).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.claimWithConditions,s=this.claimCustom;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new Nb(oce)}get claimConditions(){return wr(this.claimWithConditions,z5e).conditions}get signature(){return wr(this.signatureMintable,G5e)}get revealer(){return wr(this.lazyMintable?.revealer,vee)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new Xoe;return kFe(e,t,this.storage)}detectErc1155Enumerable(){if(St(this.contractWrapper,"ERC1155Enumerable"))return new Ave(this,this.contractWrapper)}detectErc1155Mintable(){if(St(this.contractWrapper,"ERC1155Mintable"))return new Pve(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(St(this.contractWrapper,"ERC1155Burnable"))return new Cve(this.contractWrapper)}detectErc1155LazyMintable(){if(St(this.contractWrapper,"ERC1155LazyMintableV1")||St(this.contractWrapper,"ERC1155LazyMintableV2"))return new kve(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(St(this.contractWrapper,"ERC1155SignatureMintable"))return new Rve(this.contractWrapper,this.storage)}detectErc1155Claimable(){if(St(this.contractWrapper,"ERC1155ClaimCustom"))return new GOe(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(St(this.contractWrapper,"ERC1155ClaimConditionsV1")||St(this.contractWrapper,"ERC1155ClaimConditionsV2")||St(this.contractWrapper,"ERC1155ClaimPhasesV1")||St(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new VOe(this.contractWrapper,this.storage)}};async function H7t(r,e,t,n,a){try{let i=new Z.Contract(t,Kve.default,r),s=await i.supportsInterface(wce),o=await i.supportsInterface(xce);if(s){let c=new Z.Contract(t,su.default,r);if(await c.isApprovedForAll(a,e))return!0;let l;try{l=await c.getApproved(n)}catch{}return l?.toLowerCase()===e.toLowerCase()}else return o?await new Z.Contract(t,Il.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function bce(r,e,t,n,a){let i=new Do(r.getSignerOrProvider(),t,Kve.default,r.options),s=await i.readContract.supportsInterface(wce),o=await i.readContract.supportsInterface(xce);if(s){let c=new Do(r.getSignerOrProvider(),t,su.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Do(r.getSignerOrProvider(),t,Il.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function Gbn(r){switch(Rt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),Rt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),Rt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),Rt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),Rt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),Rt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":Rt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function Vbn(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await Mp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function $bn(r,e,t){return t=Z.BigNumber.from(t),r=Z.BigNumber.from(r),e=Z.BigNumber.from(e),r.eq(Z.BigNumber.from(0))?!1:e.sub(r).mul(Q.MAX_BPS).div(r).gte(t)}async function Iee(r,e,t){let n=[];for(;e-r>Q.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+Q.DEFAULT_QUERY_ALL_COUNT-1)),r+=Q.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var VEt=he.z.object({assetContractAddress:Ls,tokenId:_c,quantity:_c.default(1),currencyContractAddress:Ls.default(El),pricePerToken:Q.AmountSchema,startTimestamp:_ce.default(new Date),endTimestamp:Tce,isReservedListing:he.z.boolean().default(!1)}),R3=class{constructor(e){Q._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(ff.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(ff.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let p=0;p{let a=await VEt.parseAsync(n);await bce(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await iu(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Z.BigNumber.from(o)),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:A5e(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),Q._defineProperty(this,"createListingsBatch",Pe(async n=>{let a=await Promise.all(n.map(async i=>(await this.createListing.prepare(i)).encode()));return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("NewListing",i?.logs).map(o=>({id:o.args.listingId,receipt:i}))})})),Q._defineProperty(this,"updateListing",Pe(async(n,a)=>{let i=await VEt.parseAsync(a);await bce(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await iu(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:A5e(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),Q._defineProperty(this,"cancelListing",Pe(async n=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),Q._defineProperty(this,"buyFromListing",Pe(async(n,a,i)=>{i&&(i=await We(i));let s=await this.validateListing(Z.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Z.BigNumber.from(a),p=Z.BigNumber.from(s.pricePerToken).mul(l),h=await this.contractWrapper.getCallOverrides()||{};return await Ob(this.contractWrapper,p,s.currencyContractAddress,h),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,p],overrides:h})})),Q._defineProperty(this,"approveBuyerForReservedListing",Pe(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),Q._defineProperty(this,"revokeBuyerApprovalForReservedListing",Pe(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),Q._defineProperty(this,"approveCurrencyForListing",Pe(async(n,a,i)=>{let s=await this.validateListing(Z.BigNumber.from(n)),o=await We(a);o===s.currencyContractAddress&&Rt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return Rt.default(i===c,"Currency already approved with this price."),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),Q._defineProperty(this,"revokeCurrencyApprovalForListing",Pe(async(n,a)=>{let i=await this.validateListing(Z.BigNumber.from(n)),s=await We(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return Rt.default(!o.isZero(),"Currency not approved."),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Z.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new R3(this.contractWrapper),this.encoder=new S3(this.contractWrapper),this.interceptor=new M3(this.contractWrapper),this.estimator=new B3(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await Iee(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await Iee(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Z.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await We(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Z.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await We(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Z.BigNumber.from(e)),a=await We(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=E0.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?E0.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?E0.Expired:E0.Active;break;case 2:t=E0.Completed;break;case 3:t=E0.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await Mp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),asset:await Pce(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await H7t(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Z.Contract(e.assetContractAddress,Kve.default,a),s=await i.supportsInterface(wce),o=await i.supportsInterface(xce);if(s){let c=new Z.Contract(e.assetContractAddress,su.default,a),u;try{u=await c.ownerOf(e.tokenId)}catch{}let l=u?.toLowerCase()===e.creatorAddress.toLowerCase();return{valid:l,error:l?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Z.Contract(e.assetContractAddress,Il.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await We(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await We(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=Ybn.parse(n);await bce(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await iu(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await iu(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Z.BigNumber.from(c)),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:A5e(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),Q._defineProperty(this,"createAuctionsBatch",Pe(async n=>{let a=await Promise.all(n.map(async i=>(await this.createAuction.prepare(i)).encode()));return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a],parse:i=>this.contractWrapper.parseLogs("NewAuction",i?.logs).map(o=>({id:o.args.auctionId,receipt:i}))})})),Q._defineProperty(this,"buyoutAuction",Pe(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n)),i=await kee(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Z.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),Q._defineProperty(this,"makeBid",Pe(async(n,a)=>{let i=await this.validateAuction(Z.BigNumber.from(n)),s=await iu(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Z.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Z.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);Rt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Z.BigNumber.from(i.minimumBidAmount);Rt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await Ob(this.contractWrapper,s,i.currencyContractAddress,c),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),Q._defineProperty(this,"cancelAuction",Pe(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),Q._defineProperty(this,"closeAuctionForBidder",Pe(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Z.BigNumber.from(n));try{return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Z.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new mee(n.toString(),i.endTimeInSeconds.toString()):s}})),Q._defineProperty(this,"closeAuctionForSeller",Pe(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Z.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new mee(n.toString(),a.endTimeInSeconds.toString()):i}})),Q._defineProperty(this,"executeSale",Pe(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{let i=await this.getWinningBid(n);Rt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new mee(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new R3(this.contractWrapper),this.encoder=new S3(this.contractWrapper),this.interceptor=new M3(this.contractWrapper),this.estimator=new B3(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await Iee(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await Iee(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Z.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Z.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Z.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Z.BigNumber.from(Math.floor(Date.now()/1e3)),i=Z.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Z.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Z.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Z.BigNumber.from(e))]),i=n?Z.BigNumber.from(n.bidAmount):Z.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return Mp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=E0.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?E0.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?E0.Expired:E0.Active;break;case 2:t=E0.Completed;break;case 3:t=E0.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await Mp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await Mp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Z.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Z.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),asset:await Pce(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await We(t),s=await We(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await Mp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await We(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await We(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await Qbn.parseAsync(n),i=await this.contractWrapper.getChainID(),s=am(a.currencyContractAddress)?Zoe[i].wrapped.address:a.currencyContractAddress,o=await iu(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await Ob(this.contractWrapper,o,s,c),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),Q._defineProperty(this,"cancelOffer",Pe(async n=>Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),Q._defineProperty(this,"acceptOffer",Pe(async n=>{let a=await this.validateOffer(Z.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await bce(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new R3(this.contractWrapper),this.encoder=new S3(this.contractWrapper),this.interceptor=new M3(this.contractWrapper),this.estimator=new B3(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await Iee(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await Iee(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=E0.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.expirationTimestamp).lt(a)?E0.Expired:E0.Active;break;case 2:t=E0.Completed;break;case 3:t=E0.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await Mp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await Pce(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Z.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=am(e.currencyContractAddress)?Zoe[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Do(i,a,Ju.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await We(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await We(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await mf(r,e,t);if(n)return n;let a=await twe(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return C0(sBe())})).default:(await Promise.resolve().then(function(){return C0(oBe())})).default}},Fb={name:"TokenERC1155",contractType:"edition",schema:$9t,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||(await Promise.resolve().then(function(){return C0(cBe())})).default}},Jh={name:"Marketplace",contractType:"marketplace",schema:dFe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||(await Promise.resolve().then(function(){return C0(dBe())})).default}},H1={name:"MarketplaceV3",contractType:"marketplace-v3",schema:dFe,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);if(n)return await ave(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return C0(pBe())})).default;return await ave(r,qs.parse(a||[]),e,{},t)}},Zh={name:"Multiwrap",contractType:"multiwrap",schema:G7t,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||(await Promise.resolve().then(function(){return C0(mBe())})).default}},Lb={name:"TokenERC721",contractType:"nft-collection",schema:G9t,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||(await Promise.resolve().then(function(){return C0(yBe())})).default}},Xh={name:"DropERC721",contractType:"nft-drop",schema:fFe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);if(n)return n;let a=await twe(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return C0(bBe())})).default:(await Promise.resolve().then(function(){return C0(gBe())})).default}},pf={name:"Pack",contractType:"pack",schema:W9t,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||qs.parse((await Promise.resolve().then(function(){return C0(_Be())})).default||[])}},em={name:"SignatureDrop",contractType:"signature-drop",schema:fFe,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);if(n)return n;let a=await twe(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return C0(TBe())})).default:(await Promise.resolve().then(function(){return C0(EBe())})).default}},tm={name:"Split",contractType:"split",schema:H9t,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||(await Promise.resolve().then(function(){return C0(CBe())})).default}},qb={name:"DropERC20",contractType:"token-drop",schema:z7t,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);if(n)return n;let a=await twe(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return C0(kBe())})).default:(await Promise.resolve().then(function(){return C0(SBe())})).default}},rm={name:"TokenERC20",contractType:"token",schema:z9t,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||(await Promise.resolve().then(function(){return C0(MBe())})).default}},nm={name:"VoteERC20",contractType:"vote",schema:J9t,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await mf(r,e,t);return n||(await Promise.resolve().then(function(){return C0(OBe())})).default}};async function twe(r,e){try{return await PFe(r,e)}catch{return}}var j1={[Qh.contractType]:Qh,[Fb.contractType]:Fb,[Jh.contractType]:Jh,[H1.contractType]:H1,[Zh.contractType]:Zh,[Lb.contractType]:Lb,[Xh.contractType]:Xh,[pf.contractType]:pf,[em.contractType]:em,[tm.contractType]:tm,[qb.contractType]:qb,[rm.contractType]:rm,[nm.contractType]:nm},V7t={[Qh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[Fb.contractType]:"",[Jh.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[H1.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[Zh.contractType]:"",[Lb.contractType]:"",[Xh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[pf.contractType]:"",[em.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[tm.contractType]:"",[qb.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[rm.contractType]:"",[nm.contractType]:""},$Et={name:"SmartContract",contractType:"custom",schema:{},roles:mFe},RFe={...j1,[$Et.contractType]:$Et};function MFe(r){return Object.values(RFe).find(e=>e.name===r)?.contractType||"custom"}function BFe(r){return Object.values(RFe).find(e=>e.contractType===r)?.name}async function DFe(r,e,t,n,a){let i=await n.getChainId(),s=await n.getAddress(),o=Gve.find(u=>u===i),c=[];switch(o?c=r===pf.contractType?[]:Vve(i):c=[await kce(n.provider,a)],e.trusted_forwarders&&e.trusted_forwarders.length>0&&c.push(...e.trusted_forwarders),r){case Xh.contractType:case Lb.contractType:let u=await Xh.schema.deploy.parseAsync(e);return[s,u.name,u.symbol,t,c,u.primary_sale_recipient,u.fee_recipient,u.seller_fee_basis_points,u.platform_fee_basis_points,u.platform_fee_recipient];case em.contractType:let l=await em.schema.deploy.parseAsync(e);return[s,l.name,l.symbol,t,c,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case Zh.contractType:let p=await Zh.schema.deploy.parseAsync(e);return[s,p.name,p.symbol,t,c,p.fee_recipient,p.seller_fee_basis_points];case Qh.contractType:case Fb.contractType:let h=await Qh.schema.deploy.parseAsync(e);return[s,h.name,h.symbol,t,c,h.primary_sale_recipient,h.fee_recipient,h.seller_fee_basis_points,h.platform_fee_basis_points,h.platform_fee_recipient];case qb.contractType:case rm.contractType:let m=await rm.schema.deploy.parseAsync(e);return[s,m.name,m.symbol,t,c,m.primary_sale_recipient,m.platform_fee_recipient,m.platform_fee_basis_points];case nm.contractType:let y=await nm.schema.deploy.parseAsync(e);return[y.name,t,c,y.voting_token_address,y.voting_delay_in_blocks,y.voting_period_in_blocks,Z.BigNumber.from(y.proposal_token_threshold),y.voting_quorum_fraction];case tm.contractType:let C=await tm.schema.deploy.parseAsync(e);return[s,t,c,C.recipients.map(B=>B.address),C.recipients.map(B=>Z.BigNumber.from(B.sharesBps))];case Jh.contractType:case H1.contractType:let P=await Jh.schema.deploy.parseAsync(e);return[s,t,c,P.platform_fee_recipient,P.platform_fee_basis_points];case pf.contractType:let A=await pf.schema.deploy.parseAsync(e);return[s,A.name,A.symbol,t,c,A.fee_recipient,A.seller_fee_basis_points];default:return[]}}async function t2n(r,e,t){let n=(await r.getNetwork()).chainId,a=Gve.find(s=>s===n);return t&&t===pf.name?[]:a?Vve(n):[await kce(r,e)]}function r2n(r,e){return r||(e?.gatewayUrls?new Jg.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new Jg.ThirdwebStorage)}var gce=class{constructor(e,t,n){Q._defineProperty(this,"featureName",eve.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"metadata",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"set",Pe(async a=>St(this.contractWrapper,"AppURI")?Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return St(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():Jg.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},Ove=class{constructor(e){Q._defineProperty(this,"featureName",J5e.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"set",Pe(async t=>{let n=await Bp.parseAsync(t);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return Bp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},Fve=class{constructor(e,t){Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await K1(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return _ee(qs.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return T7t(qs.parse(this.contractWrapper.abi),e?.metadata)}},Lve=class{get royalties(){return wr(this.detectRoyalties(),Y5e)}get roles(){return wr(this.detectRoles(),Z5e)}get sales(){return wr(this.detectPrimarySales(),Q5e)}get platformFees(){return wr(this.detectPlatformFees(),J5e)}get owner(){return wr(this.detectOwnable(),tve)}get erc20(){return wr(this.detectErc20(),N5e)}get erc721(){return wr(this.detectErc721(),j5e)}get erc1155(){return wr(this.detectErc1155(),$5e)}get app(){return wr(this.detectApp(),eve)}get directListings(){return wr(this.detectDirectListings(),cce)}get englishAuctions(){return wr(this.detectEnglishAuctions(),uce)}get offers(){return wr(this.detectOffers(),lce)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Do(e,t,n,i);Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"events",void 0),Q._defineProperty(this,"interceptor",void 0),Q._defineProperty(this,"encoder",void 0),Q._defineProperty(this,"estimator",void 0),Q._defineProperty(this,"publishedMetadata",void 0),Q._defineProperty(this,"abi",void 0),Q._defineProperty(this,"metadata",void 0),Q._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=qs.parse(n||[]),this.events=new R3(this.contractWrapper),this.encoder=new S3(this.contractWrapper),this.interceptor=new M3(this.contractWrapper),this.estimator=new B3(this.contractWrapper),this.publishedMetadata=new Fve(this.contractWrapper,this.storage),this.metadata=new Bb(this.contractWrapper,A3,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e,t,n){return this.contractWrapper.call(e,t,n)}detectRoyalties(){if(St(this.contractWrapper,"Royalty")){let e=new Bb(this.contractWrapper,A3,this.storage);return new uve(this.contractWrapper,e)}}detectRoles(){if(St(this.contractWrapper,"Permissions"))return new cve(this.contractWrapper,mFe)}detectPrimarySales(){if(St(this.contractWrapper,"PrimarySale"))return new lve(this.contractWrapper)}detectPlatformFees(){if(St(this.contractWrapper,"PlatformFee"))return new Ove(this.contractWrapper)}detectErc20(){if(St(this.contractWrapper,"ERC20"))return new yve(this.contractWrapper,this.storage,this.chainId)}detectErc721(){if(St(this.contractWrapper,"ERC721"))return new Ive(this.contractWrapper,this.storage,this.chainId)}detectErc1155(){if(St(this.contractWrapper,"ERC1155"))return new Mve(this.contractWrapper,this.storage,this.chainId)}detectOwnable(){if(St(this.contractWrapper,"Ownable"))return new Hve(this.contractWrapper)}detectApp(){let e=new Bb(this.contractWrapper,A3,this.storage);if(St(this.contractWrapper,"AppURI"))return new gce(this.contractWrapper,e,this.storage);if(St(this.contractWrapper,"ContractMetadata"))return new gce(this.contractWrapper,e,this.storage)}detectDirectListings(){if(St(this.contractWrapper,"DirectListings"))return new Bve(this.contractWrapper,this.storage)}detectEnglishAuctions(){if(St(this.contractWrapper,"EnglishAuctions"))return new Dve(this.contractWrapper,this.storage)}detectOffers(){if(St(this.contractWrapper,"Offers"))return new Nve(this.contractWrapper,this.storage)}},qve=class extends Xg{constructor(e,t,n){super(e,t),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"publisher",void 0),Q._defineProperty(this,"updatePublisherProfile",Pe(async a=>{let i=this.getSigner();Rt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return Qe.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),Q._defineProperty(this,"publish",Pe(async(a,i)=>{let s=this.getSigner();Rt.default(s,"A signer is required");let o=await s.getAddress(),c=await vFe(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let A=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!Q7t(A,i.version))throw Error(`Version ${i.version} is not greater than ${A}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),p=l.startsWith("0x")?l:`0x${l}`,h=Z.utils.solidityKeccak256(["bytes"],[p]),m=c.name,y=iIt.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),C=await this.storage.upload(y);return Qe.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,C,c.metadataUri,h,Z.constants.AddressZero],parse:P=>{let A=this.publisher.parseLogs("ContractPublished",P.logs);if(A.length<1)throw new Error("No ContractPublished event found");let B=A[0].args.publishedContract;return{receipt:P,data:async()=>this.toPublishedContract(B)}}})})),Q._defineProperty(this,"unpublish",Pe(async(a,i)=>{let s=await We(a);return Qe.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Do(e,p9t(),iyn.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return v7t(e,this.storage)}async extractFunctions(e){return w7t(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return Eee(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await Eee(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await We(e);return K1(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return wFe(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await We(e),n=await Tee(t,this.getProvider());return Rt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await We(e),n=await this.fetchCompilerMetadataFromAddress(t);return await Rce(n,this.storage)}async getPublisherProfile(e){let t=await We(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:cIt.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await We(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await We(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await We(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return Rt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await We(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return uIt.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},$Oe=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Q._defineProperty(this,"registryLogic",void 0),Q._defineProperty(this,"registryRouter",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"addContract",Pe(async a=>await this.addContracts.prepare([a]))),Q._defineProperty(this,"addContracts",Pe(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),Qe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),Q._defineProperty(this,"removeContract",Pe(async a=>await this.removeContracts.prepare([a]))),Q._defineProperty(this,"removeContracts",Pe(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await We(o.address),o.chainId])));return Qe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Do(e,pOe(),syn.default,n),this.registryRouter=new Do(e,pOe(),oyn.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await We(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await We(e))).filter(t=>Z.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Z.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},Cee=class{constructor(e,t){Q._defineProperty(this,"connection",void 0),Q._defineProperty(this,"options",void 0),Q._defineProperty(this,"events",new cOe.default),this.connection=new Xg(e,t),this.options=t,this.events=new cOe.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:El,a=await We(e),i=await We(n),s=this.requireWallet(),o=await iu(this.connection.getProvider(),t,n);if(am(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:El;this.requireWallet();let t=await We(e),n=this.connection.getProvider(),a;return am(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await Mp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await tce(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Z.ethers.utils.hashMessage(e),a=Z.ethers.utils.arrayify(n);return Z.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Ze.Localhost||t===Ze.Hardhat)return new Cee(new Z.ethers.Wallet(f9t,z1(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return Rt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Do(this.connection.getSignerOrProvider(),e,Ju.default,this.options)}},YOe=class extends Xg{constructor(e,t,n){super(e,t),Q._defineProperty(this,"storage",void 0),this.storage=n}updateSignerOrProvider(e){super.updateSignerOrProvider(e)}async verifyThirdwebContract(e,t,n,a){let i=(await this.getProvider().getNetwork()).chainId,s=await Z7t(e,i,t,n,this.storage,a);console.info("Checking verification status...");let o=await JOe(t,n,s);console.info(o)}async verifyContract(e,t,n,a){let i=(await this.getProvider().getNetwork()).chainId,s;if(a){let u=Object.values(a).map(p=>(Rt.default(p.type,"Param type is required"),p.type)),l=Object.values(a).map(p=>p.value);s=Z.ethers.utils.defaultAbiCoder.encode(u,l)}let o=await NFe(e,i,t,n,this.storage,s);console.info("Checking verification status...");let c=await JOe(t,n,o);console.info(c)}},dd=class extends Xg{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return dd.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=z1(t,n);i=e.connect(o)}let s=new dd(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=z1(t,n),s=new Z.Wallet(e,i);return new dd(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;Jve(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),Q._defineProperty(this,"contractCache",new Map),Q._defineProperty(this,"_publisher",void 0),Q._defineProperty(this,"storageHandler",void 0),Q._defineProperty(this,"deployer",void 0),Q._defineProperty(this,"verifier",void 0),Q._defineProperty(this,"multiChainRegistry",void 0),Q._defineProperty(this,"wallet",void 0),Q._defineProperty(this,"storage",void 0),u9t(t?.supportedChains);let a=r2n(n,t);this.storage=a,this.storageHandler=a,this.wallet=new Cee(e,t),this.deployer=new Uve(e,t,a),this.verifier=new YOe(e,t,a),this.multiChainRegistry=new $Oe(e,this.storageHandler,this.options),this._publisher=new qve(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in Mpt.GENERATED_ABI)return await this.getContractFromAbi(n,Mpt.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await fm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in fm?a=await fm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Z.Contract(await Re(e),E8e.default,this.getProvider()),n=Z.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return J8e(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Re(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>f8e((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Yee.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new pm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>f8e((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=pi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new hme(this.getSignerOrProvider(),n,await Bfe(n,Qi.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return Tp(this.getProvider(),Ku,await this.getProvider().getBalance(await Re(e)))}getPublisher(){return this._publisher}},mme=class extends Rs{constructor(e,t,n,a){super(t,e,JOr.default,a),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"DEFAULT_VERSION_MAP",{[qh.contractType]:3,[H0.contractType]:1,[Fh.contractType]:4,[Ep.contractType]:1,[Oh.contractType]:2,[U0.contractType]:1,[j0.contractType]:2,[Uh.contractType]:1,[Hh.contractType]:1,[Wh.contractType]:1,[Ip.contractType]:2,[hm.contractType]:1,[Pl.contractType]:2}),$._defineProperty(this,"deploy",Ie(async(i,s,o,c,u)=>{let l=fm[i],h=await l.schema.deploy.parseAsync(s),f=await this.storage.upload(h),m=await this.getImplementation(l,c)||void 0;if(!m||m===Z.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let y=await l.getAbi(m,this.getProvider(),this.storage),I=this.getSigner();Tt.default(I,"A signer is required to deploy contracts");let C=await Vft(i,h,f,I),R=Z.Contract.getInterface(y).encodeFunctionData("initialize",C),L=await this.getProvider().getBlockNumber(),F=Z.ethers.utils.formatBytes32String(L.toString());return Le.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[m,R,F],parse:W=>{u&&u();let V=this.parseLogs("ProxyDeployed",W.logs);if(V.length<1)throw new Error("No ProxyDeployed event found");let K=V[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:K,transactionHash:W.transactionHash}),K}})})),$._defineProperty(this,"deployProxyByImplementation",Ie(async(i,s,o,c,u,l)=>{let h=Z.Contract.getInterface(s).encodeFunctionData(o,c),f=await this.getProvider().getBlockNumber();return Le.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,h,Z.ethers.utils.formatBytes32String(f.toString())],parse:m=>{l&&l();let y=this.parseLogs("ProxyDeployed",m.logs);if(y.length<1)throw new Error("No ProxyDeployed event found");let I=y[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:I,transactionHash:m.transactionHash}),I}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Pl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case qh.contractType:case H0.contractType:let i=await qh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Fh.contractType:let s=await Fh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case Ep.contractType:let o=await Ep.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Oh.contractType:case U0.contractType:let c=await Oh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case j0.contractType:case Uh.contractType:let u=await Uh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Hh.contractType:let l=await Hh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Z.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Wh.contractType:let h=await Wh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(I=>I.address),h.recipients.map(I=>Z.BigNumber.from(I.sharesBps))];case Ip.contractType:let f=await Ip.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case hm.contractType:let m=await hm.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Pl.contractType:let y=await Pl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return k8e(e)}async getImplementation(e,t){let n=Z.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=Cht(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=Z8e(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Z.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},_8e=class extends Rs{constructor(e,t,n){super(t,e,ZOr.default,n),$._defineProperty(this,"addContract",Ie(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Ie(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Re(o)])));return Le.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Ie(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Ie(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Re(o)])));return Le.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t)&&t.toLowerCase()!==Z.constants.AddressZero)}},UFr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",yme=class extends H2{constructor(e,t,n){var a;super(e,t),a=this,$._defineProperty(this,"_factory",void 0),$._defineProperty(this,"_registry",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"deployMetadataCache",{}),$._defineProperty(this,"transactionListener",i=>{i.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.transactionHash})}),$._defineProperty(this,"deployNFTCollection",$o(async i=>await this.deployBuiltInContract.prepare(H0.contractType,i))),$._defineProperty(this,"deployNFTDrop",$o(async i=>await this.deployBuiltInContract.prepare(qh.contractType,i))),$._defineProperty(this,"deploySignatureDrop",$o(async i=>await this.deployBuiltInContract.prepare(Fh.contractType,i))),$._defineProperty(this,"deployMultiwrap",$o(async i=>await this.deployBuiltInContract.prepare(Ep.contractType,i))),$._defineProperty(this,"deployEdition",$o(async i=>await this.deployBuiltInContract.prepare(U0.contractType,i))),$._defineProperty(this,"deployEditionDrop",$o(async i=>await this.deployBuiltInContract.prepare(Oh.contractType,i))),$._defineProperty(this,"deployToken",$o(async i=>await this.deployBuiltInContract.prepare(Uh.contractType,i))),$._defineProperty(this,"deployTokenDrop",$o(async i=>await this.deployBuiltInContract.prepare(j0.contractType,i))),$._defineProperty(this,"deployMarketplace",$o(async i=>await this.deployBuiltInContract.prepare(Ip.contractType,i))),$._defineProperty(this,"deployMarketplaceV3",$o(async i=>await this.deployBuiltInContract.prepare(hm.contractType,i))),$._defineProperty(this,"deployPack",$o(async i=>await this.deployBuiltInContract.prepare(Pl.contractType,i))),$._defineProperty(this,"deploySplit",$o(async i=>await this.deployBuiltInContract.prepare(Wh.contractType,i))),$._defineProperty(this,"deployVote",$o(async i=>await this.deployBuiltInContract.prepare(Hh.contractType,i))),$._defineProperty(this,"deployBuiltInContract",$o(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",c=a.getSigner();Tt.default(c,"A signer is required to deploy contracts");let u={app_uri:Gft[i],...await fm[i].schema.deploy.parseAsync(s)};if(a.hasLocalFactory()){let R;try{R=parseInt(o),isNaN(R)&&(R=void 0)}catch{R=void 0}let L=await a.getFactory();if(!L)throw new Error("Factory not found");return L.on(kl.Transaction,a.transactionListener),L.deploy.prepare(i,u,a.events,R,()=>{L.off(kl.Transaction,a.transactionListener)})}let l=Z8e(i);Tt.default(l,"Contract name not found");let h=await a.storage.upload(u),f=await Vft(i,u,h,c),m=(await a.getProvider().getNetwork()).chainId,y=await a.fetchPublishedContractFromPolygon(UFr,l,o),I=await a.fetchAndCacheDeployMetadata(y.metadataUri),C=I.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[m];if(C)return a.deployContractFromUri.prepare(y.metadataUri,f);{C=await a.deployContractFromUri(y.metadataUri,a.getConstructorParamsForImplementation(i,m),{forceDirectDeploy:!0});let R=await Re(C);return a.deployProxy.prepare(R,I.compilerMetadata.abi,"initialize",f)}})),$._defineProperty(this,"deployReleasedContract",$o(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",u=arguments.length>4?arguments[4]:void 0,l=await a.fetchPublishedContractFromPolygon(i,s,c);return await a.deployContractFromUri.prepare(l.metadataUri,o,u)})),$._defineProperty(this,"deployViaFactory",Ie(async(i,s,o,c,u)=>{let l=await Re(i),h=await Re(s),f=this.getSigner();Tt.default(f,"signer is required");let m=new mme(l,this.getSignerOrProvider(),this.storage,this.options);return m.on(kl.Transaction,this.transactionListener),await m.deployProxyByImplementation.prepare(h,o,c,u,this.events,()=>{m.off(kl.Transaction,this.transactionListener)})})),$._defineProperty(this,"deployProxy",$o(async(i,s,o,c)=>{let u=await Re(i),l=Z.Contract.getInterface(s).encodeFunctionData(o,c),{TWProxy__factory:h}=await Promise.resolve().then(function(){return Xo(CIe())});return this.deployContractWithAbi.prepare(h.abi,h.bytecode,[u,l])})),$._defineProperty(this,"deployContractFromUri",$o(async(i,s,o)=>{let c=this.getSigner();Tt.default(c,"A signer is required");let{compilerMetadata:u,extendedMetadata:l}=await this.fetchAndCacheDeployMetadata(i),h=o?.forceDirectDeploy||!1;if(l&&l.factoryDeploymentData&&(l.isDeployableViaProxy||l.isDeployableViaFactory)&&!h){console.log("Deploying directly...");let I=(await this.getProvider().getNetwork()).chainId;Tt.default(l.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let C=l.factoryDeploymentData.implementationAddresses[I],R=await Re(C);Tt.default(R,`implementationAddress not found for chainId '${I}'`),Tt.default(l.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let L=Lft(u.abi,l.factoryDeploymentData.implementationInitializerFunction).map(W=>W.type),F=this.convertParamValues(L,s);if(l.isDeployableViaFactory){Tt.default(l.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let W=l.factoryDeploymentData.factoryAddresses[I];Tt.default(W,`isDeployableViaFactory is true and factoryAddress not found for chainId '${I}'`);let V=await Re(W);return await this.deployViaFactory.prepare(V,R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}else if(l.isDeployableViaProxy)return await this.deployProxy.prepare(R,u.abi,l.factoryDeploymentData.implementationInitializerFunction,F)}let f=u.bytecode.startsWith("0x")?u.bytecode:`0x${u.bytecode}`;if(!Z.ethers.utils.isHexString(f))throw new Error(`Contract bytecode is invalid. - -${f}`);let m=j8e(u.abi).map(I=>I.type),y=this.convertParamValues(m,s);return this.deployContractWithAbi.prepare(u.abi,f,y)})),$._defineProperty(this,"deployContractWithAbi",$o(async(i,s,o)=>{let c=this.getSigner(),u=this.getProvider();Tt.default(c,"Signer is required to deploy contracts");let l=new Z.ethers.ContractFactory(i,s).connect(c);return new Lfe({args:o,provider:u,signer:c,factory:l,storage:this.storage,events:this.events})})),this.storage=n,this.events=new lht.EventEmitter,this.getFactory(),this.getRegistry()}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=kee(t,"twRegistry");if(!!n)return new _8e(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=kee(t,"twFactory");return n?new mme(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await pY(e,this.storage),n;try{n=await K8e(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Re(e),i=await new pm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case Ip.contractType:case Ep.contractType:return[Jhe(t)?.wrapped?.address||Z.ethers.constants.AddressZero];case Pl.contractType:return[Jhe(t).wrapped.address||Z.ethers.constants.AddressZero,Z.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(Tt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Z.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(Tt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Z.BigNumber.from(t[a].toString()):t[a])}},gme=class{constructor(e){$._defineProperty(this,"featureName",mfe.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Ie(async t=>{let n=await Re(t);return Le.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},Yft={},HFr=new pm("polygon");function $ft(r,e){return`${r}-${e}`}function jFr(r,e,t){Yft[$ft(r,e)]=t}function zFr(r,e){return Yft[$ft(r,e)]}async function z0(r,e,t){let n=(await e.getNetwork()).chainId,a=zFr(r,n);if(a)return a;let i;try{let s=await jee(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await bme(s,t)}catch{try{let o=await HFr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await bme(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return jFr(r,n,i),i}async function Rl(r,e,t){try{let n=await z0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function bme(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Qi.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=t4e.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function Ame(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var cht=256,NCe="0|[1-9]\\d*",KFr=`(${NCe})\\.(${NCe})\\.(${NCe})`,GFr=new RegExp(KFr);function yY(r){if(r.length>cht)throw new Error(`version is longer than ${cht} characters`);let e=r.trim().match(GFr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function Qft(r,e){let t=yY(r),n=yY(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function VFr(r,e){let t=yY(r),n=yY(e);if(n.major{try{return yY(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:pe.z.string().optional(),description:pe.z.string().optional(),readme:pe.z.string().optional(),license:pe.z.string().optional(),changelog:pe.z.string().optional(),tags:pe.z.array(pe.z.string()).optional(),audit:$.FileOrBufferOrStringSchema.nullable().optional(),logo:$.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:pe.z.boolean().optional(),isDeployableViaProxy:pe.z.boolean().optional(),factoryDeploymentData:tmt.optional(),constructorParams:pe.z.record(pe.z.string(),pe.z.object({displayName:pe.z.string().optional(),description:pe.z.string().optional(),defaultValue:pe.z.string().optional()}).catchall(pe.z.any())).optional()}).catchall(pe.z.any()),rmt=e4e.extend({audit:pe.z.string().nullable().optional(),logo:pe.z.string().nullable().optional()}),nmt=nte.merge(e4e).extend({publisher:Ri.optional()}),amt=nte.merge(rmt).extend({publisher:Ri.optional()}),imt=pe.z.object({name:pe.z.string().optional(),bio:pe.z.string().optional(),avatar:$.FileOrBufferOrStringSchema.nullable().optional(),website:pe.z.string().optional(),twitter:pe.z.string().optional(),telegram:pe.z.string().optional(),facebook:pe.z.string().optional(),github:pe.z.string().optional(),medium:pe.z.string().optional(),linkedin:pe.z.string().optional(),reddit:pe.z.string().optional(),discord:pe.z.string().optional()}),smt=imt.extend({avatar:pe.z.string().nullable().optional()}),omt=pe.z.object({id:pe.z.string(),timestamp:Qs,metadataUri:pe.z.string()}),t4e=pe.z.object({title:pe.z.string().optional(),author:pe.z.string().optional(),details:pe.z.string().optional(),notice:pe.z.string().optional()}),cmt=pe.z.object({name:pe.z.string(),abi:Qi,metadata:pe.z.record(pe.z.string(),pe.z.any()),info:t4e,licenses:pe.z.array(pe.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),umt=nte.merge(cmt).extend({bytecode:pe.z.string()}),YFr=new zg.ThirdwebStorage,r4e=new Map;function n4e(r,e){return`${r}-${e}`}function a4e(r,e){let t=n4e(r,e);return r4e.has(t)}function lmt(r,e){if(!a4e(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=n4e(r,e);return r4e.get(t)}function dmt(r,e,t){let n=n4e(e,t);r4e.set(n,r)}function Eee(r){return r||YFr}async function $he(r){let e=await Re(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(a4e(e,a))return lmt(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new hme(t||n,e,await Bfe(e,Qi.parse(i),n,r.sdkOptions,Eee(r.storage)),Eee(r.storage),r.sdkOptions,a);return dmt(s,e,a),s}async function $Fr(r){try{let e=new Z.Contract(r.address,E8e.default,r.provider),t=Z.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return J8e(t)}catch{return"custom"}}async function QFr(r){let e=await Re(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(a4e(e,a))return lmt(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await $Fr({address:e,provider:n});if(i==="custom"){let s=new fme(r.network,r.sdkOptions,Eee(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return $he({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await fm[i].getAbi(e,n,Eee(r.storage));return $he({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in fm){let i=await fm[r.contractTypeOrAbi].initialize(t||n,e,Eee(r.storage),r.sdkOptions);return dmt(i,e,a),i}else return $he({...r,address:e,abi:r.contractTypeOrAbi})}var Yhe=new WeakMap;async function i4e(r){let[,e]=pi(r.network,r.sdkOptions),t;return Yhe.has(e)?t=Yhe.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw Yhe.delete(e),n}),Yhe.set(e,t)),await t}async function JFr(r){let[,e]=pi(r.network,r.sdkOptions);return e.getBlockNumber()}var Iee=new Map;async function pmt(r){let e=await i4e(r),t=r.block,n=`${e}_${t}`,a;if(Iee.has(n))a=Iee.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw Iee.delete(n),s}),Iee.set(n,a)}return await a}var BCe=new Map;async function hmt(r){let e=await i4e(r),t=r.block,n=`${e}_${t}`,a;if(Iee.has(n))a=BCe.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw BCe.delete(n),s}),BCe.set(n,a)}return await a}function s4e(r){let[,e]=pi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function ZFr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await pmt({block:a,...t}))}catch{}}return s4e({...t,onBlockNumber:n})}function fmt(r){let{onBlock:e,...t}=r;async function n(a){try{e(await hmt({block:a,...t}))}catch{}}return s4e({...t,onBlockNumber:n})}function XFr(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return fmt({...n,onBlock:i})}re.ALL_ROLES=W8e;re.APPROVED_IMPLEMENTATIONS=FCe;re.AbiObjectSchema=emt;re.AbiSchema=Qi;re.AbiTypeSchema=T8e;re.AddressOrEnsSchema=Ri;re.AddressSchema=P8e;re.AdminRoleMissingError=a8e;re.AssetNotFoundError=KCe;re.AuctionAlreadyStartedError=XCe;re.AuctionHasNotEndedError=aY;re.BYOCContractMetadataSchema=Jft;re.BaseSignaturePayloadInput=xme;re.BigNumberSchema=Ss;re.BigNumberTransformSchema=Rht;re.BigNumberishSchema=Qs;re.CONTRACTS_MAP=Q8e;re.CONTRACT_ADDRESSES=Kg;re.CallOverrideSchema=Mht;re.ChainId=Be;re.ChainIdToAddressSchema=I8e;re.ChainInfoInputSchema=Nht;re.ClaimConditionInputArray=Oht;re.ClaimConditionInputSchema=ete;re.ClaimConditionMetadataSchema=Lht;re.ClaimConditionOutputSchema=N8e;re.ClaimEligibility=ka;re.CommonContractOutputSchema=ld;re.CommonContractSchema=Sl;re.CommonPlatformFeeSchema=Cp;re.CommonPrimarySaleSchema=Gg;re.CommonRoyaltySchema=Zo;re.CommonSymbolSchema=xo;re.CommonTrustedForwarderSchema=dd;re.CompilerMetadataFetchedSchema=cmt;re.ContractAppURI=Vee;re.ContractDeployer=yme;re.ContractEncoder=z2;re.ContractEvents=K2;re.ContractInfoSchema=t4e;re.ContractInterceptor=G2;re.ContractMetadata=q0;re.ContractOwner=gme;re.ContractPlatformFee=dme;re.ContractPrimarySale=Ffe;re.ContractPublishedMetadata=pme;re.ContractRoles=Ofe;re.ContractRoyalty=qfe;re.ContractWrapper=Rs;re.CurrencySchema=Bht;re.CurrencyValueSchema=Dht;re.CustomContractDeploy=Xft;re.CustomContractInput=X8e;re.CustomContractOutput=Zft;re.CustomContractSchema=U2;re.DelayedReveal=zee;re.DeployTransaction=Lfe;re.DropClaimConditions=Kee;re.DropErc1155ClaimConditions=Wfe;re.DropErc1155ContractSchema=Jht;re.DropErc20ContractSchema=jft;re.DropErc721ContractSchema=L8e;re.DuplicateFileNameError=YCe;re.DuplicateLeafsError=tfe;re.EditionDropInitializer=Oh;re.EditionInitializer=U0;re.EndDateSchema=Zee;re.Erc1155=ome;re.Erc1155BatchMintable=ame;re.Erc1155Burnable=tme;re.Erc1155Enumerable=rme;re.Erc1155LazyMintable=nme;re.Erc1155Mintable=ime;re.Erc1155SignatureMintable=sme;re.Erc20=Kfe;re.Erc20BatchMintable=Hfe;re.Erc20Burnable=Ufe;re.Erc20Mintable=jfe;re.Erc20SignatureMintable=zfe;re.Erc721=eme;re.Erc721BatchMintable=$fe;re.Erc721Burnable=Gfe;re.Erc721ClaimableWithConditions=Vfe;re.Erc721Enumerable=Jfe;re.Erc721LazyMintable=Yfe;re.Erc721Mintable=Qfe;re.Erc721Supply=Zfe;re.Erc721WithQuantitySignatureMintable=Xfe;re.EventType=kl;re.ExtensionNotImplementedError=F0;re.ExtraPublishMetadataSchemaInput=e4e;re.ExtraPublishMetadataSchemaOutput=rmt;re.FEATURE_DIRECT_LISTINGS=Nee;re.FEATURE_ENGLISH_AUCTIONS=Bee;re.FEATURE_NFT_REVEALABLE=Fee;re.FEATURE_OFFERS=Dee;re.FEATURE_PACK_VRF=i8e;re.FactoryDeploymentSchema=tmt;re.FetchError=ZCe;re.FileNameMissingError=VCe;re.FullPublishMetadataSchemaInput=nmt;re.FullPublishMetadataSchemaOutput=amt;re.FunctionDeprecatedError=e8e;re.GasCostEstimator=V2;re.GenericRequest=Yht;re.InterfaceId_IERC1155=Qee;re.InterfaceId_IERC721=$ee;re.InvalidAddressError=zCe;re.LINK_TOKEN_ADDRESS=aqr;re.LOCAL_NODE_PKEY=Eht;re.ListingNotFoundError=t8e;re.MarketplaceContractSchema=O8e;re.MarketplaceInitializer=Ip;re.MarketplaceV3DirectListings=cme;re.MarketplaceV3EnglishAuctions=ume;re.MarketplaceV3Initializer=hm;re.MarketplaceV3Offers=lme;re.MerkleSchema=K0;re.MintRequest1155=Ght;re.MintRequest20=zht;re.MintRequest721=Kht;re.MintRequest721withQuantity=Vht;re.MissingOwnerRoleError=QCe;re.MissingRoleError=efe;re.MultiwrapContractSchema=Kft;re.MultiwrapInitializer=Ep;re.NATIVE_TOKENS=Aee;re.NATIVE_TOKEN_ADDRESS=Ku;re.NFTCollectionInitializer=H0;re.NFTDropInitializer=qh;re.NotEnoughTokensError=$Ce;re.NotFoundError=See;re.OZ_DEFENDER_FORWARDER_ADDRESS=jg;re.PREBUILT_CONTRACTS_APPURI_MAP=Gft;re.PREBUILT_CONTRACTS_MAP=fm;re.PackContractSchema=eft;re.PackInitializer=Pl;re.PartialClaimConditionInputSchema=cqr;re.PreDeployMetadata=nte;re.PreDeployMetadataFetchedSchema=umt;re.ProfileSchemaInput=imt;re.ProfileSchemaOutput=smt;re.PublishedContractSchema=omt;re.QuantityAboveLimitError=JCe;re.RawDateSchema=Jee;re.RestrictedTransferError=n8e;re.SUPPORTED_CHAIN_IDS=_ht;re.Signature1155PayloadInput=Fht;re.Signature1155PayloadInputWithTokenId=Wht;re.Signature1155PayloadOutput=Uht;re.Signature20PayloadInput=B8e;re.Signature20PayloadOutput=qht;re.Signature721PayloadInput=_me;re.Signature721PayloadOutput=D8e;re.Signature721WithQuantityInput=Hht;re.Signature721WithQuantityOutput=jht;re.SignatureDropInitializer=Fh;re.SnapshotEntryInput=Zhe;re.SnapshotEntryWithProofSchema=R8e;re.SnapshotInfoSchema=oqr;re.SnapshotInputSchema=Xee;re.SnapshotSchema=M8e;re.SplitInitializer=Wh;re.SplitsContractSchema=rft;re.StartDateSchema=S8e;re.Status=Jo;re.ThirdwebSDK=pm;re.TokenDropInitializer=j0;re.TokenErc1155ContractSchema=cft;re.TokenErc20ContractSchema=aft;re.TokenErc721ContractSchema=sft;re.TokenInitializer=Uh;re.Transaction=Le;re.TransactionError=oY;re.UploadError=GCe;re.UserWallet=mY;re.VoteContractSchema=dft;re.VoteInitializer=Hh;re.WrongListingTypeError=r8e;re.approveErc20Allowance=F8e;re.assertEnabled=er;re.buildTransactionFunction=Ie;re.cleanCurrencyAddress=nfe;re.convertToReadableQuantity=xee;re.createSnapshot=Tft;re.detectContractFeature=$e;re.detectFeatures=tte;re.extractConstructorParams=Nft;re.extractConstructorParamsFromAbi=j8e;re.extractEventsFromAbi=Oft;re.extractFunctionParamsFromAbi=Lft;re.extractFunctions=Bft;re.extractFunctionsFromAbi=dY;re.extractIPFSHashFromBytecode=Fft;re.extractMinimalProxyImplementationAddress=qft;re.fetchAbiFromAddress=Rl;re.fetchContractMetadata=bme;re.fetchContractMetadataFromAddress=z0;re.fetchCurrencyMetadata=gY;re.fetchCurrencyValue=Tp;re.fetchExtendedReleaseMetadata=K8e;re.fetchPreDeployMetadata=pY;re.fetchRawPredeployMetadata=z8e;re.fetchSnapshotEntryForAddress=Eme;re.fetchSourceFilesFromMetadata=Ame;re.fetchTokenMetadataForContract=rte;re.getAllDetectedFeatureNames=f8e;re.getAllDetectedFeatures=IFr;re.getApprovedImplementation=Cht;re.getBlock=pmt;re.getBlockNumber=JFr;re.getBlockWithTransactions=hmt;re.getChainId=i4e;re.getChainIdFromNetwork=pft;re.getChainProvider=Pee;re.getContract=QFr;re.getContractAddressByChainId=kee;re.getContractFromAbi=$he;re.getContractName=Z8e;re.getContractPublisherAddress=kht;re.getContractTypeForRemoteName=J8e;re.getDefaultTrustedForwarders=k8e;re.getMultichainRegistryAddress=WCe;re.getNativeTokenByChainId=Jhe;re.getProviderFromRpcUrl=Xhe;re.getRoleHash=nY;re.getSignerAndProvider=pi;re.getSupportedChains=Iht;re.handleTokenApproval=Gee;re.hasERC20Allowance=zqr;re.hasFunction=vo;re.hasMatchingAbi=H8e;re.includesErrorMessage=Ree;re.isChainConfig=Tme;re.isDowngradeVersion=VFr;re.isFeatureEnabled=hY;re.isIncrementalVersion=Qft;re.isNativeToken=jh;re.isProvider=A8e;re.isSigner=wme;re.isTokenApprovedForTransfer=Uft;re.isWinningBid=NFr;re.mapOffer=MFr;re.matchesPrebuiltAbi=xFr;re.normalizeAmount=Kqr;re.normalizePriceValue=Cc;re.parseRevertReason=Ime;re.resolveAddress=Re;re.resolveContractUriFromAddress=jee;re.setErc20Allowance=W0;re.setSupportedChains=Tht;re.toDisplayValue=$qr;re.toEther=Gqr;re.toSemver=yY;re.toUnits=Yqr;re.toWei=Vqr;re.uploadOrExtractURI=Y8e;re.validateNewListingParam=RFr;re.watchBlock=ZFr;re.watchBlockNumber=s4e;re.watchBlockWithTransactions=fmt;re.watchTransactions=XFr});var bmt=_(G0=>{"use strict";d();p();var bY=ls(),mm=kr(),Pme=Ei(),mmt=yn(),ymt=mm.z.object({}).catchall(mm.z.union([bY.BigNumberTransformSchema,mm.z.unknown()])),eWr=mm.z.union([mm.z.array(ymt),ymt]).optional(),gmt=mm.z.object({supply:bY.BigNumberSchema,metadata:Pme.CommonNFTOutput}),tWr=gmt.extend({owner:mm.z.string(),quantityOwned:bY.BigNumberSchema}),rWr=mm.z.object({supply:bY.BigNumberishSchema,metadata:Pme.CommonNFTInput}),nWr=mm.z.object({supply:bY.BigNumberishSchema,metadata:Pme.NFTInputOrUriSchema}),aWr=mm.z.object({toAddress:bY.AddressOrEnsSchema,amount:Pme.AmountSchema}),iWr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function sWr(r){if(r in mmt.GENERATED_ABI)return mmt.GENERATED_ABI[r]}G0.EditionMetadataInputOrUriSchema=nWr;G0.EditionMetadataInputSchema=rWr;G0.EditionMetadataOutputSchema=gmt;G0.EditionMetadataWithOwnerOutputSchema=tWr;G0.OptionalPropertiesInput=eWr;G0.ProposalState=iWr;G0.TokenMintInputSchema=aWr;G0.getCachedAbiForContract=sWr});var vmt=_(ae=>{"use strict";d();p();Object.defineProperty(ae,"__esModule",{value:!0});var oWr=Ei(),oe=ls(),Vg=bmt(),cWr=lCe(),uWr=ICe(),lWr=zhe(),dWr=KV(),pWr=yee(),o4e=gCe(),hWr=ECe(),ate=bee();Cr();je();kr();Tn();In();En();Cn();kn();An();Pn();Sn();Rn();Mn();Nn();Bn();Dn();Ln();On();pn();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();Yn();$n();Qn();hn();Jn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();pa();vt();ha();tn();Je();fa();bn();Gr();Xr();ma();ya();ga();Fr();mn();ba();va();wa();xa();_a();Ta();yn();Ia();Ea();globalThis.global=globalThis;ae.getRpcUrl=oWr.getRpcUrl;ae.ALL_ROLES=oe.ALL_ROLES;ae.APPROVED_IMPLEMENTATIONS=oe.APPROVED_IMPLEMENTATIONS;ae.AbiObjectSchema=oe.AbiObjectSchema;ae.AbiSchema=oe.AbiSchema;ae.AbiTypeSchema=oe.AbiTypeSchema;ae.AddressOrEnsSchema=oe.AddressOrEnsSchema;ae.AddressSchema=oe.AddressSchema;ae.AdminRoleMissingError=oe.AdminRoleMissingError;ae.AssetNotFoundError=oe.AssetNotFoundError;ae.AuctionAlreadyStartedError=oe.AuctionAlreadyStartedError;ae.AuctionHasNotEndedError=oe.AuctionHasNotEndedError;ae.BYOCContractMetadataSchema=oe.BYOCContractMetadataSchema;ae.BaseSignaturePayloadInput=oe.BaseSignaturePayloadInput;ae.BigNumberSchema=oe.BigNumberSchema;ae.BigNumberTransformSchema=oe.BigNumberTransformSchema;ae.BigNumberishSchema=oe.BigNumberishSchema;ae.CONTRACTS_MAP=oe.CONTRACTS_MAP;ae.CONTRACT_ADDRESSES=oe.CONTRACT_ADDRESSES;ae.CallOverrideSchema=oe.CallOverrideSchema;ae.ChainId=oe.ChainId;ae.ChainIdToAddressSchema=oe.ChainIdToAddressSchema;ae.ChainInfoInputSchema=oe.ChainInfoInputSchema;ae.ClaimConditionInputArray=oe.ClaimConditionInputArray;ae.ClaimConditionInputSchema=oe.ClaimConditionInputSchema;ae.ClaimConditionMetadataSchema=oe.ClaimConditionMetadataSchema;ae.ClaimConditionOutputSchema=oe.ClaimConditionOutputSchema;ae.ClaimEligibility=oe.ClaimEligibility;ae.CommonContractOutputSchema=oe.CommonContractOutputSchema;ae.CommonContractSchema=oe.CommonContractSchema;ae.CommonPlatformFeeSchema=oe.CommonPlatformFeeSchema;ae.CommonPrimarySaleSchema=oe.CommonPrimarySaleSchema;ae.CommonRoyaltySchema=oe.CommonRoyaltySchema;ae.CommonSymbolSchema=oe.CommonSymbolSchema;ae.CommonTrustedForwarderSchema=oe.CommonTrustedForwarderSchema;ae.CompilerMetadataFetchedSchema=oe.CompilerMetadataFetchedSchema;ae.ContractAppURI=oe.ContractAppURI;ae.ContractDeployer=oe.ContractDeployer;ae.ContractEncoder=oe.ContractEncoder;ae.ContractEvents=oe.ContractEvents;ae.ContractInfoSchema=oe.ContractInfoSchema;ae.ContractInterceptor=oe.ContractInterceptor;ae.ContractMetadata=oe.ContractMetadata;ae.ContractOwner=oe.ContractOwner;ae.ContractPlatformFee=oe.ContractPlatformFee;ae.ContractPrimarySale=oe.ContractPrimarySale;ae.ContractPublishedMetadata=oe.ContractPublishedMetadata;ae.ContractRoles=oe.ContractRoles;ae.ContractRoyalty=oe.ContractRoyalty;ae.CurrencySchema=oe.CurrencySchema;ae.CurrencyValueSchema=oe.CurrencyValueSchema;ae.CustomContractDeploy=oe.CustomContractDeploy;ae.CustomContractInput=oe.CustomContractInput;ae.CustomContractOutput=oe.CustomContractOutput;ae.CustomContractSchema=oe.CustomContractSchema;ae.DelayedReveal=oe.DelayedReveal;ae.DeployTransaction=oe.DeployTransaction;ae.DropClaimConditions=oe.DropClaimConditions;ae.DropErc1155ClaimConditions=oe.DropErc1155ClaimConditions;ae.DuplicateFileNameError=oe.DuplicateFileNameError;ae.DuplicateLeafsError=oe.DuplicateLeafsError;ae.EditionDropInitializer=oe.EditionDropInitializer;ae.EditionInitializer=oe.EditionInitializer;ae.EndDateSchema=oe.EndDateSchema;ae.Erc1155=oe.Erc1155;ae.Erc1155BatchMintable=oe.Erc1155BatchMintable;ae.Erc1155Burnable=oe.Erc1155Burnable;ae.Erc1155Enumerable=oe.Erc1155Enumerable;ae.Erc1155LazyMintable=oe.Erc1155LazyMintable;ae.Erc1155Mintable=oe.Erc1155Mintable;ae.Erc1155SignatureMintable=oe.Erc1155SignatureMintable;ae.Erc20=oe.Erc20;ae.Erc20BatchMintable=oe.Erc20BatchMintable;ae.Erc20Burnable=oe.Erc20Burnable;ae.Erc20Mintable=oe.Erc20Mintable;ae.Erc20SignatureMintable=oe.Erc20SignatureMintable;ae.Erc721=oe.Erc721;ae.Erc721BatchMintable=oe.Erc721BatchMintable;ae.Erc721Burnable=oe.Erc721Burnable;ae.Erc721ClaimableWithConditions=oe.Erc721ClaimableWithConditions;ae.Erc721Enumerable=oe.Erc721Enumerable;ae.Erc721LazyMintable=oe.Erc721LazyMintable;ae.Erc721Mintable=oe.Erc721Mintable;ae.Erc721Supply=oe.Erc721Supply;ae.Erc721WithQuantitySignatureMintable=oe.Erc721WithQuantitySignatureMintable;ae.EventType=oe.EventType;ae.ExtensionNotImplementedError=oe.ExtensionNotImplementedError;ae.ExtraPublishMetadataSchemaInput=oe.ExtraPublishMetadataSchemaInput;ae.ExtraPublishMetadataSchemaOutput=oe.ExtraPublishMetadataSchemaOutput;ae.FactoryDeploymentSchema=oe.FactoryDeploymentSchema;ae.FetchError=oe.FetchError;ae.FileNameMissingError=oe.FileNameMissingError;ae.FullPublishMetadataSchemaInput=oe.FullPublishMetadataSchemaInput;ae.FullPublishMetadataSchemaOutput=oe.FullPublishMetadataSchemaOutput;ae.FunctionDeprecatedError=oe.FunctionDeprecatedError;ae.GasCostEstimator=oe.GasCostEstimator;ae.GenericRequest=oe.GenericRequest;ae.InterfaceId_IERC1155=oe.InterfaceId_IERC1155;ae.InterfaceId_IERC721=oe.InterfaceId_IERC721;ae.InvalidAddressError=oe.InvalidAddressError;ae.LINK_TOKEN_ADDRESS=oe.LINK_TOKEN_ADDRESS;ae.LOCAL_NODE_PKEY=oe.LOCAL_NODE_PKEY;ae.ListingNotFoundError=oe.ListingNotFoundError;ae.MarketplaceInitializer=oe.MarketplaceInitializer;ae.MarketplaceV3DirectListings=oe.MarketplaceV3DirectListings;ae.MarketplaceV3EnglishAuctions=oe.MarketplaceV3EnglishAuctions;ae.MarketplaceV3Initializer=oe.MarketplaceV3Initializer;ae.MarketplaceV3Offers=oe.MarketplaceV3Offers;ae.MerkleSchema=oe.MerkleSchema;ae.MintRequest1155=oe.MintRequest1155;ae.MintRequest20=oe.MintRequest20;ae.MintRequest721=oe.MintRequest721;ae.MintRequest721withQuantity=oe.MintRequest721withQuantity;ae.MissingOwnerRoleError=oe.MissingOwnerRoleError;ae.MissingRoleError=oe.MissingRoleError;ae.MultiwrapInitializer=oe.MultiwrapInitializer;ae.NATIVE_TOKENS=oe.NATIVE_TOKENS;ae.NATIVE_TOKEN_ADDRESS=oe.NATIVE_TOKEN_ADDRESS;ae.NFTCollectionInitializer=oe.NFTCollectionInitializer;ae.NFTDropInitializer=oe.NFTDropInitializer;ae.NotEnoughTokensError=oe.NotEnoughTokensError;ae.NotFoundError=oe.NotFoundError;ae.OZ_DEFENDER_FORWARDER_ADDRESS=oe.OZ_DEFENDER_FORWARDER_ADDRESS;ae.PREBUILT_CONTRACTS_APPURI_MAP=oe.PREBUILT_CONTRACTS_APPURI_MAP;ae.PREBUILT_CONTRACTS_MAP=oe.PREBUILT_CONTRACTS_MAP;ae.PackInitializer=oe.PackInitializer;ae.PartialClaimConditionInputSchema=oe.PartialClaimConditionInputSchema;ae.PreDeployMetadata=oe.PreDeployMetadata;ae.PreDeployMetadataFetchedSchema=oe.PreDeployMetadataFetchedSchema;ae.ProfileSchemaInput=oe.ProfileSchemaInput;ae.ProfileSchemaOutput=oe.ProfileSchemaOutput;ae.PublishedContractSchema=oe.PublishedContractSchema;ae.QuantityAboveLimitError=oe.QuantityAboveLimitError;ae.RawDateSchema=oe.RawDateSchema;ae.RestrictedTransferError=oe.RestrictedTransferError;ae.SUPPORTED_CHAIN_IDS=oe.SUPPORTED_CHAIN_IDS;ae.Signature1155PayloadInput=oe.Signature1155PayloadInput;ae.Signature1155PayloadInputWithTokenId=oe.Signature1155PayloadInputWithTokenId;ae.Signature1155PayloadOutput=oe.Signature1155PayloadOutput;ae.Signature20PayloadInput=oe.Signature20PayloadInput;ae.Signature20PayloadOutput=oe.Signature20PayloadOutput;ae.Signature721PayloadInput=oe.Signature721PayloadInput;ae.Signature721PayloadOutput=oe.Signature721PayloadOutput;ae.Signature721WithQuantityInput=oe.Signature721WithQuantityInput;ae.Signature721WithQuantityOutput=oe.Signature721WithQuantityOutput;ae.SignatureDropInitializer=oe.SignatureDropInitializer;ae.SnapshotEntryInput=oe.SnapshotEntryInput;ae.SnapshotEntryWithProofSchema=oe.SnapshotEntryWithProofSchema;ae.SnapshotInfoSchema=oe.SnapshotInfoSchema;ae.SnapshotInputSchema=oe.SnapshotInputSchema;ae.SnapshotSchema=oe.SnapshotSchema;ae.SplitInitializer=oe.SplitInitializer;ae.StartDateSchema=oe.StartDateSchema;ae.Status=oe.Status;ae.ThirdwebSDK=oe.ThirdwebSDK;ae.TokenDropInitializer=oe.TokenDropInitializer;ae.TokenInitializer=oe.TokenInitializer;ae.Transaction=oe.Transaction;ae.TransactionError=oe.TransactionError;ae.UploadError=oe.UploadError;ae.UserWallet=oe.UserWallet;ae.VoteInitializer=oe.VoteInitializer;ae.WrongListingTypeError=oe.WrongListingTypeError;ae.approveErc20Allowance=oe.approveErc20Allowance;ae.assertEnabled=oe.assertEnabled;ae.cleanCurrencyAddress=oe.cleanCurrencyAddress;ae.convertToReadableQuantity=oe.convertToReadableQuantity;ae.createSnapshot=oe.createSnapshot;ae.detectContractFeature=oe.detectContractFeature;ae.detectFeatures=oe.detectFeatures;ae.extractConstructorParams=oe.extractConstructorParams;ae.extractConstructorParamsFromAbi=oe.extractConstructorParamsFromAbi;ae.extractEventsFromAbi=oe.extractEventsFromAbi;ae.extractFunctionParamsFromAbi=oe.extractFunctionParamsFromAbi;ae.extractFunctions=oe.extractFunctions;ae.extractFunctionsFromAbi=oe.extractFunctionsFromAbi;ae.extractIPFSHashFromBytecode=oe.extractIPFSHashFromBytecode;ae.extractMinimalProxyImplementationAddress=oe.extractMinimalProxyImplementationAddress;ae.fetchAbiFromAddress=oe.fetchAbiFromAddress;ae.fetchContractMetadata=oe.fetchContractMetadata;ae.fetchContractMetadataFromAddress=oe.fetchContractMetadataFromAddress;ae.fetchCurrencyMetadata=oe.fetchCurrencyMetadata;ae.fetchCurrencyValue=oe.fetchCurrencyValue;ae.fetchExtendedReleaseMetadata=oe.fetchExtendedReleaseMetadata;ae.fetchPreDeployMetadata=oe.fetchPreDeployMetadata;ae.fetchRawPredeployMetadata=oe.fetchRawPredeployMetadata;ae.fetchSnapshotEntryForAddress=oe.fetchSnapshotEntryForAddress;ae.fetchSourceFilesFromMetadata=oe.fetchSourceFilesFromMetadata;ae.getAllDetectedFeatureNames=oe.getAllDetectedFeatureNames;ae.getAllDetectedFeatures=oe.getAllDetectedFeatures;ae.getApprovedImplementation=oe.getApprovedImplementation;ae.getBlock=oe.getBlock;ae.getBlockNumber=oe.getBlockNumber;ae.getBlockWithTransactions=oe.getBlockWithTransactions;ae.getChainId=oe.getChainId;ae.getChainIdFromNetwork=oe.getChainIdFromNetwork;ae.getChainProvider=oe.getChainProvider;ae.getContract=oe.getContract;ae.getContractAddressByChainId=oe.getContractAddressByChainId;ae.getContractFromAbi=oe.getContractFromAbi;ae.getContractName=oe.getContractName;ae.getContractPublisherAddress=oe.getContractPublisherAddress;ae.getContractTypeForRemoteName=oe.getContractTypeForRemoteName;ae.getDefaultTrustedForwarders=oe.getDefaultTrustedForwarders;ae.getMultichainRegistryAddress=oe.getMultichainRegistryAddress;ae.getNativeTokenByChainId=oe.getNativeTokenByChainId;ae.getProviderFromRpcUrl=oe.getProviderFromRpcUrl;ae.getRoleHash=oe.getRoleHash;ae.getSignerAndProvider=oe.getSignerAndProvider;ae.getSupportedChains=oe.getSupportedChains;ae.hasERC20Allowance=oe.hasERC20Allowance;ae.hasFunction=oe.hasFunction;ae.hasMatchingAbi=oe.hasMatchingAbi;ae.includesErrorMessage=oe.includesErrorMessage;ae.isChainConfig=oe.isChainConfig;ae.isDowngradeVersion=oe.isDowngradeVersion;ae.isFeatureEnabled=oe.isFeatureEnabled;ae.isIncrementalVersion=oe.isIncrementalVersion;ae.isNativeToken=oe.isNativeToken;ae.isProvider=oe.isProvider;ae.isSigner=oe.isSigner;ae.matchesPrebuiltAbi=oe.matchesPrebuiltAbi;ae.normalizeAmount=oe.normalizeAmount;ae.normalizePriceValue=oe.normalizePriceValue;ae.parseRevertReason=oe.parseRevertReason;ae.resolveContractUriFromAddress=oe.resolveContractUriFromAddress;ae.setErc20Allowance=oe.setErc20Allowance;ae.setSupportedChains=oe.setSupportedChains;ae.toDisplayValue=oe.toDisplayValue;ae.toEther=oe.toEther;ae.toSemver=oe.toSemver;ae.toUnits=oe.toUnits;ae.toWei=oe.toWei;ae.watchBlock=oe.watchBlock;ae.watchBlockNumber=oe.watchBlockNumber;ae.watchBlockWithTransactions=oe.watchBlockWithTransactions;ae.watchTransactions=oe.watchTransactions;ae.EditionMetadataInputOrUriSchema=Vg.EditionMetadataInputOrUriSchema;ae.EditionMetadataInputSchema=Vg.EditionMetadataInputSchema;ae.EditionMetadataOutputSchema=Vg.EditionMetadataOutputSchema;ae.EditionMetadataWithOwnerOutputSchema=Vg.EditionMetadataWithOwnerOutputSchema;ae.OptionalPropertiesInput=Vg.OptionalPropertiesInput;ae.ProposalState=Vg.ProposalState;ae.TokenMintInputSchema=Vg.TokenMintInputSchema;ae.getCachedAbiForContract=Vg.getCachedAbiForContract;ae.DropErc1155History=cWr.DropErc1155History;ae.TokenERC20History=uWr.TokenERC20History;ae.StandardErc20=lWr.StandardErc20;ae.StandardErc721=dWr.StandardErc721;ae.StandardErc1155=pWr.StandardErc1155;ae.ListingType=o4e.ListingType;ae.MarketplaceAuction=o4e.MarketplaceAuction;ae.MarketplaceDirect=o4e.MarketplaceDirect;ae.VoteType=hWr.VoteType;ae.PAPER_API_URL=ate.PAPER_API_URL;ae.PaperCheckout=ate.PaperCheckout;ae.createCheckoutLinkIntent=ate.createCheckoutLinkIntent;ae.fetchRegisteredCheckoutId=ate.fetchRegisteredCheckoutId;ae.parseChainIdToPaperChain=ate.parseChainIdToPaperChain});var wmt=_((HQn,c4e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?c4e.exports=Bdt():c4e.exports=vmt()});var ec=_(xmt=>{"use strict";d();p();function fWr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function mWr(r){var e=fWr(r,"string");return typeof e=="symbol"?e:String(e)}function yWr(r,e,t){return e=mWr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}xmt._defineProperty=yWr});var vY=_(l4e=>{"use strict";d();p();var gWr=ec(),bWr=Je();function vWr(r){return r&&r.__esModule?r:{default:r}}var wWr=vWr(bWr),Sme=class extends wWr.default{},u4e=class extends Sme{constructor(e){super(),gWr._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};l4e.TWConnector=Sme;l4e.WagmiAdapter=u4e});var Vu=_(_mt=>{"use strict";d();p();function xWr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}_mt._checkPrivateRedeclaration=xWr});var ym=_(d4e=>{"use strict";d();p();var _Wr=Vu();function TWr(r,e){_Wr._checkPrivateRedeclaration(r,e),e.add(r)}function IWr(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}d4e._classPrivateMethodGet=IWr;d4e._classPrivateMethodInitSpec=TWr});var Yg=_(Rme=>{"use strict";d();p();Object.defineProperty(Rme,"__esModule",{value:!0});var Tmt=ec(),wY=je(),EWr=Je();function CWr(r){return r&&r.__esModule?r:{default:r}}var kWr=CWr(EWr);function AWr(r){return`https://${r}.rpc.thirdweb.com`}var PWr=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],SWr="0x1626ba7e";async function Imt(r,e,t,n){let a=new wY.providers.JsonRpcProvider(AWr(n)),i=new wY.Contract(t,PWr,a),s=wY.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===SWr}catch{return!1}}var p4e=class extends kWr.default{constructor(){super(...arguments),Tmt._defineProperty(this,"type","evm"),Tmt._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=wY.utils.hashMessage(e),s=wY.utils.arrayify(i);if(wY.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await Imt(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};Rme.AbstractWallet=p4e;Rme.checkContractWalletSignature=Imt});var xY=_(ste=>{"use strict";d();p();var ite=ym(),$2=ec(),RWr=Yg(),MWr=vt(),h4e="__TW__",Mme=class{constructor(e){$2._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${h4e}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${h4e}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${h4e}/${this.name}/${e}`),t()})}};function Cmt(r){return new Mme(r)}var kmt={name:"thirdweb powered dApp",url:"https://thirdweb.com",description:"thirdweb powered dApp",logoUrl:"https://thirdweb.com/favicon.ico",isDarkMode:!0},f4e=new WeakSet,Amt=new WeakSet,Nme=class extends RWr.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),ite._classPrivateMethodInitSpec(this,Amt),ite._classPrivateMethodInitSpec(this,f4e),$2._defineProperty(this,"walletId",void 0),$2._defineProperty(this,"walletStorage",void 0),$2._defineProperty(this,"chains",void 0),$2._defineProperty(this,"dappMetadata",void 0),$2._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t?.chains||MWr.defaultChains,this.dappMetadata=t?.dappMetadata||kmt,this.walletStorage=t?.walletStorage||Cmt(this.walletId)}async autoConnect(e){let t=e?{...e,chainId:void 0}:void 0;return ite._classPrivateMethodGet(this,f4e,Emt).call(this,!0,t)}async connect(e){let t=await ite._classPrivateMethodGet(this,f4e,Emt).call(this,!1,e);if(!t)throw new Error("Failed to connect to the wallet.");return t}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),this.emit("disconnect"),e.removeAllListeners())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function Emt(r,e){let t=await this.getConnector();if(ite._classPrivateMethodGet(this,Amt,NWr).call(this,t),await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),e?.chainId&&await t.switchChain(e?.chainId),this.emit("connect",{address:i,chainId:await this.getChainId()}),i}if(r)throw new Error("Failed to auto connect to the wallet.");return await t.connect(e)}async function NWr(r){r.on("connect",e=>{this.emit("connect",{address:e.account,chainId:e.chain?.id})}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id})}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}$2._defineProperty(Nme,"meta",void 0);ste.AbstractBrowserWallet=Nme;ste.AsyncLocalStorage=Mme;ste.DEFAULT_DAPP_META=kmt;ste.createAsyncLocalStorage=Cmt});var gm=_(Bme=>{"use strict";d();p();var BWr=Vu();function DWr(r,e,t){BWr._checkPrivateRedeclaration(r,e),e.set(r,t)}function LWr(r,e){return e.get?e.get.call(r):e.value}function Pmt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function OWr(r,e){var t=Pmt(r,e,"get");return LWr(r,t)}function qWr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function FWr(r,e,t){var n=Pmt(r,e,"set");return qWr(r,n,t),t}Bme._classPrivateFieldGet=OWr;Bme._classPrivateFieldInitSpec=DWr;Bme._classPrivateFieldSet=FWr});var _Y=_(V0=>{"use strict";d();p();var _u=ec(),WWr=vt(),UWr=Je();function HWr(r){return r&&r.__esModule?r:{default:r}}var jWr=HWr(UWr),m4e=class extends jWr.default{constructor(e){let{chains:t=WWr.defaultChains,options:n}=e;super(),_u._defineProperty(this,"id",void 0),_u._defineProperty(this,"name",void 0),_u._defineProperty(this,"chains",void 0),_u._defineProperty(this,"options",void 0),_u._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},Dme=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),_u._defineProperty(this,"cause",void 0),_u._defineProperty(this,"code",void 0),_u._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},ote=class extends Dme{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},y4e=class extends Error{constructor(){super(...arguments),_u._defineProperty(this,"name","AddChainError"),_u._defineProperty(this,"message","Error adding chain")}},g4e=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),_u._defineProperty(this,"name","ChainNotConfigured")}},b4e=class extends Error{constructor(){super(...arguments),_u._defineProperty(this,"name","ConnectorNotFoundError"),_u._defineProperty(this,"message","Connector not found")}},v4e=class extends Dme{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),_u._defineProperty(this,"name","ResourceUnavailable")}},w4e=class extends ote{constructor(e){super("Error switching chain",{cause:e,code:4902}),_u._defineProperty(this,"name","SwitchChainError")}},x4e=class extends ote{constructor(e){super("User rejected request",{cause:e,code:4001}),_u._defineProperty(this,"name","UserRejectedRequestError")}};V0.AddChainError=y4e;V0.ChainNotConfiguredError=g4e;V0.Connector=m4e;V0.ConnectorNotFoundError=b4e;V0.ProviderRpcError=ote;V0.ResourceUnavailableError=v4e;V0.SwitchChainError=w4e;V0.UserRejectedRequestError=x4e});var TY=_(Smt=>{"use strict";d();p();function zWr(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}Smt.normalizeChainId=zWr});var Rmt=_(Lme=>{"use strict";d();p();Object.defineProperty(Lme,"__esModule",{value:!0});Lme.walletLogo=void 0;var KWr=(r,e)=>{let t;switch(r){case"standard":return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return t=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};Lme.walletLogo=KWr});var Mmt=_(Ome=>{"use strict";d();p();Object.defineProperty(Ome,"__esModule",{value:!0});Ome.ScopedLocalStorage=void 0;var _4e=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};Ome.ScopedLocalStorage=_4e});var cte=_(I4e=>{"use strict";d();p();Object.defineProperty(I4e,"__esModule",{value:!0});var GWr=Lu();function Nmt(r,e,t){try{Reflect.apply(r,e,t)}catch(n){setTimeout(()=>{throw n})}}function VWr(r){let e=r.length,t=new Array(e);for(let n=0;n0&&([s]=t),s instanceof Error)throw s;let o=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw o.context=s,o}let i=a[e];if(i===void 0)return!1;if(typeof i=="function")Nmt(i,this,t);else{let s=i.length,o=VWr(i);for(let c=0;c{d();p();qmt.exports=ute;ute.default=ute;ute.stable=Lmt;ute.stableStringify=Lmt;var qme="[...]",Bmt="[Circular]",J2=[],Q2=[];function Dmt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function ute(r,e,t,n){typeof n>"u"&&(n=Dmt()),E4e(r,"",0,[],void 0,0,n);var a;try{Q2.length===0?a=JSON.stringify(r,e,t):a=JSON.stringify(r,Omt(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;J2.length!==0;){var i=J2.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function IY(r,e,t,n){var a=Object.getOwnPropertyDescriptor(n,t);a.get!==void 0?a.configurable?(Object.defineProperty(n,t,{value:r}),J2.push([n,t,e,a])):Q2.push([e,t,r]):(n[t]=r,J2.push([n,t,e]))}function E4e(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){IY(qme,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){IY(qme,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;oe?1:0}function Lmt(r,e,t,n){typeof n>"u"&&(n=Dmt());var a=C4e(r,"",0,[],void 0,0,n)||r,i;try{Q2.length===0?i=JSON.stringify(a,e,t):i=JSON.stringify(a,Omt(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;J2.length!==0;){var s=J2.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function C4e(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){IY(qme,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){IY(qme,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;o0)for(var n=0;n{"use strict";d();p();Object.defineProperty(EY,"__esModule",{value:!0});EY.EthereumProviderError=EY.EthereumRpcError=void 0;var $Wr=k4e(),Fme=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return $Wr.default(this.serialize(),JWr,2)}};EY.EthereumRpcError=Fme;var A4e=class extends Fme{constructor(e,t,n){if(!QWr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};EY.EthereumProviderError=A4e;function QWr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function JWr(r,e){if(e!=="[Circular]")return e}});var Ume=_(CY=>{"use strict";d();p();Object.defineProperty(CY,"__esModule",{value:!0});CY.errorValues=CY.errorCodes=void 0;CY.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};CY.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var R4e=_(zh=>{"use strict";d();p();Object.defineProperty(zh,"__esModule",{value:!0});zh.serializeError=zh.isValidCode=zh.getMessageFromCode=zh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var Hme=Ume(),ZWr=Wme(),Fmt=Hme.errorCodes.rpc.internal,XWr="Unspecified error message. This is a bug, please report it.",eUr={code:Fmt,message:S4e(Fmt)};zh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function S4e(r,e=XWr){if(Number.isInteger(r)){let t=r.toString();if(P4e(Hme.errorValues,t))return Hme.errorValues[t].message;if(Hmt(r))return zh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}zh.getMessageFromCode=S4e;function Umt(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(Hme.errorValues[e]||Hmt(r))}zh.isValidCode=Umt;function tUr(r,{fallbackError:e=eUr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof ZWr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&P4e(r,"code")&&Umt(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,P4e(o,"data")&&(i.data=o.data)):(i.message=S4e(i.code),i.data={originalError:Wmt(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:Wmt(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}zh.serializeError=tUr;function Hmt(r){return r>=-32099&&r<=-32e3}function Wmt(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function P4e(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var Kmt=_(jme=>{"use strict";d();p();Object.defineProperty(jme,"__esModule",{value:!0});jme.ethErrors=void 0;var M4e=Wme(),jmt=R4e(),Tu=Ume();jme.ethErrors={rpc:{parse:r=>Ap(Tu.errorCodes.rpc.parse,r),invalidRequest:r=>Ap(Tu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Ap(Tu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Ap(Tu.errorCodes.rpc.methodNotFound,r),internal:r=>Ap(Tu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Ap(e,r)},invalidInput:r=>Ap(Tu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Ap(Tu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Ap(Tu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Ap(Tu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Ap(Tu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Ap(Tu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>lte(Tu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>lte(Tu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>lte(Tu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>lte(Tu.errorCodes.provider.disconnected,r),chainDisconnected:r=>lte(Tu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new M4e.EthereumProviderError(e,t,n)}}};function Ap(r,e){let[t,n]=zmt(e);return new M4e.EthereumRpcError(r,t||jmt.getMessageFromCode(r),n)}function lte(r,e){let[t,n]=zmt(e);return new M4e.EthereumProviderError(r,t||jmt.getMessageFromCode(r),n)}function zmt(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var zme=_(Ml=>{"use strict";d();p();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.getMessageFromCode=Ml.serializeError=Ml.EthereumProviderError=Ml.EthereumRpcError=Ml.ethErrors=Ml.errorCodes=void 0;var Gmt=Wme();Object.defineProperty(Ml,"EthereumRpcError",{enumerable:!0,get:function(){return Gmt.EthereumRpcError}});Object.defineProperty(Ml,"EthereumProviderError",{enumerable:!0,get:function(){return Gmt.EthereumProviderError}});var Vmt=R4e();Object.defineProperty(Ml,"serializeError",{enumerable:!0,get:function(){return Vmt.serializeError}});Object.defineProperty(Ml,"getMessageFromCode",{enumerable:!0,get:function(){return Vmt.getMessageFromCode}});var rUr=Kmt();Object.defineProperty(Ml,"ethErrors",{enumerable:!0,get:function(){return rUr.ethErrors}});var nUr=Ume();Object.defineProperty(Ml,"errorCodes",{enumerable:!0,get:function(){return nUr.errorCodes}})});var Gme=_(Kme=>{"use strict";d();p();Object.defineProperty(Kme,"__esModule",{value:!0});Kme.EVENTS=void 0;Kme.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}});var Ymt=_(()=>{d();p()});var f0t=_((ZJn,h0t)=>{d();p();var H4e=typeof Map=="function"&&Map.prototype,N4e=Object.getOwnPropertyDescriptor&&H4e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yme=H4e&&N4e&&typeof N4e.get=="function"?N4e.get:null,$mt=H4e&&Map.prototype.forEach,j4e=typeof Set=="function"&&Set.prototype,B4e=Object.getOwnPropertyDescriptor&&j4e?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$me=j4e&&B4e&&typeof B4e.get=="function"?B4e.get:null,Qmt=j4e&&Set.prototype.forEach,aUr=typeof WeakMap=="function"&&WeakMap.prototype,pte=aUr?WeakMap.prototype.has:null,iUr=typeof WeakSet=="function"&&WeakSet.prototype,hte=iUr?WeakSet.prototype.has:null,sUr=typeof WeakRef=="function"&&WeakRef.prototype,Jmt=sUr?WeakRef.prototype.deref:null,oUr=Boolean.prototype.valueOf,cUr=Object.prototype.toString,uUr=Function.prototype.toString,lUr=String.prototype.match,z4e=String.prototype.slice,Qg=String.prototype.replace,dUr=String.prototype.toUpperCase,Zmt=String.prototype.toLowerCase,o0t=RegExp.prototype.test,Xmt=Array.prototype.concat,bm=Array.prototype.join,pUr=Array.prototype.slice,e0t=Math.floor,O4e=typeof BigInt=="function"?BigInt.prototype.valueOf:null,D4e=Object.getOwnPropertySymbols,q4e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,kY=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Iu=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===kY?"object":"symbol")?Symbol.toStringTag:null,c0t=Object.prototype.propertyIsEnumerable,t0t=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function r0t(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||o0t.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-e0t(-r):e0t(r);if(n!==r){var a=String(n),i=z4e.call(e,a.length+1);return Qg.call(a,t,"$&_")+"."+Qg.call(Qg.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Qg.call(e,t,"$&_")}var F4e=Ymt(),n0t=F4e.custom,a0t=l0t(n0t)?n0t:null;h0t.exports=function r(e,t,n,a){var i=t||{};if($g(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if($g(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=$g(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($g(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($g(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return p0t(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return o?r0t(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return o?r0t(e,u):u}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return W4e(e)?"[Array]":"[Object]";var h=SUr(i,n);if(typeof a>"u")a=[];else if(d0t(a,e)>=0)return"[Circular]";function f(A,v,k){if(v&&(a=pUr.call(a),a.push(v)),k){var O={depth:i.depth};return $g(i,"quoteStyle")&&(O.quoteStyle=i.quoteStyle),r(A,O,n+1,a)}return r(A,i,n+1,a)}if(typeof e=="function"&&!i0t(e)){var m=xUr(e),y=Vme(e,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(y.length>0?" { "+bm.call(y,", ")+" }":"")}if(l0t(e)){var I=kY?Qg.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):q4e.call(e);return typeof e=="object"&&!kY?dte(I):I}if(kUr(e)){for(var C="<"+Zmt.call(String(e.nodeName)),R=e.attributes||[],L=0;L",C}if(W4e(e)){if(e.length===0)return"[]";var F=Vme(e,f);return h&&!PUr(F)?"["+U4e(F,h)+"]":"[ "+bm.call(F,", ")+" ]"}if(mUr(e)){var W=Vme(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!c0t.call(e,"cause")?"{ ["+String(e)+"] "+bm.call(Xmt.call("[cause]: "+f(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+bm.call(W,", ")+" }"}if(typeof e=="object"&&s){if(a0t&&typeof e[a0t]=="function"&&F4e)return F4e(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_Ur(e)){var V=[];return $mt&&$mt.call(e,function(A,v){V.push(f(v,e,!0)+" => "+f(A,e))}),s0t("Map",Yme.call(e),V,h)}if(EUr(e)){var K=[];return Qmt&&Qmt.call(e,function(A){K.push(f(A,e))}),s0t("Set",$me.call(e),K,h)}if(TUr(e))return L4e("WeakMap");if(CUr(e))return L4e("WeakSet");if(IUr(e))return L4e("WeakRef");if(gUr(e))return dte(f(Number(e)));if(vUr(e))return dte(f(O4e.call(e)));if(bUr(e))return dte(oUr.call(e));if(yUr(e))return dte(f(String(e)));if(!fUr(e)&&!i0t(e)){var H=Vme(e,f),G=t0t?t0t(e)===Object.prototype:e instanceof Object||e.constructor===Object,Q=e instanceof Object?"":"null prototype",q=!G&&Iu&&Object(e)===e&&Iu in e?z4e.call(Jg(e),8,-1):Q?"Object":"",T=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",M=T+(q||Q?"["+bm.call(Xmt.call([],q||[],Q||[]),": ")+"] ":"");return H.length===0?M+"{}":h?M+"{"+U4e(H,h)+"}":M+"{ "+bm.call(H,", ")+" }"}return String(e)};function u0t(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function hUr(r){return Qg.call(String(r),/"/g,""")}function W4e(r){return Jg(r)==="[object Array]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function fUr(r){return Jg(r)==="[object Date]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function i0t(r){return Jg(r)==="[object RegExp]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function mUr(r){return Jg(r)==="[object Error]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function yUr(r){return Jg(r)==="[object String]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function gUr(r){return Jg(r)==="[object Number]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function bUr(r){return Jg(r)==="[object Boolean]"&&(!Iu||!(typeof r=="object"&&Iu in r))}function l0t(r){if(kY)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!q4e)return!1;try{return q4e.call(r),!0}catch{}return!1}function vUr(r){if(!r||typeof r!="object"||!O4e)return!1;try{return O4e.call(r),!0}catch{}return!1}var wUr=Object.prototype.hasOwnProperty||function(r){return r in this};function $g(r,e){return wUr.call(r,e)}function Jg(r){return cUr.call(r)}function xUr(r){if(r.name)return r.name;var e=lUr.call(uUr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function d0t(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return p0t(z4e.call(r,0,e.maxStringLength),e)+n}var a=Qg.call(Qg.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,AUr);return u0t(a,"single",e)}function AUr(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+dUr.call(e.toString(16))}function dte(r){return"Object("+r+")"}function L4e(r){return r+" { ? }"}function s0t(r,e,t,n){var a=n?U4e(t,n):bm.call(t,", ");return r+" ("+e+") {"+a+"}"}function PUr(r){for(var e=0;e=0)return!1;return!0}function SUr(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=bm.call(Array(r.indent+1)," ");else return null;return{base:t,prev:bm.call(Array(e+1),t)}}function U4e(r,e){if(r.length===0)return"";var t=` -`+e.prev+e.base;return t+bm.call(r,","+t)+` -`+e.prev}function Vme(r,e){var t=W4e(r),n=[];if(t){n.length=r.length;for(var a=0;a{"use strict";d();p();var K4e=lJ(),AY=dJ(),RUr=f0t(),MUr=K4e("%TypeError%"),Qme=K4e("%WeakMap%",!0),Jme=K4e("%Map%",!0),NUr=AY("WeakMap.prototype.get",!0),BUr=AY("WeakMap.prototype.set",!0),DUr=AY("WeakMap.prototype.has",!0),LUr=AY("Map.prototype.get",!0),OUr=AY("Map.prototype.set",!0),qUr=AY("Map.prototype.has",!0),G4e=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},FUr=function(r,e){var t=G4e(r,e);return t&&t.value},WUr=function(r,e,t){var n=G4e(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},UUr=function(r,e){return!!G4e(r,e)};m0t.exports=function(){var e,t,n,a={assert:function(i){if(!a.has(i))throw new MUr("Side channel does not contain "+RUr(i))},get:function(i){if(Qme&&i&&(typeof i=="object"||typeof i=="function")){if(e)return NUr(e,i)}else if(Jme){if(t)return LUr(t,i)}else if(n)return FUr(n,i)},has:function(i){if(Qme&&i&&(typeof i=="object"||typeof i=="function")){if(e)return DUr(e,i)}else if(Jme){if(t)return qUr(t,i)}else if(n)return UUr(n,i);return!1},set:function(i,s){Qme&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Qme),BUr(e,i,s)):Jme?(t||(t=new Jme),OUr(t,i,s)):(n||(n={key:{},next:null}),WUr(n,i,s))}};return a}});var Zme=_((aZn,g0t)=>{"use strict";d();p();var HUr=String.prototype.replace,jUr=/%20/g,V4e={RFC1738:"RFC1738",RFC3986:"RFC3986"};g0t.exports={default:V4e.RFC3986,formatters:{RFC1738:function(r){return HUr.call(r,jUr,"+")},RFC3986:function(r){return String(r)}},RFC1738:V4e.RFC1738,RFC3986:V4e.RFC3986}});var $4e=_((oZn,v0t)=>{"use strict";d();p();var zUr=Zme(),Y4e=Object.prototype.hasOwnProperty,Z2=Array.isArray,vm=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),KUr=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(Z2(n)){for(var a=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===zUr.RFC1738&&(u===40||u===41)){o+=s.charAt(c);continue}if(u<128){o=o+vm[u];continue}if(u<2048){o=o+(vm[192|u>>6]+vm[128|u&63]);continue}if(u<55296||u>=57344){o=o+(vm[224|u>>12]+vm[128|u>>6&63]+vm[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),o+=vm[240|u>>18]+vm[128|u>>12&63]+vm[128|u>>6&63]+vm[128|u&63]}return o},QUr=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a{"use strict";d();p();var _0t=y0t(),Xme=$4e(),fte=Zme(),tHr=Object.prototype.hasOwnProperty,w0t={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Y0=Array.isArray,rHr=Array.prototype.push,T0t=function(r,e){rHr.apply(r,Y0(e)?e:[e])},nHr=Date.prototype.toISOString,x0t=fte.default,Eu={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Xme.encode,encodeValuesOnly:!1,format:x0t,formatter:fte.formatters[x0t],indices:!1,serializeDate:function(e){return nHr.call(e)},skipNulls:!1,strictNullHandling:!1},aHr=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Q4e={},iHr=function r(e,t,n,a,i,s,o,c,u,l,h,f,m,y,I,C){for(var R=e,L=C,F=0,W=!1;(L=L.get(Q4e))!==void 0&&!W;){var V=L.get(e);if(F+=1,typeof V<"u"){if(V===F)throw new RangeError("Cyclic object value");W=!0}typeof L.get(Q4e)>"u"&&(F=0)}if(typeof c=="function"?R=c(t,R):R instanceof Date?R=h(R):n==="comma"&&Y0(R)&&(R=Xme.maybeMap(R,function(O){return O instanceof Date?h(O):O})),R===null){if(i)return o&&!y?o(t,Eu.encoder,I,"key",f):t;R=""}if(aHr(R)||Xme.isBuffer(R)){if(o){var K=y?t:o(t,Eu.encoder,I,"key",f);return[m(K)+"="+m(o(R,Eu.encoder,I,"value",f))]}return[m(t)+"="+m(String(R))]}var H=[];if(typeof R>"u")return H;var G;if(n==="comma"&&Y0(R))y&&o&&(R=Xme.maybeMap(R,o)),G=[{value:R.length>0?R.join(",")||null:void 0}];else if(Y0(c))G=c;else{var Q=Object.keys(R);G=u?Q.sort(u):Q}for(var q=a&&Y0(R)&&R.length===1?t+"[]":t,T=0;T"u"?Eu.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Eu.charsetSentinel,delimiter:typeof e.delimiter>"u"?Eu.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Eu.encode,encoder:typeof e.encoder=="function"?e.encoder:Eu.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Eu.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Eu.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Eu.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Eu.strictNullHandling}};I0t.exports=function(r,e){var t=r,n=sHr(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):Y0(n.filter)&&(i=n.filter,a=i);var s=[];if(typeof t!="object"||t===null)return"";var o;e&&e.arrayFormat in w0t?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var c=w0t[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var l=_0t(),h=0;h0?y+m:""}});var A0t=_((hZn,k0t)=>{"use strict";d();p();var PY=$4e(),J4e=Object.prototype.hasOwnProperty,oHr=Array.isArray,tc={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:PY.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},cHr=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},C0t=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},uHr="utf8=%26%2310003%3B",lHr="utf8=%E2%9C%93",dHr=function(e,t){var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,i),o=-1,c,u=t.charset;if(t.charsetSentinel)for(c=0;c-1&&(y=oHr(y)?[y]:y),J4e.call(n,m)?n[m]=PY.combine(n[m],y):n[m]=y}return n},pHr=function(r,e,t,n){for(var a=n?e:C0t(e,t),i=r.length-1;i>=0;--i){var s,o=r[i];if(o==="[]"&&t.parseArrays)s=[].concat(a);else{s=t.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(c,10);!t.parseArrays&&c===""?s={0:a}:!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(s=[],s[u]=a):c!=="__proto__"&&(s[c]=a)}a=s}return a},hHr=function(e,t,n,a){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&J4e.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var h=0;n.depth>0&&(c=o.exec(i))!==null&&h"u"?tc.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?tc.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:tc.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:tc.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:tc.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:tc.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:tc.comma,decoder:typeof e.decoder=="function"?e.decoder:tc.decoder,delimiter:typeof e.delimiter=="string"||PY.isRegExp(e.delimiter)?e.delimiter:tc.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:tc.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:tc.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:tc.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:tc.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:tc.strictNullHandling}};k0t.exports=function(r,e){var t=fHr(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?dHr(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s{"use strict";d();p();var mHr=E0t(),yHr=A0t(),gHr=Zme();P0t.exports={formats:gHr,parse:yHr,stringify:mHr}});var yte=_(Ac=>{"use strict";d();p();Object.defineProperty(Ac,"__esModule",{value:!0});Ac.ProviderType=Ac.RegExpString=Ac.IntNumber=Ac.BigIntString=Ac.AddressString=Ac.HexString=Ac.OpaqueType=void 0;function mte(){return r=>r}Ac.OpaqueType=mte;Ac.HexString=mte();Ac.AddressString=mte();Ac.BigIntString=mte();function bHr(r){return Math.floor(r)}Ac.IntNumber=bHr;Ac.RegExpString=mte();var vHr;(function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""})(vHr=Ac.ProviderType||(Ac.ProviderType={}))});var $0=_(Ht=>{"use strict";d();p();var wHr=Ht&&Ht.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.isInIFrame=Ht.createQrUrl=Ht.getFavicon=Ht.range=Ht.isBigNumber=Ht.ensureParsedJSONObject=Ht.ensureBN=Ht.ensureRegExpString=Ht.ensureIntNumber=Ht.ensureBuffer=Ht.ensureAddressString=Ht.ensureEvenLengthHexString=Ht.ensureHexString=Ht.isHexString=Ht.prepend0x=Ht.strip0x=Ht.has0xPrefix=Ht.hexStringFromIntNumber=Ht.intNumberFromHexString=Ht.bigIntStringFromBN=Ht.hexStringFromBuffer=Ht.hexStringToUint8Array=Ht.uint8ArrayToHex=Ht.randomBytesHex=void 0;var Zg=wHr(Cr()),xHr=S0t(),Pp=yte(),R0t=/^[0-9]*$/,M0t=/^[a-f0-9]*$/;function _Hr(r){return N0t(crypto.getRandomValues(new Uint8Array(r)))}Ht.randomBytesHex=_Hr;function N0t(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")}Ht.uint8ArrayToHex=N0t;function THr(r){return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}Ht.hexStringToUint8Array=THr;function IHr(r,e=!1){let t=r.toString("hex");return(0,Pp.HexString)(e?"0x"+t:t)}Ht.hexStringFromBuffer=IHr;function EHr(r){return(0,Pp.BigIntString)(r.toString(10))}Ht.bigIntStringFromBN=EHr;function CHr(r){return(0,Pp.IntNumber)(new Zg.default(bte(r,!1),16).toNumber())}Ht.intNumberFromHexString=CHr;function kHr(r){return(0,Pp.HexString)("0x"+new Zg.default(r).toString(16))}Ht.hexStringFromIntNumber=kHr;function Z4e(r){return r.startsWith("0x")||r.startsWith("0X")}Ht.has0xPrefix=Z4e;function e0e(r){return Z4e(r)?r.slice(2):r}Ht.strip0x=e0e;function B0t(r){return Z4e(r)?"0x"+r.slice(2):"0x"+r}Ht.prepend0x=B0t;function gte(r){if(typeof r!="string")return!1;let e=e0e(r).toLowerCase();return M0t.test(e)}Ht.isHexString=gte;function D0t(r,e=!1){if(typeof r=="string"){let t=e0e(r).toLowerCase();if(M0t.test(t))return(0,Pp.HexString)(e?"0x"+t:t)}throw new Error(`"${String(r)}" is not a hexadecimal string`)}Ht.ensureHexString=D0t;function bte(r,e=!1){let t=D0t(r,!1);return t.length%2===1&&(t=(0,Pp.HexString)("0"+t)),e?(0,Pp.HexString)("0x"+t):t}Ht.ensureEvenLengthHexString=bte;function AHr(r){if(typeof r=="string"){let e=e0e(r).toLowerCase();if(gte(e)&&e.length===40)return(0,Pp.AddressString)(B0t(e))}throw new Error(`Invalid Ethereum address: ${String(r)}`)}Ht.ensureAddressString=AHr;function PHr(r){if(b.Buffer.isBuffer(r))return r;if(typeof r=="string")if(gte(r)){let e=bte(r,!1);return b.Buffer.from(e,"hex")}else return b.Buffer.from(r,"utf8");throw new Error(`Not binary data: ${String(r)}`)}Ht.ensureBuffer=PHr;function L0t(r){if(typeof r=="number"&&Number.isInteger(r))return(0,Pp.IntNumber)(r);if(typeof r=="string"){if(R0t.test(r))return(0,Pp.IntNumber)(Number(r));if(gte(r))return(0,Pp.IntNumber)(new Zg.default(bte(r,!1),16).toNumber())}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureIntNumber=L0t;function SHr(r){if(r instanceof RegExp)return(0,Pp.RegExpString)(r.toString());throw new Error(`Not a RegExp: ${String(r)}`)}Ht.ensureRegExpString=SHr;function RHr(r){if(r!==null&&(Zg.default.isBN(r)||O0t(r)))return new Zg.default(r.toString(10),10);if(typeof r=="number")return new Zg.default(L0t(r));if(typeof r=="string"){if(R0t.test(r))return new Zg.default(r,10);if(gte(r))return new Zg.default(bte(r,!1),16)}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureBN=RHr;function MHr(r){if(typeof r=="string")return JSON.parse(r);if(typeof r=="object")return r;throw new Error(`Not a JSON string or an object: ${String(r)}`)}Ht.ensureParsedJSONObject=MHr;function O0t(r){if(r==null||typeof r.constructor!="function")return!1;let{constructor:e}=r;return typeof e.config=="function"&&typeof e.EUCLID=="number"}Ht.isBigNumber=O0t;function NHr(r,e){return Array.from({length:e-r},(t,n)=>r+n)}Ht.range=NHr;function BHr(){let r=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:t}=document.location,n=r?r.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${t}${n}`}Ht.getFavicon=BHr;function DHr(r,e,t,n,a,i){let s=n?"parent-id":"id",o=(0,xHr.stringify)({[s]:r,secret:e,server:t,v:a,chainId:i});return`${t}/#/link?${o}`}Ht.createQrUrl=DHr;function LHr(){try{return window.frameElement!==null}catch{return!1}}Ht.isInIFrame=LHr});var r0e=_(t0e=>{"use strict";d();p();Object.defineProperty(t0e,"__esModule",{value:!0});t0e.Session=void 0;var q0t=DJ(),F0t=$0(),W0t="session:id",U0t="session:secret",H0t="session:linked",vte=class{constructor(e,t,n,a){this._storage=e,this._id=t||(0,F0t.randomBytesHex)(16),this._secret=n||(0,F0t.randomBytesHex)(32),this._key=new q0t.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(W0t),n=e.getItem(H0t),a=e.getItem(U0t);return t&&a?new vte(e,t,a,n==="1"):null}static hash(e){return new q0t.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(W0t,this._id),this._storage.setItem(U0t,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(H0t,this._linked?"1":"0")}};t0e.Session=vte});var eke=_(wm=>{"use strict";d();p();Object.defineProperty(wm,"__esModule",{value:!0});wm.WalletSDKRelayAbstract=wm.APP_VERSION_KEY=wm.LOCAL_STORAGE_ADDRESSES_KEY=wm.WALLET_USER_NAME_KEY=void 0;var j0t=zme();wm.WALLET_USER_NAME_KEY="walletUsername";wm.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";wm.APP_VERSION_KEY="AppVersion";var X4e=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw j0t.ethErrors.rpc.parse({});let a=n,{error:i}=a;if(i)throw(0,j0t.serializeError)(i);return a})}};wm.WalletSDKRelayAbstract=X4e});var G0t=_((RZn,K0t)=>{d();p();var{Transform:OHr}=IJ();K0t.exports=r=>class z0t extends OHr{constructor(t,n,a,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(t){let n=null;try{this.push(this.digest())}catch(a){n=a}t(n)}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new z0t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var $0t=_((BZn,Y0t)=>{d();p();var{Transform:qHr}=IJ();Y0t.exports=r=>class V0t extends qHr{constructor(t,n,a,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(t);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new V0t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var J0t=_((OZn,Q0t)=>{d();p();var FHr=G0t(),WHr=$0t();Q0t.exports=function(r){let e=FHr(r),t=WHr(r);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new t(1344,256,31,a);case"shake256":return new t(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}}});var eyt=_(X0t=>{d();p();var Z0t=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];X0t.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],i=r[3]^r[13]^r[23]^r[33]^r[43],s=r[4]^r[14]^r[24]^r[34]^r[44],o=r[5]^r[15]^r[25]^r[35]^r[45],c=r[6]^r[16]^r[26]^r[36]^r[46],u=r[7]^r[17]^r[27]^r[37]^r[47],l=r[8]^r[18]^r[28]^r[38]^r[48],h=r[9]^r[19]^r[29]^r[39]^r[49],f=l^(a<<1|i>>>31),m=h^(i<<1|a>>>31),y=r[0]^f,I=r[1]^m,C=r[10]^f,R=r[11]^m,L=r[20]^f,F=r[21]^m,W=r[30]^f,V=r[31]^m,K=r[40]^f,H=r[41]^m;f=t^(s<<1|o>>>31),m=n^(o<<1|s>>>31);let G=r[2]^f,Q=r[3]^m,q=r[12]^f,T=r[13]^m,M=r[22]^f,A=r[23]^m,v=r[32]^f,k=r[33]^m,O=r[42]^f,D=r[43]^m;f=a^(c<<1|u>>>31),m=i^(u<<1|c>>>31);let B=r[4]^f,x=r[5]^m,N=r[14]^f,U=r[15]^m,E=r[24]^f,z=r[25]^m,ee=r[34]^f,j=r[35]^m,X=r[44]^f,ie=r[45]^m;f=s^(l<<1|h>>>31),m=o^(h<<1|l>>>31);let ue=r[6]^f,he=r[7]^m,ke=r[16]^f,ge=r[17]^m,me=r[26]^f,Ke=r[27]^m,ve=r[36]^f,Ae=r[37]^m,so=r[46]^f,It=r[47]^m;f=c^(t<<1|n>>>31),m=u^(n<<1|t>>>31);let bt=r[8]^f,ai=r[9]^m,xt=r[18]^f,st=r[19]^m,ii=r[28]^f,Nt=r[29]^m,dt=r[38]^f,oo=r[39]^m,jt=r[48]^f,Bt=r[49]^m,sc=y,ot=I,pt=R<<4|C>>>28,Dc=C<<4|R>>>28,Et=L<<3|F>>>29,Ct=F<<3|L>>>29,Lc=V<<9|W>>>23,Dt=W<<9|V>>>23,kt=K<<18|H>>>14,Oc=H<<18|K>>>14,At=G<<1|Q>>>31,Lt=Q<<1|G>>>31,oc=T<<12|q>>>20,Ot=q<<12|T>>>20,qt=M<<10|A>>>22,qc=A<<10|M>>>22,Pt=k<<13|v>>>19,Ft=v<<13|k>>>19,Fc=O<<2|D>>>30,St=D<<2|O>>>30,Wt=x<<30|B>>>2,cc=B<<30|x>>>2,Qe=N<<6|U>>>26,it=U<<6|N>>>26,uc=z<<11|E>>>21,Ut=E<<11|z>>>21,Kt=ee<<15|j>>>17,il=j<<15|ee>>>17,Gt=ie<<29|X>>>3,Vt=X<<29|ie>>>3,sl=ue<<28|he>>>4,Yt=he<<28|ue>>>4,$t=ge<<23|ke>>>9,Bu=ke<<23|ge>>>9,on=me<<25|Ke>>>7,cn=Ke<<25|me>>>7,Wc=ve<<21|Ae>>>11,Uc=Ae<<21|ve>>>11,Hc=It<<24|so>>>8,jc=so<<24|It>>>8,zc=bt<<27|ai>>>5,zp=ai<<27|bt>>>5,Kp=xt<<20|st>>>12,Gp=st<<20|xt>>>12,Vp=Nt<<7|ii>>>25,Yp=ii<<7|Nt>>>25,$p=dt<<8|oo>>>24,Qp=oo<<8|dt>>>24,Jp=jt<<14|Bt>>>18,Zp=Bt<<14|jt>>>18;r[0]=sc^~oc&uc,r[1]=ot^~Ot&Ut,r[10]=sl^~Kp&Et,r[11]=Yt^~Gp&Ct,r[20]=At^~Qe&on,r[21]=Lt^~it&cn,r[30]=zc^~pt&qt,r[31]=zp^~Dc&qc,r[40]=Wt^~$t&Vp,r[41]=cc^~Bu&Yp,r[2]=oc^~uc&Wc,r[3]=Ot^~Ut&Uc,r[12]=Kp^~Et&Pt,r[13]=Gp^~Ct&Ft,r[22]=Qe^~on&$p,r[23]=it^~cn&Qp,r[32]=pt^~qt&Kt,r[33]=Dc^~qc&il,r[42]=$t^~Vp&Lc,r[43]=Bu^~Yp&Dt,r[4]=uc^~Wc&Jp,r[5]=Ut^~Uc&Zp,r[14]=Et^~Pt&Gt,r[15]=Ct^~Ft&Vt,r[24]=on^~$p&kt,r[25]=cn^~Qp&Oc,r[34]=qt^~Kt&Hc,r[35]=qc^~il&jc,r[44]=Vp^~Lc&Fc,r[45]=Yp^~Dt&St,r[6]=Wc^~Jp&sc,r[7]=Uc^~Zp&ot,r[16]=Pt^~Gt&sl,r[17]=Ft^~Vt&Yt,r[26]=$p^~kt&At,r[27]=Qp^~Oc&Lt,r[36]=Kt^~Hc&zc,r[37]=il^~jc&zp,r[46]=Lc^~Fc&Wt,r[47]=Dt^~St&cc,r[8]=Jp^~sc&oc,r[9]=Zp^~ot&Ot,r[18]=Gt^~sl&Kp,r[19]=Vt^~Yt&Gp,r[28]=kt^~At&Qe,r[29]=Oc^~Lt&it,r[38]=Hc^~zc&pt,r[39]=jc^~zp&Dc,r[48]=Fc^~Wt&$t,r[49]=St^~cc&Bu,r[0]^=Z0t[e*2],r[1]^=Z0t[e*2+1]}}});var ryt=_((jZn,tyt)=>{d();p();var n0e=eyt();function SY(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}SY.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};SY.prototype.absorb=function(r){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(n0e.p1600(this.state),this.count=0);return e};SY.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};tyt.exports=SY});var ayt=_((GZn,nyt)=>{d();p();nyt.exports=J0t()(ryt())});var tke=_(($Zn,uyt)=>{d();p();var UHr=ayt(),HHr=Cr();function iyt(r){return b.Buffer.allocUnsafe(r).fill(0)}function syt(r,e,t){let n=iyt(e);return r=a0e(r),t?r.length{d();p();var tw=tke(),ew=Cr();function dyt(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r}function RY(r){return parseInt(/^\D+(\d+)$/.exec(r)[1],10)}function lyt(r){var e=/^\D+(\d+)x(\d+)$/.exec(r);return[parseInt(e[1],10),parseInt(e[2],10)]}function pyt(r){var e=r.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function X2(r){var e=typeof r;if(e==="string")return tw.isHexString(r)?new ew(tw.stripHexPrefix(r),16):new ew(r,10);if(e==="number")return new ew(r);if(r.toArray)return r;throw new Error("Argument is not a number")}function xm(r,e){var t,n,a,i;if(r==="address")return xm("uint160",X2(e));if(r==="bool")return xm("uint8",e?1:0);if(r==="string")return xm("bytes",new b.Buffer(e,"utf8"));if(YHr(r)){if(typeof e.length>"u")throw new Error("Not an array?");if(t=pyt(r),t!=="dynamic"&&t!==0&&e.length>t)throw new Error("Elements exceed array size: "+t);a=[],r=r.slice(0,r.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(i in e)a.push(xm(r,e[i]));if(t==="dynamic"){var s=xm("uint256",e.length);a.unshift(s)}return b.Buffer.concat(a)}else{if(r==="bytes")return e=new b.Buffer(e),a=b.Buffer.concat([xm("uint256",e.length),e]),e.length%32!==0&&(a=b.Buffer.concat([a,tw.zeros(32-e.length%32)])),a;if(r.startsWith("bytes")){if(t=RY(r),t<1||t>32)throw new Error("Invalid bytes width: "+t);return tw.setLengthRight(e,32)}else if(r.startsWith("uint")){if(t=RY(r),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=X2(e),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("int")){if(t=RY(r),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=X2(e),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("ufixed")){if(t=lyt(r),n=X2(e),n<0)throw new Error("Supplied ufixed is negative");return xm("uint256",n.mul(new ew(2).pow(new ew(t[1]))))}else if(r.startsWith("fixed"))return t=lyt(r),xm("int256",X2(e).mul(new ew(2).pow(new ew(t[1]))))}throw new Error("Unsupported or invalid type: "+r)}function VHr(r){return r==="string"||r==="bytes"||pyt(r)==="dynamic"}function YHr(r){return r.lastIndexOf("]")===r.length-1}function $Hr(r,e){var t=[],n=[],a=32*r.length;for(var i in r){var s=dyt(r[i]),o=e[i],c=xm(s,o);VHr(s)?(t.push(xm("uint256",a)),n.push(c),a+=c.length):t.push(c)}return b.Buffer.concat(t.concat(n))}function hyt(r,e){if(r.length!==e.length)throw new Error("Number of types are not matching the values");for(var t,n,a=[],i=0;i32)throw new Error("Invalid bytes width: "+t);a.push(tw.setLengthRight(o,t))}else if(s.startsWith("uint")){if(t=RY(s),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=X2(o),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());a.push(n.toArrayLike(b.Buffer,"be",t/8))}else if(s.startsWith("int")){if(t=RY(s),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=X2(o),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());a.push(n.toTwos(t).toArrayLike(b.Buffer,"be",t/8))}else throw new Error("Unsupported or invalid type: "+s)}return b.Buffer.concat(a)}function QHr(r,e){return tw.keccak(hyt(r,e))}fyt.exports={rawEncode:$Hr,solidityPack:hyt,soliditySHA3:QHr}});var byt=_((tXn,gyt)=>{d();p();var Kh=tke(),wte=myt(),yyt={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},rke={encodeData(r,e,t,n=!0){let a=["bytes32"],i=[this.hashType(r,t)];if(n){let s=(o,c,u)=>{if(t[c]!==void 0)return["bytes32",u==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Kh.keccak(this.encodeData(c,u,t,n))];if(u===void 0)throw new Error(`missing value for field ${o} of type ${c}`);if(c==="bytes")return["bytes32",Kh.keccak(u)];if(c==="string")return typeof u=="string"&&(u=b.Buffer.from(u,"utf8")),["bytes32",Kh.keccak(u)];if(c.lastIndexOf("]")===c.length-1){let l=c.slice(0,c.lastIndexOf("[")),h=u.map(f=>s(o,l,f));return["bytes32",Kh.keccak(wte.rawEncode(h.map(([f])=>f),h.map(([,f])=>f)))]}return[c,u]};for(let o of t[r]){let[c,u]=s(o.name,o.type,e[o.name]);a.push(c),i.push(u)}}else for(let s of t[r]){let o=e[s.name];if(o!==void 0)if(s.type==="bytes")a.push("bytes32"),o=Kh.keccak(o),i.push(o);else if(s.type==="string")a.push("bytes32"),typeof o=="string"&&(o=b.Buffer.from(o,"utf8")),o=Kh.keccak(o),i.push(o);else if(t[s.type]!==void 0)a.push("bytes32"),o=Kh.keccak(this.encodeData(s.type,o,t,n)),i.push(o);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),i.push(o)}}return wte.rawEncode(a,i)},encodeType(r,e){let t="",n=this.findTypeDependencies(r,e).filter(a=>a!==r);n=[r].concat(n.sort());for(let a of n){if(!e[a])throw new Error("No type definition specified: "+a);t+=a+"("+e[a].map(({name:s,type:o})=>o+" "+s).join(",")+")"}return t},findTypeDependencies(r,e,t=[]){if(r=r.match(/^\w*/)[0],t.includes(r)||e[r]===void 0)return t;t.push(r);for(let n of e[r])for(let a of this.findTypeDependencies(n.type,e,t))!t.includes(a)&&t.push(a);return t},hashStruct(r,e,t,n=!0){return Kh.keccak(this.encodeData(r,e,t,n))},hashType(r,e){return Kh.keccak(this.encodeType(r,e))},sanitizeData(r){let e={};for(let t in yyt.properties)r[t]&&(e[t]=r[t]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(r,e=!0){let t=this.sanitizeData(r),n=[b.Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",t.domain,t.types,e)),t.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(t.primaryType,t.message,t.types,e)),Kh.keccak(b.Buffer.concat(n))}};gyt.exports={TYPED_MESSAGE_SCHEMA:yyt,TypedDataUtils:rke,hashForSignTypedDataLegacy:function(r){return JHr(r.data)},hashForSignTypedData_v3:function(r){return rke.hash(r.data,!1)},hashForSignTypedData_v4:function(r){return rke.hash(r.data)}};function JHr(r){let e=new Error("Expect argument to be non-empty array");if(typeof r!="object"||!r.length)throw e;let t=r.map(function(i){return i.type==="bytes"?Kh.toBuffer(i.value):i.value}),n=r.map(function(i){return i.type}),a=r.map(function(i){if(!i.name)throw e;return i.type+" "+i.name});return wte.soliditySHA3(["bytes32","bytes32"],[wte.soliditySHA3(new Array(r.length).fill("string"),a),wte.soliditySHA3(n,t)])}});var Tyt=_(NY=>{"use strict";d();p();Object.defineProperty(NY,"__esModule",{value:!0});NY.filterFromParam=NY.FilterPolyfill=void 0;var MY=yte(),Yu=$0(),ZHr=5*60*1e3,rw={jsonrpc:"2.0",id:0},nke=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,MY.IntNumber)(1),this.provider=e}async newFilter(e){let t=_yt(e),n=this.makeFilterId(),a=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",a),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,Yu.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,Yu.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,Yu.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,Yu.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,Yu.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(i0e())}async getFilterLogs(e){let t=(0,Yu.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_getLogs",params:[vyt(n)]})):i0e()}makeFilterId(){return(0,MY.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(a,i)=>{if(a)return n(a);if(Array.isArray(i)||i==null)return n(new Error(`unexpected response received: ${JSON.stringify(i)}`));t(i)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return i0e();let a=await this.getCurrentBlockHeight(),i=t.toBlock==="latest"?a:t.toBlock;if(n>a||n>t.toBlock)return s0e();console.log(`Fetching logs from ${n} to ${i} for filter ${e}`);let s=await this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_getLogs",params:[vyt(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:i}))]}));if(Array.isArray(s.result)){let o=s.result.map(u=>(0,Yu.intNumberFromHexString)(u.blockNumber||"0x0")),c=Math.max(...o);if(c&&c>n){let u=(0,MY.IntNumber)(c+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${u}`),this.cursors.set(e,u)}}return s}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return i0e();let n=await this.getCurrentBlockHeight();if(t>n)return s0e();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,Yu.range)(t,n+1).map(s=>this.getBlockHashByNumber((0,MY.IntNumber)(s))))).filter(s=>!!s),i=(0,MY.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${i}`),this.cursors.set(e,i),Object.assign(Object.assign({},rw),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(s0e())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),a=typeof t=="number"&&t>n?t:n;return this.cursors.set(e,a),a}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},ZHr);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_blockNumber",params:[]}));return(0,Yu.intNumberFromHexString)((0,Yu.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},rw),{method:"eth_getBlockByNumber",params:[(0,Yu.hexStringFromIntNumber)(e),!1]}));return t.result&&typeof t.result.hash=="string"?(0,Yu.ensureHexString)(t.result.hash):null}};NY.FilterPolyfill=nke;function _yt(r){return{fromBlock:wyt(r.fromBlock),toBlock:wyt(r.toBlock),addresses:r.address===void 0?null:Array.isArray(r.address)?r.address:[r.address],topics:r.topics||[]}}NY.filterFromParam=_yt;function vyt(r){let e={fromBlock:xyt(r.fromBlock),toBlock:xyt(r.toBlock),topics:r.topics};return r.addresses!==null&&(e.address=r.addresses),e}function wyt(r){if(r===void 0||r==="latest"||r==="pending")return"latest";if(r==="earliest")return(0,MY.IntNumber)(0);if((0,Yu.isHexString)(r))return(0,Yu.intNumberFromHexString)(r);throw new Error(`Invalid block option: ${String(r)}`)}function xyt(r){return r==="latest"?r:(0,Yu.hexStringFromIntNumber)(r)}function i0e(){return Object.assign(Object.assign({},rw),{error:{code:-32e3,message:"filter not found"}})}function s0e(){return Object.assign(Object.assign({},rw),{result:[]})}});var Iyt=_(xte=>{"use strict";d();p();Object.defineProperty(xte,"__esModule",{value:!0});xte.JSONRPCMethod=void 0;var XHr;(function(r){r.eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"})(XHr=xte.JSONRPCMethod||(xte.JSONRPCMethod={}))});var ake=_((lXn,Cyt)=>{"use strict";d();p();var Eyt=(r,e)=>function(){let t=e.promiseModule,n=new Array(arguments.length);for(let a=0;a{e.errorFirst?n.push(function(s,o){if(e.multiArgs){let c=new Array(arguments.length-1);for(let u=1;u{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let t=a=>{let i=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(i):!e.exclude.some(i)},n;typeof r=="function"?n=function(){return e.excludeMain?r.apply(this,arguments):Eyt(r,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(r));for(let a in r){let i=r[a];n[a]=typeof i=="function"&&t(a)?Eyt(i,e):i}return n}});var Ayt=_((hXn,kyt)=>{d();p();kyt.exports=tjr;var ejr=Object.prototype.hasOwnProperty;function tjr(){for(var r={},e=0;e{d();p();Pyt.exports=rjr;function rjr(r){r=r||{};var e=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*e);return function(){return t=t%e,t++}}});var ike=_((vXn,Ryt)=>{d();p();var njr=Ayt(),ajr=Syt()();Ryt.exports=dr;function dr(r){let e=this;e.currentProvider=r}dr.prototype.getBalance=_te(2,"eth_getBalance");dr.prototype.getCode=_te(2,"eth_getCode");dr.prototype.getTransactionCount=_te(2,"eth_getTransactionCount");dr.prototype.getStorageAt=_te(3,"eth_getStorageAt");dr.prototype.call=_te(2,"eth_call");dr.prototype.protocolVersion=Mr("eth_protocolVersion");dr.prototype.syncing=Mr("eth_syncing");dr.prototype.coinbase=Mr("eth_coinbase");dr.prototype.mining=Mr("eth_mining");dr.prototype.hashrate=Mr("eth_hashrate");dr.prototype.gasPrice=Mr("eth_gasPrice");dr.prototype.accounts=Mr("eth_accounts");dr.prototype.blockNumber=Mr("eth_blockNumber");dr.prototype.getBlockTransactionCountByHash=Mr("eth_getBlockTransactionCountByHash");dr.prototype.getBlockTransactionCountByNumber=Mr("eth_getBlockTransactionCountByNumber");dr.prototype.getUncleCountByBlockHash=Mr("eth_getUncleCountByBlockHash");dr.prototype.getUncleCountByBlockNumber=Mr("eth_getUncleCountByBlockNumber");dr.prototype.sign=Mr("eth_sign");dr.prototype.sendTransaction=Mr("eth_sendTransaction");dr.prototype.sendRawTransaction=Mr("eth_sendRawTransaction");dr.prototype.estimateGas=Mr("eth_estimateGas");dr.prototype.getBlockByHash=Mr("eth_getBlockByHash");dr.prototype.getBlockByNumber=Mr("eth_getBlockByNumber");dr.prototype.getTransactionByHash=Mr("eth_getTransactionByHash");dr.prototype.getTransactionByBlockHashAndIndex=Mr("eth_getTransactionByBlockHashAndIndex");dr.prototype.getTransactionByBlockNumberAndIndex=Mr("eth_getTransactionByBlockNumberAndIndex");dr.prototype.getTransactionReceipt=Mr("eth_getTransactionReceipt");dr.prototype.getUncleByBlockHashAndIndex=Mr("eth_getUncleByBlockHashAndIndex");dr.prototype.getUncleByBlockNumberAndIndex=Mr("eth_getUncleByBlockNumberAndIndex");dr.prototype.getCompilers=Mr("eth_getCompilers");dr.prototype.compileLLL=Mr("eth_compileLLL");dr.prototype.compileSolidity=Mr("eth_compileSolidity");dr.prototype.compileSerpent=Mr("eth_compileSerpent");dr.prototype.newFilter=Mr("eth_newFilter");dr.prototype.newBlockFilter=Mr("eth_newBlockFilter");dr.prototype.newPendingTransactionFilter=Mr("eth_newPendingTransactionFilter");dr.prototype.uninstallFilter=Mr("eth_uninstallFilter");dr.prototype.getFilterChanges=Mr("eth_getFilterChanges");dr.prototype.getFilterLogs=Mr("eth_getFilterLogs");dr.prototype.getLogs=Mr("eth_getLogs");dr.prototype.getWork=Mr("eth_getWork");dr.prototype.submitWork=Mr("eth_submitWork");dr.prototype.submitHashrate=Mr("eth_submitHashrate");dr.prototype.sendAsync=function(r,e){this.currentProvider.sendAsync(ijr(r),function(n,a){if(!n&&a.error&&(n=new Error("EthQuery - RPC Error - "+a.error.message)),n)return e(n);e(null,a.result)})};function Mr(r){return function(){let e=this;var t=[].slice.call(arguments),n=t.pop();e.sendAsync({method:r,params:t},n)}}function _te(r,e){return function(){let t=this;var n=[].slice.call(arguments),a=n.pop();n.length{d();p();var sjr=noe(),Nyt=Lu(),ske=typeof Reflect=="object"?Reflect:null,ojr=ske&&typeof ske.apply=="function"?ske.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};Byt.exports=oke;function oke(){Nyt.call(this)}sjr.inherits(oke,Nyt);oke.prototype.emit=function(r){for(var e=[],t=1;t0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var o=a[r];if(o===void 0)return!1;if(typeof o=="function")Myt(o,this,e);else for(var c=o.length,u=cjr(o,c),t=0;t{throw n})}}function cjr(r,e){for(var t=new Array(e),n=0;n{d();p();var EXn=ike(),CXn=ake(),ujr=Dyt(),ljr=1e3,djr=(r,e)=>r+e,Lyt=["sync","latest"],cke=class extends ujr{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||20*ljr,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){!Lyt.includes(e)||this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){!this._isRunning||(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return Lyt.map(e=>this.listenerCount(e)).reduce(djr)}_newPotentialLatest(e){let t=this._currentBlock;t&&Oyt(e)<=Oyt(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};qyt.exports=cke;function Oyt(r){return Number.parseInt(r,16)}});var Hyt=_((SXn,Uyt)=>{d();p();var pjr=ake(),hjr=Fyt(),fjr=1e3,uke=class extends hjr{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");let t=e.pollingInterval||20*fjr,n=e.retryTimeout||t/10,a=e.keepEventLoopActive!==void 0?e.keepEventLoopActive:!0,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=a,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await Wyt(this._pollingInterval,!this._keepEventLoopActive)}catch(e){let t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: -${e.stack}`);try{this.emit("error",t)}catch{console.error(t)}await Wyt(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let t=await pjr(n=>this._provider.sendAsync(e,n))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block: -${t.error}`);return t.result}};Uyt.exports=uke;function Wyt(r,e){return new Promise(t=>{let n=setTimeout(t,r);n.unref&&e&&n.unref()})}});var dke=_(o0e=>{"use strict";d();p();Object.defineProperty(o0e,"__esModule",{value:!0});o0e.getUniqueId=void 0;var jyt=4294967295,lke=Math.floor(Math.random()*jyt);function mjr(){return lke=(lke+1)%jyt,lke}o0e.getUniqueId=mjr});var zyt=_(c0e=>{"use strict";d();p();Object.defineProperty(c0e,"__esModule",{value:!0});c0e.createIdRemapMiddleware=void 0;var yjr=dke();function gjr(){return(r,e,t,n)=>{let a=r.id,i=yjr.getUniqueId();r.id=i,e.id=i,t(s=>{r.id=a,e.id=a,s()})}}c0e.createIdRemapMiddleware=gjr});var Kyt=_(u0e=>{"use strict";d();p();Object.defineProperty(u0e,"__esModule",{value:!0});u0e.createAsyncMiddleware=void 0;function bjr(r){return async(e,t,n,a)=>{let i,s=new Promise(l=>{i=l}),o=null,c=!1,u=async()=>{c=!0,n(l=>{o=l,i()}),await s};try{await r(e,t,u),c?(await s,o(null)):a(null)}catch(l){o?o(l):a(l)}}}u0e.createAsyncMiddleware=bjr});var Gyt=_(l0e=>{"use strict";d();p();Object.defineProperty(l0e,"__esModule",{value:!0});l0e.createScaffoldMiddleware=void 0;function vjr(r){return(e,t,n,a)=>{let i=r[e.method];return i===void 0?n():typeof i=="function"?i(e,t,n,a):(t.result=i,a())}}l0e.createScaffoldMiddleware=vjr});var p0e=_(BY=>{"use strict";d();p();Object.defineProperty(BY,"__esModule",{value:!0});BY.EthereumProviderError=BY.EthereumRpcError=void 0;var wjr=k4e(),d0e=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return wjr.default(this.serialize(),_jr,2)}};BY.EthereumRpcError=d0e;var pke=class extends d0e{constructor(e,t,n){if(!xjr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};BY.EthereumProviderError=pke;function xjr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function _jr(r,e){if(e!=="[Circular]")return e}});var h0e=_(DY=>{"use strict";d();p();Object.defineProperty(DY,"__esModule",{value:!0});DY.errorValues=DY.errorCodes=void 0;DY.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};DY.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var mke=_(Gh=>{"use strict";d();p();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.serializeError=Gh.isValidCode=Gh.getMessageFromCode=Gh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var f0e=h0e(),Tjr=p0e(),Vyt=f0e.errorCodes.rpc.internal,Ijr="Unspecified error message. This is a bug, please report it.",Ejr={code:Vyt,message:fke(Vyt)};Gh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function fke(r,e=Ijr){if(Number.isInteger(r)){let t=r.toString();if(hke(f0e.errorValues,t))return f0e.errorValues[t].message;if(Qyt(r))return Gh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Gh.getMessageFromCode=fke;function $yt(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(f0e.errorValues[e]||Qyt(r))}Gh.isValidCode=$yt;function Cjr(r,{fallbackError:e=Ejr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof Tjr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&hke(r,"code")&&$yt(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,hke(o,"data")&&(i.data=o.data)):(i.message=fke(i.code),i.data={originalError:Yyt(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:Yyt(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}Gh.serializeError=Cjr;function Qyt(r){return r>=-32099&&r<=-32e3}function Yyt(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function hke(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var Xyt=_(m0e=>{"use strict";d();p();Object.defineProperty(m0e,"__esModule",{value:!0});m0e.ethErrors=void 0;var yke=p0e(),Jyt=mke(),Cu=h0e();m0e.ethErrors={rpc:{parse:r=>Sp(Cu.errorCodes.rpc.parse,r),invalidRequest:r=>Sp(Cu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Sp(Cu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Sp(Cu.errorCodes.rpc.methodNotFound,r),internal:r=>Sp(Cu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Sp(e,r)},invalidInput:r=>Sp(Cu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Sp(Cu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Sp(Cu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Sp(Cu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Sp(Cu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Sp(Cu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>Tte(Cu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>Tte(Cu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>Tte(Cu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>Tte(Cu.errorCodes.provider.disconnected,r),chainDisconnected:r=>Tte(Cu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new yke.EthereumProviderError(e,t,n)}}};function Sp(r,e){let[t,n]=Zyt(e);return new yke.EthereumRpcError(r,t||Jyt.getMessageFromCode(r),n)}function Tte(r,e){let[t,n]=Zyt(e);return new yke.EthereumProviderError(r,t||Jyt.getMessageFromCode(r),n)}function Zyt(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var rgt=_(Nl=>{"use strict";d();p();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.getMessageFromCode=Nl.serializeError=Nl.EthereumProviderError=Nl.EthereumRpcError=Nl.ethErrors=Nl.errorCodes=void 0;var egt=p0e();Object.defineProperty(Nl,"EthereumRpcError",{enumerable:!0,get:function(){return egt.EthereumRpcError}});Object.defineProperty(Nl,"EthereumProviderError",{enumerable:!0,get:function(){return egt.EthereumProviderError}});var tgt=mke();Object.defineProperty(Nl,"serializeError",{enumerable:!0,get:function(){return tgt.serializeError}});Object.defineProperty(Nl,"getMessageFromCode",{enumerable:!0,get:function(){return tgt.getMessageFromCode}});var kjr=Xyt();Object.defineProperty(Nl,"ethErrors",{enumerable:!0,get:function(){return kjr.ethErrors}});var Ajr=h0e();Object.defineProperty(Nl,"errorCodes",{enumerable:!0,get:function(){return Ajr.errorCodes}})});var bke=_(LY=>{"use strict";d();p();var Pjr=LY&&LY.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(LY,"__esModule",{value:!0});LY.JsonRpcEngine=void 0;var Sjr=Pjr(cte()),Rp=rgt(),Vh=class extends Sjr.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&typeof t!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,a)=>{try{let[i,s,o]=await Vh._runAllMiddleware(e,t,this._middleware);return s?(await Vh._runReturnHandlers(o),a(i)):n(async c=>{try{await Vh._runReturnHandlers(o)}catch(u){return c(u)}return c()})}catch(i){return a(i)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(n,a)=>{t(a)})})}async _handle(e,t){if(!e||Array.isArray(e)||typeof e!="object"){let s=new Rp.EthereumRpcError(Rp.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){let s=new Rp.EthereumRpcError(Rp.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(s,{id:e.id,jsonrpc:"2.0",error:s})}let n=Object.assign({},e),a={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,a)}catch(s){i=s}return i&&(delete a.result,a.error||(a.error=Rp.serializeError(i))),t(i,a)}async _processRequest(e,t){let[n,a,i]=await Vh._runAllMiddleware(e,t,this._middleware);if(Vh._checkForCompletion(e,t,a),await Vh._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let a=[],i=null,s=!1;for(let o of n)if([i,s]=await Vh._runMiddleware(e,t,o,a),s)break;return[i,s,a.reverse()]}static _runMiddleware(e,t,n,a){return new Promise(i=>{let s=c=>{let u=c||t.error;u&&(t.error=Rp.serializeError(u)),i([u,!0])},o=c=>{t.error?s(t.error):(c&&(typeof c!="function"&&s(new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof c}" for request: -${gke(e)}`,{request:e})),a.push(c)),i([null,!1]))};try{n(e,t,o,s)}catch(c){s(c)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((n,a)=>{t(i=>i?a(i):n())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: -${gke(e)}`,{request:e});if(!n)throw new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: -${gke(e)}`,{request:e})}};LY.JsonRpcEngine=Vh;function gke(r){return JSON.stringify(r,null,2)}});var ngt=_(y0e=>{"use strict";d();p();Object.defineProperty(y0e,"__esModule",{value:!0});y0e.mergeMiddleware=void 0;var Rjr=bke();function Mjr(r){let e=new Rjr.JsonRpcEngine;return r.forEach(t=>e.push(t)),e.asMiddleware()}y0e.mergeMiddleware=Mjr});var vke=_(Mp=>{"use strict";d();p();var Njr=Mp&&Mp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),OY=Mp&&Mp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Njr(e,r,t)};Object.defineProperty(Mp,"__esModule",{value:!0});OY(zyt(),Mp);OY(Kyt(),Mp);OY(Gyt(),Mp);OY(dke(),Mp);OY(bke(),Mp);OY(ngt(),Mp)});var w0e=_((mea,v0e)=>{d();p();var agt,igt,sgt,ogt,cgt,ugt,lgt,dgt,pgt,hgt,fgt,mgt,ygt,g0e,wke,ggt,bgt,vgt,qY,wgt,xgt,_gt,Tgt,Igt,Egt,Cgt,kgt,Agt,b0e;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof v0e=="object"&&typeof v0e.exports=="object"?r(t(e,t(v0e.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])};agt=function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)},igt=Object.assign||function(n){for(var a,i=1,s=arguments.length;i=0;l--)(u=n[l])&&(c=(o<3?u(c):o>3?u(a,i,c):u(a,i))||c);return o>3&&c&&Object.defineProperty(a,i,c),c},cgt=function(n,a){return function(i,s){a(i,s,n)}},ugt=function(n,a,i,s,o,c){function u(W){if(W!==void 0&&typeof W!="function")throw new TypeError("Function expected");return W}for(var l=s.kind,h=l==="getter"?"get":l==="setter"?"set":"value",f=!a&&n?s.static?n:n.prototype:null,m=a||(f?Object.getOwnPropertyDescriptor(f,s.name):{}),y,I=!1,C=i.length-1;C>=0;C--){var R={};for(var L in s)R[L]=L==="access"?{}:s[L];for(var L in s.access)R.access[L]=s.access[L];R.addInitializer=function(W){if(I)throw new TypeError("Cannot add initializers after decoration has completed");c.push(u(W||null))};var F=(0,i[C])(l==="accessor"?{get:m.get,set:m.set}:m[h],R);if(l==="accessor"){if(F===void 0)continue;if(F===null||typeof F!="object")throw new TypeError("Object expected");(y=u(F.get))&&(m.get=y),(y=u(F.set))&&(m.set=y),(y=u(F.init))&&o.push(y)}else(y=u(F))&&(l==="field"?o.push(y):m[h]=y)}f&&Object.defineProperty(f,s.name,m),I=!0},lgt=function(n,a,i){for(var s=arguments.length>2,o=0;o0&&c[c.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},wke=function(n,a){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),o,c=[],u;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(l){u={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},ggt=function(){for(var n=[],a=0;a1||l(I,C)})})}function l(I,C){try{h(s[I](C))}catch(R){y(c[0][3],R)}}function h(I){I.value instanceof qY?Promise.resolve(I.value.v).then(f,m):y(c[0][2],I)}function f(I){l("next",I)}function m(I){l("throw",I)}function y(I,C){I(C),c.shift(),c.length&&l(c[0][0],c[0][1])}},xgt=function(n){var a,i;return a={},s("next"),s("throw",function(o){throw o}),s("return"),a[Symbol.iterator]=function(){return this},a;function s(o,c){a[o]=n[o]?function(u){return(i=!i)?{value:qY(n[o](u)),done:!1}:c?c(u):u}:c}},_gt=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],i;return a?a.call(n):(n=typeof g0e=="function"?g0e(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(c){i[c]=n[c]&&function(u){return new Promise(function(l,h){u=n[c](u),o(l,h,u.done,u.value)})}}function o(c,u,l,h){Promise.resolve(h).then(function(f){c({value:f,done:l})},u)}},Tgt=function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n};var t=Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a};Igt=function(n){if(n&&n.__esModule)return n;var a={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&b0e(a,n,i);return t(a,n),a},Egt=function(n){return n&&n.__esModule?n:{default:n}},Cgt=function(n,a,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?n!==a||!s:!a.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:a.get(n)},kgt=function(n,a,i,s,o){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?n!==a||!o:!a.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?o.call(n,i):o?o.value=i:a.set(n,i),i},Agt=function(n,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?a===n:n.has(a)},r("__extends",agt),r("__assign",igt),r("__rest",sgt),r("__decorate",ogt),r("__param",cgt),r("__esDecorate",ugt),r("__runInitializers",lgt),r("__propKey",dgt),r("__setFunctionName",pgt),r("__metadata",hgt),r("__awaiter",fgt),r("__generator",mgt),r("__exportStar",ygt),r("__createBinding",b0e),r("__values",g0e),r("__read",wke),r("__spread",ggt),r("__spreadArrays",bgt),r("__spreadArray",vgt),r("__await",qY),r("__asyncGenerator",wgt),r("__asyncDelegator",xgt),r("__asyncValues",_gt),r("__makeTemplateObject",Tgt),r("__importStar",Igt),r("__importDefault",Egt),r("__classPrivateFieldGet",Cgt),r("__classPrivateFieldSet",kgt),r("__classPrivateFieldIn",Agt)})});var _ke=_(xke=>{"use strict";d();p();Object.defineProperty(xke,"__esModule",{value:!0});var Pgt=w0e(),Bjr=function(){function r(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return r.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(a){return e._queue.push(a)});return t||this._dispatch(),n},r.prototype.runExclusive=function(e){return Pgt.__awaiter(this,void 0,void 0,function(){var t,n,a;return Pgt.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:t=i.sent(),n=t[0],a=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return a(),[7];case 5:return[2]}})})},r.prototype.isLocked=function(){return this._value<=0},r.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},r.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(!!t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},r}();xke.default=Bjr});var Rgt=_(Tke=>{"use strict";d();p();Object.defineProperty(Tke,"__esModule",{value:!0});var Sgt=w0e(),Djr=_ke(),Ljr=function(){function r(){this._semaphore=new Djr.default(1)}return r.prototype.acquire=function(){return Sgt.__awaiter(this,void 0,void 0,function(){var e,t;return Sgt.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),t=e[1],[2,t]}})})},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();Tke.default=Ljr});var Mgt=_(_0e=>{"use strict";d();p();Object.defineProperty(_0e,"__esModule",{value:!0});_0e.withTimeout=void 0;var x0e=w0e();function Ojr(r,e,t){var n=this;return t===void 0&&(t=new Error("timeout")),{acquire:function(){return new Promise(function(a,i){return x0e.__awaiter(n,void 0,void 0,function(){var s,o,c;return x0e.__generator(this,function(u){switch(u.label){case 0:return s=!1,setTimeout(function(){s=!0,i(t)},e),[4,r.acquire()];case 1:return o=u.sent(),s?(c=Array.isArray(o)?o[1]:o,c()):a(o),[2]}})})})},runExclusive:function(a){return x0e.__awaiter(this,void 0,void 0,function(){var i,s;return x0e.__generator(this,function(o){switch(o.label){case 0:i=function(){},o.label=1;case 1:return o.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=o.sent(),Array.isArray(s)?(i=s[1],[4,a(s[0])]):[3,4];case 3:return[2,o.sent()];case 4:return i=s,[4,a()];case 5:return[2,o.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){r.release()},isLocked:function(){return r.isLocked()}}}_0e.withTimeout=Ojr});var Ngt=_(Xg=>{"use strict";d();p();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.withTimeout=Xg.Semaphore=Xg.Mutex=void 0;var qjr=Rgt();Object.defineProperty(Xg,"Mutex",{enumerable:!0,get:function(){return qjr.default}});var Fjr=_ke();Object.defineProperty(Xg,"Semaphore",{enumerable:!0,get:function(){return Fjr.default}});var Wjr=Mgt();Object.defineProperty(Xg,"withTimeout",{enumerable:!0,get:function(){return Wjr.withTimeout}})});var Ogt=_((Sea,Lgt)=>{"use strict";d();p();var Bgt=(r,e,t,n)=>function(...a){let i=e.promiseModule;return new i((s,o)=>{e.multiArgs?a.push((...u)=>{e.errorFirst?u[0]?o(u):(u.shift(),s(u)):s(u)}):e.errorFirst?a.push((u,l)=>{u?o(u):s(l)}):a.push(s),Reflect.apply(r,this===t?n:this,a)})},Dgt=new WeakMap;Lgt.exports=(r,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let t=typeof r;if(!(r!==null&&(t==="object"||t==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${r===null?"null":t}\``);let n=(s,o)=>{let c=Dgt.get(s);if(c||(c={},Dgt.set(s,c)),o in c)return c[o];let u=y=>typeof y=="string"||typeof o=="symbol"?o===y:y.test(o),l=Reflect.getOwnPropertyDescriptor(s,o),h=l===void 0||l.writable||l.configurable,m=(e.include?e.include.some(u):!e.exclude.some(u))&&h;return c[o]=m,m},a=new WeakMap,i=new Proxy(r,{apply(s,o,c){let u=a.get(s);if(u)return Reflect.apply(u,o,c);let l=e.excludeMain?s:Bgt(s,e,i,s);return a.set(s,l),Reflect.apply(l,o,c)},get(s,o){let c=s[o];if(!n(s,o)||c===Function.prototype[o])return c;let u=a.get(c);if(u)return u;if(typeof c=="function"){let l=Bgt(c,e,i,s);return a.set(c,l),l}return c}});return i}});var T0e=_((Nea,qgt)=>{d();p();var Ujr=cte().default,Ike=class extends Ujr{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(t=>this.emit("update",t))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};qgt.exports=Ike});var Wgt=_((Lea,Fgt)=>{d();p();var Hjr=T0e(),Eke=class extends Hjr{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};Fgt.exports=Eke});var FY=_((Fea,jgt)=>{d();p();jgt.exports={minBlockRef:jjr,maxBlockRef:zjr,sortBlockRefs:Cke,bnToHex:Kjr,blockRefIsNumber:Gjr,hexToInt:I0e,incrementHexInt:Vjr,intToHex:Hgt,unsafeRandomBytes:Yjr};function jjr(...r){return Cke(r)[0]}function zjr(...r){let e=Cke(r);return e[e.length-1]}function Cke(r){return r.sort((e,t)=>e==="latest"||t==="earliest"?1:t==="latest"||e==="earliest"?-1:I0e(e)-I0e(t))}function Kjr(r){return"0x"+r.toString(16)}function Gjr(r){return r&&!["earliest","latest","pending"].includes(r)}function I0e(r){return r==null?r:Number.parseInt(r,16)}function Vjr(r){if(r==null)return r;let e=I0e(r);return Hgt(e+1)}function Hgt(r){if(r==null)return r;let e=r.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function Yjr(r){let e="0x";for(let t=0;t{d();p();var $jr=ike(),Qjr=Ogt(),Jjr=Wgt(),{bnToHex:Hea,hexToInt:E0e,incrementHexInt:Zjr,minBlockRef:Xjr,blockRefIsNumber:ezr}=FY(),kke=class extends Jjr{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new $jr(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),t==="earliest"&&(t="0x0"),this.params.fromBlock=t;let n=Xjr(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(a);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n=t,a;e?a=Zjr(e):a=t;let i=Object.assign({},this.params,{fromBlock:a,toBlock:n}),o=(await this._fetchLogs(i)).filter(c=>this.matchLog(c));this.addResults(o)}async _fetchLogs(e){return await Qjr(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(E0e(this.params.fromBlock)>=E0e(e.blockNumber)||ezr(this.params.toBlock)&&E0e(this.params.toBlock)<=E0e(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();return this.params.address&&t&&!this.params.address.includes(t)?!1:this.params.topics.every((a,i)=>{let s=e.topics[i];if(!s)return!1;s=s.toLowerCase();let o=Array.isArray(a)?a:[a];return o.includes(null)?!0:(o=o.map(l=>l.toLowerCase()),o.includes(s))})}};zgt.exports=kke});var C0e=_((Gea,Vgt)=>{d();p();Vgt.exports=tzr;async function tzr({provider:r,fromBlock:e,toBlock:t}){e||(e=t);let n=Ggt(e),i=Ggt(t)-n+1,s=Array(i).fill().map((c,u)=>n+u).map(rzr);return await Promise.all(s.map(c=>azr(r,"eth_getBlockByNumber",[c,!1])))}function Ggt(r){return r==null?r:Number.parseInt(r,16)}function rzr(r){return r==null?r:"0x"+r.toString(16)}function nzr(r,e){return new Promise((t,n)=>{r.sendAsync(e,(a,i)=>{a?n(a):i.error?n(i.error):i.result?t(i.result):n(new Error("Result was empty"))})})}async function azr(r,e,t){for(let n=0;n<3;n++)try{return await nzr(r,{id:1,jsonrpc:"2.0",method:e,params:t})}catch(a){console.error(`provider.sendAsync failed: ${a.stack||a.message||a}`)}throw new Error(`Block not found for params: ${JSON.stringify(t)}`)}});var $gt=_(($ea,Ygt)=>{d();p();var izr=T0e(),szr=C0e(),{incrementHexInt:ozr}=FY(),Ake=class extends izr{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=t,a=ozr(e),s=(await szr({provider:this.provider,fromBlock:a,toBlock:n})).map(o=>o.hash);this.addResults(s)}};Ygt.exports=Ake});var Jgt=_((Zea,Qgt)=>{d();p();var czr=T0e(),uzr=C0e(),{incrementHexInt:lzr}=FY(),Pke=class extends czr{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=e,n=lzr(e),a=await uzr({provider:this.provider,fromBlock:n,toBlock:t}),i=[];for(let s of a)i.push(...s.transactions);this.addResults(i)}};Qgt.exports=Pke});var e1t=_((tta,Xgt)=>{d();p();var dzr=Ngt().Mutex,{createAsyncMiddleware:pzr,createScaffoldMiddleware:hzr}=vke(),fzr=Kgt(),mzr=$gt(),yzr=Jgt(),{intToHex:Zgt,hexToInt:Ske}=FY();Xgt.exports=gzr;function gzr({blockTracker:r,provider:e}){let t=0,n={},a=new dzr,i=bzr({mutex:a}),s=hzr({eth_newFilter:i(Rke(c)),eth_newBlockFilter:i(Rke(u)),eth_newPendingTransactionFilter:i(Rke(l)),eth_uninstallFilter:i(k0e(m)),eth_getFilterChanges:i(k0e(h)),eth_getFilterLogs:i(k0e(f))}),o=async({oldBlock:L,newBlock:F})=>{if(n.length===0)return;let W=await a.acquire();try{await Promise.all(WY(n).map(async V=>{try{await V.update({oldBlock:L,newBlock:F})}catch(K){console.error(K)}}))}catch(V){console.error(V)}W()};return s.newLogFilter=c,s.newBlockFilter=u,s.newPendingTransactionFilter=l,s.uninstallFilter=m,s.getFilterChanges=h,s.getFilterLogs=f,s.destroy=()=>{C()},s;async function c(L){let F=new fzr({provider:e,params:L}),W=await y(F);return F}async function u(){let L=new mzr({provider:e}),F=await y(L);return L}async function l(){let L=new yzr({provider:e}),F=await y(L);return L}async function h(L){let F=Ske(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);return W.getChangesAndClear()}async function f(L){let F=Ske(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);let V=[];return W.type==="log"&&(V=W.getAllResults()),V}async function m(L){let F=Ske(L),W=n[F],V=Boolean(W);return V&&await I(F),V}async function y(L){let F=WY(n).length,W=await r.getLatestBlock();await L.initialize({currentBlock:W}),t++,n[t]=L,L.id=t,L.idHex=Zgt(t);let V=WY(n).length;return R({prevFilterCount:F,newFilterCount:V}),t}async function I(L){let F=WY(n).length;delete n[L];let W=WY(n).length;R({prevFilterCount:F,newFilterCount:W})}async function C(){let L=WY(n).length;n={},R({prevFilterCount:L,newFilterCount:0})}function R({prevFilterCount:L,newFilterCount:F}){if(L===0&&F>0){r.on("sync",o);return}if(L>0&&F===0){r.removeListener("sync",o);return}}}function Rke(r){return k0e(async(...e)=>{let t=await r(...e);return Zgt(t.id)})}function k0e(r){return pzr(async(e,t)=>{let n=await r.apply(null,e.params);t.result=n})}function bzr({mutex:r}){return e=>async(t,n,a,i)=>{(await r.acquire())(),e(t,n,a,i)}}function WY(r,e){let t=[];for(let n in r)t.push(r[n]);return t}});var n1t=_((ata,r1t)=>{d();p();var vzr=cte().default,{createAsyncMiddleware:t1t,createScaffoldMiddleware:wzr}=vke(),xzr=e1t(),{unsafeRandomBytes:_zr,incrementHexInt:Tzr}=FY(),Izr=C0e();r1t.exports=Ezr;function Ezr({blockTracker:r,provider:e}){let t={},n=xzr({blockTracker:r,provider:e}),a=!1,i=new vzr,s=wzr({eth_subscribe:t1t(o),eth_unsubscribe:t1t(c)});return s.destroy=l,{events:i,middleware:s};async function o(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=_zr(16),I;switch(m){case"newHeads":I=C({subId:y});break;case"logs":let L=h.params[1],F=await n.newLogFilter(L);I=R({subId:y,filter:F});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${m}"`)}t[y]=I,f.result=y;return;function C({subId:L}){let F={type:m,destroy:async()=>{r.removeListener("sync",F.update)},update:async({oldBlock:W,newBlock:V})=>{let K=V,H=Tzr(W);(await Izr({provider:e,fromBlock:H,toBlock:K})).map(Czr).filter(q=>q!==null).forEach(q=>{u(L,q)})}};return r.on("sync",F.update),F}function R({subId:L,filter:F}){return F.on("update",V=>u(L,V)),{type:m,destroy:async()=>await n.uninstallFilter(F.idHex)}}}async function c(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=t[m];if(!y){f.result=!1;return}delete t[m],await y.destroy(),f.result=!0}function u(h,f){i.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:h,result:f}})}function l(){i.removeAllListeners();for(let h in t)t[h].destroy(),delete t[h];a=!0}}function Czr(r){return r==null?null:{hash:r.hash,parentHash:r.parentHash,sha3Uncles:r.sha3Uncles,miner:r.miner,stateRoot:r.stateRoot,transactionsRoot:r.transactionsRoot,receiptsRoot:r.receiptsRoot,logsBloom:r.logsBloom,difficulty:r.difficulty,number:r.number,gasLimit:r.gasLimit,gasUsed:r.gasUsed,nonce:r.nonce,mixHash:r.mixHash,timestamp:r.timestamp,extraData:r.extraData}}});var i1t=_(A0e=>{"use strict";d();p();Object.defineProperty(A0e,"__esModule",{value:!0});A0e.SubscriptionManager=void 0;var kzr=Hyt(),Azr=n1t(),a1t=()=>{},Mke=class{constructor(e){let t=new kzr({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=Azr({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,a1t,a1t),t}destroy(){this.subscriptionMiddleware.destroy()}};A0e.SubscriptionManager=Mke});var P0e=_(UY=>{"use strict";d();p();var Lke=UY&&UY.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(UY,"__esModule",{value:!0});UY.CoinbaseWalletProvider=void 0;var Pzr=Lke(cte()),Szr=Lke(Cr()),ku=zme(),Nke=Gme(),s1t=r0e(),o1t=eke(),Ar=$0(),Bke=Lke(byt()),Rzr=Tyt(),Na=Iyt(),Mzr=i1t(),c1t="DefaultChainId",u1t="DefaultJsonRpcUrl",Dke=class extends Pzr.default{constructor(e){var t,n;super(),this._filterPolyfill=new Rzr.FilterPolyfill(this),this._subscriptionManager=new Mzr.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let a=this.getChainId(),i=(0,Ar.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(o1t.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let o=s.split(" ");o[0]!==""&&(this._addresses=o.map(c=>(0,Ar.ensureAddressString)(c)),this.emit("accountsChanged",o))}this._subscriptionManager.events.on("notification",o=>{this.emit("message",{type:o.method,data:o.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",o=>{var c;if(!(o.origin!==location.origin||o.source!==window)&&o.data.type==="walletLinkMessage"){if(o.data.data.action==="defaultChainChanged"||o.data.data.action==="dappChainSwitched"){let u=o.data.data.chainId,l=(c=o.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(l,Number(u))}o.data.data.action==="addressChanged"&&this._setAddresses([o.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Ar.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(u1t))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(u1t,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(c1t,t.toString(10)),((0,Ar.ensureIntNumber)(t)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,a,i,s){return!!(await(await this.initializeRelay()).watchAsset(e,t,n,a,i,s?.toString()).promise).result}async addEthereumChain(e,t,n,a,i,s){var o,c;if((0,Ar.ensureIntNumber)(e)===this.getChainId())return!1;let u=await this.initializeRelay(),l=u.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!l&&await u.requestEthereumAccounts().promise;let h=await u.addEthereumChain(e.toString(),t,i,n,a,s).promise;return((o=h.result)===null||o===void 0?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw ku.ethErrors.provider.custom({code:n.errorCode});let a=n.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(Nke.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?s1t.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(Na.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if(typeof e=="string"){let a=e,i=Array.isArray(t)?t:t!==void 0?[t]:[],s={jsonrpc:"2.0",id:0,method:a,params:i};return this._sendRequestAsync(s).then(o=>o.result)}if(typeof t=="function"){let a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map(i=>this._sendRequest(i));let n=e;return this._sendRequest(n)}async sendAsync(e,t){if(typeof t!="function")throw new Error("callback is required");if(Array.isArray(e)){let a=t;this._sendMultipleRequestsAsync(e).then(i=>a(null,i)).catch(i=>a(i,null));return}let n=t;return this._sendRequestAsync(e).then(a=>n(null,a)).catch(a=>n(a,null))}async request(e){if(!e||typeof e!="object"||Array.isArray(e))throw ku.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if(typeof t!="string"||t.length===0)throw ku.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw ku.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let a=n===void 0?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:a,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,Ar.ensureRegExpString)(e)).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}async genericRequest(e,t){let a=await(await this.initializeRelay()).genericRequest(e,t).promise;if(typeof a.result!="string")throw new Error("result was not a string");return a.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),t.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");let n=e.map(a=>(0,Ar.ensureAddressString)(a));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&this.supportsAddressSwitching===!1&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(o1t.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let a=this._handleSynchronousMethods(e);if(a!==void 0)return t({jsonrpc:"2.0",id:e.id,result:a});let i=this._handleAsynchronousFilterMethods(e);if(i!==void 0){i.then(o=>t(Object.assign(Object.assign({},o),{id:e.id}))).catch(o=>n(o));return}let s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(o=>t({jsonrpc:"2.0",id:e.id,result:o.result})).catch(o=>n(o));return}}catch(a){return n(a)}this._handleAsynchronousMethods(e).then(a=>a&&t(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_accounts:return this._eth_accounts();case Na.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case Na.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case Na.JSONRPCMethod.net_version:return this._net_version();case Na.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case Na.JSONRPCMethod.eth_sign:return this._eth_sign(n);case Na.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case Na.JSONRPCMethod.personal_sign:return this._personal_sign(n);case Na.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case Na.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case Na.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case Na.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case Na.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case Na.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case Na.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case Na.JSONRPCMethod.eth_signTypedData_v4:case Na.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case Na.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case Na.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case Na.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case Na.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Na.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case Na.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case Na.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case Na.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case Na.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case Na.JSONRPCMethod.eth_subscribe:case Na.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,Ar.ensureAddressString)(e);return this._addresses.map(a=>(0,Ar.ensureAddressString)(a)).includes(t)}catch{}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw(t=this.diagnostic)===null||t===void 0||t.log(Nke.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,Ar.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,Ar.ensureAddressString)(e.to):null,a=e.value!=null?(0,Ar.ensureBN)(e.value):new Szr.default(0),i=e.data?(0,Ar.ensureBuffer)(e.data):b.Buffer.alloc(0),s=e.nonce!=null?(0,Ar.ensureIntNumber)(e.nonce):null,o=e.gasPrice!=null?(0,Ar.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,Ar.ensureBN)(e.maxFeePerGas):null,u=e.maxPriorityFeePerGas!=null?(0,Ar.ensureBN)(e.maxPriorityFeePerGas):null,l=e.gas!=null?(0,Ar.ensureBN)(e.gas):null,h=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:i,nonce:s,gasPriceInWei:o,maxFeePerGas:c,maxPriorityFeePerGas:u,gasLimit:l,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw ku.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw ku.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,a){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,t,n,a).promise).result}}catch(i){throw typeof i.message=="string"&&i.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied message signature"):i}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Ar.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(c1t);if(!e)return(0,Ar.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,Ar.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(Nke.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?s1t.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{t=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(e){let t=(0,Ar.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?ku.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,Ar.ensureParsedJSONObject)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let a=Bke.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(a,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Bke.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Bke.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof t!="object"||t===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,a,i;let s=e[0];if(((t=s.rpcUrls)===null||t===void 0?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw ku.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw ku.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,(n=s.rpcUrls)!==null&&n!==void 0?n:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(i=s.iconUrls)!==null&&i!==void 0?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw ku.ethErrors.rpc.invalidParams({message:"Type is required"});if(t?.type!=="ERC20")throw ku.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!t?.options)throw ku.ethErrors.rpc.invalidParams({message:"Options are required"});if(!t?.options.address)throw ku.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:a,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,a,i,o,s,n)}}_eth_uninstallFilter(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((t,n)=>this._setAddresses(t,n)),e.setChainCallback((t,n)=>{this.updateProviderInfo(n,parseInt(t,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};UY.CoinbaseWalletProvider=Dke});var Dl={};cr(Dl,{Component:()=>Bl,Fragment:()=>Np,cloneElement:()=>Wke,createContext:()=>Ate,createElement:()=>pd,createRef:()=>kte,h:()=>pd,hydrate:()=>N0e,isValidElement:()=>m1t,options:()=>at,render:()=>aw,toChildArray:()=>Yh});function Q0(r,e){for(var t in e)r[t]=e[t];return r}function v1t(r){var e=r.parentNode;e&&e.removeChild(r)}function pd(r,e,t){var n,a,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?Cte.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(i in r.defaultProps)s[i]===void 0&&(s[i]=r.defaultProps[i]);return Ite(r,s,n,a,null)}function Ite(r,e,t,n,a){var i={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++f1t};return a==null&&at.vnode!=null&&at.vnode(i),i}function kte(){return{current:null}}function Np(r){return r.children}function Bl(r,e){this.props=r,this.context=e}function Ete(r,e){if(e==null)return r.__?Ete(r.__,r.__.__k.indexOf(r)+1):null;for(var t;ee&&nw.sort(Oke));R0e.__r=0}function x1t(r,e,t,n,a,i,s,o,c,u){var l,h,f,m,y,I,C,R=n&&n.__k||b1t,L=R.length;for(t.__k=[],l=0;l0?Ite(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=t,m.__b=t.__b+1,(f=R[l])===null||f&&m.key==f.key&&m.type===f.type)R[l]=void 0;else for(h=0;h=0;e--)if((t=r.__k[e])&&(n=I1t(t)))return n}return null}function Bzr(r,e,t,n,a){var i;for(i in t)i==="children"||i==="key"||i in e||M0e(r,i,null,t[i],n);for(i in e)a&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||t[i]===e[i]||M0e(r,i,e[i],t[i],n)}function d1t(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||Nzr.test(e)?t:t+"px"}function M0e(r,e,t,n,a){var i;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||d1t(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||d1t(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+i]=t,t?n||r.addEventListener(e,i?h1t:p1t,i):r.removeEventListener(e,i?h1t:p1t,i);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function p1t(r){return this.l[r.type+!1](at.event?at.event(r):r)}function h1t(r){return this.l[r.type+!0](at.event?at.event(r):r)}function Fke(r,e,t,n,a,i,s,o,c){var u,l,h,f,m,y,I,C,R,L,F,W,V,K,H,G=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(c=t.__h,o=e.__e=t.__e,e.__h=null,i=[o]),(u=at.__b)&&u(e);try{e:if(typeof G=="function"){if(C=e.props,R=(u=G.contextType)&&n[u.__c],L=u?R?R.props.value:u.__:n,t.__c?I=(l=e.__c=t.__c).__=l.__E:("prototype"in G&&G.prototype.render?e.__c=l=new G(C,L):(e.__c=l=new Bl(C,L),l.constructor=G,l.render=Lzr),R&&R.sub(l),l.props=C,l.state||(l.state={}),l.context=L,l.__n=n,h=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),G.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Q0({},l.__s)),Q0(l.__s,G.getDerivedStateFromProps(C,l.__s))),f=l.props,m=l.state,l.__v=e,h)G.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(G.getDerivedStateFromProps==null&&C!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(C,L),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(C,l.__s,L)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(l.props=C,l.state=l.__s,l.__d=!1),l.__e=!1,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(Q){Q&&(Q.__=e)}),F=0;F2&&(s.children=arguments.length>3?Cte.call(arguments,2):t),Ite(r.type,s,n||r.key,a||r.ref,null)}function Ate(r,e){var t={__c:e="__cC"+g1t++,__:r,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,i;return this.getChildContext||(a=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(function(o){o.__e=!0,qke(o)})},this.sub=function(s){a.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),o&&o.call(s)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}var Cte,at,f1t,m1t,nw,l1t,y1t,Oke,g1t,S0e,b1t,Nzr,Pc=ce(()=>{d();p();S0e={},b1t=[],Nzr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;Cte=b1t.slice,at={__e:function(r,e,t,n){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(r)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(r,n||{}),s=a.__d),s)return a.__E=a}catch(o){r=o}throw r}},f1t=0,m1t=function(r){return r!=null&&r.constructor===void 0},Bl.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Q0({},this.state),typeof r=="function"&&(r=r(Q0({},t),this.props)),r&&Q0(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),qke(this))},Bl.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),qke(this))},Bl.prototype.render=Np,nw=[],y1t=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Oke=function(r,e){return r.__v.__b-e.__v.__b},R0e.__r=0,g1t=0});var HY=_(Uke=>{"use strict";d();p();Object.defineProperty(Uke,"__esModule",{value:!0});function Ozr(r){return typeof r=="function"}Uke.isFunction=Ozr});var Pte=_(jke=>{"use strict";d();p();Object.defineProperty(jke,"__esModule",{value:!0});var Hke=!1;jke.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: -`+e.stack)}else Hke&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Hke=r},get useDeprecatedSynchronousErrorHandling(){return Hke}}});var B0e=_(zke=>{"use strict";d();p();Object.defineProperty(zke,"__esModule",{value:!0});function qzr(r){setTimeout(function(){throw r},0)}zke.hostReportError=qzr});var Gke=_(Kke=>{"use strict";d();p();Object.defineProperty(Kke,"__esModule",{value:!0});var Fzr=Pte(),Wzr=B0e();Kke.empty={closed:!0,next:function(r){},error:function(r){if(Fzr.config.useDeprecatedSynchronousErrorHandling)throw r;Wzr.hostReportError(r)},complete:function(){}}});var $u=_(Vke=>{"use strict";d();p();Object.defineProperty(Vke,"__esModule",{value:!0});Vke.isArray=function(){return Array.isArray||function(r){return r&&typeof r.length=="number"}}()});var D0e=_(Yke=>{"use strict";d();p();Object.defineProperty(Yke,"__esModule",{value:!0});function Uzr(r){return r!==null&&typeof r=="object"}Yke.isObject=Uzr});var Qke=_($ke=>{"use strict";d();p();Object.defineProperty($ke,"__esModule",{value:!0});var Hzr=function(){function r(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await We(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in yEt.GENERATED_ABI)return await this.getContractFromAbi(n,yEt.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await j1[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in j1?a=await j1[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Z.Contract(await We(e),eFe.default,this.getProvider()),n=Z.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return MFe(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await We(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>WOe((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vce.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new dd(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>WOe((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider()),this.verifier.updateSignerOrProvider(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await We(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=bs(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new Lve(this.getSignerOrProvider(),n,await ave(n,qs.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return Mp(this.getProvider(),El,await this.getProvider().getBalance(await We(e)))}getPublisher(){return this._publisher}},Wve=class extends Do{constructor(e,t,n,a){super(t,e,cyn.default,a),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"DEFAULT_VERSION_MAP",{[Xh.contractType]:3,[Lb.contractType]:1,[em.contractType]:4,[Zh.contractType]:1,[Qh.contractType]:2,[Fb.contractType]:1,[qb.contractType]:2,[rm.contractType]:1,[nm.contractType]:1,[tm.contractType]:1,[Jh.contractType]:2,[H1.contractType]:1,[pf.contractType]:2}),Q._defineProperty(this,"deploy",Pe(async(i,s,o,c,u)=>{let l=j1[i],p=await l.schema.deploy.parseAsync(s),h=await this.storage.upload(p),m=await this.getImplementation(l,c)||void 0;if(!m||m===Z.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let y=await l.getAbi(m,this.getProvider(),this.storage),C=this.getSigner();Rt.default(C,"A signer is required to deploy contracts");let P=await DFe(i,p,h,C,this.storage),A=Z.Contract.getInterface(y).encodeFunctionData("initialize",P),B=await this.getProvider().getBlockNumber(),F=Z.ethers.utils.formatBytes32String(B.toString());return Qe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[m,A,F],parse:W=>{u&&u();let K=this.parseLogs("ProxyDeployed",W.logs);if(K.length<1)throw new Error("No ProxyDeployed event found");let z=K[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:z,transactionHash:W.transactionHash}),z}})})),Q._defineProperty(this,"deployProxyByImplementation",Pe(async(i,s,o,c,u,l)=>{let p=Z.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return Qe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,p,Z.ethers.utils.formatBytes32String(h.toString())],parse:m=>{l&&l();let y=this.parseLogs("ProxyDeployed",m.logs);if(y.length<1)throw new Error("No ProxyDeployed event found");let C=y[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:C,transactionHash:m.transactionHash}),C}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===pf.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Xh.contractType:case Lb.contractType:let i=await Xh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case em.contractType:let s=await em.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case Zh.contractType:let o=await Zh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Qh.contractType:case Fb.contractType:let c=await Qh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case qb.contractType:case rm.contractType:let u=await rm.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case nm.contractType:let l=await nm.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Z.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case tm.contractType:let p=await tm.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,p.recipients.map(C=>C.address),p.recipients.map(C=>Z.BigNumber.from(C.sharesBps))];case Jh.contractType:let h=await Jh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.platform_fee_recipient,h.platform_fee_basis_points];case H1.contractType:let m=await H1.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case pf.contractType:let y=await pf.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return Vve(e)}async getImplementation(e,t){let n=Z.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=d9t(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=BFe(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Z.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},QOe=class extends Do{constructor(e,t,n){super(t,e,uyn.default,n),Q._defineProperty(this,"addContract",Pe(async a=>await this.addContracts.prepare([a]))),Q._defineProperty(this,"addContracts",Pe(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await We(o)])));return Qe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),Q._defineProperty(this,"removeContract",Pe(async a=>await this.removeContracts.prepare([a]))),Q._defineProperty(this,"removeContracts",Pe(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await We(o)])));return Qe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await We(e))).filter(t=>Z.utils.isAddress(t)&&t.toLowerCase()!==Z.constants.AddressZero)}},n2n="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",Uve=class extends Xg{constructor(e,t,n){var a;super(e,t),a=this,Q._defineProperty(this,"_factory",void 0),Q._defineProperty(this,"_registry",void 0),Q._defineProperty(this,"storage",void 0),Q._defineProperty(this,"events",void 0),Q._defineProperty(this,"transactionListener",i=>{i.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.transactionHash})}),Q._defineProperty(this,"deployNFTCollection",_0(async i=>await this.deployBuiltInContract.prepare(Lb.contractType,i))),Q._defineProperty(this,"deployNFTDrop",_0(async i=>await this.deployBuiltInContract.prepare(Xh.contractType,i))),Q._defineProperty(this,"deploySignatureDrop",_0(async i=>await this.deployBuiltInContract.prepare(em.contractType,i))),Q._defineProperty(this,"deployMultiwrap",_0(async i=>await this.deployBuiltInContract.prepare(Zh.contractType,i))),Q._defineProperty(this,"deployEdition",_0(async i=>await this.deployBuiltInContract.prepare(Fb.contractType,i))),Q._defineProperty(this,"deployEditionDrop",_0(async i=>await this.deployBuiltInContract.prepare(Qh.contractType,i))),Q._defineProperty(this,"deployToken",_0(async i=>await this.deployBuiltInContract.prepare(rm.contractType,i))),Q._defineProperty(this,"deployTokenDrop",_0(async i=>await this.deployBuiltInContract.prepare(qb.contractType,i))),Q._defineProperty(this,"deployMarketplace",_0(async i=>await this.deployBuiltInContract.prepare(Jh.contractType,i))),Q._defineProperty(this,"deployMarketplaceV3",_0(async i=>await this.deployBuiltInContract.prepare(H1.contractType,i))),Q._defineProperty(this,"deployPack",_0(async i=>await this.deployBuiltInContract.prepare(pf.contractType,i))),Q._defineProperty(this,"deploySplit",_0(async i=>await this.deployBuiltInContract.prepare(tm.contractType,i))),Q._defineProperty(this,"deployVote",_0(async i=>await this.deployBuiltInContract.prepare(nm.contractType,i))),Q._defineProperty(this,"deployBuiltInContract",_0(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",c=a.getSigner();Rt.default(c,"A signer is required to deploy contracts");let u={app_uri:V7t[i],...await j1[i].schema.deploy.parseAsync(s)};if(a.hasLocalFactory()){let y;try{y=parseInt(o),isNaN(y)&&(y=void 0)}catch{y=void 0}let C=await a.getFactory();if(!C)throw new Error("Factory not found");return C.on(ff.Transaction,a.transactionListener),C.deploy.prepare(i,u,a.events,y,()=>{C.off(ff.Transaction,a.transactionListener)})}let l=BFe(i);Rt.default(l,"Contract name not found");let p=await a.storage.upload(u),h=await DFe(i,u,p,c,a.storage),m=await a.fetchPublishedContractFromPolygon(n2n,l,o);return a.deployContractFromUri.prepare(m.metadataUri,h)})),Q._defineProperty(this,"deployReleasedContract",_0(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",u=arguments.length>4?arguments[4]:void 0,l=await a.fetchPublishedContractFromPolygon(i,s,c);return await a.deployContractFromUri.prepare(l.metadataUri,o,u)})),Q._defineProperty(this,"deployViaFactory",Pe(async(i,s,o,c,u)=>{let l=await We(i),p=await We(s),h=this.getSigner();Rt.default(h,"signer is required");let m=new Wve(l,this.getSignerOrProvider(),this.storage,this.options);return m.on(ff.Transaction,this.transactionListener),await m.deployProxyByImplementation.prepare(p,o,c,u,this.events,()=>{m.off(ff.Transaction,this.transactionListener)})})),Q._defineProperty(this,"deployProxy",_0(async(i,s,o,c)=>{let u=await We(i),l=Z.Contract.getInterface(s).encodeFunctionData(o,c),{TWProxy__factory:p}=await Promise.resolve().then(function(){return C0(qBe())});return this.deployContractWithAbi.prepare(p.abi,p.bytecode,[u,l])})),Q._defineProperty(this,"deployContractFromUri",_0(async(i,s,o)=>{let c=this.getSigner();Rt.default(c,"A signer is required");let{compilerMetadata:u,extendedMetadata:l}=await e6(i,this.storage),p=o?.forceDirectDeploy||!1;if(l&&l.factoryDeploymentData&&(l.isDeployableViaProxy||l.isDeployableViaFactory)&&!p){let C=(await this.getProvider().getNetwork()).chainId;Rt.default(l.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let P=_7t(u.abi,l.factoryDeploymentData.implementationInitializerFunction).map(F=>F.type),A=this.convertParamValues(P,s),B=l.factoryDeploymentData.implementationAddresses[C];if(B){let F=await We(B);if(Rt.default(F,`implementationAddress not found for chainId '${C}'`),l.isDeployableViaFactory){Rt.default(l.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let W=l.factoryDeploymentData.factoryAddresses[C];Rt.default(W,`isDeployableViaFactory is true and factoryAddress not found for chainId '${C}'`);let K=await We(W);return await this.deployViaFactory.prepare(K,F,u.abi,l.factoryDeploymentData.implementationInitializerFunction,A)}else if(l.isDeployableViaProxy)return await this.deployProxy.prepare(F,u.abi,l.factoryDeploymentData.implementationInitializerFunction,A)}else{let F=await L7t(c,o),W=await pce(i,this.storage,this.getProvider(),F);B=W.find(b=>b.type==="implementation")?.transaction.predictedAddress;let K=W.filter(b=>b.transaction.data&&b.transaction.data.length>0),z=K.filter(b=>b.type!=="infra").map(b=>b.transaction),G=K.filter(b=>b.type==="infra").map(b=>b.transaction);await W7t(c,G,o),await Promise.all(z.map(b=>q7t(c,b,o)));let j=await We(B),H=await B7t(this.getProvider(),this.storage,F);o?.notifier?.("deploying","proxy");let I=await this.deployViaFactory.prepare(H,j,u.abi,l.factoryDeploymentData.implementationInitializerFunction,A);return o?.notifier?.("deployed","proxy"),I}}let h=u.bytecode.startsWith("0x")?u.bytecode:`0x${u.bytecode}`;if(!Z.ethers.utils.isHexString(h))throw new Error(`Contract bytecode is invalid. + +${h}`);let m=Cce(u.abi).map(C=>C.type),y=this.convertParamValues(m,s);return this.deployContractWithAbi.prepare(u.abi,h,y)})),Q._defineProperty(this,"deployContractWithAbi",_0(async(i,s,o)=>{let c=this.getSigner(),u=this.getProvider();Rt.default(c,"Signer is required to deploy contracts");let l=new Z.ethers.ContractFactory(i,s).connect(c);return new ove({args:o,provider:u,signer:c,factory:l,storage:this.storage,events:this.events})})),this.storage=n,this.events=new JEt.EventEmitter,this.getFactory(),this.getRegistry()}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=Joe(t,"twRegistry");if(!!n)return new QOe(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=Joe(t,"twFactory");return n?new Wve(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async getTransactionsForDeploy(e,t){let n=[],a=this.getProvider();Rt.default(a,"A provider is required");let{extendedMetadata:i}=await e6(e,this.storage),s=t?.forceDirectDeploy||!1;if(i&&i.factoryDeploymentData&&(i.isDeployableViaProxy||i.isDeployableViaFactory)&&!s){let o=(await this.getProvider().getNetwork()).chainId;if(!i.factoryDeploymentData.implementationAddresses[o]){let u=await Ub(this.getProvider());n.push({contractType:"create2Factory",addresses:[u]});let p=(await pce(e,this.storage,this.getProvider(),u)).filter(C=>C.transaction.data&&C.transaction.data.length>0);p.filter(C=>C.type!=="infra").map(C=>C.transaction).forEach(C=>{n.push({contractType:"preset",addresses:[C.predictedAddress]})});let m=p.filter(C=>C.type==="infra").map(C=>C.transaction);AFe(m).forEach(C=>{let P=C.map(A=>A.predictedAddress);n.push({contractType:"infra",addresses:P})})}n=(await Promise.all(n.map(async u=>(await Promise.all(u.addresses.map(async p=>await im(p,a)?null:p))).filter(Boolean).length>0?u:null))).filter(Boolean),n.push({contractType:"proxy",addresses:[]})}else n.push({contractType:"custom",addresses:[]});return n}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchPublishedContractFromPolygon(e,t,n){let a=await We(e),i=await new dd("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(Rt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Z.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(Rt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Z.BigNumber.from(t[a].toString()):t[a])}},Hve=class{constructor(e){Q._defineProperty(this,"featureName",tve.name),Q._defineProperty(this,"contractWrapper",void 0),Q._defineProperty(this,"set",Pe(async t=>{let n=await We(t);return Qe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},$7t={},a2n=new dd("polygon");function Y7t(r,e){return`${r}-${e}`}function i2n(r,e,t){$7t[Y7t(r,e)]=t}function s2n(r,e){return $7t[Y7t(r,e)]}async function K1(r,e,t){let n=(await e.getNetwork()).chainId,a=s2n(r,n);if(a)return a;let i;try{let s=await Tee(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await jve(s,t)}catch(s){console.warn("Failed to get Contract Metadata from IPFS, defaulting to onchain registry",s);try{let o=await a2n.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await jve(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return i2n(r,n,i),i}async function mf(r,e,t){try{let n=await K1(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function jve(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=qs.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=LFe.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function Rce(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,p)=>setTimeout(()=>p("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var YEt=256,sOe="0|[1-9]\\d*",o2n=`(${sOe})\\.(${sOe})\\.(${sOe})`,c2n=new RegExp(o2n);function Aee(r){if(r.length>YEt)throw new Error(`version is longer than ${YEt} characters`);let e=r.trim().match(c2n);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function Q7t(r,e){let t=Aee(r),n=Aee(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function u2n(r,e){let t=Aee(r),n=Aee(e);if(n.majorK===G.filename);if(!z)throw new Error(`Could not find source file for ${K}`);p[K]={content:z.source}}let h={language:"Solidity",sources:p,settings:{optimizer:o.metadata.settings.optimizer,evmVersion:o.metadata.settings.evmVersion,remappings:o.metadata.settings.remappings,outputSelection:{"*":{"*":["abi","evm.bytecode","evm.deployedBytecode","evm.methodIdentifiers","metadata"],"":["ast"]}}}},m=o.metadata.settings.compilationTarget,C=Object.keys(m)[0],P=i||await d2n(t,n,r,o.abi,s.getProvider(),a),A={apikey:n,module:"contract",action:"verifysourcecode",contractaddress:r,sourceCode:JSON.stringify(h),codeformat:"solidity-standard-json-input",contractname:`${C}:${o.name}`,compilerversion:`v${c}`,constructorArguements:P},B=new URLSearchParams({...A}),W=await(await Db.default(t,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:B.toString()})).json();if(W.status===J7t.OK)return W.result;throw new Error(`${W.result}`)}catch(s){throw new Error(s.toString())}}async function JOe(r,e,t){let n=`${r}?module=contract&action=checkverifystatus&guid=${t}&apikey=${e}"`;return new Promise((a,i)=>{let s=setInterval(async()=>{try{let c=await(await Db.default(n,{method:"GET"})).json();c?.result!==l2n.PENDING&&(clearInterval(s),a(c))}catch(o){clearInterval(s),i(o)}},3e3)})}async function f2n(r,e,t,n){let a=z1(e,{thirdwebApiKey:Q.DEFAULT_API_KEY});Rt.default(await im(r,a),"Contract not deployed yet.");let i=`${t}?module=contract&action=getsourcecode&address=${r}&apikey=${n}"`;try{return(await(await Db.default(i,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).json()).result[0].ABI!=="Contract source code not verified"}catch(s){throw new Error(`Error checking verification for contract ${r}: ${s}`)}}async function d2n(r,e,t,n,a,i){let s=Cce(n);if(s.length===0)return"";let o={apiKey:e,module:"account",action:"txlist",address:t,page:"1",sort:"asc",offset:"1"},c=new URLSearchParams({...o}),l=await(await Db.default(r,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c.toString()})).json();if(l&&l.status===J7t.OK&&l.result[0]!==void 0){let p=new Z.utils.Interface(n),h=l.result[0].input,m="";if(p.deploy.inputs.length===0)return"";try{let y=await p2n(t,a,i);if(y){let C=y.startsWith("0x")?y:`0x${y}`;m=h.substring(C.length)}}catch{}if(!m){let y=[...h.matchAll(/(64736f6c6343[\w]{6}[\w]{4})(?!.*\1)(.*)$/g)];y.length>0&&(m=y[0][2])}if(!m){let y=s.length*64;m=h.substring(h.length-y)}try{Z.ethers.utils.defaultAbiCoder.decode(p.deploy.inputs,`0x${m}`)}catch{throw new Error("Verifying this contract requires it to be published. Run `npx thirdweb publish` to publish this contract, then try again.")}return m}else return""}async function p2n(r,e,t){let n=await Tee(r,e);if(n){let a=await new dd("polygon").getPublisher().resolvePublishMetadataFromCompilerMetadata(n);return a.length>0?await(await t.download(a[0].bytecodeUri)).text():void 0}}var X7t=hf.catchall(he.z.union([b9t,he.z.unknown()])),OFe=X7t.merge(I0.merge(Wb).merge(Kc).partial()),eIt=pd.merge(I0.merge(Wb).merge(Kc).partial()),tIt=OFe.merge(Bp.merge(t6).merge(hd).partial()),A3={deploy:tIt,output:eIt,input:OFe},QEt=he.z.object({type:he.z.string(),name:he.z.string().default("")}).catchall(he.z.any()),ZOe=QEt.extend({stateMutability:he.z.string().optional(),components:he.z.array(QEt).optional()}).catchall(he.z.any()),rIt=he.z.object({type:he.z.string(),name:he.z.string().default(""),inputs:he.z.array(ZOe).default([]),outputs:he.z.array(ZOe).default([])}).catchall(he.z.any()),qs=he.z.array(rIt),Mce=he.z.object({name:he.z.string(),metadataUri:he.z.string(),bytecodeUri:he.z.string(),analytics:he.z.any().optional()}).catchall(he.z.any()),XOe=he.z.record(he.z.string(),he.z.string()),nIt=he.z.object({implementationAddresses:XOe,implementationInitializerFunction:he.z.string().default("initialize"),factoryAddresses:XOe.optional()}),FFe=he.z.object({version:he.z.string().refine(r=>{try{return Aee(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:he.z.string().optional(),description:he.z.string().optional(),readme:he.z.string().optional(),license:he.z.string().optional(),changelog:he.z.string().optional(),tags:he.z.array(he.z.string()).optional(),audit:Q.FileOrBufferOrStringSchema.nullable().optional(),logo:Q.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:he.z.boolean().optional(),isDeployableViaProxy:he.z.boolean().optional(),factoryDeploymentData:nIt.optional(),constructorParams:he.z.record(he.z.string(),he.z.object({displayName:he.z.string().optional(),description:he.z.string().optional(),defaultValue:he.z.string().optional()}).catchall(he.z.any())).optional()}).catchall(he.z.any()),aIt=FFe.extend({audit:he.z.string().nullable().optional(),logo:he.z.string().nullable().optional()}),iIt=Mce.merge(FFe).extend({publisher:Ls.optional()}),sIt=Mce.merge(aIt).extend({publisher:Ls.optional()}),oIt=he.z.object({name:he.z.string().optional(),bio:he.z.string().optional(),avatar:Q.FileOrBufferOrStringSchema.nullable().optional(),website:he.z.string().optional(),twitter:he.z.string().optional(),telegram:he.z.string().optional(),facebook:he.z.string().optional(),github:he.z.string().optional(),medium:he.z.string().optional(),linkedin:he.z.string().optional(),reddit:he.z.string().optional(),discord:he.z.string().optional()}),cIt=oIt.extend({avatar:he.z.string().nullable().optional()}),uIt=he.z.object({id:he.z.string(),timestamp:_c,metadataUri:he.z.string()}),LFe=he.z.object({title:he.z.string().optional(),author:he.z.string().optional(),details:he.z.string().optional(),notice:he.z.string().optional()}),lIt=he.z.object({name:he.z.string(),abi:qs,metadata:he.z.record(he.z.string(),he.z.any()),info:LFe,licenses:he.z.array(he.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),fIt=Mce.merge(lIt).extend({bytecode:he.z.string()}),h2n=new Jg.ThirdwebStorage,qFe=new Map;function WFe(r,e){return`${r}-${e}`}function UFe(r,e){let t=WFe(r,e);return qFe.has(t)}function dIt(r,e){if(!UFe(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=WFe(r,e);return qFe.get(t)}function pIt(r,e,t){let n=WFe(e,t);qFe.set(n,r)}function Qoe(r){return r||h2n}async function w5e(r){let e=await We(r.address),[t,n]=bs(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(UFe(e,a))return dIt(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new Lve(t||n,e,await ave(e,qs.parse(i),n,r.sdkOptions,Qoe(r.storage)),Qoe(r.storage),r.sdkOptions,a);return pIt(s,e,a),s}async function m2n(r){try{let e=new Z.Contract(r.address,eFe.default,r.provider),t=Z.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return MFe(t)}catch{return"custom"}}async function y2n(r){let e=await We(r.address),[t,n]=bs(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(UFe(e,a))return dIt(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await m2n({address:e,provider:n});if(i==="custom"){let s=new qve(r.network,r.sdkOptions,Qoe(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return w5e({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await j1[i].getAbi(e,n,Qoe(r.storage));return w5e({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in j1){let i=await j1[r.contractTypeOrAbi].initialize(t||n,e,Qoe(r.storage),r.sdkOptions);return pIt(i,e,a),i}else return w5e({...r,address:e,abi:r.contractTypeOrAbi})}var v5e=new WeakMap;async function HFe(r){let[,e]=bs(r.network,r.sdkOptions),t;return v5e.has(e)?t=v5e.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw v5e.delete(e),n}),v5e.set(e,t)),await t}async function b2n(r){let[,e]=bs(r.network,r.sdkOptions);return e.getBlockNumber()}var Yoe=new Map;async function hIt(r){let e=await HFe(r),t=r.block,n=`${e}_${t}`,a;if(Yoe.has(n))a=Yoe.get(n);else{let[,i]=bs(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw Yoe.delete(n),s}),Yoe.set(n,a)}return await a}var oOe=new Map;async function mIt(r){let e=await HFe(r),t=r.block,n=`${e}_${t}`,a;if(Yoe.has(n))a=oOe.get(n);else{let[,i]=bs(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw oOe.delete(n),s}),oOe.set(n,a)}return await a}function jFe(r){let[,e]=bs(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function g2n(r){let{onBlock:e,...t}=r;async function n(a){try{e(await hIt({block:a,...t}))}catch{}}return jFe({...t,onBlockNumber:n})}function yIt(r){let{onBlock:e,...t}=r;async function n(a){try{e(await mIt({block:a,...t}))}catch{}}return jFe({...t,onBlockNumber:n})}function v2n(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return yIt({...n,onBlock:i})}ne.ALL_ROLES=mFe;ne.APPROVED_IMPLEMENTATIONS=dOe;ne.AbiObjectSchema=rIt;ne.AbiSchema=qs;ne.AbiTypeSchema=ZOe;ne.AddressOrEnsSchema=Ls;ne.AddressSchema=aFe;ne.AdminRoleMissingError=POe;ne.AssetNotFoundError=bOe;ne.AuctionAlreadyStartedError=IOe;ne.AuctionHasNotEndedError=mee;ne.BYOCContractMetadataSchema=X7t;ne.BaseSignaturePayloadInput=Yve;ne.BigNumberSchema=ec;ne.BigNumberTransformSchema=b9t;ne.BigNumberishSchema=_c;ne.COMMON_FACTORY=dce;ne.CONTRACTS_MAP=RFe;ne.CONTRACT_ADDRESSES=Zg;ne.CREATE2_FACTORY_BYTECODE=k7t;ne.CallOverrideSchema=g9t;ne.ChainId=Ze;ne.ChainIdToAddressSchema=XOe;ne.ChainInfoInputSchema=v9t;ne.ClaimConditionInputArray=T9t;ne.ClaimConditionInputSchema=Ice;ne.ClaimConditionMetadataSchema=_9t;ne.ClaimConditionOutputSchema=cFe;ne.ClaimEligibility=Ti;ne.CommonContractOutputSchema=pd;ne.CommonContractSchema=hf;ne.CommonPlatformFeeSchema=Bp;ne.CommonPrimarySaleSchema=t6;ne.CommonRoyaltySchema=I0;ne.CommonSymbolSchema=Kc;ne.CommonTrustedForwarderSchema=hd;ne.CompilerMetadataFetchedSchema=lIt;ne.ContractAppURI=gce;ne.ContractDeployer=Uve;ne.ContractEncoder=S3;ne.ContractEvents=R3;ne.ContractInfoSchema=LFe;ne.ContractInterceptor=M3;ne.ContractMetadata=Bb;ne.ContractOwner=Hve;ne.ContractPlatformFee=Ove;ne.ContractPrimarySale=lve;ne.ContractPublishedMetadata=Fve;ne.ContractRoles=cve;ne.ContractRoyalty=uve;ne.ContractWrapper=Do;ne.CurrencySchema=w9t;ne.CurrencyValueSchema=x9t;ne.CustomContractDeploy=tIt;ne.CustomContractInput=OFe;ne.CustomContractOutput=eIt;ne.CustomContractSchema=A3;ne.DEPLOYER_ABI=M7t;ne.DEPLOYER_BYTECODE=R7t;ne.DelayedReveal=mce;ne.DeployTransaction=ove;ne.DropClaimConditions=yce;ne.DropErc1155ClaimConditions=fve;ne.DropErc1155ContractSchema=F9t;ne.DropErc20ContractSchema=z7t;ne.DropErc721ContractSchema=fFe;ne.DuplicateFileNameError=wOe;ne.DuplicateLeafsError=I5e;ne.EditionDropInitializer=Qh;ne.EditionInitializer=Fb;ne.EndDateSchema=Tce;ne.Erc1155=Mve;ne.Erc1155BatchMintable=Sve;ne.Erc1155Burnable=Cve;ne.Erc1155Enumerable=Ave;ne.Erc1155LazyMintable=kve;ne.Erc1155Mintable=Pve;ne.Erc1155SignatureMintable=Rve;ne.Erc20=yve;ne.Erc20BatchMintable=pve;ne.Erc20Burnable=dve;ne.Erc20Mintable=hve;ne.Erc20SignatureMintable=mve;ne.Erc721=Ive;ne.Erc721BatchMintable=vve;ne.Erc721Burnable=bve;ne.Erc721ClaimableWithConditions=Eve;ne.Erc721Enumerable=xve;ne.Erc721LazyMintable=gve;ne.Erc721Mintable=wve;ne.Erc721Supply=_ve;ne.Erc721WithQuantitySignatureMintable=Tve;ne.EventType=ff;ne.ExtensionNotImplementedError=Nb;ne.ExtraPublishMetadataSchemaInput=FFe;ne.ExtraPublishMetadataSchemaOutput=aIt;ne.FEATURE_DIRECT_LISTINGS=cce;ne.FEATURE_ENGLISH_AUCTIONS=uce;ne.FEATURE_NFT_REVEALABLE=ice;ne.FEATURE_OFFERS=lce;ne.FEATURE_PACK_VRF=MOe;ne.FactoryDeploymentSchema=nIt;ne.FetchError=EOe;ne.FileNameMissingError=vOe;ne.FullPublishMetadataSchemaInput=iIt;ne.FullPublishMetadataSchemaOutput=sIt;ne.FunctionDeprecatedError=COe;ne.GAS_LIMIT_FOR_DEPLOYER=P7t;ne.GasCostEstimator=B3;ne.GenericRequest=D9t;ne.InterfaceId_IERC1155=xce;ne.InterfaceId_IERC721=wce;ne.InvalidAddressError=yOe;ne.LINK_TOKEN_ADDRESS=myn;ne.LOCAL_NODE_PKEY=f9t;ne.ListingNotFoundError=AOe;ne.MarketplaceContractSchema=dFe;ne.MarketplaceInitializer=Jh;ne.MarketplaceV3DirectListings=Bve;ne.MarketplaceV3EnglishAuctions=Dve;ne.MarketplaceV3Initializer=H1;ne.MarketplaceV3Offers=Nve;ne.MerkleSchema=Wb;ne.MintRequest1155=M9t;ne.MintRequest20=P9t;ne.MintRequest721=R9t;ne.MintRequest721withQuantity=B9t;ne.MissingOwnerRoleError=_Oe;ne.MissingRoleError=E5e;ne.MultiwrapContractSchema=G7t;ne.MultiwrapInitializer=Zh;ne.NATIVE_TOKENS=Zoe;ne.NATIVE_TOKEN_ADDRESS=El;ne.NFTCollectionInitializer=Lb;ne.NFTDropInitializer=Xh;ne.NotEnoughTokensError=xOe;ne.NotFoundError=Xoe;ne.OZ_DEFENDER_FORWARDER_ADDRESS=Qg;ne.PREBUILT_CONTRACTS_APPURI_MAP=V7t;ne.PREBUILT_CONTRACTS_MAP=j1;ne.PackContractSchema=W9t;ne.PackInitializer=pf;ne.PartialClaimConditionInputSchema=vyn;ne.PreDeployMetadata=Mce;ne.PreDeployMetadataFetchedSchema=fIt;ne.ProfileSchemaInput=oIt;ne.ProfileSchemaOutput=cIt;ne.PublishedContractSchema=uIt;ne.QuantityAboveLimitError=TOe;ne.RawDateSchema=_ce;ne.RestrictedTransferError=SOe;ne.SIGNATURE=S7t;ne.SUPPORTED_CHAIN_IDS=Gve;ne.Signature1155PayloadInput=I9t;ne.Signature1155PayloadInputWithTokenId=C9t;ne.Signature1155PayloadOutput=A9t;ne.Signature20PayloadInput=uFe;ne.Signature20PayloadOutput=E9t;ne.Signature721PayloadInput=Qve;ne.Signature721PayloadOutput=lFe;ne.Signature721WithQuantityInput=k9t;ne.Signature721WithQuantityOutput=S9t;ne.SignatureDropInitializer=em;ne.SnapshotEntryInput=_5e;ne.SnapshotEntryWithProofSchema=sFe;ne.SnapshotInfoSchema=gyn;ne.SnapshotInputSchema=Ece;ne.SnapshotSchema=oFe;ne.SplitInitializer=tm;ne.SplitsContractSchema=H9t;ne.StartDateSchema=iFe;ne.StaticJsonRpcBatchProvider=x5e;ne.Status=E0;ne.ThirdwebSDK=dd;ne.TokenDropInitializer=qb;ne.TokenErc1155ContractSchema=$9t;ne.TokenErc20ContractSchema=z9t;ne.TokenErc721ContractSchema=G9t;ne.TokenInitializer=rm;ne.Transaction=Qe;ne.TransactionError=gee;ne.UploadError=gOe;ne.UserWallet=Cee;ne.VoteContractSchema=J9t;ne.VoteInitializer=nm;ne.WrongListingTypeError=kOe;ne.approveErc20Allowance=hFe;ne.assertEnabled=wr;ne.buildTransactionFunction=Pe;ne.checkVerificationStatus=JOe;ne.cleanCurrencyAddress=A5e;ne.computeCloneFactoryAddress=B7t;ne.computeDeploymentAddress=UOe;ne.computeDeploymentInfo=fd;ne.computeEOAForwarderAddress=IFe;ne.computeForwarderAddress=kce;ne.computeNativeTokenAddress=Fbn;ne.convertToReadableQuantity=Goe;ne.createSnapshot=l7t;ne.createTransactionBatches=AFe;ne.deployContractDeterministic=q7t;ne.deployContractDeterministicRaw=Lbn;ne.deployCreate2Factory=L7t;ne.deployWithThrowawayDeployer=W7t;ne.detectContractFeature=St;ne.detectFeatures=Ace;ne.encodeConstructorParamsForImplementation=CFe;ne.estimateGasForDeploy=U7t;ne.extractConstructorParams=v7t;ne.extractConstructorParamsFromAbi=Cce;ne.extractEventsFromAbi=T7t;ne.extractFunctionParamsFromAbi=_7t;ne.extractFunctions=w7t;ne.extractFunctionsFromAbi=_ee;ne.extractIPFSHashFromBytecode=I7t;ne.extractMinimalProxyImplementationAddress=E7t;ne.fetchAbiFromAddress=mf;ne.fetchAndCacheDeployMetadata=e6;ne.fetchAndCachePublishedContractURI=Sce;ne.fetchContractMetadata=jve;ne.fetchContractMetadataFromAddress=K1;ne.fetchCurrencyMetadata=kee;ne.fetchCurrencyValue=Mp;ne.fetchExtendedReleaseMetadata=wFe;ne.fetchPreDeployMetadata=Eee;ne.fetchRawPredeployMetadata=vFe;ne.fetchSnapshotEntryForAddress=Xve;ne.fetchSourceFilesFromMetadata=Rce;ne.fetchTokenMetadataForContract=Pce;ne.getAllDetectedFeatureNames=WOe;ne.getAllDetectedFeatures=Rbn;ne.getApprovedImplementation=d9t;ne.getBlock=hIt;ne.getBlockNumber=b2n;ne.getBlockWithTransactions=mIt;ne.getChainId=HFe;ne.getChainIdFromNetwork=Z9t;ne.getChainProvider=z1;ne.getContract=y2n;ne.getContractAddressByChainId=Joe;ne.getContractFromAbi=w5e;ne.getContractName=BFe;ne.getContractPublisherAddress=p9t;ne.getContractTypeForRemoteName=MFe;ne.getCreate2FactoryAddress=Ub;ne.getCreate2FactoryDeploymentInfo=hce;ne.getDefaultTrustedForwarders=Vve;ne.getDeployArguments=DFe;ne.getDeploymentInfo=pce;ne.getEncodedConstructorParamsForThirdwebContract=O7t;ne.getInitBytecodeWithSalt=ive;ne.getKeylessTxn=F7t;ne.getMultichainRegistryAddress=pOe;ne.getNativeTokenByChainId=rFe;ne.getProviderFromRpcUrl=T5e;ne.getRoleHash=dee;ne.getSaltHash=EFe;ne.getSignerAndProvider=bs;ne.getSupportedChains=l9t;ne.getThirdwebContractAddress=D7t;ne.getTrustedForwarders=t2n;ne.handleTokenApproval=bce;ne.hasERC20Allowance=tbn;ne.hasFunction=jc;ne.hasMatchingAbi=gFe;ne.includesErrorMessage=ece;ne.isChainConfig=Jve;ne.isContractDeployed=im;ne.isDowngradeVersion=u2n;ne.isEIP155Enforced=TFe;ne.isFeatureEnabled=P3;ne.isIncrementalVersion=Q7t;ne.isNativeToken=am;ne.isProvider=nFe;ne.isSigner=$ve;ne.isTokenApprovedForTransfer=H7t;ne.isVerifiedOnEtherscan=f2n;ne.isWinningBid=$bn;ne.mapOffer=Vbn;ne.matchesPrebuiltAbi=kbn;ne.normalizeAmount=rbn;ne.normalizePriceValue=iu;ne.parseRevertReason=Zve;ne.predictThirdwebContractAddress=N7t;ne.resolveAddress=We;ne.resolveContractUriFromAddress=Tee;ne.setErc20Allowance=Ob;ne.setSupportedChains=u9t;ne.toDisplayValue=ibn;ne.toEther=nbn;ne.toSemver=Aee;ne.toUnits=abn;ne.toWei=i7t;ne.uploadOrExtractURI=SFe;ne.validateNewListingParam=Gbn;ne.verify=NFe;ne.verifyThirdwebPrebuiltImplementation=Z7t;ne.watchBlock=g2n;ne.watchBlockNumber=jFe;ne.watchBlockWithTransactions=yIt;ne.watchTransactions=v2n});var wIt=E(Hb=>{"use strict";f();d();var See=Ro(),G1=fn(),rwe=Ms(),bIt=oa(),gIt=G1.z.object({}).catchall(G1.z.union([See.BigNumberTransformSchema,G1.z.unknown()])),w2n=G1.z.union([G1.z.array(gIt),gIt]).optional(),vIt=G1.z.object({supply:See.BigNumberSchema,metadata:rwe.CommonNFTOutput}),x2n=vIt.extend({owner:G1.z.string(),quantityOwned:See.BigNumberSchema}),_2n=G1.z.object({supply:See.BigNumberishSchema,metadata:rwe.CommonNFTInput}),T2n=G1.z.object({supply:See.BigNumberishSchema,metadata:rwe.NFTInputOrUriSchema}),E2n=G1.z.object({toAddress:See.AddressOrEnsSchema,amount:rwe.AmountSchema}),I2n=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});function C2n(r){if(r in bIt.GENERATED_ABI)return bIt.GENERATED_ABI[r]}Hb.EditionMetadataInputOrUriSchema=T2n;Hb.EditionMetadataInputSchema=_2n;Hb.EditionMetadataOutputSchema=vIt;Hb.EditionMetadataWithOwnerOutputSchema=x2n;Hb.OptionalPropertiesInput=w2n;Hb.ProposalState=I2n;Hb.TokenMintInputSchema=E2n;Hb.getCachedAbiForContract=C2n});var xIt=E(ie=>{"use strict";f();d();Object.defineProperty(ie,"__esModule",{value:!0});var A2n=Ms(),ce=Ro(),r6=wIt(),k2n=NNe(),S2n=YNe(),P2n=y5e(),R2n=XX(),M2n=Uoe(),zFe=HNe(),B2n=QNe(),Bce=joe();Fr();ke();fn();va();wa();xa();_a();Ta();Ea();Ia();Ca();Aa();ka();Sa();Pa();Ra();Ma();Ba();na();Da();Na();Oa();Fa();La();qa();Wa();Ua();Ha();ja();za();Ka();Ga();aa();Va();$a();Ya();Qa();Ja();Za();Xa();ei();ti();ri();ni();ai();ii();si();oi();ci();Ct();ui();dt();Pn();Xe();li();la();On();fi();dt();di();pi();Cn();sa();hi();mi();yi();bi();gi();vi();oa();wi();xi();globalThis.global=globalThis;ie.getRpcUrl=A2n.getRpcUrl;ie.ALL_ROLES=ce.ALL_ROLES;ie.APPROVED_IMPLEMENTATIONS=ce.APPROVED_IMPLEMENTATIONS;ie.AbiObjectSchema=ce.AbiObjectSchema;ie.AbiSchema=ce.AbiSchema;ie.AbiTypeSchema=ce.AbiTypeSchema;ie.AddressOrEnsSchema=ce.AddressOrEnsSchema;ie.AddressSchema=ce.AddressSchema;ie.AdminRoleMissingError=ce.AdminRoleMissingError;ie.AssetNotFoundError=ce.AssetNotFoundError;ie.AuctionAlreadyStartedError=ce.AuctionAlreadyStartedError;ie.AuctionHasNotEndedError=ce.AuctionHasNotEndedError;ie.BYOCContractMetadataSchema=ce.BYOCContractMetadataSchema;ie.BaseSignaturePayloadInput=ce.BaseSignaturePayloadInput;ie.BigNumberSchema=ce.BigNumberSchema;ie.BigNumberTransformSchema=ce.BigNumberTransformSchema;ie.BigNumberishSchema=ce.BigNumberishSchema;ie.COMMON_FACTORY=ce.COMMON_FACTORY;ie.CONTRACTS_MAP=ce.CONTRACTS_MAP;ie.CONTRACT_ADDRESSES=ce.CONTRACT_ADDRESSES;ie.CREATE2_FACTORY_BYTECODE=ce.CREATE2_FACTORY_BYTECODE;ie.CallOverrideSchema=ce.CallOverrideSchema;ie.ChainId=ce.ChainId;ie.ChainIdToAddressSchema=ce.ChainIdToAddressSchema;ie.ChainInfoInputSchema=ce.ChainInfoInputSchema;ie.ClaimConditionInputArray=ce.ClaimConditionInputArray;ie.ClaimConditionInputSchema=ce.ClaimConditionInputSchema;ie.ClaimConditionMetadataSchema=ce.ClaimConditionMetadataSchema;ie.ClaimConditionOutputSchema=ce.ClaimConditionOutputSchema;ie.ClaimEligibility=ce.ClaimEligibility;ie.CommonContractOutputSchema=ce.CommonContractOutputSchema;ie.CommonContractSchema=ce.CommonContractSchema;ie.CommonPlatformFeeSchema=ce.CommonPlatformFeeSchema;ie.CommonPrimarySaleSchema=ce.CommonPrimarySaleSchema;ie.CommonRoyaltySchema=ce.CommonRoyaltySchema;ie.CommonSymbolSchema=ce.CommonSymbolSchema;ie.CommonTrustedForwarderSchema=ce.CommonTrustedForwarderSchema;ie.CompilerMetadataFetchedSchema=ce.CompilerMetadataFetchedSchema;ie.ContractAppURI=ce.ContractAppURI;ie.ContractDeployer=ce.ContractDeployer;ie.ContractEncoder=ce.ContractEncoder;ie.ContractEvents=ce.ContractEvents;ie.ContractInfoSchema=ce.ContractInfoSchema;ie.ContractInterceptor=ce.ContractInterceptor;ie.ContractMetadata=ce.ContractMetadata;ie.ContractOwner=ce.ContractOwner;ie.ContractPlatformFee=ce.ContractPlatformFee;ie.ContractPrimarySale=ce.ContractPrimarySale;ie.ContractPublishedMetadata=ce.ContractPublishedMetadata;ie.ContractRoles=ce.ContractRoles;ie.ContractRoyalty=ce.ContractRoyalty;ie.CurrencySchema=ce.CurrencySchema;ie.CurrencyValueSchema=ce.CurrencyValueSchema;ie.CustomContractDeploy=ce.CustomContractDeploy;ie.CustomContractInput=ce.CustomContractInput;ie.CustomContractOutput=ce.CustomContractOutput;ie.CustomContractSchema=ce.CustomContractSchema;ie.DEPLOYER_ABI=ce.DEPLOYER_ABI;ie.DEPLOYER_BYTECODE=ce.DEPLOYER_BYTECODE;ie.DelayedReveal=ce.DelayedReveal;ie.DeployTransaction=ce.DeployTransaction;ie.DropClaimConditions=ce.DropClaimConditions;ie.DropErc1155ClaimConditions=ce.DropErc1155ClaimConditions;ie.DuplicateFileNameError=ce.DuplicateFileNameError;ie.DuplicateLeafsError=ce.DuplicateLeafsError;ie.EditionDropInitializer=ce.EditionDropInitializer;ie.EditionInitializer=ce.EditionInitializer;ie.EndDateSchema=ce.EndDateSchema;ie.Erc1155=ce.Erc1155;ie.Erc1155BatchMintable=ce.Erc1155BatchMintable;ie.Erc1155Burnable=ce.Erc1155Burnable;ie.Erc1155Enumerable=ce.Erc1155Enumerable;ie.Erc1155LazyMintable=ce.Erc1155LazyMintable;ie.Erc1155Mintable=ce.Erc1155Mintable;ie.Erc1155SignatureMintable=ce.Erc1155SignatureMintable;ie.Erc20=ce.Erc20;ie.Erc20BatchMintable=ce.Erc20BatchMintable;ie.Erc20Burnable=ce.Erc20Burnable;ie.Erc20Mintable=ce.Erc20Mintable;ie.Erc20SignatureMintable=ce.Erc20SignatureMintable;ie.Erc721=ce.Erc721;ie.Erc721BatchMintable=ce.Erc721BatchMintable;ie.Erc721Burnable=ce.Erc721Burnable;ie.Erc721ClaimableWithConditions=ce.Erc721ClaimableWithConditions;ie.Erc721Enumerable=ce.Erc721Enumerable;ie.Erc721LazyMintable=ce.Erc721LazyMintable;ie.Erc721Mintable=ce.Erc721Mintable;ie.Erc721Supply=ce.Erc721Supply;ie.Erc721WithQuantitySignatureMintable=ce.Erc721WithQuantitySignatureMintable;ie.EventType=ce.EventType;ie.ExtensionNotImplementedError=ce.ExtensionNotImplementedError;ie.ExtraPublishMetadataSchemaInput=ce.ExtraPublishMetadataSchemaInput;ie.ExtraPublishMetadataSchemaOutput=ce.ExtraPublishMetadataSchemaOutput;ie.FactoryDeploymentSchema=ce.FactoryDeploymentSchema;ie.FetchError=ce.FetchError;ie.FileNameMissingError=ce.FileNameMissingError;ie.FullPublishMetadataSchemaInput=ce.FullPublishMetadataSchemaInput;ie.FullPublishMetadataSchemaOutput=ce.FullPublishMetadataSchemaOutput;ie.FunctionDeprecatedError=ce.FunctionDeprecatedError;ie.GAS_LIMIT_FOR_DEPLOYER=ce.GAS_LIMIT_FOR_DEPLOYER;ie.GasCostEstimator=ce.GasCostEstimator;ie.GenericRequest=ce.GenericRequest;ie.InterfaceId_IERC1155=ce.InterfaceId_IERC1155;ie.InterfaceId_IERC721=ce.InterfaceId_IERC721;ie.InvalidAddressError=ce.InvalidAddressError;ie.LINK_TOKEN_ADDRESS=ce.LINK_TOKEN_ADDRESS;ie.LOCAL_NODE_PKEY=ce.LOCAL_NODE_PKEY;ie.ListingNotFoundError=ce.ListingNotFoundError;ie.MarketplaceInitializer=ce.MarketplaceInitializer;ie.MarketplaceV3DirectListings=ce.MarketplaceV3DirectListings;ie.MarketplaceV3EnglishAuctions=ce.MarketplaceV3EnglishAuctions;ie.MarketplaceV3Initializer=ce.MarketplaceV3Initializer;ie.MarketplaceV3Offers=ce.MarketplaceV3Offers;ie.MerkleSchema=ce.MerkleSchema;ie.MintRequest1155=ce.MintRequest1155;ie.MintRequest20=ce.MintRequest20;ie.MintRequest721=ce.MintRequest721;ie.MintRequest721withQuantity=ce.MintRequest721withQuantity;ie.MissingOwnerRoleError=ce.MissingOwnerRoleError;ie.MissingRoleError=ce.MissingRoleError;ie.MultiwrapInitializer=ce.MultiwrapInitializer;ie.NATIVE_TOKENS=ce.NATIVE_TOKENS;ie.NATIVE_TOKEN_ADDRESS=ce.NATIVE_TOKEN_ADDRESS;ie.NFTCollectionInitializer=ce.NFTCollectionInitializer;ie.NFTDropInitializer=ce.NFTDropInitializer;ie.NotEnoughTokensError=ce.NotEnoughTokensError;ie.NotFoundError=ce.NotFoundError;ie.OZ_DEFENDER_FORWARDER_ADDRESS=ce.OZ_DEFENDER_FORWARDER_ADDRESS;ie.PREBUILT_CONTRACTS_APPURI_MAP=ce.PREBUILT_CONTRACTS_APPURI_MAP;ie.PREBUILT_CONTRACTS_MAP=ce.PREBUILT_CONTRACTS_MAP;ie.PackInitializer=ce.PackInitializer;ie.PartialClaimConditionInputSchema=ce.PartialClaimConditionInputSchema;ie.PreDeployMetadata=ce.PreDeployMetadata;ie.PreDeployMetadataFetchedSchema=ce.PreDeployMetadataFetchedSchema;ie.ProfileSchemaInput=ce.ProfileSchemaInput;ie.ProfileSchemaOutput=ce.ProfileSchemaOutput;ie.PublishedContractSchema=ce.PublishedContractSchema;ie.QuantityAboveLimitError=ce.QuantityAboveLimitError;ie.RawDateSchema=ce.RawDateSchema;ie.RestrictedTransferError=ce.RestrictedTransferError;ie.SIGNATURE=ce.SIGNATURE;ie.SUPPORTED_CHAIN_IDS=ce.SUPPORTED_CHAIN_IDS;ie.Signature1155PayloadInput=ce.Signature1155PayloadInput;ie.Signature1155PayloadInputWithTokenId=ce.Signature1155PayloadInputWithTokenId;ie.Signature1155PayloadOutput=ce.Signature1155PayloadOutput;ie.Signature20PayloadInput=ce.Signature20PayloadInput;ie.Signature20PayloadOutput=ce.Signature20PayloadOutput;ie.Signature721PayloadInput=ce.Signature721PayloadInput;ie.Signature721PayloadOutput=ce.Signature721PayloadOutput;ie.Signature721WithQuantityInput=ce.Signature721WithQuantityInput;ie.Signature721WithQuantityOutput=ce.Signature721WithQuantityOutput;ie.SignatureDropInitializer=ce.SignatureDropInitializer;ie.SnapshotEntryInput=ce.SnapshotEntryInput;ie.SnapshotEntryWithProofSchema=ce.SnapshotEntryWithProofSchema;ie.SnapshotInfoSchema=ce.SnapshotInfoSchema;ie.SnapshotInputSchema=ce.SnapshotInputSchema;ie.SnapshotSchema=ce.SnapshotSchema;ie.SplitInitializer=ce.SplitInitializer;ie.StartDateSchema=ce.StartDateSchema;ie.StaticJsonRpcBatchProvider=ce.StaticJsonRpcBatchProvider;ie.Status=ce.Status;ie.ThirdwebSDK=ce.ThirdwebSDK;ie.TokenDropInitializer=ce.TokenDropInitializer;ie.TokenInitializer=ce.TokenInitializer;ie.Transaction=ce.Transaction;ie.TransactionError=ce.TransactionError;ie.UploadError=ce.UploadError;ie.UserWallet=ce.UserWallet;ie.VoteInitializer=ce.VoteInitializer;ie.WrongListingTypeError=ce.WrongListingTypeError;ie.approveErc20Allowance=ce.approveErc20Allowance;ie.assertEnabled=ce.assertEnabled;ie.checkVerificationStatus=ce.checkVerificationStatus;ie.cleanCurrencyAddress=ce.cleanCurrencyAddress;ie.computeCloneFactoryAddress=ce.computeCloneFactoryAddress;ie.computeDeploymentAddress=ce.computeDeploymentAddress;ie.computeDeploymentInfo=ce.computeDeploymentInfo;ie.computeEOAForwarderAddress=ce.computeEOAForwarderAddress;ie.computeForwarderAddress=ce.computeForwarderAddress;ie.computeNativeTokenAddress=ce.computeNativeTokenAddress;ie.convertToReadableQuantity=ce.convertToReadableQuantity;ie.createSnapshot=ce.createSnapshot;ie.createTransactionBatches=ce.createTransactionBatches;ie.deployContractDeterministic=ce.deployContractDeterministic;ie.deployContractDeterministicRaw=ce.deployContractDeterministicRaw;ie.deployCreate2Factory=ce.deployCreate2Factory;ie.deployWithThrowawayDeployer=ce.deployWithThrowawayDeployer;ie.detectContractFeature=ce.detectContractFeature;ie.detectFeatures=ce.detectFeatures;ie.encodeConstructorParamsForImplementation=ce.encodeConstructorParamsForImplementation;ie.estimateGasForDeploy=ce.estimateGasForDeploy;ie.extractConstructorParams=ce.extractConstructorParams;ie.extractConstructorParamsFromAbi=ce.extractConstructorParamsFromAbi;ie.extractEventsFromAbi=ce.extractEventsFromAbi;ie.extractFunctionParamsFromAbi=ce.extractFunctionParamsFromAbi;ie.extractFunctions=ce.extractFunctions;ie.extractFunctionsFromAbi=ce.extractFunctionsFromAbi;ie.extractIPFSHashFromBytecode=ce.extractIPFSHashFromBytecode;ie.extractMinimalProxyImplementationAddress=ce.extractMinimalProxyImplementationAddress;ie.fetchAbiFromAddress=ce.fetchAbiFromAddress;ie.fetchAndCacheDeployMetadata=ce.fetchAndCacheDeployMetadata;ie.fetchAndCachePublishedContractURI=ce.fetchAndCachePublishedContractURI;ie.fetchContractMetadata=ce.fetchContractMetadata;ie.fetchContractMetadataFromAddress=ce.fetchContractMetadataFromAddress;ie.fetchCurrencyMetadata=ce.fetchCurrencyMetadata;ie.fetchCurrencyValue=ce.fetchCurrencyValue;ie.fetchExtendedReleaseMetadata=ce.fetchExtendedReleaseMetadata;ie.fetchPreDeployMetadata=ce.fetchPreDeployMetadata;ie.fetchRawPredeployMetadata=ce.fetchRawPredeployMetadata;ie.fetchSnapshotEntryForAddress=ce.fetchSnapshotEntryForAddress;ie.fetchSourceFilesFromMetadata=ce.fetchSourceFilesFromMetadata;ie.getAllDetectedFeatureNames=ce.getAllDetectedFeatureNames;ie.getAllDetectedFeatures=ce.getAllDetectedFeatures;ie.getApprovedImplementation=ce.getApprovedImplementation;ie.getBlock=ce.getBlock;ie.getBlockNumber=ce.getBlockNumber;ie.getBlockWithTransactions=ce.getBlockWithTransactions;ie.getChainId=ce.getChainId;ie.getChainIdFromNetwork=ce.getChainIdFromNetwork;ie.getChainProvider=ce.getChainProvider;ie.getContract=ce.getContract;ie.getContractAddressByChainId=ce.getContractAddressByChainId;ie.getContractFromAbi=ce.getContractFromAbi;ie.getContractName=ce.getContractName;ie.getContractPublisherAddress=ce.getContractPublisherAddress;ie.getContractTypeForRemoteName=ce.getContractTypeForRemoteName;ie.getCreate2FactoryAddress=ce.getCreate2FactoryAddress;ie.getCreate2FactoryDeploymentInfo=ce.getCreate2FactoryDeploymentInfo;ie.getDefaultTrustedForwarders=ce.getDefaultTrustedForwarders;ie.getDeployArguments=ce.getDeployArguments;ie.getDeploymentInfo=ce.getDeploymentInfo;ie.getEncodedConstructorParamsForThirdwebContract=ce.getEncodedConstructorParamsForThirdwebContract;ie.getInitBytecodeWithSalt=ce.getInitBytecodeWithSalt;ie.getKeylessTxn=ce.getKeylessTxn;ie.getMultichainRegistryAddress=ce.getMultichainRegistryAddress;ie.getNativeTokenByChainId=ce.getNativeTokenByChainId;ie.getProviderFromRpcUrl=ce.getProviderFromRpcUrl;ie.getRoleHash=ce.getRoleHash;ie.getSaltHash=ce.getSaltHash;ie.getSignerAndProvider=ce.getSignerAndProvider;ie.getSupportedChains=ce.getSupportedChains;ie.getThirdwebContractAddress=ce.getThirdwebContractAddress;ie.getTrustedForwarders=ce.getTrustedForwarders;ie.hasERC20Allowance=ce.hasERC20Allowance;ie.hasFunction=ce.hasFunction;ie.hasMatchingAbi=ce.hasMatchingAbi;ie.includesErrorMessage=ce.includesErrorMessage;ie.isChainConfig=ce.isChainConfig;ie.isContractDeployed=ce.isContractDeployed;ie.isDowngradeVersion=ce.isDowngradeVersion;ie.isEIP155Enforced=ce.isEIP155Enforced;ie.isFeatureEnabled=ce.isFeatureEnabled;ie.isIncrementalVersion=ce.isIncrementalVersion;ie.isNativeToken=ce.isNativeToken;ie.isProvider=ce.isProvider;ie.isSigner=ce.isSigner;ie.isVerifiedOnEtherscan=ce.isVerifiedOnEtherscan;ie.matchesPrebuiltAbi=ce.matchesPrebuiltAbi;ie.normalizeAmount=ce.normalizeAmount;ie.normalizePriceValue=ce.normalizePriceValue;ie.parseRevertReason=ce.parseRevertReason;ie.predictThirdwebContractAddress=ce.predictThirdwebContractAddress;ie.resolveContractUriFromAddress=ce.resolveContractUriFromAddress;ie.setErc20Allowance=ce.setErc20Allowance;ie.setSupportedChains=ce.setSupportedChains;ie.toDisplayValue=ce.toDisplayValue;ie.toEther=ce.toEther;ie.toSemver=ce.toSemver;ie.toUnits=ce.toUnits;ie.toWei=ce.toWei;ie.verify=ce.verify;ie.verifyThirdwebPrebuiltImplementation=ce.verifyThirdwebPrebuiltImplementation;ie.watchBlock=ce.watchBlock;ie.watchBlockNumber=ce.watchBlockNumber;ie.watchBlockWithTransactions=ce.watchBlockWithTransactions;ie.watchTransactions=ce.watchTransactions;ie.EditionMetadataInputOrUriSchema=r6.EditionMetadataInputOrUriSchema;ie.EditionMetadataInputSchema=r6.EditionMetadataInputSchema;ie.EditionMetadataOutputSchema=r6.EditionMetadataOutputSchema;ie.EditionMetadataWithOwnerOutputSchema=r6.EditionMetadataWithOwnerOutputSchema;ie.OptionalPropertiesInput=r6.OptionalPropertiesInput;ie.ProposalState=r6.ProposalState;ie.TokenMintInputSchema=r6.TokenMintInputSchema;ie.getCachedAbiForContract=r6.getCachedAbiForContract;ie.DropErc1155History=k2n.DropErc1155History;ie.TokenERC20History=S2n.TokenERC20History;ie.StandardErc20=P2n.StandardErc20;ie.StandardErc721=R2n.StandardErc721;ie.StandardErc1155=M2n.StandardErc1155;ie.ListingType=zFe.ListingType;ie.MarketplaceAuction=zFe.MarketplaceAuction;ie.MarketplaceDirect=zFe.MarketplaceDirect;ie.VoteType=B2n.VoteType;ie.PAPER_API_URL=Bce.PAPER_API_URL;ie.PaperCheckout=Bce.PaperCheckout;ie.createCheckoutLinkIntent=Bce.createCheckoutLinkIntent;ie.fetchRegisteredCheckoutId=Bce.fetchRegisteredCheckoutId;ie.parseChainIdToPaperChain=Bce.parseChainIdToPaperChain});var V1=E((iWa,KFe)=>{"use strict";f();d();g.env.NODE_ENV==="production"?KFe.exports=gTt():KFe.exports=xIt()});var ao=E(_It=>{"use strict";f();d();function D2n(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}_It._checkPrivateRedeclaration=D2n});var Zu=E(GFe=>{"use strict";f();d();var N2n=ao();function O2n(r,e){N2n._checkPrivateRedeclaration(r,e),e.add(r)}function F2n(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}GFe._classPrivateMethodGet=F2n;GFe._classPrivateMethodInitSpec=O2n});var Oi=E(TIt=>{"use strict";f();d();function L2n(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function q2n(r){var e=L2n(r,"string");return typeof e=="symbol"?e:String(e)}function W2n(r,e,t){return e=q2n(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}TIt._defineProperty=W2n});var yf=E(nwe=>{"use strict";f();d();Object.defineProperty(nwe,"__esModule",{value:!0});var EIt=Oi(),Pee=ke(),U2n=Xe();function H2n(r){return r&&r.__esModule?r:{default:r}}var j2n=H2n(U2n);function z2n(r){return`https://${r}.rpc.thirdweb.com`}var K2n=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],G2n="0x1626ba7e";async function IIt(r,e,t,n){let a=new Pee.providers.JsonRpcProvider(z2n(n)),i=new Pee.Contract(t,K2n,a),s=Pee.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===G2n}catch{return!1}}var VFe=class extends j2n.default{constructor(){super(...arguments),EIt._defineProperty(this,"type","evm"),EIt._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=Pee.utils.hashMessage(e),s=Pee.utils.arrayify(i);if(Pee.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await IIt(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};nwe.AbstractWallet=VFe;nwe.checkContractWalletSignature=IIt});var Dp=E(Nce=>{"use strict";f();d();var Dce=Zu(),N3=Oi(),V2n=yf(),$2n=Ct(),$Fe="__TW__",awe=class{constructor(e){N3._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${$Fe}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${$Fe}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${$Fe}/${this.name}/${e}`),t()})}};function AIt(r){return new awe(r)}var kIt={name:"thirdweb powered dApp",url:"https://thirdweb.com",description:"thirdweb powered dApp",logoUrl:"https://thirdweb.com/favicon.ico",isDarkMode:!0},YFe=new WeakSet,SIt=new WeakSet,iwe=class extends V2n.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),Dce._classPrivateMethodInitSpec(this,SIt),Dce._classPrivateMethodInitSpec(this,YFe),N3._defineProperty(this,"walletId",void 0),N3._defineProperty(this,"walletStorage",void 0),N3._defineProperty(this,"chains",void 0),N3._defineProperty(this,"dappMetadata",void 0),N3._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t?.chains||$2n.defaultChains,this.dappMetadata=t?.dappMetadata||kIt,this.walletStorage=t?.walletStorage||AIt(this.walletId)}async autoConnect(e){let t=e?{...e,chainId:void 0}:void 0;return Dce._classPrivateMethodGet(this,YFe,CIt).call(this,!0,t)}async connect(e){let t=await Dce._classPrivateMethodGet(this,YFe,CIt).call(this,!1,e);if(!t)throw new Error("Failed to connect to the wallet.");return t}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),this.emit("disconnect"),e.removeAllListeners())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function CIt(r,e){let t=await this.getConnector();if(Dce._classPrivateMethodGet(this,SIt,Y2n).call(this,t),await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),e?.chainId&&await t.switchChain(e?.chainId),this.emit("connect",{address:i,chainId:await this.getChainId()}),i}if(r)throw new Error("Failed to auto connect to the wallet.");return await t.connect(e)}async function Y2n(r){r.on("connect",e=>{this.emit("connect",{address:e.account,chainId:e.chain?.id})}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id})}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}N3._defineProperty(iwe,"meta",void 0);Nce.AbstractClientWallet=iwe;Nce.AsyncLocalStorage=awe;Nce.DEFAULT_DAPP_META=kIt;Nce.createAsyncLocalStorage=AIt});var RIt=E(PIt=>{"use strict";f();d();var QFe=class{async getItem(){let e=await navigator.credentials.get({password:!0,unmediated:!0});return e&&"password"in e?e.password:null}async setItem(e,t){let{address:n}=JSON.parse(t),a={id:n,password:t},i=await navigator.credentials.create({password:a});if(!i)throw new Error("Credential not created");await navigator.credentials.store(i)}async removeItem(){await navigator.credentials.get({password:!0,unmediated:!0})&&await navigator.credentials.preventSilentAccess()}};PIt.CredentialsStorage=QFe});var n6=E(MIt=>{"use strict";f();d();var Oce=Oi(),Q2n=Ct(),J2n=Xe();function Z2n(r){return r&&r.__esModule?r:{default:r}}var X2n=Z2n(J2n),JFe=class extends X2n.default{constructor(e){let{chains:t=Q2n.defaultChains,options:n}=e;super(),Oce._defineProperty(this,"id",void 0),Oce._defineProperty(this,"name",void 0),Oce._defineProperty(this,"chains",void 0),Oce._defineProperty(this,"options",void 0),Oce._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}};MIt.Connector=JFe});var O3=E(a6=>{"use strict";f();d();var sm=Oi(),swe=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),sm._defineProperty(this,"cause",void 0),sm._defineProperty(this,"code",void 0),sm._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},Fce=class extends swe{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},ZFe=class extends Error{constructor(){super(...arguments),sm._defineProperty(this,"name","AddChainError"),sm._defineProperty(this,"message","Error adding chain")}},XFe=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),sm._defineProperty(this,"name","ChainNotConfigured")}},eLe=class extends Error{constructor(){super(...arguments),sm._defineProperty(this,"name","ConnectorNotFoundError"),sm._defineProperty(this,"message","Connector not found")}},tLe=class extends swe{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),sm._defineProperty(this,"name","ResourceUnavailable")}},rLe=class extends Fce{constructor(e){super("Error switching chain",{cause:e,code:4902}),sm._defineProperty(this,"name","SwitchChainError")}},nLe=class extends Fce{constructor(e){super("User rejected request",{cause:e,code:4001}),sm._defineProperty(this,"name","UserRejectedRequestError")}};a6.AddChainError=ZFe;a6.ChainNotConfiguredError=XFe;a6.ConnectorNotFoundError=eLe;a6.ProviderRpcError=Fce;a6.ResourceUnavailableError=tLe;a6.SwitchChainError=rLe;a6.UserRejectedRequestError=nLe});var jb=E(BIt=>{"use strict";f();d();function egn(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}BIt.normalizeChainId=egn});var md=E(iLe=>{"use strict";f();d();var tgn=Oi(),rgn=Xe();function ngn(r){return r&&r.__esModule?r:{default:r}}var agn=ngn(rgn),owe=class extends agn.default{},aLe=class extends owe{constructor(e){super(),tgn._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect(e)).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};iLe.TWConnector=owe;iLe.WagmiAdapter=aLe});var Lce=E(DIt=>{"use strict";f();d();function ign(r){return typeof r<"u"&&"ethereum"in r}DIt.assertWindowEthereum=ign});var bf=E(cwe=>{"use strict";f();d();var sgn=ao();function ogn(r,e,t){sgn._checkPrivateRedeclaration(r,e),e.set(r,t)}function cgn(r,e){return e.get?e.get.call(r):e.value}function NIt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function ugn(r,e){var t=NIt(r,e,"get");return cgn(r,t)}function lgn(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function fgn(r,e,t){var n=NIt(r,e,"set");return lgn(r,n,t),t}cwe._classPrivateFieldGet=ugn;cwe._classPrivateFieldInitSpec=ogn;cwe._classPrivateFieldSet=fgn});var uwe=E((zWa,FIt)=>{"use strict";f();d();var sLe=Object.defineProperty,dgn=Object.getOwnPropertyDescriptor,pgn=Object.getOwnPropertyNames,hgn=Object.prototype.hasOwnProperty,mgn=(r,e)=>{for(var t in e)sLe(r,t,{get:e[t],enumerable:!0})},ygn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of pgn(e))!hgn.call(r,a)&&a!==t&&sLe(r,a,{get:()=>e[a],enumerable:!(n=dgn(e,a))||n.enumerable});return r},bgn=r=>ygn(sLe({},"__esModule",{value:!0}),r),OIt={};mgn(OIt,{ChainToPublicRpc:()=>ggn,getPaperOriginUrl:()=>_gn});FIt.exports=bgn(OIt);var ggn={Ethereum:"https://rpc.ankr.com/eth",Goerli:"https://eth-goerli.g.alchemy.com/v2/demo",Mumbai:"https://rpc-mumbai.maticvigil.com",Polygon:"https://rpc-mainnet.maticvigil.com",Avalanche:"https://api.avax.network/ext/bc/C/rpc"},vgn=()=>typeof window<"u"&&window.localStorage.getItem("IS_PAPER_DEV")==="true",wgn=()=>!!(typeof window<"u"&&window.location.origin.includes("zeet-paper.zeet.app")),xgn=()=>typeof window<"u"&&window.location.origin.includes("paper.xyz"),_gn=()=>{var r,e;return vgn()?(r=window.localStorage.getItem("PAPER_DEV_URL"))!=null?r:"http://localhost:3000":wgn()?(e=g?.env)!=null&&e.ZEET_DEPLOYMENT_URL?`https://${g.env.ZEET_DEPLOYMENT_URL}`:typeof window<"u"?window.location.origin:"https://withpaper.com":xgn()?window.location.origin:"https://withpaper.com"}});var Wce=E((VWa,JIt)=>{"use strict";f();d();var mwe=Object.defineProperty,Tgn=Object.defineProperties,Egn=Object.getOwnPropertyDescriptor,Ign=Object.getOwnPropertyDescriptors,Cgn=Object.getOwnPropertyNames,LIt=Object.getOwnPropertySymbols,jIt=Object.prototype.hasOwnProperty,Agn=Object.prototype.propertyIsEnumerable,qIt=(r,e,t)=>e in r?mwe(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,qce=(r,e)=>{for(var t in e||(e={}))jIt.call(e,t)&&qIt(r,t,e[t]);if(LIt)for(var t of LIt(e))Agn.call(e,t)&&qIt(r,t,e[t]);return r},zIt=(r,e)=>Tgn(r,Ign(e)),kgn=(r,e)=>{for(var t in e)mwe(r,t,{get:e[t],enumerable:!0})},Sgn=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Cgn(e))!jIt.call(r,a)&&a!==t&&mwe(r,a,{get:()=>e[a],enumerable:!(n=Egn(e,a))||n.enumerable});return r},Pgn=r=>Sgn(mwe({},"__esModule",{value:!0}),r),An=(r,e,t)=>new Promise((n,a)=>{var i=c=>{try{o(t.next(c))}catch(u){a(u)}},s=c=>{try{o(t.throw(c))}catch(u){a(u)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);o((t=t.apply(r,e)).next())}),KIt={};kgn(KIt,{AUTH_TOKEN_LOCAL_STORAGE_NAME:()=>dwe,AuthProvider:()=>VIt,DEVICE_SHARE_LOCAL_STORAGE_NAME:()=>pwe,DEVICE_SHARE_LOCAL_STORAGE_NAME_DEPRECATED:()=>Mgn,EMBEDDED_WALLET_PATH:()=>hwe,PaperEmbeddedWalletSdk:()=>Kgn,UserStatus:()=>$It,UserWalletStatus:()=>YIt,WALLET_USER_ID_LOCAL_STORAGE_NAME:()=>fwe});JIt.exports=Pgn(KIt);var hwe="/sdk/2022-08-12/embedded-wallet",fwe=r=>`paperEwsWalletUserId-${r}`,Rgn="walletToken",dwe=r=>`${Rgn}-${r}`,GIt="a",pwe=(r,e)=>`${GIt}-${r}-${e}`,Mgn=r=>`${GIt}-${r}`,VIt=(r=>(r.PAPER_EMAIL_OTP="PaperEmailOTP",r.GOOGLE="Google",r.AUTH0="Auth0",r.CUSTOM_JWT="CustomJWT",r))(VIt||{}),$It=(r=>(r.LOGGED_OUT="Logged Out",r.LOGGED_IN_WALLET_INITIALIZED="Logged In, Wallet Initialized",r))($It||{}),YIt=(r=>(r.LOGGED_OUT="Logged Out",r.LOGGED_IN_WALLET_UNINITIALIZED="Logged In, Wallet Uninitialized",r.LOGGED_IN_NEW_DEVICE="Logged In, New Device",r.LOGGED_IN_WALLET_INITIALIZED="Logged In, Wallet Initialized",r))(YIt||{}),Bgn=uwe(),WIt=new Map,cLe=class{constructor({clientId:r}){this.isSupported=typeof window<"u"&&!!window.localStorage,this.clientId=r}getItem(r){return An(this,null,function*(){var e;return this.isSupported?window.localStorage.getItem(r):(e=WIt.get(r))!=null?e:null})}setItem(r,e){return An(this,null,function*(){if(this.isSupported)return window.localStorage.setItem(r,e);WIt.set(r,e)})}removeItem(r){return An(this,null,function*(){let e=yield this.getItem(r);return this.isSupported&&e?(window.localStorage.removeItem(r),!0):!1})}saveAuthCookie(r){return An(this,null,function*(){yield this.setItem(dwe(this.clientId),r)})}getAuthCookie(){return An(this,null,function*(){return this.getItem(dwe(this.clientId))})}removeAuthCookie(){return An(this,null,function*(){return this.removeItem(dwe(this.clientId))})}saveDeviceShare(r,e){return An(this,null,function*(){yield this.saveWalletUserId(e),yield this.setItem(pwe(this.clientId,e),r)})}getDeviceShare(){return An(this,null,function*(){let r=yield this.getWalletUserId();return r?this.getItem(pwe(this.clientId,r)):null})}removeDeviceShare(){return An(this,null,function*(){let r=yield this.getWalletUserId();return r?this.removeItem(pwe(this.clientId,r)):!1})}getWalletUserId(){return An(this,null,function*(){return this.getItem(fwe(this.clientId))})}saveWalletUserId(r){return An(this,null,function*(){yield this.setItem(fwe(this.clientId),r)})}removeWalletUserId(){return An(this,null,function*(){return this.removeItem(fwe(this.clientId))})}},UIt=uwe();function lwe(r){return new Promise(e=>{setTimeout(e,r*1e3)})}var Dgn={height:"100%",width:"100%",border:"none",backgroundColor:"transparent",colorScheme:"light",position:"fixed",top:"0px",right:"0px",zIndex:"2147483646",display:"none"},oLe=new Map,Ngn=class{constructor({link:r,iframeId:e,container:t=document.body,iframeStyles:n,onIframeInitialize:a}){this.POLLING_INTERVAL_SECONDS=1.4,this.POST_LOAD_BUFFER_SECONDS=1;let i=document.getElementById(e),s=new URL(r),o="0.1.0";if(!o)throw new Error("Missing SDK_VERSION env var");if(s.searchParams.set("sdkVersion",o),!i||i.src!=s.href){if(!i){i=document.createElement("iframe");let c=qce(qce({},Dgn),n);Object.assign(i.style,c),i.setAttribute("id",e),t.appendChild(i)}i.src=s.href,i.setAttribute("data-version",o),i.onload=this.onIframeLoadHandler(i,this.POST_LOAD_BUFFER_SECONDS,a)}this.iframe=i}onIframeLoadedInitVariables(){return An(this,null,function*(){return{}})}onIframeLoadHandler(r,e,t){return()=>An(this,null,function*(){yield new Promise((n,a)=>An(this,null,function*(){var i;let s=new MessageChannel;s.port1.onmessage=c=>{let{data:u}=c;return s.port1.close(),u.success?(oLe.set(r.src,!0),t&&t(),n(!0)):a(new Error(u.error))},yield lwe(e);let o="initIframe";(i=r?.contentWindow)==null||i.postMessage({eventType:o,data:yield this.onIframeLoadedInitVariables()},`${(0,UIt.getPaperOriginUrl)()}${hwe}`,[s.port2])}))})}call(r){return An(this,arguments,function*({procedureName:e,params:t,showIframe:n=!1}){for(;!oLe.get(this.iframe.src);)yield lwe(this.POLLING_INTERVAL_SECONDS);return n&&(this.iframe.style.display="block",yield lwe(.005)),new Promise((a,i)=>{var s;let o=new MessageChannel;o.port1.onmessage=c=>An(this,null,function*(){let{data:u}=c;o.port1.close(),n&&(yield lwe(.1),this.iframe.style.display="none"),u.success?a(u.data):i(new Error(u.error))}),(s=this.iframe.contentWindow)==null||s.postMessage({eventType:e,data:t},`${(0,UIt.getPaperOriginUrl)()}${hwe}`,[o.port2])})})}destroy(){oLe.delete(this.iframe.src)}},Ogn=class extends Ngn{constructor({clientId:r,customizationOptions:e}){super({iframeId:Lgn,link:Fgn({clientId:r,path:hwe,queryParams:e}).href,container:document.body}),this.clientId=r}onIframeLoadedInitVariables(){return An(this,null,function*(){let r=new cLe({clientId:this.clientId});return{authCookie:yield r.getAuthCookie(),deviceShareStored:yield r.getDeviceShare(),walletUserId:yield r.getWalletUserId(),clientId:this.clientId}})}};function Fgn({clientId:r,path:e,queryParams:t}){var n;let a=new URL(e,(0,Bgn.getPaperOriginUrl)());if(t)for(let i of Object.keys(t))a.searchParams.set(i,((n=t[i])==null?void 0:n.toString())||"");return a.searchParams.set("clientId",r),a}var Lgn="paper-embedded-wallet-iframe",qgn=class{constructor({clientId:r,querier:e,onAuthSuccess:t}){this.clientId=r,this.AuthQuerier=e,this.localStorage=new cLe({clientId:r}),this.onAuthSuccess=t}preLogin(){return An(this,null,function*(){yield this.logout()})}postLogin(r){return An(this,arguments,function*({storedToken:e,walletDetails:t}){return e.shouldStoreCookieString&&(yield this.localStorage.saveAuthCookie(e.cookieString)),yield this.onAuthSuccess({storedToken:e,walletDetails:t})})}loginWithJwtAuth(r){return An(this,arguments,function*({token:e,authProvider:t,recoveryCode:n}){yield this.preLogin();let a=yield this.AuthQuerier.call({procedureName:"loginWithJwtAuthCallback",params:{token:e,authProvider:t,recoveryCode:n}});return this.postLogin(a)})}loginWithPaperModal(){return An(this,null,function*(){yield this.preLogin();let r=yield this.AuthQuerier.call({procedureName:"loginWithPaperModal",params:void 0,showIframe:!0});return this.postLogin(r)})}loginWithPaperEmailOtp(r){return An(this,arguments,function*({email:e,recoveryCode:t}){yield this.preLogin();let n=yield this.AuthQuerier.call({procedureName:"loginWithPaperModal",params:{email:e,recoveryCode:t},showIframe:!0});return this.postLogin(n)})}sendPaperEmailLoginOtp(r){return An(this,arguments,function*({email:e}){yield this.preLogin();let{isNewUser:t,isNewDevice:n}=yield this.AuthQuerier.call({procedureName:"sendPaperEmailLoginOtp",params:{email:e}});return{isNewUser:t,isNewDevice:n}})}verifyPaperEmailLoginOtp(r){return An(this,arguments,function*({email:e,otp:t,recoveryCode:n}){let a=yield this.AuthQuerier.call({procedureName:"verifyPaperEmailLoginOtp",params:{email:e,otp:t,recoveryCode:n}});return this.postLogin(a)})}logout(){return An(this,null,function*(){let{success:r}=yield this.AuthQuerier.call({procedureName:"logout",params:void 0}),e=yield this.localStorage.removeAuthCookie(),t=yield this.localStorage.removeWalletUserId();return{success:r||e||t}})}},Wgn=ose(),Ugn=uwe(),HIt=class{constructor({chain:r,clientId:e,querier:t}){this.chain=r,this.clientId=e,this.gaslessTransactionQuerier=t}callContract(r){return An(this,arguments,function*({contractAddress:e,methodArgs:t,methodInterface:n}){return yield this.gaslessTransactionQuerier.call({procedureName:"callContract",params:{chain:this.chain,contractAddress:e,method:{args:t,stub:n}}})})}},Hgn=Hy(),jgn=ca(),QIt=class extends Hgn.Signer{constructor({provider:r,clientId:e,querier:t}){super(),this.DEFAULT_ETHEREUM_CHAIN_ID=1,this.clientId=e,this.querier=t,(0,jgn.defineReadOnly)(this,"provider",r)}getAddress(){return An(this,null,function*(){let{address:r}=yield this.querier.call({procedureName:"getAddress",params:void 0});return r})}signMessage(r){return An(this,null,function*(){var e,t,n;let{signedMessage:a}=yield this.querier.call({procedureName:"signMessage",params:{message:r,chainId:(n=(t=yield(e=this.provider)==null?void 0:e.getNetwork())==null?void 0:t.chainId)!=null?n:this.DEFAULT_ETHEREUM_CHAIN_ID}});return a})}signTransaction(r){return An(this,null,function*(){var e,t,n;let{signedTransaction:a}=yield this.querier.call({procedureName:"signTransaction",params:{transaction:r,chainId:(n=(t=yield(e=this.provider)==null?void 0:e.getNetwork())==null?void 0:t.chainId)!=null?n:this.DEFAULT_ETHEREUM_CHAIN_ID}});return a})}_signTypedData(r,e,t){return An(this,null,function*(){var n,a,i;let{signedTypedData:s}=yield this.querier.call({procedureName:"signTypedDataV4",params:{domain:r,types:e,message:t,chainId:(i=(a=yield(n=this.provider)==null?void 0:n.getNetwork())==null?void 0:a.chainId)!=null?i:this.DEFAULT_ETHEREUM_CHAIN_ID}});return s})}connect(r){return new QIt({clientId:this.clientId,provider:r,querier:this.querier})}},zgn=class{constructor({clientId:r,chain:e,querier:t}){this.clientId=r,this.chain=e,this.walletManagerQuerier=t,this.gasless=new HIt({chain:e,clientId:r,querier:t}),this.localStorage=new cLe({clientId:r})}postWalletSetUp(r){return An(this,arguments,function*({deviceShareStored:e,walletAddress:t,isIframeStorageEnabled:n,walletUserId:a}){return n||(yield this.localStorage.saveDeviceShare(e,a)),{walletAddress:t}})}getUserWalletStatus(){return An(this,null,function*(){let r=yield this.walletManagerQuerier.call({procedureName:"getUserStatus",params:void 0});return r.status==="Logged In, Wallet Initialized"?{status:"Logged In, Wallet Initialized",user:zIt(qce({},r.user),{wallet:this})}:r})}setChain(r){return An(this,arguments,function*({chain:e}){this.chain=e,this.gasless=new HIt({chain:e,clientId:this.clientId,querier:this.walletManagerQuerier})})}getEthersJsSigner(r){return An(this,null,function*(){var e;return new QIt({clientId:this.clientId,provider:(0,Wgn.getDefaultProvider)((e=r?.rpcEndpoint)!=null?e:Ugn.ChainToPublicRpc[this.chain]),querier:this.walletManagerQuerier})})}},Kgn=class{constructor({clientId:r,chain:e,styles:t}){this.clientId=r,this.querier=new Ogn({clientId:r,customizationOptions:t}),this.wallet=new zgn({clientId:r,chain:e,querier:this.querier}),this.auth=new qgn({clientId:r,querier:this.querier,onAuthSuccess:n=>An(this,null,function*(){return yield this.wallet.postWalletSetUp(zIt(qce({},n.walletDetails),{walletUserId:n.storedToken.authDetails.userWalletId})),{user:{status:"Logged In, Wallet Initialized",authDetails:n.storedToken.authDetails,wallet:this.wallet,walletAddress:n.walletDetails.walletAddress}}})})}getUser(){return An(this,null,function*(){let r=yield this.wallet.getUserWalletStatus();switch(r.status){case"Logged In, New Device":case"Logged In, Wallet Uninitialized":return yield this.auth.logout(),this.getUser();case"Logged Out":return{status:"Logged Out"};case"Logged In, Wallet Initialized":return qce({status:"Logged In, Wallet Initialized"},r.user)}})}}});var ZIt=E(ywe=>{"use strict";f();d();Object.defineProperty(ywe,"__esModule",{value:!0});var $1=bf(),i6=Oi(),Ggn=md(),uLe=Wce(),Vgn=ke(),$gn=jb();ao();Xe();function Ygn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Ree={1:"Ethereum",5:"Goerli",137:"Polygon",80001:"Mumbai",43114:"Avalanche"},Uce=new WeakMap,Hce=new WeakMap,lLe=class extends Ggn.TWConnector{constructor(e){super(),i6._defineProperty(this,"id","paper-wallet"),i6._defineProperty(this,"name","Paper Wallet"),i6._defineProperty(this,"ready",!0),i6._defineProperty(this,"user",null),$1._classPrivateFieldInitSpec(this,Uce,{writable:!0,value:void 0}),i6._defineProperty(this,"options",void 0),$1._classPrivateFieldInitSpec(this,Hce,{writable:!0,value:void 0}),i6._defineProperty(this,"onAccountsChanged",async t=>{t.length===0?await this.onDisconnect():this.emit("change",{account:Vgn.utils.getAddress(t[0])})}),i6._defineProperty(this,"onChainChanged",t=>{let n=$gn.normalizeChainId(t),a=this.isChainUnsupported(n);this.emit("change",{chain:{id:n,unsupported:a}})}),i6._defineProperty(this,"onDisconnect",async()=>{this.emit("disconnect")}),this.options=e}getPaperSDK(){return $1._classPrivateFieldGet(this,Uce)||$1._classPrivateFieldSet(this,Uce,new Promise(async(e,t)=>{try{if(!(this.options.chain.chainId in Ree))throw new Error("Unsupported chain id: "+this.options.chain.chainId);let{PaperEmbeddedWalletSdk:n}=await Promise.resolve().then(function(){return Ygn(Wce())}),a=Ree[this.options.chain.chainId];e(new n({clientId:this.options.clientId,chain:a}))}catch(n){t(n)}})),$1._classPrivateFieldGet(this,Uce)}async connect(e){let t=await this.getPaperSDK();if(!t)throw new Error("Paper SDK not initialized");let n=await t.getUser();switch(n.status){case uLe.UserStatus.LOGGED_OUT:{let a;e.email?a=await t.auth.loginWithPaperEmailOtp({email:e.email}):a=await t.auth.loginWithPaperModal(),this.user=a.user;break}case uLe.UserStatus.LOGGED_IN_WALLET_INITIALIZED:{this.user=n;break}}if(!this.user)throw new Error("Error connecting User");return this.setupListeners(),this.getAddress()}async disconnect(){await(await $1._classPrivateFieldGet(this,Uce))?.auth.logout(),this.user=null}async getAddress(){return(await this.getSigner()).getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){let e=await this.getSigner();if(!e.provider)throw new Error("Provider not found");return e.provider}async getSigner(){if($1._classPrivateFieldGet(this,Hce))return $1._classPrivateFieldGet(this,Hce);if(!this.user){let n=await(await this.getPaperSDK()).getUser();switch(n.status){case uLe.UserStatus.LOGGED_IN_WALLET_INITIALIZED:{this.user=n;break}}}let e=await this.user?.wallet.getEthersJsSigner({rpcEndpoint:this.options.chain.rpc[0]});if(!e)throw new Error("Signer not found");return $1._classPrivateFieldSet(this,Hce,e),e}async isAuthorized(){return!1}async switchChain(e){if(!(e in Ree))throw new Error("Chain not supported");let t=Ree[e],n=this.options.chains.find(a=>a.chainId===e);if(!n)throw new Error("Chain not configured");await this.user?.wallet.setChain({chain:t}),$1._classPrivateFieldSet(this,Hce,await this.user?.wallet.getEthersJsSigner({rpcEndpoint:n.rpc[0]})),this.emit("change",{chain:{id:e,unsupported:!1}})}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}updateChains(e){this.options.chains=e}isChainUnsupported(e){return!(e in Ree)}async getEmail(){if(await this.getProvider(),!this.user)throw new Error("No user found, Paper Wallet is not connected");return this.user.authDetails.email}};ywe.PaperChainMap=Ree;ywe.PaperWalletConnector=lLe});var XIt=E(fLe=>{"use strict";f();d();Object.defineProperty(fLe,"__esModule",{value:!0});var jce=Oi(),Qgn=Dp();Zu();ao();yf();ke();Xe();Ct();var F3=class extends Qgn.AbstractClientWallet{get walletName(){return"Paper Wallet"}constructor(e){super(F3.id,{...e}),jce._defineProperty(this,"connector",void 0),jce._defineProperty(this,"clientId",void 0),jce._defineProperty(this,"chain",void 0),this.clientId=e.clientId,this.chain=e.chain}async getConnector(){if(!this.connector){let{PaperWalletConnector:e}=await Promise.resolve().then(function(){return ZIt()});this.connector=new e({clientId:this.clientId,chain:this.chain,chains:this.chains})}return this.connector}async updateChains(e){this.chains=e}async getEmail(){return(await this.getConnector()).getEmail()}};jce._defineProperty(F3,"id","PaperWallet");jce._defineProperty(F3,"meta",{name:"Paper Wallet",iconURL:"ipfs://QmNrLXtPoFrh4yjZbXui39zUMozS1oetpgU8dvZhFAxfRa/paper-logo-icon.svg"});fLe.PaperWallet=F3});var eCt=E(bwe=>{"use strict";f();d();Object.defineProperty(bwe,"__esModule",{value:!0});bwe.walletLogo=void 0;var Jgn=(r,e)=>{let t;switch(r){case"standard":return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return t=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;default:return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `}};bwe.walletLogo=Jgn});var tCt=E(gwe=>{"use strict";f();d();Object.defineProperty(gwe,"__esModule",{value:!0});gwe.ScopedLocalStorage=void 0;var dLe=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};gwe.ScopedLocalStorage=dLe});var zce=E(hLe=>{"use strict";f();d();Object.defineProperty(hLe,"__esModule",{value:!0});var Zgn=ml();function rCt(r,e,t){try{Reflect.apply(r,e,t)}catch(n){setTimeout(()=>{throw n})}}function Xgn(r){let e=r.length,t=new Array(e);for(let n=0;n0&&([s]=t),s instanceof Error)throw s;let o=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw o.context=s,o}let i=a[e];if(i===void 0)return!1;if(typeof i=="function")rCt(i,this,t);else{let s=i.length,o=Xgn(i);for(let c=0;c{f();d();oCt.exports=Kce;Kce.default=Kce;Kce.stable=iCt;Kce.stableStringify=iCt;var vwe="[...]",nCt="[Circular]",q3=[],L3=[];function aCt(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Kce(r,e,t,n){typeof n>"u"&&(n=aCt()),mLe(r,"",0,[],void 0,0,n);var a;try{L3.length===0?a=JSON.stringify(r,e,t):a=JSON.stringify(r,sCt(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;q3.length!==0;){var i=q3.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function Mee(r,e,t,n){var a=Object.getOwnPropertyDescriptor(n,t);a.get!==void 0?a.configurable?(Object.defineProperty(n,t,{value:r}),q3.push([n,t,e,a])):L3.push([e,t,r]):(n[t]=r,q3.push([n,t,e]))}function mLe(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){Mee(vwe,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){Mee(vwe,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;oe?1:0}function iCt(r,e,t,n){typeof n>"u"&&(n=aCt());var a=yLe(r,"",0,[],void 0,0,n)||r,i;try{L3.length===0?i=JSON.stringify(a,e,t):i=JSON.stringify(a,sCt(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;q3.length!==0;){var s=q3.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function yLe(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){Mee(vwe,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){Mee(vwe,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;o0)for(var n=0;n{"use strict";f();d();Object.defineProperty(Bee,"__esModule",{value:!0});Bee.EthereumProviderError=Bee.EthereumRpcError=void 0;var t6n=bLe(),wwe=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return t6n.default(this.serialize(),n6n,2)}};Bee.EthereumRpcError=wwe;var gLe=class extends wwe{constructor(e,t,n){if(!r6n(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};Bee.EthereumProviderError=gLe;function r6n(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function n6n(r,e){if(e!=="[Circular]")return e}});var _we=E(Dee=>{"use strict";f();d();Object.defineProperty(Dee,"__esModule",{value:!0});Dee.errorValues=Dee.errorCodes=void 0;Dee.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};Dee.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var xLe=E(om=>{"use strict";f();d();Object.defineProperty(om,"__esModule",{value:!0});om.serializeError=om.isValidCode=om.getMessageFromCode=om.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var Twe=_we(),a6n=xwe(),cCt=Twe.errorCodes.rpc.internal,i6n="Unspecified error message. This is a bug, please report it.",s6n={code:cCt,message:wLe(cCt)};om.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function wLe(r,e=i6n){if(Number.isInteger(r)){let t=r.toString();if(vLe(Twe.errorValues,t))return Twe.errorValues[t].message;if(fCt(r))return om.JSON_RPC_SERVER_ERROR_MESSAGE}return e}om.getMessageFromCode=wLe;function lCt(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(Twe.errorValues[e]||fCt(r))}om.isValidCode=lCt;function o6n(r,{fallbackError:e=s6n,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof a6n.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&vLe(r,"code")&&lCt(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,vLe(o,"data")&&(i.data=o.data)):(i.message=wLe(i.code),i.data={originalError:uCt(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:uCt(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}om.serializeError=o6n;function fCt(r){return r>=-32099&&r<=-32e3}function uCt(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function vLe(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var hCt=E(Ewe=>{"use strict";f();d();Object.defineProperty(Ewe,"__esModule",{value:!0});Ewe.ethErrors=void 0;var _Le=xwe(),dCt=xLe(),Xu=_we();Ewe.ethErrors={rpc:{parse:r=>Np(Xu.errorCodes.rpc.parse,r),invalidRequest:r=>Np(Xu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Np(Xu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Np(Xu.errorCodes.rpc.methodNotFound,r),internal:r=>Np(Xu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Np(e,r)},invalidInput:r=>Np(Xu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Np(Xu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Np(Xu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Np(Xu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Np(Xu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Np(Xu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>Gce(Xu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>Gce(Xu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>Gce(Xu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>Gce(Xu.errorCodes.provider.disconnected,r),chainDisconnected:r=>Gce(Xu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new _Le.EthereumProviderError(e,t,n)}}};function Np(r,e){let[t,n]=pCt(e);return new _Le.EthereumRpcError(r,t||dCt.getMessageFromCode(r),n)}function Gce(r,e){let[t,n]=pCt(e);return new _Le.EthereumProviderError(r,t||dCt.getMessageFromCode(r),n)}function pCt(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var Iwe=E(gf=>{"use strict";f();d();Object.defineProperty(gf,"__esModule",{value:!0});gf.getMessageFromCode=gf.serializeError=gf.EthereumProviderError=gf.EthereumRpcError=gf.ethErrors=gf.errorCodes=void 0;var mCt=xwe();Object.defineProperty(gf,"EthereumRpcError",{enumerable:!0,get:function(){return mCt.EthereumRpcError}});Object.defineProperty(gf,"EthereumProviderError",{enumerable:!0,get:function(){return mCt.EthereumProviderError}});var yCt=xLe();Object.defineProperty(gf,"serializeError",{enumerable:!0,get:function(){return yCt.serializeError}});Object.defineProperty(gf,"getMessageFromCode",{enumerable:!0,get:function(){return yCt.getMessageFromCode}});var c6n=hCt();Object.defineProperty(gf,"ethErrors",{enumerable:!0,get:function(){return c6n.ethErrors}});var u6n=_we();Object.defineProperty(gf,"errorCodes",{enumerable:!0,get:function(){return u6n.errorCodes}})});var Awe=E(Cwe=>{"use strict";f();d();Object.defineProperty(Cwe,"__esModule",{value:!0});Cwe.EVENTS=void 0;Cwe.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}});var bCt=E(()=>{f();d()});var FCt=E((zUa,OCt)=>{f();d();var MLe=typeof Map=="function"&&Map.prototype,TLe=Object.getOwnPropertyDescriptor&&MLe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Swe=MLe&&TLe&&typeof TLe.get=="function"?TLe.get:null,gCt=MLe&&Map.prototype.forEach,BLe=typeof Set=="function"&&Set.prototype,ELe=Object.getOwnPropertyDescriptor&&BLe?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pwe=BLe&&ELe&&typeof ELe.get=="function"?ELe.get:null,vCt=BLe&&Set.prototype.forEach,l6n=typeof WeakMap=="function"&&WeakMap.prototype,$ce=l6n?WeakMap.prototype.has:null,f6n=typeof WeakSet=="function"&&WeakSet.prototype,Yce=f6n?WeakSet.prototype.has:null,d6n=typeof WeakRef=="function"&&WeakRef.prototype,wCt=d6n?WeakRef.prototype.deref:null,p6n=Boolean.prototype.valueOf,h6n=Object.prototype.toString,m6n=Function.prototype.toString,y6n=String.prototype.match,DLe=String.prototype.slice,o6=String.prototype.replace,b6n=String.prototype.toUpperCase,xCt=String.prototype.toLowerCase,PCt=RegExp.prototype.test,_Ct=Array.prototype.concat,Y1=Array.prototype.join,g6n=Array.prototype.slice,TCt=Math.floor,ALe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ILe=Object.getOwnPropertySymbols,kLe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Nee=typeof Symbol=="function"&&typeof Symbol.iterator=="object",el=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Nee?"object":"symbol")?Symbol.toStringTag:null,RCt=Object.prototype.propertyIsEnumerable,ECt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function ICt(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||PCt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-TCt(-r):TCt(r);if(n!==r){var a=String(n),i=DLe.call(e,a.length+1);return o6.call(a,t,"$&_")+"."+o6.call(o6.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return o6.call(e,t,"$&_")}var SLe=bCt(),CCt=SLe.custom,ACt=BCt(CCt)?CCt:null;OCt.exports=function r(e,t,n,a){var i=t||{};if(s6(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(s6(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=s6(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(s6(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(s6(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return NCt(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return o?ICt(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return o?ICt(e,u):u}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return PLe(e)?"[Array]":"[Object]";var p=O6n(i,n);if(typeof a>"u")a=[];else if(DCt(a,e)>=0)return"[Circular]";function h(S,w,R){if(w&&(a=g6n.call(a),a.push(w)),R){var O={depth:i.depth};return s6(i,"quoteStyle")&&(O.quoteStyle=i.quoteStyle),r(S,O,n+1,a)}return r(S,i,n+1,a)}if(typeof e=="function"&&!kCt(e)){var m=A6n(e),y=kwe(e,h);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(y.length>0?" { "+Y1.call(y,", ")+" }":"")}if(BCt(e)){var C=Nee?o6.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):kLe.call(e);return typeof e=="object"&&!Nee?Vce(C):C}if(B6n(e)){for(var P="<"+xCt.call(String(e.nodeName)),A=e.attributes||[],B=0;B",P}if(PLe(e)){if(e.length===0)return"[]";var F=kwe(e,h);return p&&!N6n(F)?"["+RLe(F,p)+"]":"[ "+Y1.call(F,", ")+" ]"}if(x6n(e)){var W=kwe(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!RCt.call(e,"cause")?"{ ["+String(e)+"] "+Y1.call(_Ct.call("[cause]: "+h(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Y1.call(W,", ")+" }"}if(typeof e=="object"&&s){if(ACt&&typeof e[ACt]=="function"&&SLe)return SLe(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(k6n(e)){var K=[];return gCt&&gCt.call(e,function(S,w){K.push(h(w,e,!0)+" => "+h(S,e))}),SCt("Map",Swe.call(e),K,p)}if(R6n(e)){var z=[];return vCt&&vCt.call(e,function(S){z.push(h(S,e))}),SCt("Set",Pwe.call(e),z,p)}if(S6n(e))return CLe("WeakMap");if(M6n(e))return CLe("WeakSet");if(P6n(e))return CLe("WeakRef");if(T6n(e))return Vce(h(Number(e)));if(I6n(e))return Vce(h(ALe.call(e)));if(E6n(e))return Vce(p6n.call(e));if(_6n(e))return Vce(h(String(e)));if(!w6n(e)&&!kCt(e)){var G=kwe(e,h),j=ECt?ECt(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",I=!j&&el&&Object(e)===e&&el in e?DLe.call(c6(e),8,-1):H?"Object":"",b=j||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=b+(I||H?"["+Y1.call(_Ct.call([],I||[],H||[]),": ")+"] ":"");return G.length===0?k+"{}":p?k+"{"+RLe(G,p)+"}":k+"{ "+Y1.call(G,", ")+" }"}return String(e)};function MCt(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function v6n(r){return o6.call(String(r),/"/g,""")}function PLe(r){return c6(r)==="[object Array]"&&(!el||!(typeof r=="object"&&el in r))}function w6n(r){return c6(r)==="[object Date]"&&(!el||!(typeof r=="object"&&el in r))}function kCt(r){return c6(r)==="[object RegExp]"&&(!el||!(typeof r=="object"&&el in r))}function x6n(r){return c6(r)==="[object Error]"&&(!el||!(typeof r=="object"&&el in r))}function _6n(r){return c6(r)==="[object String]"&&(!el||!(typeof r=="object"&&el in r))}function T6n(r){return c6(r)==="[object Number]"&&(!el||!(typeof r=="object"&&el in r))}function E6n(r){return c6(r)==="[object Boolean]"&&(!el||!(typeof r=="object"&&el in r))}function BCt(r){if(Nee)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!kLe)return!1;try{return kLe.call(r),!0}catch{}return!1}function I6n(r){if(!r||typeof r!="object"||!ALe)return!1;try{return ALe.call(r),!0}catch{}return!1}var C6n=Object.prototype.hasOwnProperty||function(r){return r in this};function s6(r,e){return C6n.call(r,e)}function c6(r){return h6n.call(r)}function A6n(r){if(r.name)return r.name;var e=y6n.call(m6n.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function DCt(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return NCt(DLe.call(r,0,e.maxStringLength),e)+n}var a=o6.call(o6.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,D6n);return MCt(a,"single",e)}function D6n(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+b6n.call(e.toString(16))}function Vce(r){return"Object("+r+")"}function CLe(r){return r+" { ? }"}function SCt(r,e,t,n){var a=n?RLe(t,n):Y1.call(t,", ");return r+" ("+e+") {"+a+"}"}function N6n(r){for(var e=0;e=0)return!1;return!0}function O6n(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=Y1.call(Array(r.indent+1)," ");else return null;return{base:t,prev:Y1.call(Array(e+1),t)}}function RLe(r,e){if(r.length===0)return"";var t=` +`+e.prev+e.base;return t+Y1.call(r,","+t)+` +`+e.prev}function kwe(r,e){var t=PLe(r),n=[];if(t){n.length=r.length;for(var a=0;a{"use strict";f();d();var NLe=Xx(),Oee=Mae(),F6n=FCt(),L6n=NLe("%TypeError%"),Rwe=NLe("%WeakMap%",!0),Mwe=NLe("%Map%",!0),q6n=Oee("WeakMap.prototype.get",!0),W6n=Oee("WeakMap.prototype.set",!0),U6n=Oee("WeakMap.prototype.has",!0),H6n=Oee("Map.prototype.get",!0),j6n=Oee("Map.prototype.set",!0),z6n=Oee("Map.prototype.has",!0),OLe=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},K6n=function(r,e){var t=OLe(r,e);return t&&t.value},G6n=function(r,e,t){var n=OLe(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},V6n=function(r,e){return!!OLe(r,e)};LCt.exports=function(){var e,t,n,a={assert:function(i){if(!a.has(i))throw new L6n("Side channel does not contain "+F6n(i))},get:function(i){if(Rwe&&i&&(typeof i=="object"||typeof i=="function")){if(e)return q6n(e,i)}else if(Mwe){if(t)return H6n(t,i)}else if(n)return K6n(n,i)},has:function(i){if(Rwe&&i&&(typeof i=="object"||typeof i=="function")){if(e)return U6n(e,i)}else if(Mwe){if(t)return z6n(t,i)}else if(n)return V6n(n,i);return!1},set:function(i,s){Rwe&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Rwe),W6n(e,i,s)):Mwe?(t||(t=new Mwe),j6n(t,i,s)):(n||(n={key:{},next:null}),G6n(n,i,s))}};return a}});var Bwe=E((QUa,WCt)=>{"use strict";f();d();var $6n=String.prototype.replace,Y6n=/%20/g,FLe={RFC1738:"RFC1738",RFC3986:"RFC3986"};WCt.exports={default:FLe.RFC3986,formatters:{RFC1738:function(r){return $6n.call(r,Y6n,"+")},RFC3986:function(r){return String(r)}},RFC1738:FLe.RFC1738,RFC3986:FLe.RFC3986}});var qLe=E((XUa,HCt)=>{"use strict";f();d();var Q6n=Bwe(),LLe=Object.prototype.hasOwnProperty,W3=Array.isArray,Q1=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),J6n=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(W3(n)){for(var a=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===Q6n.RFC1738&&(u===40||u===41)){o+=s.charAt(c);continue}if(u<128){o=o+Q1[u];continue}if(u<2048){o=o+(Q1[192|u>>6]+Q1[128|u&63]);continue}if(u<55296||u>=57344){o=o+(Q1[224|u>>12]+Q1[128|u>>6&63]+Q1[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),o+=Q1[240|u>>18]+Q1[128|u>>12&63]+Q1[128|u>>6&63]+Q1[128|u&63]}return o},r5n=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a{"use strict";f();d();var KCt=qCt(),Dwe=qLe(),Qce=Bwe(),o5n=Object.prototype.hasOwnProperty,jCt={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},zb=Array.isArray,c5n=Array.prototype.push,GCt=function(r,e){c5n.apply(r,zb(e)?e:[e])},u5n=Date.prototype.toISOString,zCt=Qce.default,tl={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Dwe.encode,encodeValuesOnly:!1,format:zCt,formatter:Qce.formatters[zCt],indices:!1,serializeDate:function(e){return u5n.call(e)},skipNulls:!1,strictNullHandling:!1},l5n=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},WLe={},f5n=function r(e,t,n,a,i,s,o,c,u,l,p,h,m,y,C,P){for(var A=e,B=P,F=0,W=!1;(B=B.get(WLe))!==void 0&&!W;){var K=B.get(e);if(F+=1,typeof K<"u"){if(K===F)throw new RangeError("Cyclic object value");W=!0}typeof B.get(WLe)>"u"&&(F=0)}if(typeof c=="function"?A=c(t,A):A instanceof Date?A=p(A):n==="comma"&&zb(A)&&(A=Dwe.maybeMap(A,function(O){return O instanceof Date?p(O):O})),A===null){if(i)return o&&!y?o(t,tl.encoder,C,"key",h):t;A=""}if(l5n(A)||Dwe.isBuffer(A)){if(o){var z=y?t:o(t,tl.encoder,C,"key",h);return[m(z)+"="+m(o(A,tl.encoder,C,"value",h))]}return[m(t)+"="+m(String(A))]}var G=[];if(typeof A>"u")return G;var j;if(n==="comma"&&zb(A))y&&o&&(A=Dwe.maybeMap(A,o)),j=[{value:A.length>0?A.join(",")||null:void 0}];else if(zb(c))j=c;else{var H=Object.keys(A);j=u?H.sort(u):H}for(var I=a&&zb(A)&&A.length===1?t+"[]":t,b=0;b"u"?tl.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:tl.charsetSentinel,delimiter:typeof e.delimiter>"u"?tl.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:tl.encode,encoder:typeof e.encoder=="function"?e.encoder:tl.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:tl.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:tl.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:tl.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:tl.strictNullHandling}};VCt.exports=function(r,e){var t=r,n=d5n(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):zb(n.filter)&&(i=n.filter,a=i);var s=[];if(typeof t!="object"||t===null)return"";var o;e&&e.arrayFormat in jCt?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var c=jCt[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var l=KCt(),p=0;p0?y+m:""}});var JCt=E((iHa,QCt)=>{"use strict";f();d();var Fee=qLe(),ULe=Object.prototype.hasOwnProperty,p5n=Array.isArray,A0={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Fee.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},h5n=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},YCt=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},m5n="utf8=%26%2310003%3B",y5n="utf8=%E2%9C%93",b5n=function(e,t){var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,i),o=-1,c,u=t.charset;if(t.charsetSentinel)for(c=0;c-1&&(y=p5n(y)?[y]:y),ULe.call(n,m)?n[m]=Fee.combine(n[m],y):n[m]=y}return n},g5n=function(r,e,t,n){for(var a=n?e:YCt(e,t),i=r.length-1;i>=0;--i){var s,o=r[i];if(o==="[]"&&t.parseArrays)s=[].concat(a);else{s=t.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(c,10);!t.parseArrays&&c===""?s={0:a}:!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(s=[],s[u]=a):c!=="__proto__"&&(s[c]=a)}a=s}return a},v5n=function(e,t,n,a){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&ULe.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var p=0;n.depth>0&&(c=o.exec(i))!==null&&p"u"?A0.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?A0.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:A0.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:A0.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:A0.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:A0.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:A0.comma,decoder:typeof e.decoder=="function"?e.decoder:A0.decoder,delimiter:typeof e.delimiter=="string"||Fee.isRegExp(e.delimiter)?e.delimiter:A0.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:A0.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:A0.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:A0.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:A0.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:A0.strictNullHandling}};QCt.exports=function(r,e){var t=w5n(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?b5n(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s{"use strict";f();d();var x5n=$Ct(),_5n=JCt(),T5n=Bwe();ZCt.exports={formats:T5n,parse:_5n,stringify:x5n}});var Zce=E(ou=>{"use strict";f();d();Object.defineProperty(ou,"__esModule",{value:!0});ou.ProviderType=ou.RegExpString=ou.IntNumber=ou.BigIntString=ou.AddressString=ou.HexString=ou.OpaqueType=void 0;function Jce(){return r=>r}ou.OpaqueType=Jce;ou.HexString=Jce();ou.AddressString=Jce();ou.BigIntString=Jce();function E5n(r){return Math.floor(r)}ou.IntNumber=E5n;ou.RegExpString=Jce();var I5n;(function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""})(I5n=ou.ProviderType||(ou.ProviderType={}))});var Kb=E(dr=>{"use strict";f();d();var C5n=dr&&dr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(dr,"__esModule",{value:!0});dr.isInIFrame=dr.createQrUrl=dr.getFavicon=dr.range=dr.isBigNumber=dr.ensureParsedJSONObject=dr.ensureBN=dr.ensureRegExpString=dr.ensureIntNumber=dr.ensureBuffer=dr.ensureAddressString=dr.ensureEvenLengthHexString=dr.ensureHexString=dr.isHexString=dr.prepend0x=dr.strip0x=dr.has0xPrefix=dr.hexStringFromIntNumber=dr.intNumberFromHexString=dr.bigIntStringFromBN=dr.hexStringFromBuffer=dr.hexStringToUint8Array=dr.uint8ArrayToHex=dr.randomBytesHex=void 0;var u6=C5n(Fr()),A5n=XCt(),Op=Zce(),eAt=/^[0-9]*$/,tAt=/^[a-f0-9]*$/;function k5n(r){return rAt(crypto.getRandomValues(new Uint8Array(r)))}dr.randomBytesHex=k5n;function rAt(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")}dr.uint8ArrayToHex=rAt;function S5n(r){return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}dr.hexStringToUint8Array=S5n;function P5n(r,e=!1){let t=r.toString("hex");return(0,Op.HexString)(e?"0x"+t:t)}dr.hexStringFromBuffer=P5n;function R5n(r){return(0,Op.BigIntString)(r.toString(10))}dr.bigIntStringFromBN=R5n;function M5n(r){return(0,Op.IntNumber)(new u6.default(e0e(r,!1),16).toNumber())}dr.intNumberFromHexString=M5n;function B5n(r){return(0,Op.HexString)("0x"+new u6.default(r).toString(16))}dr.hexStringFromIntNumber=B5n;function HLe(r){return r.startsWith("0x")||r.startsWith("0X")}dr.has0xPrefix=HLe;function Nwe(r){return HLe(r)?r.slice(2):r}dr.strip0x=Nwe;function nAt(r){return HLe(r)?"0x"+r.slice(2):"0x"+r}dr.prepend0x=nAt;function Xce(r){if(typeof r!="string")return!1;let e=Nwe(r).toLowerCase();return tAt.test(e)}dr.isHexString=Xce;function aAt(r,e=!1){if(typeof r=="string"){let t=Nwe(r).toLowerCase();if(tAt.test(t))return(0,Op.HexString)(e?"0x"+t:t)}throw new Error(`"${String(r)}" is not a hexadecimal string`)}dr.ensureHexString=aAt;function e0e(r,e=!1){let t=aAt(r,!1);return t.length%2===1&&(t=(0,Op.HexString)("0"+t)),e?(0,Op.HexString)("0x"+t):t}dr.ensureEvenLengthHexString=e0e;function D5n(r){if(typeof r=="string"){let e=Nwe(r).toLowerCase();if(Xce(e)&&e.length===40)return(0,Op.AddressString)(nAt(e))}throw new Error(`Invalid Ethereum address: ${String(r)}`)}dr.ensureAddressString=D5n;function N5n(r){if(v.Buffer.isBuffer(r))return r;if(typeof r=="string")if(Xce(r)){let e=e0e(r,!1);return v.Buffer.from(e,"hex")}else return v.Buffer.from(r,"utf8");throw new Error(`Not binary data: ${String(r)}`)}dr.ensureBuffer=N5n;function iAt(r){if(typeof r=="number"&&Number.isInteger(r))return(0,Op.IntNumber)(r);if(typeof r=="string"){if(eAt.test(r))return(0,Op.IntNumber)(Number(r));if(Xce(r))return(0,Op.IntNumber)(new u6.default(e0e(r,!1),16).toNumber())}throw new Error(`Not an integer: ${String(r)}`)}dr.ensureIntNumber=iAt;function O5n(r){if(r instanceof RegExp)return(0,Op.RegExpString)(r.toString());throw new Error(`Not a RegExp: ${String(r)}`)}dr.ensureRegExpString=O5n;function F5n(r){if(r!==null&&(u6.default.isBN(r)||sAt(r)))return new u6.default(r.toString(10),10);if(typeof r=="number")return new u6.default(iAt(r));if(typeof r=="string"){if(eAt.test(r))return new u6.default(r,10);if(Xce(r))return new u6.default(e0e(r,!1),16)}throw new Error(`Not an integer: ${String(r)}`)}dr.ensureBN=F5n;function L5n(r){if(typeof r=="string")return JSON.parse(r);if(typeof r=="object")return r;throw new Error(`Not a JSON string or an object: ${String(r)}`)}dr.ensureParsedJSONObject=L5n;function sAt(r){if(r==null||typeof r.constructor!="function")return!1;let{constructor:e}=r;return typeof e.config=="function"&&typeof e.EUCLID=="number"}dr.isBigNumber=sAt;function q5n(r,e){return Array.from({length:e-r},(t,n)=>r+n)}dr.range=q5n;function W5n(){let r=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:t}=document.location,n=r?r.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${t}${n}`}dr.getFavicon=W5n;function U5n(r,e,t,n,a,i){let s=n?"parent-id":"id",o=(0,A5n.stringify)({[s]:r,secret:e,server:t,v:a,chainId:i});return`${t}/#/link?${o}`}dr.createQrUrl=U5n;function H5n(){try{return window.frameElement!==null}catch{return!1}}dr.isInIFrame=H5n});var Fwe=E(Owe=>{"use strict";f();d();Object.defineProperty(Owe,"__esModule",{value:!0});Owe.Session=void 0;var oAt=rie(),cAt=Kb(),uAt="session:id",lAt="session:secret",fAt="session:linked",t0e=class{constructor(e,t,n,a){this._storage=e,this._id=t||(0,cAt.randomBytesHex)(16),this._secret=n||(0,cAt.randomBytesHex)(32),this._key=new oAt.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(uAt),n=e.getItem(fAt),a=e.getItem(lAt);return t&&a?new t0e(e,t,a,n==="1"):null}static hash(e){return new oAt.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(uAt,this._id),this._storage.setItem(lAt,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(fAt,this._linked?"1":"0")}};Owe.Session=t0e});var zLe=E(J1=>{"use strict";f();d();Object.defineProperty(J1,"__esModule",{value:!0});J1.WalletSDKRelayAbstract=J1.APP_VERSION_KEY=J1.LOCAL_STORAGE_ADDRESSES_KEY=J1.WALLET_USER_NAME_KEY=void 0;var dAt=Iwe();J1.WALLET_USER_NAME_KEY="walletUsername";J1.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";J1.APP_VERSION_KEY="AppVersion";var jLe=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw dAt.ethErrors.rpc.parse({});let a=n,{error:i}=a;if(i)throw(0,dAt.serializeError)(i);return a})}};J1.WalletSDKRelayAbstract=jLe});var mAt=E((THa,hAt)=>{f();d();var{Transform:j5n}=Kae();hAt.exports=r=>class pAt extends j5n{constructor(t,n,a,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(t){let n=null;try{this.push(this.digest())}catch(a){n=a}t(n)}update(t,n){if(!v.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return v.Buffer.isBuffer(t)||(t=v.Buffer.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new pAt(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var gAt=E((CHa,bAt)=>{f();d();var{Transform:z5n}=Kae();bAt.exports=r=>class yAt extends z5n{constructor(t,n,a,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!v.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return v.Buffer.isBuffer(t)||(t=v.Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(t);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new yAt(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var wAt=E((SHa,vAt)=>{f();d();var K5n=mAt(),G5n=gAt();vAt.exports=function(r){let e=K5n(r),t=G5n(r);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new t(1344,256,31,a);case"shake256":return new t(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}}});var TAt=E(_At=>{f();d();var xAt=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];_At.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],i=r[3]^r[13]^r[23]^r[33]^r[43],s=r[4]^r[14]^r[24]^r[34]^r[44],o=r[5]^r[15]^r[25]^r[35]^r[45],c=r[6]^r[16]^r[26]^r[36]^r[46],u=r[7]^r[17]^r[27]^r[37]^r[47],l=r[8]^r[18]^r[28]^r[38]^r[48],p=r[9]^r[19]^r[29]^r[39]^r[49],h=l^(a<<1|i>>>31),m=p^(i<<1|a>>>31),y=r[0]^h,C=r[1]^m,P=r[10]^h,A=r[11]^m,B=r[20]^h,F=r[21]^m,W=r[30]^h,K=r[31]^m,z=r[40]^h,G=r[41]^m;h=t^(s<<1|o>>>31),m=n^(o<<1|s>>>31);let j=r[2]^h,H=r[3]^m,I=r[12]^h,b=r[13]^m,k=r[22]^h,S=r[23]^m,w=r[32]^h,R=r[33]^m,O=r[42]^h,D=r[43]^m;h=a^(c<<1|u>>>31),m=i^(u<<1|c>>>31);let T=r[4]^h,x=r[5]^m,N=r[14]^h,U=r[15]^m,M=r[24]^h,V=r[25]^m,ee=r[34]^h,$=r[35]^m,X=r[44]^h,se=r[45]^m;h=s^(l<<1|p>>>31),m=o^(p<<1|l>>>31);let ue=r[6]^h,ye=r[7]^m,Ie=r[16]^h,ge=r[17]^m,xe=r[26]^h,Ue=r[27]^m,Te=r[36]^h,Be=r[37]^m,Tr=r[46]^h,et=r[47]^m;h=c^(t<<1|n>>>31),m=u^(n<<1|t>>>31);let mt=r[8]^h,jt=r[9]^m,je=r[18]^h,ht=r[19]^m,ir=r[28]^h,tt=r[29]^m,It=r[38]^h,br=r[39]^m,lt=r[48]^h,Ut=r[49]^m,Or=y,Ve=C,At=A<<4|P>>>28,Gr=P<<4|A>>>28,rt=B<<3|F>>>29,Ft=F<<3|B>>>29,Vr=K<<9|W>>>23,st=W<<9|K>>>23,Lt=z<<18|G>>>14,Hr=G<<18|z>>>14,nt=j<<1|H>>>31,Kt=H<<1|j>>>31,Pr=b<<12|I>>>20,ot=I<<12|b>>>20,Gt=k<<10|S>>>22,Er=S<<10|k>>>22,at=R<<13|w>>>19,Vt=w<<13|R>>>19,$r=O<<2|D>>>30,it=D<<2|O>>>30,$t=x<<30|T>>>2,jr=T<<30|x>>>2,Le=N<<6|U>>>26,yt=U<<6|N>>>26,zr=V<<11|M>>>21,ft=M<<11|V>>>21,sr=ee<<15|$>>>17,wn=$<<15|ee>>>17,bt=se<<29|X>>>3,Zt=X<<29|se>>>3,xn=ue<<28|ye>>>4,gt=ye<<28|ue>>>4,Xt=ge<<23|Ie>>>9,qo=Ie<<23|ge>>>9,un=xe<<25|Ue>>>7,ln=Ue<<25|xe>>>7,ho=Te<<21|Be>>>11,mo=Be<<21|Te>>>11,yo=et<<24|Tr>>>8,bo=Tr<<24|et>>>8,go=mt<<27|jt>>>5,q0=jt<<27|mt>>>5,W0=je<<20|ht>>>12,U0=ht<<20|je>>>12,H0=tt<<7|ir>>>25,t0=ir<<7|tt>>>25,Wo=It<<8|br>>>24,r0=br<<8|It>>>24,vo=lt<<14|Ut>>>18,j0=Ut<<14|lt>>>18;r[0]=Or^~Pr&zr,r[1]=Ve^~ot&ft,r[10]=xn^~W0&rt,r[11]=gt^~U0&Ft,r[20]=nt^~Le&un,r[21]=Kt^~yt&ln,r[30]=go^~At&Gt,r[31]=q0^~Gr&Er,r[40]=$t^~Xt&H0,r[41]=jr^~qo&t0,r[2]=Pr^~zr&ho,r[3]=ot^~ft&mo,r[12]=W0^~rt&at,r[13]=U0^~Ft&Vt,r[22]=Le^~un&Wo,r[23]=yt^~ln&r0,r[32]=At^~Gt&sr,r[33]=Gr^~Er&wn,r[42]=Xt^~H0&Vr,r[43]=qo^~t0&st,r[4]=zr^~ho&vo,r[5]=ft^~mo&j0,r[14]=rt^~at&bt,r[15]=Ft^~Vt&Zt,r[24]=un^~Wo&Lt,r[25]=ln^~r0&Hr,r[34]=Gt^~sr&yo,r[35]=Er^~wn&bo,r[44]=H0^~Vr&$r,r[45]=t0^~st&it,r[6]=ho^~vo&Or,r[7]=mo^~j0&Ve,r[16]=at^~bt&xn,r[17]=Vt^~Zt>,r[26]=Wo^~Lt&nt,r[27]=r0^~Hr&Kt,r[36]=sr^~yo&go,r[37]=wn^~bo&q0,r[46]=Vr^~$r&$t,r[47]=st^~it&jr,r[8]=vo^~Or&Pr,r[9]=j0^~Ve&ot,r[18]=bt^~xn&W0,r[19]=Zt^~gt&U0,r[28]=Lt^~nt&Le,r[29]=Hr^~Kt&yt,r[38]=yo^~go&At,r[39]=bo^~q0&Gr,r[48]=$r^~$t&Xt,r[49]=it^~jr&qo,r[0]^=xAt[e*2],r[1]^=xAt[e*2+1]}}});var IAt=E((NHa,EAt)=>{f();d();var Lwe=TAt();function Lee(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Lee.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};Lee.prototype.absorb=function(r){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Lwe.p1600(this.state),this.count=0);return e};Lee.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};EAt.exports=Lee});var KLe=E((LHa,CAt)=>{f();d();CAt.exports=wAt()(IAt())});var GLe=E((UHa,RAt)=>{f();d();var V5n=KLe(),$5n=Fr();function AAt(r){return v.Buffer.allocUnsafe(r).fill(0)}function kAt(r,e,t){let n=AAt(e);return r=qwe(r),t?r.length{f();d();var j3=GLe(),H3=Fr();function BAt(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r}function qee(r){return parseInt(/^\D+(\d+)$/.exec(r)[1],10)}function MAt(r){var e=/^\D+(\d+)x(\d+)$/.exec(r);return[parseInt(e[1],10),parseInt(e[2],10)]}function DAt(r){var e=r.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function U3(r){var e=typeof r;if(e==="string")return j3.isHexString(r)?new H3(j3.stripHexPrefix(r),16):new H3(r,10);if(e==="number")return new H3(r);if(r.toArray)return r;throw new Error("Argument is not a number")}function Z1(r,e){var t,n,a,i;if(r==="address")return Z1("uint160",U3(e));if(r==="bool")return Z1("uint8",e?1:0);if(r==="string")return Z1("bytes",new v.Buffer(e,"utf8"));if(evn(r)){if(typeof e.length>"u")throw new Error("Not an array?");if(t=DAt(r),t!=="dynamic"&&t!==0&&e.length>t)throw new Error("Elements exceed array size: "+t);a=[],r=r.slice(0,r.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(i in e)a.push(Z1(r,e[i]));if(t==="dynamic"){var s=Z1("uint256",e.length);a.unshift(s)}return v.Buffer.concat(a)}else{if(r==="bytes")return e=new v.Buffer(e),a=v.Buffer.concat([Z1("uint256",e.length),e]),e.length%32!==0&&(a=v.Buffer.concat([a,j3.zeros(32-e.length%32)])),a;if(r.startsWith("bytes")){if(t=qee(r),t<1||t>32)throw new Error("Invalid bytes width: "+t);return j3.setLengthRight(e,32)}else if(r.startsWith("uint")){if(t=qee(r),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=U3(e),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(v.Buffer,"be",32)}else if(r.startsWith("int")){if(t=qee(r),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=U3(e),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(v.Buffer,"be",32)}else if(r.startsWith("ufixed")){if(t=MAt(r),n=U3(e),n<0)throw new Error("Supplied ufixed is negative");return Z1("uint256",n.mul(new H3(2).pow(new H3(t[1]))))}else if(r.startsWith("fixed"))return t=MAt(r),Z1("int256",U3(e).mul(new H3(2).pow(new H3(t[1]))))}throw new Error("Unsupported or invalid type: "+r)}function X5n(r){return r==="string"||r==="bytes"||DAt(r)==="dynamic"}function evn(r){return r.lastIndexOf("]")===r.length-1}function tvn(r,e){var t=[],n=[],a=32*r.length;for(var i in r){var s=BAt(r[i]),o=e[i],c=Z1(s,o);X5n(s)?(t.push(Z1("uint256",a)),n.push(c),a+=c.length):t.push(c)}return v.Buffer.concat(t.concat(n))}function NAt(r,e){if(r.length!==e.length)throw new Error("Number of types are not matching the values");for(var t,n,a=[],i=0;i32)throw new Error("Invalid bytes width: "+t);a.push(j3.setLengthRight(o,t))}else if(s.startsWith("uint")){if(t=qee(s),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=U3(o),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());a.push(n.toArrayLike(v.Buffer,"be",t/8))}else if(s.startsWith("int")){if(t=qee(s),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=U3(o),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());a.push(n.toTwos(t).toArrayLike(v.Buffer,"be",t/8))}else throw new Error("Unsupported or invalid type: "+s)}return v.Buffer.concat(a)}function rvn(r,e){return j3.keccak(NAt(r,e))}OAt.exports={rawEncode:tvn,solidityPack:NAt,soliditySHA3:rvn}});var WAt=E((VHa,qAt)=>{f();d();var cm=GLe(),r0e=FAt(),LAt={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},VLe={encodeData(r,e,t,n=!0){let a=["bytes32"],i=[this.hashType(r,t)];if(n){let s=(o,c,u)=>{if(t[c]!==void 0)return["bytes32",u==null?"0x0000000000000000000000000000000000000000000000000000000000000000":cm.keccak(this.encodeData(c,u,t,n))];if(u===void 0)throw new Error(`missing value for field ${o} of type ${c}`);if(c==="bytes")return["bytes32",cm.keccak(u)];if(c==="string")return typeof u=="string"&&(u=v.Buffer.from(u,"utf8")),["bytes32",cm.keccak(u)];if(c.lastIndexOf("]")===c.length-1){let l=c.slice(0,c.lastIndexOf("[")),p=u.map(h=>s(o,l,h));return["bytes32",cm.keccak(r0e.rawEncode(p.map(([h])=>h),p.map(([,h])=>h)))]}return[c,u]};for(let o of t[r]){let[c,u]=s(o.name,o.type,e[o.name]);a.push(c),i.push(u)}}else for(let s of t[r]){let o=e[s.name];if(o!==void 0)if(s.type==="bytes")a.push("bytes32"),o=cm.keccak(o),i.push(o);else if(s.type==="string")a.push("bytes32"),typeof o=="string"&&(o=v.Buffer.from(o,"utf8")),o=cm.keccak(o),i.push(o);else if(t[s.type]!==void 0)a.push("bytes32"),o=cm.keccak(this.encodeData(s.type,o,t,n)),i.push(o);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),i.push(o)}}return r0e.rawEncode(a,i)},encodeType(r,e){let t="",n=this.findTypeDependencies(r,e).filter(a=>a!==r);n=[r].concat(n.sort());for(let a of n){if(!e[a])throw new Error("No type definition specified: "+a);t+=a+"("+e[a].map(({name:s,type:o})=>o+" "+s).join(",")+")"}return t},findTypeDependencies(r,e,t=[]){if(r=r.match(/^\w*/)[0],t.includes(r)||e[r]===void 0)return t;t.push(r);for(let n of e[r])for(let a of this.findTypeDependencies(n.type,e,t))!t.includes(a)&&t.push(a);return t},hashStruct(r,e,t,n=!0){return cm.keccak(this.encodeData(r,e,t,n))},hashType(r,e){return cm.keccak(this.encodeType(r,e))},sanitizeData(r){let e={};for(let t in LAt.properties)r[t]&&(e[t]=r[t]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(r,e=!0){let t=this.sanitizeData(r),n=[v.Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",t.domain,t.types,e)),t.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(t.primaryType,t.message,t.types,e)),cm.keccak(v.Buffer.concat(n))}};qAt.exports={TYPED_MESSAGE_SCHEMA:LAt,TypedDataUtils:VLe,hashForSignTypedDataLegacy:function(r){return nvn(r.data)},hashForSignTypedData_v3:function(r){return VLe.hash(r.data,!1)},hashForSignTypedData_v4:function(r){return VLe.hash(r.data)}};function nvn(r){let e=new Error("Expect argument to be non-empty array");if(typeof r!="object"||!r.length)throw e;let t=r.map(function(i){return i.type==="bytes"?cm.toBuffer(i.value):i.value}),n=r.map(function(i){return i.type}),a=r.map(function(i){if(!i.name)throw e;return i.type+" "+i.name});return r0e.soliditySHA3(["bytes32","bytes32"],[r0e.soliditySHA3(new Array(r.length).fill("string"),a),r0e.soliditySHA3(n,t)])}});var KAt=E(Uee=>{"use strict";f();d();Object.defineProperty(Uee,"__esModule",{value:!0});Uee.filterFromParam=Uee.FilterPolyfill=void 0;var Wee=Zce(),Cl=Kb(),avn=5*60*1e3,z3={jsonrpc:"2.0",id:0},$Le=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,Wee.IntNumber)(1),this.provider=e}async newFilter(e){let t=zAt(e),n=this.makeFilterId(),a=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",a),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,Cl.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,Cl.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,Cl.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,Cl.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,Cl.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(Wwe())}async getFilterLogs(e){let t=(0,Cl.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},z3),{method:"eth_getLogs",params:[UAt(n)]})):Wwe()}makeFilterId(){return(0,Wee.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(a,i)=>{if(a)return n(a);if(Array.isArray(i)||i==null)return n(new Error(`unexpected response received: ${JSON.stringify(i)}`));t(i)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return Wwe();let a=await this.getCurrentBlockHeight(),i=t.toBlock==="latest"?a:t.toBlock;if(n>a||n>t.toBlock)return Uwe();console.log(`Fetching logs from ${n} to ${i} for filter ${e}`);let s=await this.sendAsyncPromise(Object.assign(Object.assign({},z3),{method:"eth_getLogs",params:[UAt(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:i}))]}));if(Array.isArray(s.result)){let o=s.result.map(u=>(0,Cl.intNumberFromHexString)(u.blockNumber||"0x0")),c=Math.max(...o);if(c&&c>n){let u=(0,Wee.IntNumber)(c+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${u}`),this.cursors.set(e,u)}}return s}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return Wwe();let n=await this.getCurrentBlockHeight();if(t>n)return Uwe();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,Cl.range)(t,n+1).map(s=>this.getBlockHashByNumber((0,Wee.IntNumber)(s))))).filter(s=>!!s),i=(0,Wee.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${i}`),this.cursors.set(e,i),Object.assign(Object.assign({},z3),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(Uwe())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),a=typeof t=="number"&&t>n?t:n;return this.cursors.set(e,a),a}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},avn);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},z3),{method:"eth_blockNumber",params:[]}));return(0,Cl.intNumberFromHexString)((0,Cl.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},z3),{method:"eth_getBlockByNumber",params:[(0,Cl.hexStringFromIntNumber)(e),!1]}));return t.result&&typeof t.result.hash=="string"?(0,Cl.ensureHexString)(t.result.hash):null}};Uee.FilterPolyfill=$Le;function zAt(r){return{fromBlock:HAt(r.fromBlock),toBlock:HAt(r.toBlock),addresses:r.address===void 0?null:Array.isArray(r.address)?r.address:[r.address],topics:r.topics||[]}}Uee.filterFromParam=zAt;function UAt(r){let e={fromBlock:jAt(r.fromBlock),toBlock:jAt(r.toBlock),topics:r.topics};return r.addresses!==null&&(e.address=r.addresses),e}function HAt(r){if(r===void 0||r==="latest"||r==="pending")return"latest";if(r==="earliest")return(0,Wee.IntNumber)(0);if((0,Cl.isHexString)(r))return(0,Cl.intNumberFromHexString)(r);throw new Error(`Invalid block option: ${String(r)}`)}function jAt(r){return r==="latest"?r:(0,Cl.hexStringFromIntNumber)(r)}function Wwe(){return Object.assign(Object.assign({},z3),{error:{code:-32e3,message:"filter not found"}})}function Uwe(){return Object.assign(Object.assign({},z3),{result:[]})}});var GAt=E(n0e=>{"use strict";f();d();Object.defineProperty(n0e,"__esModule",{value:!0});n0e.JSONRPCMethod=void 0;var ivn;(function(r){r.eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"})(ivn=n0e.JSONRPCMethod||(n0e.JSONRPCMethod={}))});var YLe=E((rja,$At)=>{"use strict";f();d();var VAt=(r,e)=>function(){let t=e.promiseModule,n=new Array(arguments.length);for(let a=0;a{e.errorFirst?n.push(function(s,o){if(e.multiArgs){let c=new Array(arguments.length-1);for(let u=1;u{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let t=a=>{let i=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(i):!e.exclude.some(i)},n;typeof r=="function"?n=function(){return e.excludeMain?r.apply(this,arguments):VAt(r,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(r));for(let a in r){let i=r[a];n[a]=typeof i=="function"&&t(a)?VAt(i,e):i}return n}});var QAt=E((ija,YAt)=>{f();d();YAt.exports=ovn;var svn=Object.prototype.hasOwnProperty;function ovn(){for(var r={},e=0;e{f();d();JAt.exports=cvn;function cvn(r){r=r||{};var e=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*e);return function(){return t=t%e,t++}}});var QLe=E((fja,XAt)=>{f();d();var uvn=QAt(),lvn=ZAt()();XAt.exports=Dr;function Dr(r){let e=this;e.currentProvider=r}Dr.prototype.getBalance=a0e(2,"eth_getBalance");Dr.prototype.getCode=a0e(2,"eth_getCode");Dr.prototype.getTransactionCount=a0e(2,"eth_getTransactionCount");Dr.prototype.getStorageAt=a0e(3,"eth_getStorageAt");Dr.prototype.call=a0e(2,"eth_call");Dr.prototype.protocolVersion=yn("eth_protocolVersion");Dr.prototype.syncing=yn("eth_syncing");Dr.prototype.coinbase=yn("eth_coinbase");Dr.prototype.mining=yn("eth_mining");Dr.prototype.hashrate=yn("eth_hashrate");Dr.prototype.gasPrice=yn("eth_gasPrice");Dr.prototype.accounts=yn("eth_accounts");Dr.prototype.blockNumber=yn("eth_blockNumber");Dr.prototype.getBlockTransactionCountByHash=yn("eth_getBlockTransactionCountByHash");Dr.prototype.getBlockTransactionCountByNumber=yn("eth_getBlockTransactionCountByNumber");Dr.prototype.getUncleCountByBlockHash=yn("eth_getUncleCountByBlockHash");Dr.prototype.getUncleCountByBlockNumber=yn("eth_getUncleCountByBlockNumber");Dr.prototype.sign=yn("eth_sign");Dr.prototype.sendTransaction=yn("eth_sendTransaction");Dr.prototype.sendRawTransaction=yn("eth_sendRawTransaction");Dr.prototype.estimateGas=yn("eth_estimateGas");Dr.prototype.getBlockByHash=yn("eth_getBlockByHash");Dr.prototype.getBlockByNumber=yn("eth_getBlockByNumber");Dr.prototype.getTransactionByHash=yn("eth_getTransactionByHash");Dr.prototype.getTransactionByBlockHashAndIndex=yn("eth_getTransactionByBlockHashAndIndex");Dr.prototype.getTransactionByBlockNumberAndIndex=yn("eth_getTransactionByBlockNumberAndIndex");Dr.prototype.getTransactionReceipt=yn("eth_getTransactionReceipt");Dr.prototype.getUncleByBlockHashAndIndex=yn("eth_getUncleByBlockHashAndIndex");Dr.prototype.getUncleByBlockNumberAndIndex=yn("eth_getUncleByBlockNumberAndIndex");Dr.prototype.getCompilers=yn("eth_getCompilers");Dr.prototype.compileLLL=yn("eth_compileLLL");Dr.prototype.compileSolidity=yn("eth_compileSolidity");Dr.prototype.compileSerpent=yn("eth_compileSerpent");Dr.prototype.newFilter=yn("eth_newFilter");Dr.prototype.newBlockFilter=yn("eth_newBlockFilter");Dr.prototype.newPendingTransactionFilter=yn("eth_newPendingTransactionFilter");Dr.prototype.uninstallFilter=yn("eth_uninstallFilter");Dr.prototype.getFilterChanges=yn("eth_getFilterChanges");Dr.prototype.getFilterLogs=yn("eth_getFilterLogs");Dr.prototype.getLogs=yn("eth_getLogs");Dr.prototype.getWork=yn("eth_getWork");Dr.prototype.submitWork=yn("eth_submitWork");Dr.prototype.submitHashrate=yn("eth_submitHashrate");Dr.prototype.sendAsync=function(r,e){this.currentProvider.sendAsync(fvn(r),function(n,a){if(!n&&a.error&&(n=new Error("EthQuery - RPC Error - "+a.error.message)),n)return e(n);e(null,a.result)})};function yn(r){return function(){let e=this;var t=[].slice.call(arguments),n=t.pop();e.sendAsync({method:r,params:t},n)}}function a0e(r,e){return function(){let t=this;var n=[].slice.call(arguments),a=n.pop();n.length{f();d();var dvn=zy(),tkt=ml(),JLe=typeof Reflect=="object"?Reflect:null,pvn=JLe&&typeof JLe.apply=="function"?JLe.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};rkt.exports=ZLe;function ZLe(){tkt.call(this)}dvn.inherits(ZLe,tkt);ZLe.prototype.emit=function(r){for(var e=[],t=1;t0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var o=a[r];if(o===void 0)return!1;if(typeof o=="function")ekt(o,this,e);else for(var c=o.length,u=hvn(o,c),t=0;t{throw n})}}function hvn(r,e){for(var t=new Array(e),n=0;n{f();d();var bja=QLe(),gja=YLe(),mvn=nkt(),yvn=1e3,bvn=(r,e)=>r+e,akt=["sync","latest"],XLe=class extends mvn{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||20*yvn,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){!akt.includes(e)||this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){!this._isRunning||(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return akt.map(e=>this.listenerCount(e)).reduce(bvn)}_newPotentialLatest(e){let t=this._currentBlock;t&&ikt(e)<=ikt(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};skt.exports=XLe;function ikt(r){return Number.parseInt(r,16)}});var lkt=E((_ja,ukt)=>{f();d();var gvn=YLe(),vvn=okt(),wvn=1e3,eqe=class extends vvn{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");let t=e.pollingInterval||20*wvn,n=e.retryTimeout||t/10,a=e.keepEventLoopActive!==void 0?e.keepEventLoopActive:!0,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=a,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await ckt(this._pollingInterval,!this._keepEventLoopActive)}catch(e){let t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: +${e.stack}`);try{this.emit("error",t)}catch{console.error(t)}await ckt(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let t=await gvn(n=>this._provider.sendAsync(e,n))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block: +${t.error}`);return t.result}};ukt.exports=eqe;function ckt(r,e){return new Promise(t=>{let n=setTimeout(t,r);n.unref&&e&&n.unref()})}});var rqe=E(Hwe=>{"use strict";f();d();Object.defineProperty(Hwe,"__esModule",{value:!0});Hwe.getUniqueId=void 0;var fkt=4294967295,tqe=Math.floor(Math.random()*fkt);function xvn(){return tqe=(tqe+1)%fkt,tqe}Hwe.getUniqueId=xvn});var dkt=E(jwe=>{"use strict";f();d();Object.defineProperty(jwe,"__esModule",{value:!0});jwe.createIdRemapMiddleware=void 0;var _vn=rqe();function Tvn(){return(r,e,t,n)=>{let a=r.id,i=_vn.getUniqueId();r.id=i,e.id=i,t(s=>{r.id=a,e.id=a,s()})}}jwe.createIdRemapMiddleware=Tvn});var pkt=E(zwe=>{"use strict";f();d();Object.defineProperty(zwe,"__esModule",{value:!0});zwe.createAsyncMiddleware=void 0;function Evn(r){return async(e,t,n,a)=>{let i,s=new Promise(l=>{i=l}),o=null,c=!1,u=async()=>{c=!0,n(l=>{o=l,i()}),await s};try{await r(e,t,u),c?(await s,o(null)):a(null)}catch(l){o?o(l):a(l)}}}zwe.createAsyncMiddleware=Evn});var hkt=E(Kwe=>{"use strict";f();d();Object.defineProperty(Kwe,"__esModule",{value:!0});Kwe.createScaffoldMiddleware=void 0;function Ivn(r){return(e,t,n,a)=>{let i=r[e.method];return i===void 0?n():typeof i=="function"?i(e,t,n,a):(t.result=i,a())}}Kwe.createScaffoldMiddleware=Ivn});var Vwe=E(Hee=>{"use strict";f();d();Object.defineProperty(Hee,"__esModule",{value:!0});Hee.EthereumProviderError=Hee.EthereumRpcError=void 0;var Cvn=bLe(),Gwe=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return Cvn.default(this.serialize(),kvn,2)}};Hee.EthereumRpcError=Gwe;var nqe=class extends Gwe{constructor(e,t,n){if(!Avn(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};Hee.EthereumProviderError=nqe;function Avn(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function kvn(r,e){if(e!=="[Circular]")return e}});var $we=E(jee=>{"use strict";f();d();Object.defineProperty(jee,"__esModule",{value:!0});jee.errorValues=jee.errorCodes=void 0;jee.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};jee.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}});var sqe=E(um=>{"use strict";f();d();Object.defineProperty(um,"__esModule",{value:!0});um.serializeError=um.isValidCode=um.getMessageFromCode=um.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var Ywe=$we(),Svn=Vwe(),mkt=Ywe.errorCodes.rpc.internal,Pvn="Unspecified error message. This is a bug, please report it.",Rvn={code:mkt,message:iqe(mkt)};um.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function iqe(r,e=Pvn){if(Number.isInteger(r)){let t=r.toString();if(aqe(Ywe.errorValues,t))return Ywe.errorValues[t].message;if(gkt(r))return um.JSON_RPC_SERVER_ERROR_MESSAGE}return e}um.getMessageFromCode=iqe;function bkt(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(Ywe.errorValues[e]||gkt(r))}um.isValidCode=bkt;function Mvn(r,{fallbackError:e=Rvn,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof Svn.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&aqe(r,"code")&&bkt(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,aqe(o,"data")&&(i.data=o.data)):(i.message=iqe(i.code),i.data={originalError:ykt(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:ykt(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}um.serializeError=Mvn;function gkt(r){return r>=-32099&&r<=-32e3}function ykt(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function aqe(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var xkt=E(Qwe=>{"use strict";f();d();Object.defineProperty(Qwe,"__esModule",{value:!0});Qwe.ethErrors=void 0;var oqe=Vwe(),vkt=sqe(),rl=$we();Qwe.ethErrors={rpc:{parse:r=>Fp(rl.errorCodes.rpc.parse,r),invalidRequest:r=>Fp(rl.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Fp(rl.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Fp(rl.errorCodes.rpc.methodNotFound,r),internal:r=>Fp(rl.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Fp(e,r)},invalidInput:r=>Fp(rl.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Fp(rl.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Fp(rl.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Fp(rl.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Fp(rl.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Fp(rl.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>i0e(rl.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>i0e(rl.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>i0e(rl.errorCodes.provider.unsupportedMethod,r),disconnected:r=>i0e(rl.errorCodes.provider.disconnected,r),chainDisconnected:r=>i0e(rl.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new oqe.EthereumProviderError(e,t,n)}}};function Fp(r,e){let[t,n]=wkt(e);return new oqe.EthereumRpcError(r,t||vkt.getMessageFromCode(r),n)}function i0e(r,e){let[t,n]=wkt(e);return new oqe.EthereumProviderError(r,t||vkt.getMessageFromCode(r),n)}function wkt(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var Ekt=E(vf=>{"use strict";f();d();Object.defineProperty(vf,"__esModule",{value:!0});vf.getMessageFromCode=vf.serializeError=vf.EthereumProviderError=vf.EthereumRpcError=vf.ethErrors=vf.errorCodes=void 0;var _kt=Vwe();Object.defineProperty(vf,"EthereumRpcError",{enumerable:!0,get:function(){return _kt.EthereumRpcError}});Object.defineProperty(vf,"EthereumProviderError",{enumerable:!0,get:function(){return _kt.EthereumProviderError}});var Tkt=sqe();Object.defineProperty(vf,"serializeError",{enumerable:!0,get:function(){return Tkt.serializeError}});Object.defineProperty(vf,"getMessageFromCode",{enumerable:!0,get:function(){return Tkt.getMessageFromCode}});var Bvn=xkt();Object.defineProperty(vf,"ethErrors",{enumerable:!0,get:function(){return Bvn.ethErrors}});var Dvn=$we();Object.defineProperty(vf,"errorCodes",{enumerable:!0,get:function(){return Dvn.errorCodes}})});var uqe=E(zee=>{"use strict";f();d();var Nvn=zee&&zee.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(zee,"__esModule",{value:!0});zee.JsonRpcEngine=void 0;var Ovn=Nvn(zce()),Lp=Ekt(),lm=class extends Ovn.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&typeof t!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,a)=>{try{let[i,s,o]=await lm._runAllMiddleware(e,t,this._middleware);return s?(await lm._runReturnHandlers(o),a(i)):n(async c=>{try{await lm._runReturnHandlers(o)}catch(u){return c(u)}return c()})}catch(i){return a(i)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(n,a)=>{t(a)})})}async _handle(e,t){if(!e||Array.isArray(e)||typeof e!="object"){let s=new Lp.EthereumRpcError(Lp.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){let s=new Lp.EthereumRpcError(Lp.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(s,{id:e.id,jsonrpc:"2.0",error:s})}let n=Object.assign({},e),a={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,a)}catch(s){i=s}return i&&(delete a.result,a.error||(a.error=Lp.serializeError(i))),t(i,a)}async _processRequest(e,t){let[n,a,i]=await lm._runAllMiddleware(e,t,this._middleware);if(lm._checkForCompletion(e,t,a),await lm._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let a=[],i=null,s=!1;for(let o of n)if([i,s]=await lm._runMiddleware(e,t,o,a),s)break;return[i,s,a.reverse()]}static _runMiddleware(e,t,n,a){return new Promise(i=>{let s=c=>{let u=c||t.error;u&&(t.error=Lp.serializeError(u)),i([u,!0])},o=c=>{t.error?s(t.error):(c&&(typeof c!="function"&&s(new Lp.EthereumRpcError(Lp.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof c}" for request: +${cqe(e)}`,{request:e})),a.push(c)),i([null,!1]))};try{n(e,t,o,s)}catch(c){s(c)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((n,a)=>{t(i=>i?a(i):n())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new Lp.EthereumRpcError(Lp.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: +${cqe(e)}`,{request:e});if(!n)throw new Lp.EthereumRpcError(Lp.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: +${cqe(e)}`,{request:e})}};zee.JsonRpcEngine=lm;function cqe(r){return JSON.stringify(r,null,2)}});var Ikt=E(Jwe=>{"use strict";f();d();Object.defineProperty(Jwe,"__esModule",{value:!0});Jwe.mergeMiddleware=void 0;var Fvn=uqe();function Lvn(r){let e=new Fvn.JsonRpcEngine;return r.forEach(t=>e.push(t)),e.asMiddleware()}Jwe.mergeMiddleware=Lvn});var lqe=E(qp=>{"use strict";f();d();var qvn=qp&&qp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Kee=qp&&qp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&qvn(e,r,t)};Object.defineProperty(qp,"__esModule",{value:!0});Kee(dkt(),qp);Kee(pkt(),qp);Kee(hkt(),qp);Kee(rqe(),qp);Kee(uqe(),qp);Kee(Ikt(),qp)});var t3e=E((oza,e3e)=>{f();d();var Ckt,Akt,kkt,Skt,Pkt,Rkt,Mkt,Bkt,Dkt,Nkt,Okt,Fkt,Lkt,Zwe,fqe,qkt,Wkt,Ukt,Gee,Hkt,jkt,zkt,Kkt,Gkt,Vkt,$kt,Ykt,Qkt,Xwe;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof e3e=="object"&&typeof e3e.exports=="object"?r(t(e,t(e3e.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])};Ckt=function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)},Akt=Object.assign||function(n){for(var a,i=1,s=arguments.length;i=0;l--)(u=n[l])&&(c=(o<3?u(c):o>3?u(a,i,c):u(a,i))||c);return o>3&&c&&Object.defineProperty(a,i,c),c},Pkt=function(n,a){return function(i,s){a(i,s,n)}},Rkt=function(n,a,i,s,o,c){function u(W){if(W!==void 0&&typeof W!="function")throw new TypeError("Function expected");return W}for(var l=s.kind,p=l==="getter"?"get":l==="setter"?"set":"value",h=!a&&n?s.static?n:n.prototype:null,m=a||(h?Object.getOwnPropertyDescriptor(h,s.name):{}),y,C=!1,P=i.length-1;P>=0;P--){var A={};for(var B in s)A[B]=B==="access"?{}:s[B];for(var B in s.access)A.access[B]=s.access[B];A.addInitializer=function(W){if(C)throw new TypeError("Cannot add initializers after decoration has completed");c.push(u(W||null))};var F=(0,i[P])(l==="accessor"?{get:m.get,set:m.set}:m[p],A);if(l==="accessor"){if(F===void 0)continue;if(F===null||typeof F!="object")throw new TypeError("Object expected");(y=u(F.get))&&(m.get=y),(y=u(F.set))&&(m.set=y),(y=u(F.init))&&o.push(y)}else(y=u(F))&&(l==="field"?o.push(y):m[p]=y)}h&&Object.defineProperty(h,s.name,m),C=!0},Mkt=function(n,a,i){for(var s=arguments.length>2,o=0;o0&&c[c.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},fqe=function(n,a){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),o,c=[],u;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(l){u={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},qkt=function(){for(var n=[],a=0;a1||l(C,P)})})}function l(C,P){try{p(s[C](P))}catch(A){y(c[0][3],A)}}function p(C){C.value instanceof Gee?Promise.resolve(C.value.v).then(h,m):y(c[0][2],C)}function h(C){l("next",C)}function m(C){l("throw",C)}function y(C,P){C(P),c.shift(),c.length&&l(c[0][0],c[0][1])}},jkt=function(n){var a,i;return a={},s("next"),s("throw",function(o){throw o}),s("return"),a[Symbol.iterator]=function(){return this},a;function s(o,c){a[o]=n[o]?function(u){return(i=!i)?{value:Gee(n[o](u)),done:!1}:c?c(u):u}:c}},zkt=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],i;return a?a.call(n):(n=typeof Zwe=="function"?Zwe(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(c){i[c]=n[c]&&function(u){return new Promise(function(l,p){u=n[c](u),o(l,p,u.done,u.value)})}}function o(c,u,l,p){Promise.resolve(p).then(function(h){c({value:h,done:l})},u)}},Kkt=function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n};var t=Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a};Gkt=function(n){if(n&&n.__esModule)return n;var a={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&Xwe(a,n,i);return t(a,n),a},Vkt=function(n){return n&&n.__esModule?n:{default:n}},$kt=function(n,a,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?n!==a||!s:!a.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:a.get(n)},Ykt=function(n,a,i,s,o){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?n!==a||!o:!a.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?o.call(n,i):o?o.value=i:a.set(n,i),i},Qkt=function(n,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?a===n:n.has(a)},r("__extends",Ckt),r("__assign",Akt),r("__rest",kkt),r("__decorate",Skt),r("__param",Pkt),r("__esDecorate",Rkt),r("__runInitializers",Mkt),r("__propKey",Bkt),r("__setFunctionName",Dkt),r("__metadata",Nkt),r("__awaiter",Okt),r("__generator",Fkt),r("__exportStar",Lkt),r("__createBinding",Xwe),r("__values",Zwe),r("__read",fqe),r("__spread",qkt),r("__spreadArrays",Wkt),r("__spreadArray",Ukt),r("__await",Gee),r("__asyncGenerator",Hkt),r("__asyncDelegator",jkt),r("__asyncValues",zkt),r("__makeTemplateObject",Kkt),r("__importStar",Gkt),r("__importDefault",Vkt),r("__classPrivateFieldGet",$kt),r("__classPrivateFieldSet",Ykt),r("__classPrivateFieldIn",Qkt)})});var pqe=E(dqe=>{"use strict";f();d();Object.defineProperty(dqe,"__esModule",{value:!0});var Jkt=t3e(),Wvn=function(){function r(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return r.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(a){return e._queue.push(a)});return t||this._dispatch(),n},r.prototype.runExclusive=function(e){return Jkt.__awaiter(this,void 0,void 0,function(){var t,n,a;return Jkt.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:t=i.sent(),n=t[0],a=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return a(),[7];case 5:return[2]}})})},r.prototype.isLocked=function(){return this._value<=0},r.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},r.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(!!t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},r}();dqe.default=Wvn});var Xkt=E(hqe=>{"use strict";f();d();Object.defineProperty(hqe,"__esModule",{value:!0});var Zkt=t3e(),Uvn=pqe(),Hvn=function(){function r(){this._semaphore=new Uvn.default(1)}return r.prototype.acquire=function(){return Zkt.__awaiter(this,void 0,void 0,function(){var e,t;return Zkt.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),t=e[1],[2,t]}})})},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();hqe.default=Hvn});var eSt=E(n3e=>{"use strict";f();d();Object.defineProperty(n3e,"__esModule",{value:!0});n3e.withTimeout=void 0;var r3e=t3e();function jvn(r,e,t){var n=this;return t===void 0&&(t=new Error("timeout")),{acquire:function(){return new Promise(function(a,i){return r3e.__awaiter(n,void 0,void 0,function(){var s,o,c;return r3e.__generator(this,function(u){switch(u.label){case 0:return s=!1,setTimeout(function(){s=!0,i(t)},e),[4,r.acquire()];case 1:return o=u.sent(),s?(c=Array.isArray(o)?o[1]:o,c()):a(o),[2]}})})})},runExclusive:function(a){return r3e.__awaiter(this,void 0,void 0,function(){var i,s;return r3e.__generator(this,function(o){switch(o.label){case 0:i=function(){},o.label=1;case 1:return o.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=o.sent(),Array.isArray(s)?(i=s[1],[4,a(s[0])]):[3,4];case 3:return[2,o.sent()];case 4:return i=s,[4,a()];case 5:return[2,o.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){r.release()},isLocked:function(){return r.isLocked()}}}n3e.withTimeout=jvn});var tSt=E(l6=>{"use strict";f();d();Object.defineProperty(l6,"__esModule",{value:!0});l6.withTimeout=l6.Semaphore=l6.Mutex=void 0;var zvn=Xkt();Object.defineProperty(l6,"Mutex",{enumerable:!0,get:function(){return zvn.default}});var Kvn=pqe();Object.defineProperty(l6,"Semaphore",{enumerable:!0,get:function(){return Kvn.default}});var Gvn=eSt();Object.defineProperty(l6,"withTimeout",{enumerable:!0,get:function(){return Gvn.withTimeout}})});var iSt=E((_za,aSt)=>{"use strict";f();d();var rSt=(r,e,t,n)=>function(...a){let i=e.promiseModule;return new i((s,o)=>{e.multiArgs?a.push((...u)=>{e.errorFirst?u[0]?o(u):(u.shift(),s(u)):s(u)}):e.errorFirst?a.push((u,l)=>{u?o(u):s(l)}):a.push(s),Reflect.apply(r,this===t?n:this,a)})},nSt=new WeakMap;aSt.exports=(r,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let t=typeof r;if(!(r!==null&&(t==="object"||t==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${r===null?"null":t}\``);let n=(s,o)=>{let c=nSt.get(s);if(c||(c={},nSt.set(s,c)),o in c)return c[o];let u=y=>typeof y=="string"||typeof o=="symbol"?o===y:y.test(o),l=Reflect.getOwnPropertyDescriptor(s,o),p=l===void 0||l.writable||l.configurable,m=(e.include?e.include.some(u):!e.exclude.some(u))&&p;return c[o]=m,m},a=new WeakMap,i=new Proxy(r,{apply(s,o,c){let u=a.get(s);if(u)return Reflect.apply(u,o,c);let l=e.excludeMain?s:rSt(s,e,i,s);return a.set(s,l),Reflect.apply(l,o,c)},get(s,o){let c=s[o];if(!n(s,o)||c===Function.prototype[o])return c;let u=a.get(c);if(u)return u;if(typeof c=="function"){let l=rSt(c,e,i,s);return a.set(c,l),l}return c}});return i}});var a3e=E((Iza,sSt)=>{f();d();var Vvn=zce().default,mqe=class extends Vvn{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(t=>this.emit("update",t))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};sSt.exports=mqe});var cSt=E((kza,oSt)=>{f();d();var $vn=a3e(),yqe=class extends $vn{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};oSt.exports=yqe});var Vee=E((Rza,fSt)=>{f();d();fSt.exports={minBlockRef:Yvn,maxBlockRef:Qvn,sortBlockRefs:bqe,bnToHex:Jvn,blockRefIsNumber:Zvn,hexToInt:i3e,incrementHexInt:Xvn,intToHex:lSt,unsafeRandomBytes:ewn};function Yvn(...r){return bqe(r)[0]}function Qvn(...r){let e=bqe(r);return e[e.length-1]}function bqe(r){return r.sort((e,t)=>e==="latest"||t==="earliest"?1:t==="latest"||e==="earliest"?-1:i3e(e)-i3e(t))}function Jvn(r){return"0x"+r.toString(16)}function Zvn(r){return r&&!["earliest","latest","pending"].includes(r)}function i3e(r){return r==null?r:Number.parseInt(r,16)}function Xvn(r){if(r==null)return r;let e=i3e(r);return lSt(e+1)}function lSt(r){if(r==null)return r;let e=r.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function ewn(r){let e="0x";for(let t=0;t{f();d();var twn=QLe(),rwn=iSt(),nwn=cSt(),{bnToHex:Dza,hexToInt:s3e,incrementHexInt:awn,minBlockRef:iwn,blockRefIsNumber:swn}=Vee(),gqe=class extends nwn{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new twn(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),t==="earliest"&&(t="0x0"),this.params.fromBlock=t;let n=iwn(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(a);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n=t,a;e?a=awn(e):a=t;let i=Object.assign({},this.params,{fromBlock:a,toBlock:n}),o=(await this._fetchLogs(i)).filter(c=>this.matchLog(c));this.addResults(o)}async _fetchLogs(e){return await rwn(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(s3e(this.params.fromBlock)>=s3e(e.blockNumber)||swn(this.params.toBlock)&&s3e(this.params.toBlock)<=s3e(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();return this.params.address&&t&&!this.params.address.includes(t)?!1:this.params.topics.every((a,i)=>{let s=e.topics[i];if(!s)return!1;s=s.toLowerCase();let o=Array.isArray(a)?a:[a];return o.includes(null)?!0:(o=o.map(l=>l.toLowerCase()),o.includes(s))})}};dSt.exports=gqe});var o3e=E((Lza,mSt)=>{f();d();mSt.exports=own;async function own({provider:r,fromBlock:e,toBlock:t}){e||(e=t);let n=hSt(e),i=hSt(t)-n+1,s=Array(i).fill().map((c,u)=>n+u).map(cwn);return await Promise.all(s.map(c=>lwn(r,"eth_getBlockByNumber",[c,!1])))}function hSt(r){return r==null?r:Number.parseInt(r,16)}function cwn(r){return r==null?r:"0x"+r.toString(16)}function uwn(r,e){return new Promise((t,n)=>{r.sendAsync(e,(a,i)=>{a?n(a):i.error?n(i.error):i.result?t(i.result):n(new Error("Result was empty"))})})}async function lwn(r,e,t){for(let n=0;n<3;n++)try{return await uwn(r,{id:1,jsonrpc:"2.0",method:e,params:t})}catch(a){console.error(`provider.sendAsync failed: ${a.stack||a.message||a}`)}throw new Error(`Block not found for params: ${JSON.stringify(t)}`)}});var bSt=E((Uza,ySt)=>{f();d();var fwn=a3e(),dwn=o3e(),{incrementHexInt:pwn}=Vee(),vqe=class extends fwn{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=t,a=pwn(e),s=(await dwn({provider:this.provider,fromBlock:a,toBlock:n})).map(o=>o.hash);this.addResults(s)}};ySt.exports=vqe});var vSt=E((zza,gSt)=>{f();d();var hwn=a3e(),mwn=o3e(),{incrementHexInt:ywn}=Vee(),wqe=class extends hwn{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=e,n=ywn(e),a=await mwn({provider:this.provider,fromBlock:n,toBlock:t}),i=[];for(let s of a)i.push(...s.transactions);this.addResults(i)}};gSt.exports=wqe});var _St=E((Vza,xSt)=>{f();d();var bwn=tSt().Mutex,{createAsyncMiddleware:gwn,createScaffoldMiddleware:vwn}=lqe(),wwn=pSt(),xwn=bSt(),_wn=vSt(),{intToHex:wSt,hexToInt:xqe}=Vee();xSt.exports=Twn;function Twn({blockTracker:r,provider:e}){let t=0,n={},a=new bwn,i=Ewn({mutex:a}),s=vwn({eth_newFilter:i(_qe(c)),eth_newBlockFilter:i(_qe(u)),eth_newPendingTransactionFilter:i(_qe(l)),eth_uninstallFilter:i(c3e(m)),eth_getFilterChanges:i(c3e(p)),eth_getFilterLogs:i(c3e(h))}),o=async({oldBlock:B,newBlock:F})=>{if(n.length===0)return;let W=await a.acquire();try{await Promise.all($ee(n).map(async K=>{try{await K.update({oldBlock:B,newBlock:F})}catch(z){console.error(z)}}))}catch(K){console.error(K)}W()};return s.newLogFilter=c,s.newBlockFilter=u,s.newPendingTransactionFilter=l,s.uninstallFilter=m,s.getFilterChanges=p,s.getFilterLogs=h,s.destroy=()=>{P()},s;async function c(B){let F=new wwn({provider:e,params:B}),W=await y(F);return F}async function u(){let B=new xwn({provider:e}),F=await y(B);return B}async function l(){let B=new _wn({provider:e}),F=await y(B);return B}async function p(B){let F=xqe(B),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);return W.getChangesAndClear()}async function h(B){let F=xqe(B),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);let K=[];return W.type==="log"&&(K=W.getAllResults()),K}async function m(B){let F=xqe(B),W=n[F],K=Boolean(W);return K&&await C(F),K}async function y(B){let F=$ee(n).length,W=await r.getLatestBlock();await B.initialize({currentBlock:W}),t++,n[t]=B,B.id=t,B.idHex=wSt(t);let K=$ee(n).length;return A({prevFilterCount:F,newFilterCount:K}),t}async function C(B){let F=$ee(n).length;delete n[B];let W=$ee(n).length;A({prevFilterCount:F,newFilterCount:W})}async function P(){let B=$ee(n).length;n={},A({prevFilterCount:B,newFilterCount:0})}function A({prevFilterCount:B,newFilterCount:F}){if(B===0&&F>0){r.on("sync",o);return}if(B>0&&F===0){r.removeListener("sync",o);return}}}function _qe(r){return c3e(async(...e)=>{let t=await r(...e);return wSt(t.id)})}function c3e(r){return gwn(async(e,t)=>{let n=await r.apply(null,e.params);t.result=n})}function Ewn({mutex:r}){return e=>async(t,n,a,i)=>{(await r.acquire())(),e(t,n,a,i)}}function $ee(r,e){let t=[];for(let n in r)t.push(r[n]);return t}});var ISt=E((Qza,ESt)=>{f();d();var Iwn=zce().default,{createAsyncMiddleware:TSt,createScaffoldMiddleware:Cwn}=lqe(),Awn=_St(),{unsafeRandomBytes:kwn,incrementHexInt:Swn}=Vee(),Pwn=o3e();ESt.exports=Rwn;function Rwn({blockTracker:r,provider:e}){let t={},n=Awn({blockTracker:r,provider:e}),a=!1,i=new Iwn,s=Cwn({eth_subscribe:TSt(o),eth_unsubscribe:TSt(c)});return s.destroy=l,{events:i,middleware:s};async function o(p,h){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=p.params[0],y=kwn(16),C;switch(m){case"newHeads":C=P({subId:y});break;case"logs":let B=p.params[1],F=await n.newLogFilter(B);C=A({subId:y,filter:F});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${m}"`)}t[y]=C,h.result=y;return;function P({subId:B}){let F={type:m,destroy:async()=>{r.removeListener("sync",F.update)},update:async({oldBlock:W,newBlock:K})=>{let z=K,G=Swn(W);(await Pwn({provider:e,fromBlock:G,toBlock:z})).map(Mwn).filter(I=>I!==null).forEach(I=>{u(B,I)})}};return r.on("sync",F.update),F}function A({subId:B,filter:F}){return F.on("update",K=>u(B,K)),{type:m,destroy:async()=>await n.uninstallFilter(F.idHex)}}}async function c(p,h){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=p.params[0],y=t[m];if(!y){h.result=!1;return}delete t[m],await y.destroy(),h.result=!0}function u(p,h){i.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:p,result:h}})}function l(){i.removeAllListeners();for(let p in t)t[p].destroy(),delete t[p];a=!0}}function Mwn(r){return r==null?null:{hash:r.hash,parentHash:r.parentHash,sha3Uncles:r.sha3Uncles,miner:r.miner,stateRoot:r.stateRoot,transactionsRoot:r.transactionsRoot,receiptsRoot:r.receiptsRoot,logsBloom:r.logsBloom,difficulty:r.difficulty,number:r.number,gasLimit:r.gasLimit,gasUsed:r.gasUsed,nonce:r.nonce,mixHash:r.mixHash,timestamp:r.timestamp,extraData:r.extraData}}});var ASt=E(u3e=>{"use strict";f();d();Object.defineProperty(u3e,"__esModule",{value:!0});u3e.SubscriptionManager=void 0;var Bwn=lkt(),Dwn=ISt(),CSt=()=>{},Tqe=class{constructor(e){let t=new Bwn({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=Dwn({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,CSt,CSt),t}destroy(){this.subscriptionMiddleware.destroy()}};u3e.SubscriptionManager=Tqe});var l3e=E(Yee=>{"use strict";f();d();var Aqe=Yee&&Yee.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yee,"__esModule",{value:!0});Yee.CoinbaseWalletProvider=void 0;var Nwn=Aqe(zce()),Own=Aqe(Fr()),nl=Iwe(),Eqe=Awe(),kSt=Fwe(),SSt=zLe(),dn=Kb(),Iqe=Aqe(WAt()),Fwn=KAt(),Ri=GAt(),Lwn=ASt(),PSt="DefaultChainId",RSt="DefaultJsonRpcUrl",Cqe=class extends Nwn.default{constructor(e){var t,n;super(),this._filterPolyfill=new Fwn.FilterPolyfill(this),this._subscriptionManager=new Lwn.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let a=this.getChainId(),i=(0,dn.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(SSt.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let o=s.split(" ");o[0]!==""&&(this._addresses=o.map(c=>(0,dn.ensureAddressString)(c)),this.emit("accountsChanged",o))}this._subscriptionManager.events.on("notification",o=>{this.emit("message",{type:o.method,data:o.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",o=>{var c;if(!(o.origin!==location.origin||o.source!==window)&&o.data.type==="walletLinkMessage"){if(o.data.data.action==="defaultChainChanged"||o.data.data.action==="dappChainSwitched"){let u=o.data.data.chainId,l=(c=o.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(l,Number(u))}o.data.data.action==="addressChanged"&&this._setAddresses([o.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,dn.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return(e=this._storage.getItem(RSt))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(RSt,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(PSt,t.toString(10)),((0,dn.ensureIntNumber)(t)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,a,i,s){return!!(await(await this.initializeRelay()).watchAsset(e,t,n,a,i,s?.toString()).promise).result}async addEthereumChain(e,t,n,a,i,s){var o,c;if((0,dn.ensureIntNumber)(e)===this.getChainId())return!1;let u=await this.initializeRelay(),l=u.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!l&&await u.requestEthereumAccounts().promise;let p=await u.addEthereumChain(e.toString(),t,i,n,a,s).promise;return((o=p.result)===null||o===void 0?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),((c=p.result)===null||c===void 0?void 0:c.isApproved)===!0}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw nl.ethErrors.provider.custom({code:n.errorCode});let a=n.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(Eqe.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?kSt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(Ri.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if(typeof e=="string"){let a=e,i=Array.isArray(t)?t:t!==void 0?[t]:[],s={jsonrpc:"2.0",id:0,method:a,params:i};return this._sendRequestAsync(s).then(o=>o.result)}if(typeof t=="function"){let a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map(i=>this._sendRequest(i));let n=e;return this._sendRequest(n)}async sendAsync(e,t){if(typeof t!="function")throw new Error("callback is required");if(Array.isArray(e)){let a=t;this._sendMultipleRequestsAsync(e).then(i=>a(null,i)).catch(i=>a(i,null));return}let n=t;return this._sendRequestAsync(e).then(a=>n(null,a)).catch(a=>n(a,null))}async request(e){if(!e||typeof e!="object"||Array.isArray(e))throw nl.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if(typeof t!="string"||t.length===0)throw nl.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw nl.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let a=n===void 0?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:a,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,dn.ensureRegExpString)(e)).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}async genericRequest(e,t){let a=await(await this.initializeRelay()).genericRequest(e,t).promise;if(typeof a.result!="string")throw new Error("result was not a string");return a.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),t.result===void 0)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");let n=e.map(a=>(0,dn.ensureAddressString)(a));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&this.supportsAddressSwitching===!1&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(SSt.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let a=this._handleSynchronousMethods(e);if(a!==void 0)return t({jsonrpc:"2.0",id:e.id,result:a});let i=this._handleAsynchronousFilterMethods(e);if(i!==void 0){i.then(o=>t(Object.assign(Object.assign({},o),{id:e.id}))).catch(o=>n(o));return}let s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(o=>t({jsonrpc:"2.0",id:e.id,result:o.result})).catch(o=>n(o));return}}catch(a){return n(a)}this._handleAsynchronousMethods(e).then(a=>a&&t(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ri.JSONRPCMethod.eth_accounts:return this._eth_accounts();case Ri.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case Ri.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case Ri.JSONRPCMethod.net_version:return this._net_version();case Ri.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ri.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case Ri.JSONRPCMethod.eth_sign:return this._eth_sign(n);case Ri.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case Ri.JSONRPCMethod.personal_sign:return this._personal_sign(n);case Ri.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case Ri.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case Ri.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case Ri.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case Ri.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case Ri.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case Ri.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case Ri.JSONRPCMethod.eth_signTypedData_v4:case Ri.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case Ri.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case Ri.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case Ri.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case Ri.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ri.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case Ri.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case Ri.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case Ri.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case Ri.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case Ri.JSONRPCMethod.eth_subscribe:case Ri.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,dn.ensureAddressString)(e);return this._addresses.map(a=>(0,dn.ensureAddressString)(a)).includes(t)}catch{}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw(t=this.diagnostic)===null||t===void 0||t.log(Eqe.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,dn.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,dn.ensureAddressString)(e.to):null,a=e.value!=null?(0,dn.ensureBN)(e.value):new Own.default(0),i=e.data?(0,dn.ensureBuffer)(e.data):v.Buffer.alloc(0),s=e.nonce!=null?(0,dn.ensureIntNumber)(e.nonce):null,o=e.gasPrice!=null?(0,dn.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,dn.ensureBN)(e.maxFeePerGas):null,u=e.maxPriorityFeePerGas!=null?(0,dn.ensureBN)(e.maxPriorityFeePerGas):null,l=e.gas!=null?(0,dn.ensureBN)(e.gas):null,p=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:i,nonce:s,gasPriceInWei:o,maxFeePerGas:c,maxPriorityFeePerGas:u,gasLimit:l,chainId:p}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw nl.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw nl.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,a){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,t,n,a).promise).result}}catch(i){throw typeof i.message=="string"&&i.message.match(/(denied|rejected)/i)?nl.ethErrors.provider.userRejectedRequest("User denied message signature"):i}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,dn.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(PSt);if(!e)return(0,dn.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,dn.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(Eqe.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?kSt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{t=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?nl.ethErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,dn.ensureAddressString)(e[0]),n=(0,dn.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,dn.ensureBuffer)(e[0]),n=(0,dn.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,dn.ensureBuffer)(e[0]),n=(0,dn.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,dn.ensureBuffer)(e[0]),n=(0,dn.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?nl.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(e){let t=(0,dn.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?nl.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,dn.ensureParsedJSONObject)(e[0]),n=(0,dn.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let a=Iqe.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(a,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,dn.ensureAddressString)(e[0]),n=(0,dn.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Iqe.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,dn.ensureAddressString)(e[0]),n=(0,dn.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=Iqe.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof t!="object"||t===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,a,i;let s=e[0];if(((t=s.rpcUrls)===null||t===void 0?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw nl.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw nl.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,(n=s.rpcUrls)!==null&&n!==void 0?n:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(i=s.iconUrls)!==null&&i!==void 0?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw nl.ethErrors.rpc.invalidParams({message:"Type is required"});if(t?.type!=="ERC20")throw nl.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!t?.options)throw nl.ethErrors.rpc.invalidParams({message:"Options are required"});if(!t?.options.address)throw nl.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:a,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,a,i,o,s,n)}}_eth_uninstallFilter(e){let t=(0,dn.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){let t=(0,dn.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,dn.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((t,n)=>this._setAddresses(t,n)),e.setChainCallback((t,n)=>{this.updateProviderInfo(n,parseInt(t,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};Yee.CoinbaseWalletProvider=Cqe});var xf={};Rr(xf,{Component:()=>wf,Fragment:()=>Wp,cloneElement:()=>Rqe,createContext:()=>l0e,createElement:()=>yd,createRef:()=>u0e,h:()=>yd,hydrate:()=>h3e,isValidElement:()=>FSt,options:()=>zt,render:()=>G3,toChildArray:()=>fm});function Gb(r,e){for(var t in e)r[t]=e[t];return r}function USt(r){var e=r.parentNode;e&&e.removeChild(r)}function yd(r,e,t){var n,a,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?c0e.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(i in r.defaultProps)s[i]===void 0&&(s[i]=r.defaultProps[i]);return s0e(r,s,n,a,null)}function s0e(r,e,t,n,a){var i={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++OSt};return a==null&&zt.vnode!=null&&zt.vnode(i),i}function u0e(){return{current:null}}function Wp(r){return r.children}function wf(r,e){this.props=r,this.context=e}function o0e(r,e){if(e==null)return r.__?o0e(r.__,r.__.__k.indexOf(r)+1):null;for(var t;ee&&K3.sort(kqe));d3e.__r=0}function jSt(r,e,t,n,a,i,s,o,c,u){var l,p,h,m,y,C,P,A=n&&n.__k||WSt,B=A.length;for(t.__k=[],l=0;l0?s0e(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=t,m.__b=t.__b+1,(h=A[l])===null||h&&m.key==h.key&&m.type===h.type)A[l]=void 0;else for(p=0;p=0;e--)if((t=r.__k[e])&&(n=GSt(t)))return n}return null}function Wwn(r,e,t,n,a){var i;for(i in t)i==="children"||i==="key"||i in e||p3e(r,i,null,t[i],n);for(i in e)a&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||t[i]===e[i]||p3e(r,i,e[i],t[i],n)}function BSt(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||qwn.test(e)?t:t+"px"}function p3e(r,e,t,n,a){var i;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||BSt(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||BSt(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+i]=t,t?n||r.addEventListener(e,i?NSt:DSt,i):r.removeEventListener(e,i?NSt:DSt,i);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function DSt(r){return this.l[r.type+!1](zt.event?zt.event(r):r)}function NSt(r){return this.l[r.type+!0](zt.event?zt.event(r):r)}function Pqe(r,e,t,n,a,i,s,o,c){var u,l,p,h,m,y,C,P,A,B,F,W,K,z,G,j=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(c=t.__h,o=e.__e=t.__e,e.__h=null,i=[o]),(u=zt.__b)&&u(e);try{e:if(typeof j=="function"){if(P=e.props,A=(u=j.contextType)&&n[u.__c],B=u?A?A.props.value:u.__:n,t.__c?C=(l=e.__c=t.__c).__=l.__E:("prototype"in j&&j.prototype.render?e.__c=l=new j(P,B):(e.__c=l=new wf(P,B),l.constructor=j,l.render=Hwn),A&&A.sub(l),l.props=P,l.state||(l.state={}),l.context=B,l.__n=n,p=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),j.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Gb({},l.__s)),Gb(l.__s,j.getDerivedStateFromProps(P,l.__s))),h=l.props,m=l.state,l.__v=e,p)j.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(j.getDerivedStateFromProps==null&&P!==h&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(P,B),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(P,l.__s,B)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(l.props=P,l.state=l.__s,l.__d=!1),l.__e=!1,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(H){H&&(H.__=e)}),F=0;F2&&(s.children=arguments.length>3?c0e.call(arguments,2):t),s0e(r.type,s,n||r.key,a||r.ref,null)}function l0e(r,e){var t={__c:e="__cC"+qSt++,__:r,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,i;return this.getChildContext||(a=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(function(o){o.__e=!0,Sqe(o)})},this.sub=function(s){a.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),o&&o.call(s)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}var c0e,zt,OSt,FSt,K3,MSt,LSt,kqe,qSt,f3e,WSt,qwn,cu=de(()=>{f();d();f3e={},WSt=[],qwn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;c0e=WSt.slice,zt={__e:function(r,e,t,n){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(r)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(r,n||{}),s=a.__d),s)return a.__E=a}catch(o){r=o}throw r}},OSt=0,FSt=function(r){return r!=null&&r.constructor===void 0},wf.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Gb({},this.state),typeof r=="function"&&(r=r(Gb({},t),this.props)),r&&Gb(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),Sqe(this))},wf.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),Sqe(this))},wf.prototype.render=Wp,K3=[],LSt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kqe=function(r,e){return r.__v.__b-e.__v.__b},d3e.__r=0,qSt=0});var Qee=E(Mqe=>{"use strict";f();d();Object.defineProperty(Mqe,"__esModule",{value:!0});function jwn(r){return typeof r=="function"}Mqe.isFunction=jwn});var f0e=E(Dqe=>{"use strict";f();d();Object.defineProperty(Dqe,"__esModule",{value:!0});var Bqe=!1;Dqe.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: +`+e.stack)}else Bqe&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Bqe=r},get useDeprecatedSynchronousErrorHandling(){return Bqe}}});var m3e=E(Nqe=>{"use strict";f();d();Object.defineProperty(Nqe,"__esModule",{value:!0});function zwn(r){setTimeout(function(){throw r},0)}Nqe.hostReportError=zwn});var Fqe=E(Oqe=>{"use strict";f();d();Object.defineProperty(Oqe,"__esModule",{value:!0});var Kwn=f0e(),Gwn=m3e();Oqe.empty={closed:!0,next:function(r){},error:function(r){if(Kwn.config.useDeprecatedSynchronousErrorHandling)throw r;Gwn.hostReportError(r)},complete:function(){}}});var Al=E(Lqe=>{"use strict";f();d();Object.defineProperty(Lqe,"__esModule",{value:!0});Lqe.isArray=function(){return Array.isArray||function(r){return r&&typeof r.length=="number"}}()});var y3e=E(qqe=>{"use strict";f();d();Object.defineProperty(qqe,"__esModule",{value:!0});function Vwn(r){return r!==null&&typeof r=="object"}qqe.isObject=Vwn});var Uqe=E(Wqe=>{"use strict";f();d();Object.defineProperty(Wqe,"__esModule",{value:!0});var $wn=function(){function r(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: `+e.map(function(t,n){return n+1+") "+t.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r}();$ke.UnsubscriptionError=Hzr});var _o=_(Jke=>{"use strict";d();p();Object.defineProperty(Jke,"__esModule",{value:!0});var jzr=$u(),zzr=D0e(),Kzr=HY(),L0e=Qke(),Gzr=function(){function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,n=t._parentOrParents,a=t._ctorUnsubscribe,i=t._unsubscribe,s=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(n!==null)for(var o=0;o{"use strict";d();p();Object.defineProperty(Ste,"__esModule",{value:!0});Ste.rxSubscriber=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();Ste.$$rxSubscriber=Ste.rxSubscriber});var tr=_(zY=>{"use strict";d();p();var S1t=zY&&zY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zY,"__esModule",{value:!0});var P1t=HY(),Zke=Gke(),Vzr=_o(),Yzr=O0e(),jY=Pte(),q0e=B0e(),R1t=function(r){S1t(e,r);function e(t,n,a){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=Zke.empty;break;case 1:if(!t){i.destination=Zke.empty;break}if(typeof t=="object"){t instanceof e?(i.syncErrorThrowable=t.syncErrorThrowable,i.destination=t,t.add(i)):(i.syncErrorThrowable=!0,i.destination=new Xke(i,t));break}default:i.syncErrorThrowable=!0,i.destination=new Xke(i,t,n,a);break}return i}return e.prototype[Yzr.rxSubscriber]=function(){return this},e.create=function(t,n,a){var i=new e(t,n,a);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(Vzr.Subscription);zY.Subscriber=R1t;var Xke=function(r){S1t(e,r);function e(t,n,a,i){var s=r.call(this)||this;s._parentSubscriber=t;var o,c=s;return P1t.isFunction(n)?o=n:n&&(o=n.next,a=n.error,i=n.complete,n!==Zke.empty&&(c=Object.create(n),P1t.isFunction(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=a,s._complete=i,s}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!jY.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,a=jY.config.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)a?(n.syncErrorValue=t,n.syncErrorThrown=!0):q0e.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),a)throw t;q0e.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var a=function(){return t._complete.call(t._context)};!jY.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(n,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(a){if(this.unsubscribe(),jY.config.useDeprecatedSynchronousErrorHandling)throw a;q0e.hostReportError(a)}},e.prototype.__tryOrSetError=function(t,n,a){if(!jY.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,a)}catch(i){return jY.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(q0e.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(R1t);zY.SafeSubscriber=Xke});var F0e=_(eAe=>{"use strict";d();p();Object.defineProperty(eAe,"__esModule",{value:!0});var $zr=tr();function Qzr(r){for(;r;){var e=r,t=e.closed,n=e.destination,a=e.isStopped;if(t||a)return!1;n&&n instanceof $zr.Subscriber?r=n:r=null}return!0}eAe.canReportError=Qzr});var N1t=_(rAe=>{"use strict";d();p();Object.defineProperty(rAe,"__esModule",{value:!0});var tAe=tr(),M1t=O0e(),Jzr=Gke();function Zzr(r,e,t){if(r){if(r instanceof tAe.Subscriber)return r;if(r[M1t.rxSubscriber])return r[M1t.rxSubscriber]()}return!r&&!e&&!t?new tAe.Subscriber(Jzr.empty):new tAe.Subscriber(r,e,t)}rAe.toSubscriber=Zzr});var iw=_(nAe=>{"use strict";d();p();Object.defineProperty(nAe,"__esModule",{value:!0});nAe.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var e1=_(aAe=>{"use strict";d();p();Object.defineProperty(aAe,"__esModule",{value:!0});function Xzr(r){return r}aAe.identity=Xzr});var U0e=_(W0e=>{"use strict";d();p();Object.defineProperty(W0e,"__esModule",{value:!0});var eKr=e1();function tKr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(iAe,"__esModule",{value:!0});var rKr=F0e(),nKr=N1t(),aKr=iw(),iKr=U0e(),H0e=Pte(),sKr=function(){function r(e){this._isScalar=!1,e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var a=this.operator,i=nKr.toSubscriber(e,t,n);if(a?i.add(a.call(i,this.source)):i.add(this.source||H0e.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),H0e.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){H0e.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),rKr.canReportError(e)?e.error(t):console.warn(t)}},r.prototype.forEach=function(e,t){var n=this;return t=D1t(t),new t(function(a,i){var s;s=n.subscribe(function(o){try{e(o)}catch(c){i(c),s&&s.unsubscribe()}},i,a)})},r.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},r.prototype[aKr.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(sAe,"__esModule",{value:!0});var oKr=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();sAe.ObjectUnsubscribedError=oKr});var oAe=_(Mte=>{"use strict";d();p();var cKr=Mte&&Mte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Mte,"__esModule",{value:!0});var uKr=_o(),lKr=function(r){cKr(e,r);function e(t,n){var a=r.call(this)||this;return a.subject=t,a.subscriber=n,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,!(!n||n.length===0||t.isStopped||t.closed)){var a=n.indexOf(this.subscriber);a!==-1&&n.splice(a,1)}}},e}(uKr.Subscription);Mte.SubjectSubscription=lKr});var Au=_(sw=>{"use strict";d();p();var lAe=sw&&sw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sw,"__esModule",{value:!0});var L1t=sn(),dKr=tr(),cAe=_o(),Nte=Rte(),pKr=oAe(),hKr=O0e(),O1t=function(r){lAe(e,r);function e(t){var n=r.call(this,t)||this;return n.destination=t,n}return e}(dKr.Subscriber);sw.SubjectSubscriber=O1t;var q1t=function(r){lAe(e,r);function e(){var t=r.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype[hKr.rxSubscriber]=function(){return new O1t(this)},e.prototype.lift=function(t){var n=new uAe(this,this);return n.operator=t,n},e.prototype.next=function(t){if(this.closed)throw new Nte.ObjectUnsubscribedError;if(!this.isStopped)for(var n=this.observers,a=n.length,i=n.slice(),s=0;s{"use strict";d();p();var fKr=Bte&&Bte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bte,"__esModule",{value:!0});var mKr=tr();function yKr(){return function(e){return e.lift(new gKr(e))}}Bte.refCount=yKr;var gKr=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new bKr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),bKr=function(r){fKr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(mKr.Subscriber)});var pAe=_(KY=>{"use strict";d();p();var dAe=KY&&KY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(KY,"__esModule",{value:!0});var vKr=Au(),wKr=sn(),xKr=tr(),F1t=_o(),_Kr=j0e(),W1t=function(r){dAe(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subjectFactory=n,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new F1t.Subscription,t.add(this.source.subscribe(new TKr(this.getSubject(),this))),t.closed&&(this._connection=null,t=F1t.Subscription.EMPTY)),t},e.prototype.refCount=function(){return _Kr.refCount()(this)},e}(wKr.Observable);KY.ConnectableObservable=W1t;KY.connectableObservableDescriptor=function(){var r=W1t.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}}();var TKr=function(r){dAe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},e}(vKr.SubjectSubscriber),xra=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new IKr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),IKr=function(r){dAe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(xKr.Subscriber)});var fAe=_(GY=>{"use strict";d();p();var z0e=GY&&GY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(GY,"__esModule",{value:!0});var U1t=tr(),H1t=_o(),EKr=sn(),CKr=Au();function kKr(r,e,t,n){return function(a){return a.lift(new AKr(r,e,t,n))}}GY.groupBy=kKr;var AKr=function(){function r(e,t,n,a){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=a}return r.prototype.call=function(e,t){return t.subscribe(new PKr(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},r}(),PKr=function(r){z0e(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.keySelector=n,o.elementSelector=a,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return e.prototype._next=function(t){var n;try{n=this.keySelector(t)}catch(a){this.error(a);return}this._group(t,n)},e.prototype._group=function(t,n){var a=this.groups;a||(a=this.groups=new Map);var i=a.get(n),s;if(this.elementSelector)try{s=this.elementSelector(t)}catch(u){this.error(u)}else s=t;if(!i){i=this.subjectSelector?this.subjectSelector():new CKr.Subject,a.set(n,i);var o=new hAe(n,i,this);if(this.destination.next(o),this.durationSelector){var c=void 0;try{c=this.durationSelector(new hAe(n,i))}catch(u){this.error(u);return}this.add(c.subscribe(new SKr(n,i,this)))}}i.closed||i.next(s)},e.prototype._error=function(t){var n=this.groups;n&&(n.forEach(function(a,i){a.error(t)}),n.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(n,a){n.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&r.prototype.unsubscribe.call(this))},e}(U1t.Subscriber),SKr=function(r){z0e(e,r);function e(t,n,a){var i=r.call(this,n)||this;return i.key=t,i.group=n,i.parent=a,i}return e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,n=t.parent,a=t.key;this.key=this.parent=null,n&&n.removeGroup(a)},e}(U1t.Subscriber),hAe=function(r){z0e(e,r);function e(t,n,a){var i=r.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=a,i}return e.prototype._subscribe=function(t){var n=new H1t.Subscription,a=this,i=a.refCountSubscription,s=a.groupSubject;return i&&!i.closed&&n.add(new RKr(i)),n.add(s.subscribe(t)),n},e}(EKr.Observable);GY.GroupedObservable=hAe;var RKr=function(r){z0e(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,t.count++,n}return e.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(r.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},e}(H1t.Subscription)});var mAe=_(Dte=>{"use strict";d();p();var MKr=Dte&&Dte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Dte,"__esModule",{value:!0});var NKr=Au(),BKr=Rte(),DKr=function(r){MKr(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new BKr.ObjectUnsubscribedError;return this._value},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(NKr.Subject);Dte.BehaviorSubject=DKr});var j1t=_(Lte=>{"use strict";d();p();var LKr=Lte&&Lte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lte,"__esModule",{value:!0});var OKr=_o(),qKr=function(r){LKr(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},e}(OKr.Subscription);Lte.Action=qKr});var VY=_(Ote=>{"use strict";d();p();var FKr=Ote&&Ote.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ote,"__esModule",{value:!0});var WKr=j1t(),UKr=function(r){FKr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var a=this.id,i=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(i,a,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return n;clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var a=!1,i=void 0;try{this.work(t)}catch(s){a=!0,i=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,a=n.actions,i=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,i!==-1&&a.splice(i,1),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},e}(WKr.Action);Ote.AsyncAction=UKr});var z1t=_(qte=>{"use strict";d();p();var HKr=qte&&qte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qte,"__esModule",{value:!0});var jKr=VY(),zKr=function(r){HKr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,n){return n>0||this.closed?r.prototype.execute.call(this,t,n):this._execute(t,n)},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,n,a):t.flush(this)},e}(jKr.AsyncAction);qte.QueueAction=zKr});var gAe=_(yAe=>{"use strict";d();p();Object.defineProperty(yAe,"__esModule",{value:!0});var KKr=function(){function r(e,t){t===void 0&&(t=r.now),this.SchedulerAction=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},r.now=function(){return Date.now()},r}();yAe.Scheduler=KKr});var YY=_(Fte=>{"use strict";d();p();var GKr=Fte&&Fte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Fte,"__esModule",{value:!0});var K1t=gAe(),VKr=function(r){GKr(e,r);function e(t,n){n===void 0&&(n=K1t.Scheduler.now);var a=r.call(this,t,function(){return e.delegate&&e.delegate!==a?e.delegate.now():n()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(t,n,a){return n===void 0&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,a):r.prototype.schedule.call(this,t,n,a)},e.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var a;this.active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},e}(K1t.Scheduler);Fte.AsyncScheduler=VKr});var G1t=_(Wte=>{"use strict";d();p();var YKr=Wte&&Wte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wte,"__esModule",{value:!0});var $Kr=YY(),QKr=function(r){YKr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}($Kr.AsyncScheduler);Wte.QueueScheduler=QKr});var bAe=_(Ute=>{"use strict";d();p();Object.defineProperty(Ute,"__esModule",{value:!0});var JKr=z1t(),ZKr=G1t();Ute.queueScheduler=new ZKr.QueueScheduler(JKr.QueueAction);Ute.queue=Ute.queueScheduler});var $h=_(Hte=>{"use strict";d();p();Object.defineProperty(Hte,"__esModule",{value:!0});var V1t=sn();Hte.EMPTY=new V1t.Observable(function(r){return r.complete()});function XKr(r){return r?eGr(r):Hte.EMPTY}Hte.empty=XKr;function eGr(r){return new V1t.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var Qh=_(vAe=>{"use strict";d();p();Object.defineProperty(vAe,"__esModule",{value:!0});function tGr(r){return r&&typeof r.schedule=="function"}vAe.isScheduler=tGr});var xAe=_(wAe=>{"use strict";d();p();Object.defineProperty(wAe,"__esModule",{value:!0});wAe.subscribeToArray=function(r){return function(e){for(var t=0,n=r.length;t{"use strict";d();p();Object.defineProperty(_Ae,"__esModule",{value:!0});var rGr=sn(),nGr=_o();function aGr(r,e){return new rGr.Observable(function(t){var n=new nGr.Subscription,a=0;return n.add(e.schedule(function(){if(a===r.length){t.complete();return}t.next(r[a++]),t.closed||n.add(this.schedule())})),n})}_Ae.scheduleArray=aGr});var $Y=_(TAe=>{"use strict";d();p();Object.defineProperty(TAe,"__esModule",{value:!0});var iGr=sn(),sGr=xAe(),oGr=K0e();function cGr(r,e){return e?oGr.scheduleArray(r,e):new iGr.Observable(sGr.subscribeToArray(r))}TAe.fromArray=cGr});var jte=_(IAe=>{"use strict";d();p();Object.defineProperty(IAe,"__esModule",{value:!0});var uGr=Qh(),lGr=$Y(),dGr=K0e();function pGr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(EAe,"__esModule",{value:!0});var Y1t=sn();function hGr(r,e){return e?new Y1t.Observable(function(t){return e.schedule(fGr,0,{error:r,subscriber:t})}):new Y1t.Observable(function(t){return t.error(r)})}EAe.throwError=hGr;function fGr(r){var e=r.error,t=r.subscriber;t.error(e)}});var Kte=_(zte=>{"use strict";d();p();Object.defineProperty(zte,"__esModule",{value:!0});var mGr=$h(),yGr=jte(),gGr=G0e(),bGr;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(bGr=zte.NotificationKind||(zte.NotificationKind={}));var vGr=function(){function r(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e==="N"}return r.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},r.prototype.do=function(e,t,n){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},r.prototype.accept=function(e,t,n){return e&&typeof e.next=="function"?this.observe(e):this.do(e,t,n)},r.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return yGr.of(this.value);case"E":return gGr.throwError(this.error);case"C":return mGr.empty()}throw new Error("unexpected notification kind value")},r.createNext=function(e){return typeof e<"u"?new r("N",e):r.undefinedValueNotification},r.createError=function(e){return new r("E",void 0,e)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0),r}();zte.Notification=vGr});var kAe=_(t1=>{"use strict";d();p();var wGr=t1&&t1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(t1,"__esModule",{value:!0});var xGr=tr(),CAe=Kte();function _Gr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new $1t(r,e))}}t1.observeOn=_Gr;var $1t=function(){function r(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return t.subscribe(new Q1t(e,this.scheduler,this.delay))},r}();t1.ObserveOnOperator=$1t;var Q1t=function(r){wGr(e,r);function e(t,n,a){a===void 0&&(a=0);var i=r.call(this,t)||this;return i.scheduler=n,i.delay=a,i}return e.dispatch=function(t){var n=t.notification,a=t.destination;n.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new J1t(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(CAe.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(CAe.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(CAe.Notification.createComplete()),this.unsubscribe()},e}(xGr.Subscriber);t1.ObserveOnSubscriber=Q1t;var J1t=function(){function r(e,t){this.notification=e,this.destination=t}return r}();t1.ObserveOnMessage=J1t});var V0e=_(Gte=>{"use strict";d();p();var TGr=Gte&&Gte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gte,"__esModule",{value:!0});var IGr=Au(),EGr=bAe(),CGr=_o(),kGr=kAe(),AGr=Rte(),PGr=oAe(),SGr=function(r){TGr(e,r);function e(t,n,a){t===void 0&&(t=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=a,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return e.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}r.prototype.next.call(this,t)},e.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new RGr(this._getNow(),t)),this._trimBufferThenGetEvents()),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){var n=this._infiniteTimeWindow,a=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=a.length,o;if(this.closed)throw new AGr.ObjectUnsubscribedError;if(this.isStopped||this.hasError?o=CGr.Subscription.EMPTY:(this.observers.push(t),o=new PGr.SubjectSubscription(this,t)),i&&t.add(t=new kGr.ObserveOnSubscriber(t,i)),n)for(var c=0;cn&&(o=Math.max(o,s-n)),o>0&&i.splice(0,o),i},e}(IGr.Subject);Gte.ReplaySubject=SGr;var RGr=function(){function r(e,t){this.time=e,this.value=t}return r}()});var Yte=_(Vte=>{"use strict";d();p();var MGr=Vte&&Vte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vte,"__esModule",{value:!0});var NGr=Au(),Z1t=_o(),BGr=function(r){MGr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return e.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),Z1t.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),Z1t.Subscription.EMPTY):r.prototype._subscribe.call(this,t)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(t){this.hasCompleted||r.prototype.error.call(this,t)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&r.prototype.next.call(this,this.value),r.prototype.complete.call(this)},e}(NGr.Subject);Vte.AsyncSubject=BGr});var ebt=_($0e=>{"use strict";d();p();Object.defineProperty($0e,"__esModule",{value:!0});var DGr=1,LGr=function(){return Promise.resolve()}(),Y0e={};function X1t(r){return r in Y0e?(delete Y0e[r],!0):!1}$0e.Immediate={setImmediate:function(r){var e=DGr++;return Y0e[e]=!0,LGr.then(function(){return X1t(e)&&r()}),e},clearImmediate:function(r){X1t(r)}};$0e.TestTools={pending:function(){return Object.keys(Y0e).length}}});var rbt=_($te=>{"use strict";d();p();var OGr=$te&&$te.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($te,"__esModule",{value:!0});var tbt=ebt(),qGr=VY(),FGr=function(r){OGr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=tbt.Immediate.setImmediate(t.flush.bind(t,null))))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(tbt.Immediate.clearImmediate(n),t.scheduled=void 0)},e}(qGr.AsyncAction);$te.AsapAction=FGr});var nbt=_(Qte=>{"use strict";d();p();var WGr=Qte&&Qte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qte,"__esModule",{value:!0});var UGr=YY(),HGr=function(r){WGr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(Jte,"__esModule",{value:!0});var jGr=rbt(),zGr=nbt();Jte.asapScheduler=new zGr.AsapScheduler(jGr.AsapAction);Jte.asap=Jte.asapScheduler});var Qu=_(Zte=>{"use strict";d();p();Object.defineProperty(Zte,"__esModule",{value:!0});var KGr=VY(),GGr=YY();Zte.asyncScheduler=new GGr.AsyncScheduler(KGr.AsyncAction);Zte.async=Zte.asyncScheduler});var abt=_(Xte=>{"use strict";d();p();var VGr=Xte&&Xte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xte,"__esModule",{value:!0});var YGr=VY(),$Gr=function(r){VGr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},e}(YGr.AsyncAction);Xte.AnimationFrameAction=$Gr});var ibt=_(ere=>{"use strict";d();p();var QGr=ere&&ere.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ere,"__esModule",{value:!0});var JGr=YY(),ZGr=function(r){QGr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(tre,"__esModule",{value:!0});var XGr=abt(),eVr=ibt();tre.animationFrameScheduler=new eVr.AnimationFrameScheduler(XGr.AnimationFrameAction);tre.animationFrame=tre.animationFrameScheduler});var ubt=_(QY=>{"use strict";d();p();var obt=QY&&QY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(QY,"__esModule",{value:!0});var tVr=VY(),rVr=YY(),nVr=function(r){obt(e,r);function e(t,n){t===void 0&&(t=cbt),n===void 0&&(n=Number.POSITIVE_INFINITY);var a=r.call(this,t,function(){return a.frame})||this;return a.maxFrames=n,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var t=this,n=t.actions,a=t.maxFrames,i,s;(s=n[0])&&s.delay<=a&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},e.frameTimeFactor=10,e}(rVr.AsyncScheduler);QY.VirtualTimeScheduler=nVr;var cbt=function(r){obt(e,r);function e(t,n,a){a===void 0&&(a=t.index+=1);var i=r.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=a,i.active=!0,i.index=t.index=a,i}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),!this.id)return r.prototype.schedule.call(this,t,n);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(t,n)},e.prototype.requestAsyncId=function(t,n,a){a===void 0&&(a=0),this.delay=t.frame+a;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,a){a===void 0&&(a=0)},e.prototype._execute=function(t,n){if(this.active===!0)return r.prototype._execute.call(this,t,n)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(tVr.AsyncAction);QY.VirtualAction=cbt});var Q0e=_(PAe=>{"use strict";d();p();Object.defineProperty(PAe,"__esModule",{value:!0});function aVr(){}PAe.noop=aVr});var lbt=_(SAe=>{"use strict";d();p();Object.defineProperty(SAe,"__esModule",{value:!0});var iVr=sn();function sVr(r){return!!r&&(r instanceof iVr.Observable||typeof r.lift=="function"&&typeof r.subscribe=="function")}SAe.isObservable=sVr});var JY=_(RAe=>{"use strict";d();p();Object.defineProperty(RAe,"__esModule",{value:!0});var oVr=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}();RAe.ArgumentOutOfRangeError=oVr});var ZY=_(MAe=>{"use strict";d();p();Object.defineProperty(MAe,"__esModule",{value:!0});var cVr=function(){function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return r.prototype=Object.create(Error.prototype),r}();MAe.EmptyError=cVr});var BAe=_(NAe=>{"use strict";d();p();Object.defineProperty(NAe,"__esModule",{value:!0});var uVr=function(){function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return r.prototype=Object.create(Error.prototype),r}();NAe.TimeoutError=uVr});var hd=_(XY=>{"use strict";d();p();var lVr=XY&&XY.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(XY,"__esModule",{value:!0});var dVr=tr();function pVr(r,e){return function(n){if(typeof r!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new dbt(r,e))}}XY.map=pVr;var dbt=function(){function r(e,t){this.project=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new hVr(e,this.project,this.thisArg))},r}();XY.MapOperator=dbt;var hVr=function(r){lVr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=a||i,i}return e.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(dVr.Subscriber)});var fbt=_(DAe=>{"use strict";d();p();Object.defineProperty(DAe,"__esModule",{value:!0});var fVr=sn(),pbt=Yte(),mVr=hd(),yVr=F0e(),gVr=$u(),bVr=Qh();function hbt(r,e,t){if(e)if(bVr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();Object.defineProperty(LAe,"__esModule",{value:!0});var xVr=sn(),ybt=Yte(),_Vr=hd(),TVr=F0e(),IVr=Qh(),EVr=$u();function gbt(r,e,t){if(e)if(IVr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();var AVr=rre&&rre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rre,"__esModule",{value:!0});var PVr=tr(),SVr=function(r){AVr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(n)},e.prototype.notifyError=function(t,n){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(PVr.Subscriber);rre.OuterSubscriber=SVr});var vbt=_(nre=>{"use strict";d();p();var RVr=nre&&nre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nre,"__esModule",{value:!0});var MVr=tr(),NVr=function(r){RVr(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i.index=0,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(MVr.Subscriber);nre.InnerSubscriber=NVr});var wbt=_(OAe=>{"use strict";d();p();Object.defineProperty(OAe,"__esModule",{value:!0});var BVr=B0e();OAe.subscribeToPromise=function(r){return function(e){return r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,BVr.hostReportError),e}}});var t$=_(e$=>{"use strict";d();p();Object.defineProperty(e$,"__esModule",{value:!0});function xbt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}e$.getSymbolIterator=xbt;e$.iterator=xbt();e$.$$iterator=e$.iterator});var _bt=_(qAe=>{"use strict";d();p();Object.defineProperty(qAe,"__esModule",{value:!0});var DVr=t$();qAe.subscribeToIterable=function(r){return function(e){var t=r[DVr.iterator]();do{var n=void 0;try{n=t.next()}catch(a){return e.error(a),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}while(!0);return typeof t.return=="function"&&e.add(function(){t.return&&t.return()}),e}}});var Tbt=_(FAe=>{"use strict";d();p();Object.defineProperty(FAe,"__esModule",{value:!0});var LVr=iw();FAe.subscribeToObservable=function(r){return function(e){var t=r[LVr.observable]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}});var UAe=_(WAe=>{"use strict";d();p();Object.defineProperty(WAe,"__esModule",{value:!0});WAe.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var jAe=_(HAe=>{"use strict";d();p();Object.defineProperty(HAe,"__esModule",{value:!0});function OVr(r){return!!r&&typeof r.subscribe!="function"&&typeof r.then=="function"}HAe.isPromise=OVr});var are=_(zAe=>{"use strict";d();p();Object.defineProperty(zAe,"__esModule",{value:!0});var qVr=xAe(),FVr=wbt(),WVr=_bt(),UVr=Tbt(),HVr=UAe(),jVr=jAe(),zVr=D0e(),KVr=t$(),GVr=iw();zAe.subscribeTo=function(r){if(!!r&&typeof r[GVr.observable]=="function")return UVr.subscribeToObservable(r);if(HVr.isArrayLike(r))return qVr.subscribeToArray(r);if(jVr.isPromise(r))return FVr.subscribeToPromise(r);if(!!r&&typeof r[KVr.iterator]=="function")return WVr.subscribeToIterable(r);var e=zVr.isObject(r)?"an invalid object":"'"+r+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)}});var n1=_(KAe=>{"use strict";d();p();Object.defineProperty(KAe,"__esModule",{value:!0});var VVr=vbt(),YVr=are(),$Vr=sn();function QVr(r,e,t,n,a){if(a===void 0&&(a=new VVr.InnerSubscriber(r,t,n)),!a.closed)return e instanceof $Vr.Observable?e.subscribe(a):YVr.subscribeTo(e)(a)}KAe.subscribeToResult=QVr});var J0e=_(ow=>{"use strict";d();p();var JVr=ow&&ow.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ow,"__esModule",{value:!0});var ZVr=Qh(),XVr=$u(),eYr=r1(),tYr=n1(),rYr=$Y(),Ibt={};function nYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(GAe,"__esModule",{value:!0});var aYr=sn(),iYr=_o(),sYr=iw();function oYr(r,e){return new aYr.Observable(function(t){var n=new iYr.Subscription;return n.add(e.schedule(function(){var a=r[sYr.observable]();n.add(a.subscribe({next:function(i){n.add(e.schedule(function(){return t.next(i)}))},error:function(i){n.add(e.schedule(function(){return t.error(i)}))},complete:function(){n.add(e.schedule(function(){return t.complete()}))}}))})),n})}GAe.scheduleObservable=oYr});var Abt=_(VAe=>{"use strict";d();p();Object.defineProperty(VAe,"__esModule",{value:!0});var cYr=sn(),uYr=_o();function lYr(r,e){return new cYr.Observable(function(t){var n=new uYr.Subscription;return n.add(e.schedule(function(){return r.then(function(a){n.add(e.schedule(function(){t.next(a),n.add(e.schedule(function(){return t.complete()}))}))},function(a){n.add(e.schedule(function(){return t.error(a)}))})})),n})}VAe.schedulePromise=lYr});var Pbt=_(YAe=>{"use strict";d();p();Object.defineProperty(YAe,"__esModule",{value:!0});var dYr=sn(),pYr=_o(),hYr=t$();function fYr(r,e){if(!r)throw new Error("Iterable cannot be null");return new dYr.Observable(function(t){var n=new pYr.Subscription,a;return n.add(function(){a&&typeof a.return=="function"&&a.return()}),n.add(e.schedule(function(){a=r[hYr.iterator](),n.add(e.schedule(function(){if(!t.closed){var i,s;try{var o=a.next();i=o.value,s=o.done}catch(c){t.error(c);return}s?t.complete():(t.next(i),this.schedule())}}))})),n})}YAe.scheduleIterable=fYr});var Sbt=_($Ae=>{"use strict";d();p();Object.defineProperty($Ae,"__esModule",{value:!0});var mYr=iw();function yYr(r){return r&&typeof r[mYr.observable]=="function"}$Ae.isInteropObservable=yYr});var Rbt=_(QAe=>{"use strict";d();p();Object.defineProperty(QAe,"__esModule",{value:!0});var gYr=t$();function bYr(r){return r&&typeof r[gYr.iterator]=="function"}QAe.isIterable=bYr});var ZAe=_(JAe=>{"use strict";d();p();Object.defineProperty(JAe,"__esModule",{value:!0});var vYr=kbt(),wYr=Abt(),xYr=K0e(),_Yr=Pbt(),TYr=Sbt(),IYr=jAe(),EYr=UAe(),CYr=Rbt();function kYr(r,e){if(r!=null){if(TYr.isInteropObservable(r))return vYr.scheduleObservable(r,e);if(IYr.isPromise(r))return wYr.schedulePromise(r,e);if(EYr.isArrayLike(r))return xYr.scheduleArray(r,e);if(CYr.isIterable(r)||typeof r=="string")return _Yr.scheduleIterable(r,e)}throw new TypeError((r!==null&&typeof r||r)+" is not observable")}JAe.scheduled=kYr});var Jh=_(XAe=>{"use strict";d();p();Object.defineProperty(XAe,"__esModule",{value:!0});var Mbt=sn(),AYr=are(),PYr=ZAe();function SYr(r,e){return e?PYr.scheduled(r,e):r instanceof Mbt.Observable?r:new Mbt.Observable(AYr.subscribeTo(r))}XAe.from=SYr});var Ji=_(J0=>{"use strict";d();p();var Z0e=J0&&J0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J0,"__esModule",{value:!0});var X0e=tr(),RYr=sn(),MYr=are(),NYr=function(r){Z0e(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,n}return e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(X0e.Subscriber);J0.SimpleInnerSubscriber=NYr;var BYr=function(r){Z0e(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(X0e.Subscriber);J0.ComplexInnerSubscriber=BYr;var DYr=function(r){Z0e(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(X0e.Subscriber);J0.SimpleOuterSubscriber=DYr;var LYr=function(r){Z0e(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i){this.destination.next(n)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(X0e.Subscriber);J0.ComplexOuterSubscriber=LYr;function OYr(r,e){if(!e.closed){if(r instanceof RYr.Observable)return r.subscribe(e);var t;try{t=MYr.subscribeTo(r)(e)}catch(n){e.error(n)}return t}}J0.innerSubscribe=OYr});var ire=_(a1=>{"use strict";d();p();var qYr=a1&&a1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a1,"__esModule",{value:!0});var FYr=hd(),WYr=Jh(),ePe=Ji();function tPe(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?function(n){return n.pipe(tPe(function(a,i){return WYr.from(r(a,i)).pipe(FYr.map(function(s,o){return e(a,s,i,o)}))},t))}:(typeof e=="number"&&(t=e),function(n){return n.lift(new Nbt(r,t))})}a1.mergeMap=tPe;var Nbt=function(){function r(e,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return r.prototype.call=function(e,t){return t.subscribe(new Bbt(e,this.project,this.concurrent))},r}();a1.MergeMapOperator=Nbt;var Bbt=function(r){qYr(e,r);function e(t,n,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=n,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return e.prototype._next=function(t){this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(ePe.SimpleOuterSubscriber);a1.MergeMapSubscriber=Bbt;a1.flatMap=tPe});var eye=_(rPe=>{"use strict";d();p();Object.defineProperty(rPe,"__esModule",{value:!0});var UYr=ire(),HYr=e1();function jYr(r){return r===void 0&&(r=Number.POSITIVE_INFINITY),UYr.mergeMap(HYr.identity,r)}rPe.mergeAll=jYr});var aPe=_(nPe=>{"use strict";d();p();Object.defineProperty(nPe,"__esModule",{value:!0});var zYr=eye();function KYr(){return zYr.mergeAll(1)}nPe.concatAll=KYr});var sre=_(iPe=>{"use strict";d();p();Object.defineProperty(iPe,"__esModule",{value:!0});var GYr=jte(),VYr=aPe();function YYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(sPe,"__esModule",{value:!0});var $Yr=sn(),QYr=Jh(),JYr=$h();function ZYr(r){return new $Yr.Observable(function(e){var t;try{t=r()}catch(a){e.error(a);return}var n=t?QYr.from(t):JYr.empty();return n.subscribe(e)})}sPe.defer=ZYr});var Lbt=_(oPe=>{"use strict";d();p();Object.defineProperty(oPe,"__esModule",{value:!0});var XYr=sn(),Dbt=$u(),e$r=hd(),t$r=D0e(),r$r=Jh();function n$r(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(cPe,"__esModule",{value:!0});var a$r=sn(),i$r=$u(),s$r=HY(),o$r=hd(),$ia=function(){return Object.prototype.toString}();function Obt(r,e,t,n){return s$r.isFunction(t)&&(n=t,t=void 0),n?Obt(r,e,t).pipe(o$r.map(function(a){return i$r.isArray(a)?n.apply(void 0,a):n(a)})):new a$r.Observable(function(a){function i(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}qbt(r,e,i,a,t)})}cPe.fromEvent=Obt;function qbt(r,e,t,n,a){var i;if(l$r(r)){var s=r;r.addEventListener(e,t,a),i=function(){return s.removeEventListener(e,t,a)}}else if(u$r(r)){var o=r;r.on(e,t),i=function(){return o.off(e,t)}}else if(c$r(r)){var c=r;r.addListener(e,t),i=function(){return c.removeListener(e,t)}}else if(r&&r.length)for(var u=0,l=r.length;u{"use strict";d();p();Object.defineProperty(uPe,"__esModule",{value:!0});var d$r=sn(),p$r=$u(),h$r=HY(),f$r=hd();function Wbt(r,e,t){return t?Wbt(r,e).pipe(f$r.map(function(n){return p$r.isArray(n)?t.apply(void 0,n):t(n)})):new d$r.Observable(function(n){var a=function(){for(var s=[],o=0;o{"use strict";d();p();Object.defineProperty(lPe,"__esModule",{value:!0});var m$r=sn(),Hbt=e1(),y$r=Qh();function g$r(r,e,t,n,a){var i,s;if(arguments.length==1){var o=r;s=o.initialState,e=o.condition,t=o.iterate,i=o.resultSelector||Hbt.identity,a=o.scheduler}else n===void 0||y$r.isScheduler(n)?(s=r,i=Hbt.identity,a=n):(s=r,i=n);return new m$r.Observable(function(c){var u=s;if(a)return a.schedule(b$r,0,{subscriber:c,iterate:t,condition:e,resultSelector:i,state:u});do{if(e){var l=void 0;try{l=e(u)}catch(f){c.error(f);return}if(!l){c.complete();break}}var h=void 0;try{h=i(u)}catch(f){c.error(f);return}if(c.next(h),c.closed)break;try{u=t(u)}catch(f){c.error(f);return}}while(!0)})}lPe.generate=g$r;function b$r(r){var e=r.subscriber,t=r.condition;if(!e.closed){if(r.needIterate)try{r.state=r.iterate(r.state)}catch(i){e.error(i);return}else r.needIterate=!0;if(t){var n=void 0;try{n=t(r.state)}catch(i){e.error(i);return}if(!n){e.complete();return}if(e.closed)return}var a;try{a=r.resultSelector(r.state)}catch(i){e.error(i);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(r)}}});var Kbt=_(dPe=>{"use strict";d();p();Object.defineProperty(dPe,"__esModule",{value:!0});var v$r=tye(),zbt=$h();function w$r(r,e,t){return e===void 0&&(e=zbt.EMPTY),t===void 0&&(t=zbt.EMPTY),v$r.defer(function(){return r()?e:t})}dPe.iif=w$r});var ore=_(pPe=>{"use strict";d();p();Object.defineProperty(pPe,"__esModule",{value:!0});var x$r=$u();function _$r(r){return!x$r.isArray(r)&&r-parseFloat(r)+1>=0}pPe.isNumeric=_$r});var Vbt=_(hPe=>{"use strict";d();p();Object.defineProperty(hPe,"__esModule",{value:!0});var T$r=sn(),Gbt=Qu(),I$r=ore();function E$r(r,e){return r===void 0&&(r=0),e===void 0&&(e=Gbt.async),(!I$r.isNumeric(r)||r<0)&&(r=0),(!e||typeof e.schedule!="function")&&(e=Gbt.async),new T$r.Observable(function(t){return t.add(e.schedule(C$r,r,{subscriber:t,counter:0,period:r})),t})}hPe.interval=E$r;function C$r(r){var e=r.subscriber,t=r.counter,n=r.period;e.next(t),this.schedule({subscriber:e,counter:t+1,period:n},n)}});var mPe=_(fPe=>{"use strict";d();p();Object.defineProperty(fPe,"__esModule",{value:!0});var k$r=sn(),A$r=Qh(),P$r=eye(),S$r=$Y();function R$r(){for(var r=[],e=0;e1&&typeof r[r.length-1]=="number"&&(t=r.pop())):typeof a=="number"&&(t=r.pop()),n===null&&r.length===1&&r[0]instanceof k$r.Observable?r[0]:P$r.mergeAll(t)(S$r.fromArray(r,n))}fPe.merge=R$r});var yPe=_(cre=>{"use strict";d();p();Object.defineProperty(cre,"__esModule",{value:!0});var M$r=sn(),N$r=Q0e();cre.NEVER=new M$r.Observable(N$r.noop);function B$r(){return cre.NEVER}cre.never=B$r});var Ybt=_(bPe=>{"use strict";d();p();Object.defineProperty(bPe,"__esModule",{value:!0});var D$r=sn(),L$r=Jh(),O$r=$u(),q$r=$h();function gPe(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(nye,"__esModule",{value:!0});var $bt=sn(),F$r=_o();function W$r(r,e){return e?new $bt.Observable(function(t){var n=Object.keys(r),a=new F$r.Subscription;return a.add(e.schedule(Qbt,0,{keys:n,index:0,subscriber:t,subscription:a,obj:r})),a}):new $bt.Observable(function(t){for(var n=Object.keys(r),a=0;a{"use strict";d();p();Object.defineProperty(vPe,"__esModule",{value:!0});function U$r(r,e){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=r,t.thisArg=e,t}vPe.not=U$r});var cw=_(ure=>{"use strict";d();p();var H$r=ure&&ure.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ure,"__esModule",{value:!0});var j$r=tr();function z$r(r,e){return function(n){return n.lift(new K$r(r,e))}}ure.filter=z$r;var K$r=function(){function r(e,t){this.predicate=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new G$r(e,this.predicate,this.thisArg))},r}(),G$r=function(r){H$r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.thisArg=a,i.count=0,i}return e.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}n&&this.destination.next(t)},e}(j$r.Subscriber)});var tvt=_(xPe=>{"use strict";d();p();Object.defineProperty(xPe,"__esModule",{value:!0});var V$r=wPe(),Zbt=are(),Xbt=cw(),evt=sn();function Y$r(r,e,t){return[Xbt.filter(e,t)(new evt.Observable(Zbt.subscribeTo(r))),Xbt.filter(V$r.not(e,t))(new evt.Observable(Zbt.subscribeTo(r)))]}xPe.partition=Y$r});var _Pe=_(uw=>{"use strict";d();p();var $$r=uw&&uw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uw,"__esModule",{value:!0});var Q$r=$u(),J$r=$Y(),Z$r=r1(),X$r=n1();function eQr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(aye,"__esModule",{value:!0});var tQr=sn();function rQr(r,e,t){return r===void 0&&(r=0),new tQr.Observable(function(n){e===void 0&&(e=r,r=0);var a=0,i=r;if(t)return t.schedule(avt,0,{index:a,count:e,start:r,subscriber:n});do{if(a++>=e){n.complete();break}if(n.next(i++),n.closed)break}while(!0)})}aye.range=rQr;function avt(r){var e=r.start,t=r.index,n=r.count,a=r.subscriber;if(t>=n){a.complete();return}a.next(e),!a.closed&&(r.index=t+1,r.start=e+1,this.schedule(r))}aye.dispatch=avt});var IPe=_(TPe=>{"use strict";d();p();Object.defineProperty(TPe,"__esModule",{value:!0});var nQr=sn(),aQr=Qu(),svt=ore(),ovt=Qh();function iQr(r,e,t){r===void 0&&(r=0);var n=-1;return svt.isNumeric(e)?n=Number(e)<1&&1||Number(e):ovt.isScheduler(e)&&(t=e),ovt.isScheduler(t)||(t=aQr.async),new nQr.Observable(function(a){var i=svt.isNumeric(r)?r:+r-t.now();return t.schedule(sQr,i,{index:0,period:n,subscriber:a})})}TPe.timer=iQr;function sQr(r){var e=r.index,t=r.period,n=r.subscriber;if(n.next(e),!n.closed){if(t===-1)return n.complete();r.index=e+1,this.schedule(r,t)}}});var cvt=_(EPe=>{"use strict";d();p();Object.defineProperty(EPe,"__esModule",{value:!0});var oQr=sn(),cQr=Jh(),uQr=$h();function lQr(r,e){return new oQr.Observable(function(t){var n;try{n=r()}catch(o){t.error(o);return}var a;try{a=e(n)}catch(o){t.error(o);return}var i=a?cQr.from(a):uQr.EMPTY,s=i.subscribe(t);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}EPe.using=lQr});var sye=_(lw=>{"use strict";d();p();var uvt=lw&&lw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lw,"__esModule",{value:!0});var dQr=$Y(),pQr=$u(),hQr=tr(),iye=t$(),CPe=Ji();function fQr(){for(var r=[],e=0;ethis.index},r.prototype.hasCompleted=function(){return this.array.length===this.index},r}(),gQr=function(r){uvt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.parent=n,i.observable=a,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return e.prototype[iye.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return CPe.innerSubscribe(this.observable,new CPe.SimpleInnerSubscriber(this))},e}(CPe.SimpleOuterSubscriber)});var lre=_(et=>{"use strict";d();p();Object.defineProperty(et,"__esModule",{value:!0});var bQr=sn();et.Observable=bQr.Observable;var vQr=pAe();et.ConnectableObservable=vQr.ConnectableObservable;var wQr=fAe();et.GroupedObservable=wQr.GroupedObservable;var xQr=iw();et.observable=xQr.observable;var _Qr=Au();et.Subject=_Qr.Subject;var TQr=mAe();et.BehaviorSubject=TQr.BehaviorSubject;var IQr=V0e();et.ReplaySubject=IQr.ReplaySubject;var EQr=Yte();et.AsyncSubject=EQr.AsyncSubject;var pvt=AAe();et.asap=pvt.asap;et.asapScheduler=pvt.asapScheduler;var hvt=Qu();et.async=hvt.async;et.asyncScheduler=hvt.asyncScheduler;var fvt=bAe();et.queue=fvt.queue;et.queueScheduler=fvt.queueScheduler;var mvt=sbt();et.animationFrame=mvt.animationFrame;et.animationFrameScheduler=mvt.animationFrameScheduler;var yvt=ubt();et.VirtualTimeScheduler=yvt.VirtualTimeScheduler;et.VirtualAction=yvt.VirtualAction;var CQr=gAe();et.Scheduler=CQr.Scheduler;var kQr=_o();et.Subscription=kQr.Subscription;var AQr=tr();et.Subscriber=AQr.Subscriber;var gvt=Kte();et.Notification=gvt.Notification;et.NotificationKind=gvt.NotificationKind;var PQr=U0e();et.pipe=PQr.pipe;var SQr=Q0e();et.noop=SQr.noop;var RQr=e1();et.identity=RQr.identity;var MQr=lbt();et.isObservable=MQr.isObservable;var NQr=JY();et.ArgumentOutOfRangeError=NQr.ArgumentOutOfRangeError;var BQr=ZY();et.EmptyError=BQr.EmptyError;var DQr=Rte();et.ObjectUnsubscribedError=DQr.ObjectUnsubscribedError;var LQr=Qke();et.UnsubscriptionError=LQr.UnsubscriptionError;var OQr=BAe();et.TimeoutError=OQr.TimeoutError;var qQr=fbt();et.bindCallback=qQr.bindCallback;var FQr=bbt();et.bindNodeCallback=FQr.bindNodeCallback;var WQr=J0e();et.combineLatest=WQr.combineLatest;var UQr=sre();et.concat=UQr.concat;var HQr=tye();et.defer=HQr.defer;var jQr=$h();et.empty=jQr.empty;var zQr=Lbt();et.forkJoin=zQr.forkJoin;var KQr=Jh();et.from=KQr.from;var GQr=Fbt();et.fromEvent=GQr.fromEvent;var VQr=Ubt();et.fromEventPattern=VQr.fromEventPattern;var YQr=jbt();et.generate=YQr.generate;var $Qr=Kbt();et.iif=$Qr.iif;var QQr=Vbt();et.interval=QQr.interval;var JQr=mPe();et.merge=JQr.merge;var ZQr=yPe();et.never=ZQr.never;var XQr=jte();et.of=XQr.of;var eJr=Ybt();et.onErrorResumeNext=eJr.onErrorResumeNext;var tJr=Jbt();et.pairs=tJr.pairs;var rJr=tvt();et.partition=rJr.partition;var nJr=_Pe();et.race=nJr.race;var aJr=ivt();et.range=aJr.range;var iJr=G0e();et.throwError=iJr.throwError;var sJr=IPe();et.timer=sJr.timer;var oJr=cvt();et.using=oJr.using;var cJr=sye();et.zip=cJr.zip;var uJr=ZAe();et.scheduled=uJr.scheduled;var lJr=$h();et.EMPTY=lJr.EMPTY;var dJr=yPe();et.NEVER=dJr.NEVER;var pJr=Pte();et.config=pJr.config});var dre=_((Xsa,kPe)=>{d();p();function vvt(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;edye,useContext:()=>pye,useDebugValue:()=>hye,useEffect:()=>hre,useErrorBoundary:()=>Avt,useId:()=>fye,useImperativeHandle:()=>lye,useLayoutEffect:()=>pw,useMemo:()=>a$,useReducer:()=>pre,useRef:()=>uye,useState:()=>n$});function dw(r,e){at.__h&&at.__h(Qa,r,r$||e),r$=0;var t=Qa.__H||(Qa.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:oye}),t.__[r]}function n$(r){return r$=1,pre(Pvt,r)}function pre(r,e,t){var n=dw(i1++,2);if(n.t=r,!n.__c&&(n.__=[t?t(e):Pvt(void 0,e),function(o){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,o);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=Qa,!Qa.u)){var a=function(o,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(f){return f.__c});if(l.every(function(f){return!f.__N}))return!i||i.call(this,o,c,u);var h=!1;return l.forEach(function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(h=!0)}}),!(!h&&n.__c.props===o)&&(!i||i.call(this,o,c,u))};Qa.u=!0;var i=Qa.shouldComponentUpdate,s=Qa.componentWillUpdate;Qa.componentWillUpdate=function(o,c,u){if(this.__e){var l=i;i=void 0,a(o,c,u),i=l}s&&s.call(this,o,c,u)},Qa.shouldComponentUpdate=a}return n.__N||n.__}function hre(r,e){var t=dw(i1++,3);!at.__s&&SPe(t.__H,e)&&(t.__=r,t.i=e,Qa.__H.__h.push(t))}function pw(r,e){var t=dw(i1++,4);!at.__s&&SPe(t.__H,e)&&(t.__=r,t.i=e,Qa.__h.push(t))}function uye(r){return r$=5,a$(function(){return{current:r}},[])}function lye(r,e,t){r$=6,pw(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function a$(r,e){var t=dw(i1++,7);return SPe(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function dye(r,e){return r$=8,a$(function(){return r},e)}function pye(r){var e=Qa.context[r.__c],t=dw(i1++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(Qa)),e.props.value):r.__}function hye(r,e){at.useDebugValue&&at.useDebugValue(e?e(r):r)}function Avt(r){var e=dw(i1++,10),t=n$();return e.__=r,Qa.componentDidCatch||(Qa.componentDidCatch=function(n,a){e.__&&e.__(n,a),t[1](n)}),[t[0],function(){t[1](void 0)}]}function fye(){var r=dw(i1++,11);if(!r.__){for(var e=Qa.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function hJr(){for(var r;r=kvt.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(cye),r.__H.__h.forEach(PPe),r.__H.__h=[]}catch(e){r.__H.__h=[],at.__e(e,r.__v)}}function fJr(r){var e,t=function(){clearTimeout(n),Cvt&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);Cvt&&(e=requestAnimationFrame(t))}function cye(r){var e=Qa,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),Qa=e}function PPe(r){var e=Qa;r.__c=r.__(),Qa=e}function SPe(r,e){return!r||r.length!==e.length||e.some(function(t,n){return t!==r[n]})}function Pvt(r,e){return typeof e=="function"?e(r):e}var i1,Qa,APe,wvt,r$,kvt,oye,xvt,_vt,Tvt,Ivt,Evt,Cvt,s1=ce(()=>{d();p();Pc();r$=0,kvt=[],oye=[],xvt=at.__b,_vt=at.__r,Tvt=at.diffed,Ivt=at.__c,Evt=at.unmount;at.__b=function(r){Qa=null,xvt&&xvt(r)},at.__r=function(r){_vt&&_vt(r),i1=0;var e=(Qa=r.__c).__H;e&&(APe===Qa?(e.__h=[],Qa.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=oye,t.__N=t.i=void 0})):(e.__h.forEach(cye),e.__h.forEach(PPe),e.__h=[])),APe=Qa},at.diffed=function(r){Tvt&&Tvt(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(kvt.push(e)!==1&&wvt===at.requestAnimationFrame||((wvt=at.requestAnimationFrame)||fJr)(hJr)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==oye&&(t.__=t.__V),t.i=void 0,t.__V=oye})),APe=Qa=null},at.__c=function(r,e){e.some(function(t){try{t.__h.forEach(cye),t.__h=t.__h.filter(function(n){return!n.__||PPe(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],at.__e(n,t.__v)}}),Ivt&&Ivt(r,e)},at.unmount=function(r){Evt&&Evt(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{cye(n)}catch(a){e=a}}),t.__H=void 0,e&&at.__e(e,t.__v))};Cvt=typeof requestAnimationFrame=="function"});var Svt=_(mye=>{"use strict";d();p();Object.defineProperty(mye,"__esModule",{value:!0});mye.LIB_VERSION=void 0;mye.LIB_VERSION="3.6.4"});var Mvt=_(yye=>{"use strict";d();p();Object.defineProperty(yye,"__esModule",{value:!0});yye.CloseIcon=void 0;var Rvt=(Pc(),nt(Dl));function mJr(r){return(0,Rvt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,Rvt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}yye.CloseIcon=mJr});var Nvt=_(RPe=>{"use strict";d();p();Object.defineProperty(RPe,"__esModule",{value:!0});RPe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="});var Bvt=_(MPe=>{"use strict";d();p();Object.defineProperty(MPe,"__esModule",{value:!0});MPe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="});var Dvt=_(gye=>{"use strict";d();p();Object.defineProperty(gye,"__esModule",{value:!0});gye.QRCodeIcon=void 0;var _m=(Pc(),nt(Dl));function yJr(r){return(0,_m.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,_m.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,_m.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,_m.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,_m.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,_m.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,_m.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,_m.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,_m.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,_m.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}gye.QRCodeIcon=yJr});var Lvt=_(NPe=>{"use strict";d();p();Object.defineProperty(NPe,"__esModule",{value:!0});var gJr=` + `):"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r}();Wqe.UnsubscriptionError=$wn});var Gc=E(Hqe=>{"use strict";f();d();Object.defineProperty(Hqe,"__esModule",{value:!0});var Ywn=Al(),Qwn=y3e(),Jwn=Qee(),b3e=Uqe(),Zwn=function(){function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,n=t._parentOrParents,a=t._ctorUnsubscribe,i=t._unsubscribe,s=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(n!==null)for(var o=0;o{"use strict";f();d();Object.defineProperty(d0e,"__esModule",{value:!0});d0e.rxSubscriber=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();d0e.$$rxSubscriber=d0e.rxSubscriber});var xr=E(Zee=>{"use strict";f();d();var ZSt=Zee&&Zee.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Zee,"__esModule",{value:!0});var JSt=Qee(),jqe=Fqe(),Xwn=Gc(),e3n=g3e(),Jee=f0e(),v3e=m3e(),XSt=function(r){ZSt(e,r);function e(t,n,a){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=jqe.empty;break;case 1:if(!t){i.destination=jqe.empty;break}if(typeof t=="object"){t instanceof e?(i.syncErrorThrowable=t.syncErrorThrowable,i.destination=t,t.add(i)):(i.syncErrorThrowable=!0,i.destination=new zqe(i,t));break}default:i.syncErrorThrowable=!0,i.destination=new zqe(i,t,n,a);break}return i}return e.prototype[e3n.rxSubscriber]=function(){return this},e.create=function(t,n,a){var i=new e(t,n,a);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(Xwn.Subscription);Zee.Subscriber=XSt;var zqe=function(r){ZSt(e,r);function e(t,n,a,i){var s=r.call(this)||this;s._parentSubscriber=t;var o,c=s;return JSt.isFunction(n)?o=n:n&&(o=n.next,a=n.error,i=n.complete,n!==jqe.empty&&(c=Object.create(n),JSt.isFunction(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=a,s._complete=i,s}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!Jee.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,a=Jee.config.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)a?(n.syncErrorValue=t,n.syncErrorThrown=!0):v3e.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),a)throw t;v3e.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var a=function(){return t._complete.call(t._context)};!Jee.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(n,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(a){if(this.unsubscribe(),Jee.config.useDeprecatedSynchronousErrorHandling)throw a;v3e.hostReportError(a)}},e.prototype.__tryOrSetError=function(t,n,a){if(!Jee.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,a)}catch(i){return Jee.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(v3e.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(XSt);Zee.SafeSubscriber=zqe});var w3e=E(Kqe=>{"use strict";f();d();Object.defineProperty(Kqe,"__esModule",{value:!0});var t3n=xr();function r3n(r){for(;r;){var e=r,t=e.closed,n=e.destination,a=e.isStopped;if(t||a)return!1;n&&n instanceof t3n.Subscriber?r=n:r=null}return!0}Kqe.canReportError=r3n});var tPt=E(Vqe=>{"use strict";f();d();Object.defineProperty(Vqe,"__esModule",{value:!0});var Gqe=xr(),ePt=g3e(),n3n=Fqe();function a3n(r,e,t){if(r){if(r instanceof Gqe.Subscriber)return r;if(r[ePt.rxSubscriber])return r[ePt.rxSubscriber]()}return!r&&!e&&!t?new Gqe.Subscriber(n3n.empty):new Gqe.Subscriber(r,e,t)}Vqe.toSubscriber=a3n});var V3=E($qe=>{"use strict";f();d();Object.defineProperty($qe,"__esModule",{value:!0});$qe.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var f6=E(Yqe=>{"use strict";f();d();Object.defineProperty(Yqe,"__esModule",{value:!0});function i3n(r){return r}Yqe.identity=i3n});var _3e=E(x3e=>{"use strict";f();d();Object.defineProperty(x3e,"__esModule",{value:!0});var s3n=f6();function o3n(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(Qqe,"__esModule",{value:!0});var c3n=w3e(),u3n=tPt(),l3n=V3(),f3n=_3e(),T3e=f0e(),d3n=function(){function r(e){this._isScalar=!1,e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var a=this.operator,i=u3n.toSubscriber(e,t,n);if(a?i.add(a.call(i,this.source)):i.add(this.source||T3e.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),T3e.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){T3e.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),c3n.canReportError(e)?e.error(t):console.warn(t)}},r.prototype.forEach=function(e,t){var n=this;return t=nPt(t),new t(function(a,i){var s;s=n.subscribe(function(o){try{e(o)}catch(c){i(c),s&&s.unsubscribe()}},i,a)})},r.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},r.prototype[l3n.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";f();d();Object.defineProperty(Jqe,"__esModule",{value:!0});var p3n=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();Jqe.ObjectUnsubscribedError=p3n});var Zqe=E(h0e=>{"use strict";f();d();var h3n=h0e&&h0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(h0e,"__esModule",{value:!0});var m3n=Gc(),y3n=function(r){h3n(e,r);function e(t,n){var a=r.call(this)||this;return a.subject=t,a.subscriber=n,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,!(!n||n.length===0||t.isStopped||t.closed)){var a=n.indexOf(this.subscriber);a!==-1&&n.splice(a,1)}}},e}(m3n.Subscription);h0e.SubjectSubscription=y3n});var al=E($3=>{"use strict";f();d();var tWe=$3&&$3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($3,"__esModule",{value:!0});var aPt=Qn(),b3n=xr(),Xqe=Gc(),m0e=p0e(),g3n=Zqe(),v3n=g3e(),iPt=function(r){tWe(e,r);function e(t){var n=r.call(this,t)||this;return n.destination=t,n}return e}(b3n.Subscriber);$3.SubjectSubscriber=iPt;var sPt=function(r){tWe(e,r);function e(){var t=r.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype[v3n.rxSubscriber]=function(){return new iPt(this)},e.prototype.lift=function(t){var n=new eWe(this,this);return n.operator=t,n},e.prototype.next=function(t){if(this.closed)throw new m0e.ObjectUnsubscribedError;if(!this.isStopped)for(var n=this.observers,a=n.length,i=n.slice(),s=0;s{"use strict";f();d();var w3n=y0e&&y0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(y0e,"__esModule",{value:!0});var x3n=xr();function _3n(){return function(e){return e.lift(new T3n(e))}}y0e.refCount=_3n;var T3n=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new E3n(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),E3n=function(r){w3n(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(x3n.Subscriber)});var nWe=E(Xee=>{"use strict";f();d();var rWe=Xee&&Xee.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xee,"__esModule",{value:!0});var I3n=al(),C3n=Qn(),A3n=xr(),oPt=Gc(),k3n=E3e(),cPt=function(r){rWe(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subjectFactory=n,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new oPt.Subscription,t.add(this.source.subscribe(new S3n(this.getSubject(),this))),t.closed&&(this._connection=null,t=oPt.Subscription.EMPTY)),t},e.prototype.refCount=function(){return k3n.refCount()(this)},e}(C3n.Observable);Xee.ConnectableObservable=cPt;Xee.connectableObservableDescriptor=function(){var r=cPt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}}();var S3n=function(r){rWe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},e}(I3n.SubjectSubscriber),pGa=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new P3n(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),P3n=function(r){rWe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(A3n.Subscriber)});var iWe=E(ete=>{"use strict";f();d();var I3e=ete&&ete.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ete,"__esModule",{value:!0});var uPt=xr(),lPt=Gc(),R3n=Qn(),M3n=al();function B3n(r,e,t,n){return function(a){return a.lift(new D3n(r,e,t,n))}}ete.groupBy=B3n;var D3n=function(){function r(e,t,n,a){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=a}return r.prototype.call=function(e,t){return t.subscribe(new N3n(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},r}(),N3n=function(r){I3e(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.keySelector=n,o.elementSelector=a,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return e.prototype._next=function(t){var n;try{n=this.keySelector(t)}catch(a){this.error(a);return}this._group(t,n)},e.prototype._group=function(t,n){var a=this.groups;a||(a=this.groups=new Map);var i=a.get(n),s;if(this.elementSelector)try{s=this.elementSelector(t)}catch(u){this.error(u)}else s=t;if(!i){i=this.subjectSelector?this.subjectSelector():new M3n.Subject,a.set(n,i);var o=new aWe(n,i,this);if(this.destination.next(o),this.durationSelector){var c=void 0;try{c=this.durationSelector(new aWe(n,i))}catch(u){this.error(u);return}this.add(c.subscribe(new O3n(n,i,this)))}}i.closed||i.next(s)},e.prototype._error=function(t){var n=this.groups;n&&(n.forEach(function(a,i){a.error(t)}),n.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(n,a){n.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&r.prototype.unsubscribe.call(this))},e}(uPt.Subscriber),O3n=function(r){I3e(e,r);function e(t,n,a){var i=r.call(this,n)||this;return i.key=t,i.group=n,i.parent=a,i}return e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,n=t.parent,a=t.key;this.key=this.parent=null,n&&n.removeGroup(a)},e}(uPt.Subscriber),aWe=function(r){I3e(e,r);function e(t,n,a){var i=r.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=a,i}return e.prototype._subscribe=function(t){var n=new lPt.Subscription,a=this,i=a.refCountSubscription,s=a.groupSubject;return i&&!i.closed&&n.add(new F3n(i)),n.add(s.subscribe(t)),n},e}(R3n.Observable);ete.GroupedObservable=aWe;var F3n=function(r){I3e(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,t.count++,n}return e.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(r.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},e}(lPt.Subscription)});var sWe=E(b0e=>{"use strict";f();d();var L3n=b0e&&b0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(b0e,"__esModule",{value:!0});var q3n=al(),W3n=p0e(),U3n=function(r){L3n(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new W3n.ObjectUnsubscribedError;return this._value},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(q3n.Subject);b0e.BehaviorSubject=U3n});var fPt=E(g0e=>{"use strict";f();d();var H3n=g0e&&g0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(g0e,"__esModule",{value:!0});var j3n=Gc(),z3n=function(r){H3n(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},e}(j3n.Subscription);g0e.Action=z3n});var tte=E(v0e=>{"use strict";f();d();var K3n=v0e&&v0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(v0e,"__esModule",{value:!0});var G3n=fPt(),V3n=function(r){K3n(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var a=this.id,i=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(i,a,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return n;clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var a=!1,i=void 0;try{this.work(t)}catch(s){a=!0,i=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,a=n.actions,i=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,i!==-1&&a.splice(i,1),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},e}(G3n.Action);v0e.AsyncAction=V3n});var dPt=E(w0e=>{"use strict";f();d();var $3n=w0e&&w0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(w0e,"__esModule",{value:!0});var Y3n=tte(),Q3n=function(r){$3n(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,n){return n>0||this.closed?r.prototype.execute.call(this,t,n):this._execute(t,n)},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,n,a):t.flush(this)},e}(Y3n.AsyncAction);w0e.QueueAction=Q3n});var cWe=E(oWe=>{"use strict";f();d();Object.defineProperty(oWe,"__esModule",{value:!0});var J3n=function(){function r(e,t){t===void 0&&(t=r.now),this.SchedulerAction=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},r.now=function(){return Date.now()},r}();oWe.Scheduler=J3n});var rte=E(x0e=>{"use strict";f();d();var Z3n=x0e&&x0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x0e,"__esModule",{value:!0});var pPt=cWe(),X3n=function(r){Z3n(e,r);function e(t,n){n===void 0&&(n=pPt.Scheduler.now);var a=r.call(this,t,function(){return e.delegate&&e.delegate!==a?e.delegate.now():n()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(t,n,a){return n===void 0&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,a):r.prototype.schedule.call(this,t,n,a)},e.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var a;this.active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},e}(pPt.Scheduler);x0e.AsyncScheduler=X3n});var hPt=E(_0e=>{"use strict";f();d();var e8n=_0e&&_0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_0e,"__esModule",{value:!0});var t8n=rte(),r8n=function(r){e8n(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(t8n.AsyncScheduler);_0e.QueueScheduler=r8n});var uWe=E(T0e=>{"use strict";f();d();Object.defineProperty(T0e,"__esModule",{value:!0});var n8n=dPt(),a8n=hPt();T0e.queueScheduler=new a8n.QueueScheduler(n8n.QueueAction);T0e.queue=T0e.queueScheduler});var dm=E(E0e=>{"use strict";f();d();Object.defineProperty(E0e,"__esModule",{value:!0});var mPt=Qn();E0e.EMPTY=new mPt.Observable(function(r){return r.complete()});function i8n(r){return r?s8n(r):E0e.EMPTY}E0e.empty=i8n;function s8n(r){return new mPt.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var pm=E(lWe=>{"use strict";f();d();Object.defineProperty(lWe,"__esModule",{value:!0});function o8n(r){return r&&typeof r.schedule=="function"}lWe.isScheduler=o8n});var dWe=E(fWe=>{"use strict";f();d();Object.defineProperty(fWe,"__esModule",{value:!0});fWe.subscribeToArray=function(r){return function(e){for(var t=0,n=r.length;t{"use strict";f();d();Object.defineProperty(pWe,"__esModule",{value:!0});var c8n=Qn(),u8n=Gc();function l8n(r,e){return new c8n.Observable(function(t){var n=new u8n.Subscription,a=0;return n.add(e.schedule(function(){if(a===r.length){t.complete();return}t.next(r[a++]),t.closed||n.add(this.schedule())})),n})}pWe.scheduleArray=l8n});var nte=E(hWe=>{"use strict";f();d();Object.defineProperty(hWe,"__esModule",{value:!0});var f8n=Qn(),d8n=dWe(),p8n=C3e();function h8n(r,e){return e?p8n.scheduleArray(r,e):new f8n.Observable(d8n.subscribeToArray(r))}hWe.fromArray=h8n});var I0e=E(mWe=>{"use strict";f();d();Object.defineProperty(mWe,"__esModule",{value:!0});var m8n=pm(),y8n=nte(),b8n=C3e();function g8n(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(yWe,"__esModule",{value:!0});var yPt=Qn();function v8n(r,e){return e?new yPt.Observable(function(t){return e.schedule(w8n,0,{error:r,subscriber:t})}):new yPt.Observable(function(t){return t.error(r)})}yWe.throwError=v8n;function w8n(r){var e=r.error,t=r.subscriber;t.error(e)}});var A0e=E(C0e=>{"use strict";f();d();Object.defineProperty(C0e,"__esModule",{value:!0});var x8n=dm(),_8n=I0e(),T8n=A3e(),E8n;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(E8n=C0e.NotificationKind||(C0e.NotificationKind={}));var I8n=function(){function r(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e==="N"}return r.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},r.prototype.do=function(e,t,n){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},r.prototype.accept=function(e,t,n){return e&&typeof e.next=="function"?this.observe(e):this.do(e,t,n)},r.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return _8n.of(this.value);case"E":return T8n.throwError(this.error);case"C":return x8n.empty()}throw new Error("unexpected notification kind value")},r.createNext=function(e){return typeof e<"u"?new r("N",e):r.undefinedValueNotification},r.createError=function(e){return new r("E",void 0,e)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0),r}();C0e.Notification=I8n});var gWe=E(d6=>{"use strict";f();d();var C8n=d6&&d6.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(d6,"__esModule",{value:!0});var A8n=xr(),bWe=A0e();function k8n(r,e){return e===void 0&&(e=0),function(n){return n.lift(new bPt(r,e))}}d6.observeOn=k8n;var bPt=function(){function r(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return t.subscribe(new gPt(e,this.scheduler,this.delay))},r}();d6.ObserveOnOperator=bPt;var gPt=function(r){C8n(e,r);function e(t,n,a){a===void 0&&(a=0);var i=r.call(this,t)||this;return i.scheduler=n,i.delay=a,i}return e.dispatch=function(t){var n=t.notification,a=t.destination;n.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new vPt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(bWe.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(bWe.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(bWe.Notification.createComplete()),this.unsubscribe()},e}(A8n.Subscriber);d6.ObserveOnSubscriber=gPt;var vPt=function(){function r(e,t){this.notification=e,this.destination=t}return r}();d6.ObserveOnMessage=vPt});var k3e=E(k0e=>{"use strict";f();d();var S8n=k0e&&k0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(k0e,"__esModule",{value:!0});var P8n=al(),R8n=uWe(),M8n=Gc(),B8n=gWe(),D8n=p0e(),N8n=Zqe(),O8n=function(r){S8n(e,r);function e(t,n,a){t===void 0&&(t=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=a,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return e.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}r.prototype.next.call(this,t)},e.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new F8n(this._getNow(),t)),this._trimBufferThenGetEvents()),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){var n=this._infiniteTimeWindow,a=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=a.length,o;if(this.closed)throw new D8n.ObjectUnsubscribedError;if(this.isStopped||this.hasError?o=M8n.Subscription.EMPTY:(this.observers.push(t),o=new N8n.SubjectSubscription(this,t)),i&&t.add(t=new B8n.ObserveOnSubscriber(t,i)),n)for(var c=0;cn&&(o=Math.max(o,s-n)),o>0&&i.splice(0,o),i},e}(P8n.Subject);k0e.ReplaySubject=O8n;var F8n=function(){function r(e,t){this.time=e,this.value=t}return r}()});var P0e=E(S0e=>{"use strict";f();d();var L8n=S0e&&S0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(S0e,"__esModule",{value:!0});var q8n=al(),wPt=Gc(),W8n=function(r){L8n(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return e.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),wPt.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),wPt.Subscription.EMPTY):r.prototype._subscribe.call(this,t)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(t){this.hasCompleted||r.prototype.error.call(this,t)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&r.prototype.next.call(this,this.value),r.prototype.complete.call(this)},e}(q8n.Subject);S0e.AsyncSubject=W8n});var _Pt=E(P3e=>{"use strict";f();d();Object.defineProperty(P3e,"__esModule",{value:!0});var U8n=1,H8n=function(){return Promise.resolve()}(),S3e={};function xPt(r){return r in S3e?(delete S3e[r],!0):!1}P3e.Immediate={setImmediate:function(r){var e=U8n++;return S3e[e]=!0,H8n.then(function(){return xPt(e)&&r()}),e},clearImmediate:function(r){xPt(r)}};P3e.TestTools={pending:function(){return Object.keys(S3e).length}}});var EPt=E(R0e=>{"use strict";f();d();var j8n=R0e&&R0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(R0e,"__esModule",{value:!0});var TPt=_Pt(),z8n=tte(),K8n=function(r){j8n(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=TPt.Immediate.setImmediate(t.flush.bind(t,null))))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(TPt.Immediate.clearImmediate(n),t.scheduled=void 0)},e}(z8n.AsyncAction);R0e.AsapAction=K8n});var IPt=E(M0e=>{"use strict";f();d();var G8n=M0e&&M0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(M0e,"__esModule",{value:!0});var V8n=rte(),$8n=function(r){G8n(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";f();d();Object.defineProperty(B0e,"__esModule",{value:!0});var Y8n=EPt(),Q8n=IPt();B0e.asapScheduler=new Q8n.AsapScheduler(Y8n.AsapAction);B0e.asap=B0e.asapScheduler});var kl=E(D0e=>{"use strict";f();d();Object.defineProperty(D0e,"__esModule",{value:!0});var J8n=tte(),Z8n=rte();D0e.asyncScheduler=new Z8n.AsyncScheduler(J8n.AsyncAction);D0e.async=D0e.asyncScheduler});var CPt=E(N0e=>{"use strict";f();d();var X8n=N0e&&N0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(N0e,"__esModule",{value:!0});var e4n=tte(),t4n=function(r){X8n(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},e}(e4n.AsyncAction);N0e.AnimationFrameAction=t4n});var APt=E(O0e=>{"use strict";f();d();var r4n=O0e&&O0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(O0e,"__esModule",{value:!0});var n4n=rte(),a4n=function(r){r4n(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";f();d();Object.defineProperty(F0e,"__esModule",{value:!0});var i4n=CPt(),s4n=APt();F0e.animationFrameScheduler=new s4n.AnimationFrameScheduler(i4n.AnimationFrameAction);F0e.animationFrame=F0e.animationFrameScheduler});var RPt=E(ate=>{"use strict";f();d();var SPt=ate&&ate.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ate,"__esModule",{value:!0});var o4n=tte(),c4n=rte(),u4n=function(r){SPt(e,r);function e(t,n){t===void 0&&(t=PPt),n===void 0&&(n=Number.POSITIVE_INFINITY);var a=r.call(this,t,function(){return a.frame})||this;return a.maxFrames=n,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var t=this,n=t.actions,a=t.maxFrames,i,s;(s=n[0])&&s.delay<=a&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},e.frameTimeFactor=10,e}(c4n.AsyncScheduler);ate.VirtualTimeScheduler=u4n;var PPt=function(r){SPt(e,r);function e(t,n,a){a===void 0&&(a=t.index+=1);var i=r.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=a,i.active=!0,i.index=t.index=a,i}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),!this.id)return r.prototype.schedule.call(this,t,n);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(t,n)},e.prototype.requestAsyncId=function(t,n,a){a===void 0&&(a=0),this.delay=t.frame+a;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,a){a===void 0&&(a=0)},e.prototype._execute=function(t,n){if(this.active===!0)return r.prototype._execute.call(this,t,n)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(o4n.AsyncAction);ate.VirtualAction=PPt});var R3e=E(wWe=>{"use strict";f();d();Object.defineProperty(wWe,"__esModule",{value:!0});function l4n(){}wWe.noop=l4n});var MPt=E(xWe=>{"use strict";f();d();Object.defineProperty(xWe,"__esModule",{value:!0});var f4n=Qn();function d4n(r){return!!r&&(r instanceof f4n.Observable||typeof r.lift=="function"&&typeof r.subscribe=="function")}xWe.isObservable=d4n});var ite=E(_We=>{"use strict";f();d();Object.defineProperty(_We,"__esModule",{value:!0});var p4n=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}();_We.ArgumentOutOfRangeError=p4n});var ste=E(TWe=>{"use strict";f();d();Object.defineProperty(TWe,"__esModule",{value:!0});var h4n=function(){function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return r.prototype=Object.create(Error.prototype),r}();TWe.EmptyError=h4n});var IWe=E(EWe=>{"use strict";f();d();Object.defineProperty(EWe,"__esModule",{value:!0});var m4n=function(){function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return r.prototype=Object.create(Error.prototype),r}();EWe.TimeoutError=m4n});var bd=E(ote=>{"use strict";f();d();var y4n=ote&&ote.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ote,"__esModule",{value:!0});var b4n=xr();function g4n(r,e){return function(n){if(typeof r!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new BPt(r,e))}}ote.map=g4n;var BPt=function(){function r(e,t){this.project=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new v4n(e,this.project,this.thisArg))},r}();ote.MapOperator=BPt;var v4n=function(r){y4n(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=a||i,i}return e.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(b4n.Subscriber)});var OPt=E(CWe=>{"use strict";f();d();Object.defineProperty(CWe,"__esModule",{value:!0});var w4n=Qn(),DPt=P0e(),x4n=bd(),_4n=w3e(),T4n=Al(),E4n=pm();function NPt(r,e,t){if(e)if(E4n.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";f();d();Object.defineProperty(AWe,"__esModule",{value:!0});var A4n=Qn(),LPt=P0e(),k4n=bd(),S4n=w3e(),P4n=pm(),R4n=Al();function qPt(r,e,t){if(e)if(P4n.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";f();d();var D4n=L0e&&L0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(L0e,"__esModule",{value:!0});var N4n=xr(),O4n=function(r){D4n(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(n)},e.prototype.notifyError=function(t,n){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(N4n.Subscriber);L0e.OuterSubscriber=O4n});var UPt=E(q0e=>{"use strict";f();d();var F4n=q0e&&q0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(q0e,"__esModule",{value:!0});var L4n=xr(),q4n=function(r){F4n(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i.index=0,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(L4n.Subscriber);q0e.InnerSubscriber=q4n});var HPt=E(kWe=>{"use strict";f();d();Object.defineProperty(kWe,"__esModule",{value:!0});var W4n=m3e();kWe.subscribeToPromise=function(r){return function(e){return r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,W4n.hostReportError),e}}});var ute=E(cte=>{"use strict";f();d();Object.defineProperty(cte,"__esModule",{value:!0});function jPt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}cte.getSymbolIterator=jPt;cte.iterator=jPt();cte.$$iterator=cte.iterator});var zPt=E(SWe=>{"use strict";f();d();Object.defineProperty(SWe,"__esModule",{value:!0});var U4n=ute();SWe.subscribeToIterable=function(r){return function(e){var t=r[U4n.iterator]();do{var n=void 0;try{n=t.next()}catch(a){return e.error(a),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}while(!0);return typeof t.return=="function"&&e.add(function(){t.return&&t.return()}),e}}});var KPt=E(PWe=>{"use strict";f();d();Object.defineProperty(PWe,"__esModule",{value:!0});var H4n=V3();PWe.subscribeToObservable=function(r){return function(e){var t=r[H4n.observable]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}});var MWe=E(RWe=>{"use strict";f();d();Object.defineProperty(RWe,"__esModule",{value:!0});RWe.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var DWe=E(BWe=>{"use strict";f();d();Object.defineProperty(BWe,"__esModule",{value:!0});function j4n(r){return!!r&&typeof r.subscribe!="function"&&typeof r.then=="function"}BWe.isPromise=j4n});var W0e=E(NWe=>{"use strict";f();d();Object.defineProperty(NWe,"__esModule",{value:!0});var z4n=dWe(),K4n=HPt(),G4n=zPt(),V4n=KPt(),$4n=MWe(),Y4n=DWe(),Q4n=y3e(),J4n=ute(),Z4n=V3();NWe.subscribeTo=function(r){if(!!r&&typeof r[Z4n.observable]=="function")return V4n.subscribeToObservable(r);if($4n.isArrayLike(r))return z4n.subscribeToArray(r);if(Y4n.isPromise(r))return K4n.subscribeToPromise(r);if(!!r&&typeof r[J4n.iterator]=="function")return G4n.subscribeToIterable(r);var e=Q4n.isObject(r)?"an invalid object":"'"+r+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)}});var h6=E(OWe=>{"use strict";f();d();Object.defineProperty(OWe,"__esModule",{value:!0});var X4n=UPt(),exn=W0e(),txn=Qn();function rxn(r,e,t,n,a){if(a===void 0&&(a=new X4n.InnerSubscriber(r,t,n)),!a.closed)return e instanceof txn.Observable?e.subscribe(a):exn.subscribeTo(e)(a)}OWe.subscribeToResult=rxn});var M3e=E(Y3=>{"use strict";f();d();var nxn=Y3&&Y3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Y3,"__esModule",{value:!0});var axn=pm(),ixn=Al(),sxn=p6(),oxn=h6(),cxn=nte(),GPt={};function uxn(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(FWe,"__esModule",{value:!0});var lxn=Qn(),fxn=Gc(),dxn=V3();function pxn(r,e){return new lxn.Observable(function(t){var n=new fxn.Subscription;return n.add(e.schedule(function(){var a=r[dxn.observable]();n.add(a.subscribe({next:function(i){n.add(e.schedule(function(){return t.next(i)}))},error:function(i){n.add(e.schedule(function(){return t.error(i)}))},complete:function(){n.add(e.schedule(function(){return t.complete()}))}}))})),n})}FWe.scheduleObservable=pxn});var QPt=E(LWe=>{"use strict";f();d();Object.defineProperty(LWe,"__esModule",{value:!0});var hxn=Qn(),mxn=Gc();function yxn(r,e){return new hxn.Observable(function(t){var n=new mxn.Subscription;return n.add(e.schedule(function(){return r.then(function(a){n.add(e.schedule(function(){t.next(a),n.add(e.schedule(function(){return t.complete()}))}))},function(a){n.add(e.schedule(function(){return t.error(a)}))})})),n})}LWe.schedulePromise=yxn});var JPt=E(qWe=>{"use strict";f();d();Object.defineProperty(qWe,"__esModule",{value:!0});var bxn=Qn(),gxn=Gc(),vxn=ute();function wxn(r,e){if(!r)throw new Error("Iterable cannot be null");return new bxn.Observable(function(t){var n=new gxn.Subscription,a;return n.add(function(){a&&typeof a.return=="function"&&a.return()}),n.add(e.schedule(function(){a=r[vxn.iterator](),n.add(e.schedule(function(){if(!t.closed){var i,s;try{var o=a.next();i=o.value,s=o.done}catch(c){t.error(c);return}s?t.complete():(t.next(i),this.schedule())}}))})),n})}qWe.scheduleIterable=wxn});var ZPt=E(WWe=>{"use strict";f();d();Object.defineProperty(WWe,"__esModule",{value:!0});var xxn=V3();function _xn(r){return r&&typeof r[xxn.observable]=="function"}WWe.isInteropObservable=_xn});var XPt=E(UWe=>{"use strict";f();d();Object.defineProperty(UWe,"__esModule",{value:!0});var Txn=ute();function Exn(r){return r&&typeof r[Txn.iterator]=="function"}UWe.isIterable=Exn});var jWe=E(HWe=>{"use strict";f();d();Object.defineProperty(HWe,"__esModule",{value:!0});var Ixn=YPt(),Cxn=QPt(),Axn=C3e(),kxn=JPt(),Sxn=ZPt(),Pxn=DWe(),Rxn=MWe(),Mxn=XPt();function Bxn(r,e){if(r!=null){if(Sxn.isInteropObservable(r))return Ixn.scheduleObservable(r,e);if(Pxn.isPromise(r))return Cxn.schedulePromise(r,e);if(Rxn.isArrayLike(r))return Axn.scheduleArray(r,e);if(Mxn.isIterable(r)||typeof r=="string")return kxn.scheduleIterable(r,e)}throw new TypeError((r!==null&&typeof r||r)+" is not observable")}HWe.scheduled=Bxn});var hm=E(zWe=>{"use strict";f();d();Object.defineProperty(zWe,"__esModule",{value:!0});var eRt=Qn(),Dxn=W0e(),Nxn=jWe();function Oxn(r,e){return e?Nxn.scheduled(r,e):r instanceof eRt.Observable?r:new eRt.Observable(Dxn.subscribeTo(r))}zWe.from=Oxn});var io=E(Vb=>{"use strict";f();d();var B3e=Vb&&Vb.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vb,"__esModule",{value:!0});var D3e=xr(),Fxn=Qn(),Lxn=W0e(),qxn=function(r){B3e(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,n}return e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(D3e.Subscriber);Vb.SimpleInnerSubscriber=qxn;var Wxn=function(r){B3e(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(D3e.Subscriber);Vb.ComplexInnerSubscriber=Wxn;var Uxn=function(r){B3e(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(D3e.Subscriber);Vb.SimpleOuterSubscriber=Uxn;var Hxn=function(r){B3e(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i){this.destination.next(n)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(D3e.Subscriber);Vb.ComplexOuterSubscriber=Hxn;function jxn(r,e){if(!e.closed){if(r instanceof Fxn.Observable)return r.subscribe(e);var t;try{t=Lxn.subscribeTo(r)(e)}catch(n){e.error(n)}return t}}Vb.innerSubscribe=jxn});var U0e=E(m6=>{"use strict";f();d();var zxn=m6&&m6.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(m6,"__esModule",{value:!0});var Kxn=bd(),Gxn=hm(),KWe=io();function GWe(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?function(n){return n.pipe(GWe(function(a,i){return Gxn.from(r(a,i)).pipe(Kxn.map(function(s,o){return e(a,s,i,o)}))},t))}:(typeof e=="number"&&(t=e),function(n){return n.lift(new tRt(r,t))})}m6.mergeMap=GWe;var tRt=function(){function r(e,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return r.prototype.call=function(e,t){return t.subscribe(new rRt(e,this.project,this.concurrent))},r}();m6.MergeMapOperator=tRt;var rRt=function(r){zxn(e,r);function e(t,n,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=n,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return e.prototype._next=function(t){this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(KWe.SimpleOuterSubscriber);m6.MergeMapSubscriber=rRt;m6.flatMap=GWe});var N3e=E(VWe=>{"use strict";f();d();Object.defineProperty(VWe,"__esModule",{value:!0});var Vxn=U0e(),$xn=f6();function Yxn(r){return r===void 0&&(r=Number.POSITIVE_INFINITY),Vxn.mergeMap($xn.identity,r)}VWe.mergeAll=Yxn});var YWe=E($We=>{"use strict";f();d();Object.defineProperty($We,"__esModule",{value:!0});var Qxn=N3e();function Jxn(){return Qxn.mergeAll(1)}$We.concatAll=Jxn});var H0e=E(QWe=>{"use strict";f();d();Object.defineProperty(QWe,"__esModule",{value:!0});var Zxn=I0e(),Xxn=YWe();function e_n(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(JWe,"__esModule",{value:!0});var t_n=Qn(),r_n=hm(),n_n=dm();function a_n(r){return new t_n.Observable(function(e){var t;try{t=r()}catch(a){e.error(a);return}var n=t?r_n.from(t):n_n.empty();return n.subscribe(e)})}JWe.defer=a_n});var aRt=E(ZWe=>{"use strict";f();d();Object.defineProperty(ZWe,"__esModule",{value:!0});var i_n=Qn(),nRt=Al(),s_n=bd(),o_n=y3e(),c_n=hm();function u_n(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(XWe,"__esModule",{value:!0});var l_n=Qn(),f_n=Al(),d_n=Qee(),p_n=bd(),UYa=function(){return Object.prototype.toString}();function iRt(r,e,t,n){return d_n.isFunction(t)&&(n=t,t=void 0),n?iRt(r,e,t).pipe(p_n.map(function(a){return f_n.isArray(a)?n.apply(void 0,a):n(a)})):new l_n.Observable(function(a){function i(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}sRt(r,e,i,a,t)})}XWe.fromEvent=iRt;function sRt(r,e,t,n,a){var i;if(y_n(r)){var s=r;r.addEventListener(e,t,a),i=function(){return s.removeEventListener(e,t,a)}}else if(m_n(r)){var o=r;r.on(e,t),i=function(){return o.off(e,t)}}else if(h_n(r)){var c=r;r.addListener(e,t),i=function(){return c.removeListener(e,t)}}else if(r&&r.length)for(var u=0,l=r.length;u{"use strict";f();d();Object.defineProperty(eUe,"__esModule",{value:!0});var b_n=Qn(),g_n=Al(),v_n=Qee(),w_n=bd();function cRt(r,e,t){return t?cRt(r,e).pipe(w_n.map(function(n){return g_n.isArray(n)?t.apply(void 0,n):t(n)})):new b_n.Observable(function(n){var a=function(){for(var s=[],o=0;o{"use strict";f();d();Object.defineProperty(tUe,"__esModule",{value:!0});var x_n=Qn(),lRt=f6(),__n=pm();function T_n(r,e,t,n,a){var i,s;if(arguments.length==1){var o=r;s=o.initialState,e=o.condition,t=o.iterate,i=o.resultSelector||lRt.identity,a=o.scheduler}else n===void 0||__n.isScheduler(n)?(s=r,i=lRt.identity,a=n):(s=r,i=n);return new x_n.Observable(function(c){var u=s;if(a)return a.schedule(E_n,0,{subscriber:c,iterate:t,condition:e,resultSelector:i,state:u});do{if(e){var l=void 0;try{l=e(u)}catch(h){c.error(h);return}if(!l){c.complete();break}}var p=void 0;try{p=i(u)}catch(h){c.error(h);return}if(c.next(p),c.closed)break;try{u=t(u)}catch(h){c.error(h);return}}while(!0)})}tUe.generate=T_n;function E_n(r){var e=r.subscriber,t=r.condition;if(!e.closed){if(r.needIterate)try{r.state=r.iterate(r.state)}catch(i){e.error(i);return}else r.needIterate=!0;if(t){var n=void 0;try{n=t(r.state)}catch(i){e.error(i);return}if(!n){e.complete();return}if(e.closed)return}var a;try{a=r.resultSelector(r.state)}catch(i){e.error(i);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(r)}}});var pRt=E(rUe=>{"use strict";f();d();Object.defineProperty(rUe,"__esModule",{value:!0});var I_n=O3e(),dRt=dm();function C_n(r,e,t){return e===void 0&&(e=dRt.EMPTY),t===void 0&&(t=dRt.EMPTY),I_n.defer(function(){return r()?e:t})}rUe.iif=C_n});var j0e=E(nUe=>{"use strict";f();d();Object.defineProperty(nUe,"__esModule",{value:!0});var A_n=Al();function k_n(r){return!A_n.isArray(r)&&r-parseFloat(r)+1>=0}nUe.isNumeric=k_n});var mRt=E(aUe=>{"use strict";f();d();Object.defineProperty(aUe,"__esModule",{value:!0});var S_n=Qn(),hRt=kl(),P_n=j0e();function R_n(r,e){return r===void 0&&(r=0),e===void 0&&(e=hRt.async),(!P_n.isNumeric(r)||r<0)&&(r=0),(!e||typeof e.schedule!="function")&&(e=hRt.async),new S_n.Observable(function(t){return t.add(e.schedule(M_n,r,{subscriber:t,counter:0,period:r})),t})}aUe.interval=R_n;function M_n(r){var e=r.subscriber,t=r.counter,n=r.period;e.next(t),this.schedule({subscriber:e,counter:t+1,period:n},n)}});var sUe=E(iUe=>{"use strict";f();d();Object.defineProperty(iUe,"__esModule",{value:!0});var B_n=Qn(),D_n=pm(),N_n=N3e(),O_n=nte();function F_n(){for(var r=[],e=0;e1&&typeof r[r.length-1]=="number"&&(t=r.pop())):typeof a=="number"&&(t=r.pop()),n===null&&r.length===1&&r[0]instanceof B_n.Observable?r[0]:N_n.mergeAll(t)(O_n.fromArray(r,n))}iUe.merge=F_n});var oUe=E(z0e=>{"use strict";f();d();Object.defineProperty(z0e,"__esModule",{value:!0});var L_n=Qn(),q_n=R3e();z0e.NEVER=new L_n.Observable(q_n.noop);function W_n(){return z0e.NEVER}z0e.never=W_n});var yRt=E(uUe=>{"use strict";f();d();Object.defineProperty(uUe,"__esModule",{value:!0});var U_n=Qn(),H_n=hm(),j_n=Al(),z_n=dm();function cUe(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(L3e,"__esModule",{value:!0});var bRt=Qn(),K_n=Gc();function G_n(r,e){return e?new bRt.Observable(function(t){var n=Object.keys(r),a=new K_n.Subscription;return a.add(e.schedule(gRt,0,{keys:n,index:0,subscriber:t,subscription:a,obj:r})),a}):new bRt.Observable(function(t){for(var n=Object.keys(r),a=0;a{"use strict";f();d();Object.defineProperty(lUe,"__esModule",{value:!0});function V_n(r,e){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=r,t.thisArg=e,t}lUe.not=V_n});var Q3=E(K0e=>{"use strict";f();d();var $_n=K0e&&K0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K0e,"__esModule",{value:!0});var Y_n=xr();function Q_n(r,e){return function(n){return n.lift(new J_n(r,e))}}K0e.filter=Q_n;var J_n=function(){function r(e,t){this.predicate=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new Z_n(e,this.predicate,this.thisArg))},r}(),Z_n=function(r){$_n(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.thisArg=a,i.count=0,i}return e.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}n&&this.destination.next(t)},e}(Y_n.Subscriber)});var TRt=E(dUe=>{"use strict";f();d();Object.defineProperty(dUe,"__esModule",{value:!0});var X_n=fUe(),wRt=W0e(),xRt=Q3(),_Rt=Qn();function eTn(r,e,t){return[xRt.filter(e,t)(new _Rt.Observable(wRt.subscribeTo(r))),xRt.filter(X_n.not(e,t))(new _Rt.Observable(wRt.subscribeTo(r)))]}dUe.partition=eTn});var pUe=E(J3=>{"use strict";f();d();var tTn=J3&&J3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J3,"__esModule",{value:!0});var rTn=Al(),nTn=nte(),aTn=p6(),iTn=h6();function sTn(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(q3e,"__esModule",{value:!0});var oTn=Qn();function cTn(r,e,t){return r===void 0&&(r=0),new oTn.Observable(function(n){e===void 0&&(e=r,r=0);var a=0,i=r;if(t)return t.schedule(CRt,0,{index:a,count:e,start:r,subscriber:n});do{if(a++>=e){n.complete();break}if(n.next(i++),n.closed)break}while(!0)})}q3e.range=cTn;function CRt(r){var e=r.start,t=r.index,n=r.count,a=r.subscriber;if(t>=n){a.complete();return}a.next(e),!a.closed&&(r.index=t+1,r.start=e+1,this.schedule(r))}q3e.dispatch=CRt});var mUe=E(hUe=>{"use strict";f();d();Object.defineProperty(hUe,"__esModule",{value:!0});var uTn=Qn(),lTn=kl(),kRt=j0e(),SRt=pm();function fTn(r,e,t){r===void 0&&(r=0);var n=-1;return kRt.isNumeric(e)?n=Number(e)<1&&1||Number(e):SRt.isScheduler(e)&&(t=e),SRt.isScheduler(t)||(t=lTn.async),new uTn.Observable(function(a){var i=kRt.isNumeric(r)?r:+r-t.now();return t.schedule(dTn,i,{index:0,period:n,subscriber:a})})}hUe.timer=fTn;function dTn(r){var e=r.index,t=r.period,n=r.subscriber;if(n.next(e),!n.closed){if(t===-1)return n.complete();r.index=e+1,this.schedule(r,t)}}});var PRt=E(yUe=>{"use strict";f();d();Object.defineProperty(yUe,"__esModule",{value:!0});var pTn=Qn(),hTn=hm(),mTn=dm();function yTn(r,e){return new pTn.Observable(function(t){var n;try{n=r()}catch(o){t.error(o);return}var a;try{a=e(n)}catch(o){t.error(o);return}var i=a?hTn.from(a):mTn.EMPTY,s=i.subscribe(t);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}yUe.using=yTn});var U3e=E(Z3=>{"use strict";f();d();var RRt=Z3&&Z3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z3,"__esModule",{value:!0});var bTn=nte(),gTn=Al(),vTn=xr(),W3e=ute(),bUe=io();function wTn(){for(var r=[],e=0;ethis.index},r.prototype.hasCompleted=function(){return this.array.length===this.index},r}(),TTn=function(r){RRt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.parent=n,i.observable=a,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return e.prototype[W3e.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return bUe.innerSubscribe(this.observable,new bUe.SimpleInnerSubscriber(this))},e}(bUe.SimpleOuterSubscriber)});var G0e=E(Dt=>{"use strict";f();d();Object.defineProperty(Dt,"__esModule",{value:!0});var ETn=Qn();Dt.Observable=ETn.Observable;var ITn=nWe();Dt.ConnectableObservable=ITn.ConnectableObservable;var CTn=iWe();Dt.GroupedObservable=CTn.GroupedObservable;var ATn=V3();Dt.observable=ATn.observable;var kTn=al();Dt.Subject=kTn.Subject;var STn=sWe();Dt.BehaviorSubject=STn.BehaviorSubject;var PTn=k3e();Dt.ReplaySubject=PTn.ReplaySubject;var RTn=P0e();Dt.AsyncSubject=RTn.AsyncSubject;var DRt=vWe();Dt.asap=DRt.asap;Dt.asapScheduler=DRt.asapScheduler;var NRt=kl();Dt.async=NRt.async;Dt.asyncScheduler=NRt.asyncScheduler;var ORt=uWe();Dt.queue=ORt.queue;Dt.queueScheduler=ORt.queueScheduler;var FRt=kPt();Dt.animationFrame=FRt.animationFrame;Dt.animationFrameScheduler=FRt.animationFrameScheduler;var LRt=RPt();Dt.VirtualTimeScheduler=LRt.VirtualTimeScheduler;Dt.VirtualAction=LRt.VirtualAction;var MTn=cWe();Dt.Scheduler=MTn.Scheduler;var BTn=Gc();Dt.Subscription=BTn.Subscription;var DTn=xr();Dt.Subscriber=DTn.Subscriber;var qRt=A0e();Dt.Notification=qRt.Notification;Dt.NotificationKind=qRt.NotificationKind;var NTn=_3e();Dt.pipe=NTn.pipe;var OTn=R3e();Dt.noop=OTn.noop;var FTn=f6();Dt.identity=FTn.identity;var LTn=MPt();Dt.isObservable=LTn.isObservable;var qTn=ite();Dt.ArgumentOutOfRangeError=qTn.ArgumentOutOfRangeError;var WTn=ste();Dt.EmptyError=WTn.EmptyError;var UTn=p0e();Dt.ObjectUnsubscribedError=UTn.ObjectUnsubscribedError;var HTn=Uqe();Dt.UnsubscriptionError=HTn.UnsubscriptionError;var jTn=IWe();Dt.TimeoutError=jTn.TimeoutError;var zTn=OPt();Dt.bindCallback=zTn.bindCallback;var KTn=WPt();Dt.bindNodeCallback=KTn.bindNodeCallback;var GTn=M3e();Dt.combineLatest=GTn.combineLatest;var VTn=H0e();Dt.concat=VTn.concat;var $Tn=O3e();Dt.defer=$Tn.defer;var YTn=dm();Dt.empty=YTn.empty;var QTn=aRt();Dt.forkJoin=QTn.forkJoin;var JTn=hm();Dt.from=JTn.from;var ZTn=oRt();Dt.fromEvent=ZTn.fromEvent;var XTn=uRt();Dt.fromEventPattern=XTn.fromEventPattern;var eEn=fRt();Dt.generate=eEn.generate;var tEn=pRt();Dt.iif=tEn.iif;var rEn=mRt();Dt.interval=rEn.interval;var nEn=sUe();Dt.merge=nEn.merge;var aEn=oUe();Dt.never=aEn.never;var iEn=I0e();Dt.of=iEn.of;var sEn=yRt();Dt.onErrorResumeNext=sEn.onErrorResumeNext;var oEn=vRt();Dt.pairs=oEn.pairs;var cEn=TRt();Dt.partition=cEn.partition;var uEn=pUe();Dt.race=uEn.race;var lEn=ARt();Dt.range=lEn.range;var fEn=A3e();Dt.throwError=fEn.throwError;var dEn=mUe();Dt.timer=dEn.timer;var pEn=PRt();Dt.using=pEn.using;var hEn=U3e();Dt.zip=hEn.zip;var mEn=jWe();Dt.scheduled=mEn.scheduled;var yEn=dm();Dt.EMPTY=yEn.EMPTY;var bEn=oUe();Dt.NEVER=bEn.NEVER;var gEn=f0e();Dt.config=gEn.config});var V0e=E((KQa,gUe)=>{f();d();function URt(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;eG3e,useContext:()=>V3e,useDebugValue:()=>$3e,useEffect:()=>Y0e,useErrorBoundary:()=>QRt,useId:()=>Y3e,useImperativeHandle:()=>K3e,useLayoutEffect:()=>e8,useMemo:()=>dte,useReducer:()=>$0e,useRef:()=>z3e,useState:()=>fte});function X3(r,e){zt.__h&&zt.__h(ts,r,lte||e),lte=0;var t=ts.__H||(ts.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:H3e}),t.__[r]}function fte(r){return lte=1,$0e(JRt,r)}function $0e(r,e,t){var n=X3(y6++,2);if(n.t=r,!n.__c&&(n.__=[t?t(e):JRt(void 0,e),function(o){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,o);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=ts,!ts.u)){var a=function(o,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(h){return h.__c});if(l.every(function(h){return!h.__N}))return!i||i.call(this,o,c,u);var p=!1;return l.forEach(function(h){if(h.__N){var m=h.__[0];h.__=h.__N,h.__N=void 0,m!==h.__[0]&&(p=!0)}}),!(!p&&n.__c.props===o)&&(!i||i.call(this,o,c,u))};ts.u=!0;var i=ts.shouldComponentUpdate,s=ts.componentWillUpdate;ts.componentWillUpdate=function(o,c,u){if(this.__e){var l=i;i=void 0,a(o,c,u),i=l}s&&s.call(this,o,c,u)},ts.shouldComponentUpdate=a}return n.__N||n.__}function Y0e(r,e){var t=X3(y6++,3);!zt.__s&&xUe(t.__H,e)&&(t.__=r,t.i=e,ts.__H.__h.push(t))}function e8(r,e){var t=X3(y6++,4);!zt.__s&&xUe(t.__H,e)&&(t.__=r,t.i=e,ts.__h.push(t))}function z3e(r){return lte=5,dte(function(){return{current:r}},[])}function K3e(r,e,t){lte=6,e8(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function dte(r,e){var t=X3(y6++,7);return xUe(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function G3e(r,e){return lte=8,dte(function(){return r},e)}function V3e(r){var e=ts.context[r.__c],t=X3(y6++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(ts)),e.props.value):r.__}function $3e(r,e){zt.useDebugValue&&zt.useDebugValue(e?e(r):r)}function QRt(r){var e=X3(y6++,10),t=fte();return e.__=r,ts.componentDidCatch||(ts.componentDidCatch=function(n,a){e.__&&e.__(n,a),t[1](n)}),[t[0],function(){t[1](void 0)}]}function Y3e(){var r=X3(y6++,11);if(!r.__){for(var e=ts.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function vEn(){for(var r;r=YRt.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(j3e),r.__H.__h.forEach(wUe),r.__H.__h=[]}catch(e){r.__H.__h=[],zt.__e(e,r.__v)}}function wEn(r){var e,t=function(){clearTimeout(n),$Rt&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);$Rt&&(e=requestAnimationFrame(t))}function j3e(r){var e=ts,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),ts=e}function wUe(r){var e=ts;r.__c=r.__(),ts=e}function xUe(r,e){return!r||r.length!==e.length||e.some(function(t,n){return t!==r[n]})}function JRt(r,e){return typeof e=="function"?e(r):e}var y6,ts,vUe,HRt,lte,YRt,H3e,jRt,zRt,KRt,GRt,VRt,$Rt,b6=de(()=>{f();d();cu();lte=0,YRt=[],H3e=[],jRt=zt.__b,zRt=zt.__r,KRt=zt.diffed,GRt=zt.__c,VRt=zt.unmount;zt.__b=function(r){ts=null,jRt&&jRt(r)},zt.__r=function(r){zRt&&zRt(r),y6=0;var e=(ts=r.__c).__H;e&&(vUe===ts?(e.__h=[],ts.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=H3e,t.__N=t.i=void 0})):(e.__h.forEach(j3e),e.__h.forEach(wUe),e.__h=[])),vUe=ts},zt.diffed=function(r){KRt&&KRt(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(YRt.push(e)!==1&&HRt===zt.requestAnimationFrame||((HRt=zt.requestAnimationFrame)||wEn)(vEn)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==H3e&&(t.__=t.__V),t.i=void 0,t.__V=H3e})),vUe=ts=null},zt.__c=function(r,e){e.some(function(t){try{t.__h.forEach(j3e),t.__h=t.__h.filter(function(n){return!n.__||wUe(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],zt.__e(n,t.__v)}}),GRt&&GRt(r,e)},zt.unmount=function(r){VRt&&VRt(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{j3e(n)}catch(a){e=a}}),t.__H=void 0,e&&zt.__e(e,t.__v))};$Rt=typeof requestAnimationFrame=="function"});var ZRt=E(Q3e=>{"use strict";f();d();Object.defineProperty(Q3e,"__esModule",{value:!0});Q3e.LIB_VERSION=void 0;Q3e.LIB_VERSION="3.6.4"});var eMt=E(J3e=>{"use strict";f();d();Object.defineProperty(J3e,"__esModule",{value:!0});J3e.CloseIcon=void 0;var XRt=(cu(),Ht(xf));function xEn(r){return(0,XRt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,XRt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}J3e.CloseIcon=xEn});var tMt=E(_Ue=>{"use strict";f();d();Object.defineProperty(_Ue,"__esModule",{value:!0});_Ue.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="});var rMt=E(TUe=>{"use strict";f();d();Object.defineProperty(TUe,"__esModule",{value:!0});TUe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="});var nMt=E(Z3e=>{"use strict";f();d();Object.defineProperty(Z3e,"__esModule",{value:!0});Z3e.QRCodeIcon=void 0;var X1=(cu(),Ht(xf));function _En(r){return(0,X1.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,X1.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,X1.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,X1.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,X1.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,X1.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,X1.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,X1.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,X1.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,X1.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}Z3e.QRCodeIcon=_En});var aMt=E(EUe=>{"use strict";f();d();Object.defineProperty(EUe,"__esModule",{value:!0});var TEn=` -`;NPe.default=gJr});var Ovt=_(BPe=>{"use strict";d();p();Object.defineProperty(BPe,"__esModule",{value:!0});BPe.default=` +`;EUe.default=TEn});var iMt=E(IUe=>{"use strict";f();d();Object.defineProperty(IUe,"__esModule",{value:!0});IUe.default=` -`});var Fvt=_(bye=>{"use strict";d();p();Object.defineProperty(bye,"__esModule",{value:!0});bye.StatusDotIcon=void 0;var qvt=(Pc(),nt(Dl));function bJr(r){return(0,qvt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,qvt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}bye.StatusDotIcon=bJr});var zvt=_((Poa,jvt)=>{d();p();function Wvt(r){this.mode=fd.MODE_8BIT_BYTE,this.data=r,this.parsedData=[];for(var e=0,t=this.data.length;e65536?(n[0]=240|(a&1835008)>>>18,n[1]=128|(a&258048)>>>12,n[2]=128|(a&4032)>>>6,n[3]=128|a&63):a>2048?(n[0]=224|(a&61440)>>>12,n[1]=128|(a&4032)>>>6,n[2]=128|a&63):a>128?(n[0]=192|(a&1984)>>>6,n[1]=128|a&63):n[0]=a,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}Wvt.prototype={getLength:function(r){return this.parsedData.length},write:function(r){for(var e=0,t=this.parsedData.length;e=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=Im.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=t&&t<=6&&(n==0||n==6)||0<=n&&n<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=n&&n<=4?this.modules[r+t][e+n]=!0:this.modules[r+t][e+n]=!1)},getBestMaskPattern:function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var n=Zi.getLostPoint(this);(t==0||r>n)&&(r=n,e=t)}return e},createMovieClip:function(r,e,t){var n=r.createEmptyMovieClip(e,t),a=1;this.make();for(var i=0;i>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=n}for(var t=0;t<18;t++){var n=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=n}},setupTypeInfo:function(r,e){for(var t=this.errorCorrectLevel<<3|e,n=Zi.getBCHTypeInfo(t),a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(var a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!r},mapData:function(r,e){for(var t=-1,n=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var o=0;o<2;o++)if(this.modules[n][s-o]==null){var c=!1;i>>a&1)==1);var u=Zi.getMask(e,n,s-o);u&&(c=!c),this.modules[n][s-o]=c,a--,a==-1&&(i++,a=7)}if(n+=t,n<0||this.moduleCount<=n){n-=t,t=-t;break}}}};Im.PAD0=236;Im.PAD1=17;Im.createData=function(r,e,t){for(var n=Tm.getRSBlocks(r,e),a=new Uvt,i=0;io*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+o*8+")");for(a.getLengthInBits()+4<=o*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=o*8||(a.put(Im.PAD0,8),a.getLengthInBits()>=o*8));)a.put(Im.PAD1,8);return Im.createBytes(a,n)};Im.createBytes=function(r,e){for(var t=0,n=0,a=0,i=new Array(e.length),s=new Array(e.length),o=0;o=0?m.get(y):0}}for(var I=0,l=0;l=0;)e^=Zi.G15<=0;)e^=Zi.G18<>>=1;return e},getPatternPosition:function(r){return Zi.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case o1.PATTERN000:return(e+t)%2==0;case o1.PATTERN001:return e%2==0;case o1.PATTERN010:return t%3==0;case o1.PATTERN011:return(e+t)%3==0;case o1.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case o1.PATTERN101:return e*t%2+e*t%3==0;case o1.PATTERN110:return(e*t%2+e*t%3)%2==0;case o1.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new s$([1],0),t=0;t5&&(t+=3+i-5)}for(var n=0;n=256;)r-=255;return rc.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(Js=0;Js<8;Js++)rc.EXP_TABLE[Js]=1<>>7-r%8&1)==1},put:function(r,e){for(var t=0;t>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var DPe=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function Hvt(r){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof r=="string"&&(r={content:r}),r)for(var t in r)this.options[t]=r[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function n(u){switch(u){case"L":return c1.L;case"M":return c1.M;case"Q":return c1.Q;case"H":return c1.H;default:throw new Error("Unknwon error correction level: "+u)}}function a(u,l){for(var h=i(u),f=1,m=0,y=0,I=DPe.length;y<=I;y++){var C=DPe[y];if(!C)throw new Error("Content too long: expected "+m+" but got "+h);switch(l){case"L":m=C[0];break;case"M":m=C[1];break;case"Q":m=C[2];break;case"H":m=C[3];break;default:throw new Error("Unknwon error correction level: "+l)}if(h<=m)break;f++}if(f>DPe.length)throw new Error("Content too long");return f}function i(u){var l=encodeURI(u).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return l.length+(l.length!=u?3:0)}var s=this.options.content,o=a(s,this.options.ecl),c=n(this.options.ecl);this.qrcode=new Im(o,c),this.qrcode.addData(s),this.qrcode.make()}Hvt.prototype.svg=function(r){var e=this.options||{},t=this.qrcode.modules;typeof r>"u"&&(r={container:e.container||"svg"});for(var n=typeof e.pretty<"u"?!!e.pretty:!0,a=n?" ":"",i=n?`\r -`:"",s=e.width,o=e.height,c=t.length,u=s/(c+2*e.padding),l=o/(c+2*e.padding),h=typeof e.join<"u"?!!e.join:!1,f=typeof e.swap<"u"?!!e.swap:!1,m=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,y=typeof e.predefined<"u"?!!e.predefined:!1,I=y?a+''+i:"",C=a+''+i,R="",L="",F=0;F'+i:R+=a+''+i}}h&&(R=a+'');let T="";if(this.options.image!==void 0&&this.options.image.svg){let A=s*this.options.image.width/100,v=o*this.options.image.height/100,k=s/2-A/2,O=o/2-v/2;T+=``,T+=this.options.image.svg+i,T+=""}var M="";switch(r.container){case"svg":m&&(M+=''+i),M+=''+i,M+=I+C+R,M+=T,M+="";break;case"svg-viewbox":m&&(M+=''+i),M+=''+i,M+=I+C+R,M+=T,M+="";break;case"g":M+=''+i,M+=I+C+R,M+=T,M+="";break;default:M+=(I+C+R+T).replace(/^\s+/,"");break}return M};jvt.exports=Hvt});var Gvt=_(o$=>{"use strict";d();p();var vJr=o$&&o$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(o$,"__esModule",{value:!0});o$.QRCode=void 0;var wJr=(Pc(),nt(Dl)),Kvt=(s1(),nt(i$)),xJr=vJr(zvt()),_Jr=r=>{let[e,t]=(0,Kvt.useState)("");return(0,Kvt.useEffect)(()=>{var n,a;let i=new xJr.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:(n=r.width)!==null&&n!==void 0?n:256,height:(a=r.height)!==null&&a!==void 0?a:256,padding:0,image:r.image}),s=b.Buffer.from(i.svg(),"utf8").toString("base64");t(`data:image/svg+xml;base64,${s}`)}),e?(0,wJr.h)("img",{src:e,alt:"QR Code"}):null};o$.QRCode=_Jr});var Vvt=_(LPe=>{"use strict";d();p();Object.defineProperty(LPe,"__esModule",{value:!0});LPe.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"});var Yvt=_(c$=>{"use strict";d();p();var TJr=c$&&c$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(c$,"__esModule",{value:!0});c$.Spinner=void 0;var vye=(Pc(),nt(Dl)),IJr=TJr(Vvt()),EJr=r=>{var e;let t=(e=r.size)!==null&&e!==void 0?e:64,n=r.color||"#000";return(0,vye.h)("div",{class:"-cbwsdk-spinner"},(0,vye.h)("style",null,IJr.default),(0,vye.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:t}},(0,vye.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};c$.Spinner=EJr});var $vt=_(OPe=>{"use strict";d();p();Object.defineProperty(OPe,"__esModule",{value:!0});OPe.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"});var r2t=_(Dp=>{"use strict";d();p();var u$=Dp&&Dp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dp,"__esModule",{value:!0});Dp.CoinbaseAppSteps=Dp.CoinbaseWalletSteps=Dp.ConnectItem=Dp.ConnectContent=void 0;var Bp=u$(dre()),rr=(Pc(),nt(Dl)),Qvt=(s1(),nt(i$)),CJr=$0(),kJr=Svt(),AJr=Mvt(),PJr=u$(Nvt()),SJr=u$(Bvt()),Zvt=Dvt(),RJr=u$(Lvt()),MJr=u$(Ovt()),NJr=Fvt(),BJr=Gvt(),DJr=Yvt(),LJr=u$($vt()),Jvt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:SJr.default,steps:e2t},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:PJr.default,steps:t2t}},OJr=r=>{switch(r){case"coinbase-app":return RJr.default;case"coinbase-wallet-app":default:return MJr.default}},qPe=r=>r==="light"?"#FFFFFF":"#0A0B0D";function qJr(r){let{theme:e}=r,[t,n]=(0,Qvt.useState)("coinbase-wallet-app"),a=(0,Qvt.useCallback)(u=>{n(u)},[]),i=(0,CJr.createQrUrl)(r.sessionId,r.sessionSecret,r.linkAPIUrl,r.isParentConnection,r.version,r.chainId),s=Jvt[t];if(!t)return null;let o=s.steps,c=t==="coinbase-app";return(0,rr.h)("div",{"data-testid":"connect-content",class:(0,Bp.default)("-cbwsdk-connect-content",e)},(0,rr.h)("style",null,LJr.default),(0,rr.h)("div",{class:"-cbwsdk-connect-content-header"},(0,rr.h)("h2",{class:(0,Bp.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),r.onCancel&&(0,rr.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:r.onCancel},(0,rr.h)(AJr.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,rr.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,rr.h)("div",null,Object.entries(Jvt).map(([u,l])=>(0,rr.h)(Xvt,{key:u,title:l.title,description:l.description,icon:l.icon,selected:t===u,onClick:()=>a(u),theme:e}))),c&&(0,rr.h)("div",{class:(0,Bp.default)("-cbwsdk-connect-content-update-app",e)},"Don\u2019t see a ",(0,rr.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,rr.h)(BJr.QRCode,{content:i,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:OJr(t),width:25,height:25}}),(0,rr.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:kJr.LIB_VERSION}),(0,rr.h)("input",{type:"hidden",value:i})),(0,rr.h)(o,{theme:e}),!r.isConnected&&(0,rr.h)("div",{"data-testid":"connecting-spinner",class:(0,Bp.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,rr.h)(DJr.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,rr.h)("p",null,"Connecting...")))))}Dp.ConnectContent=qJr;function Xvt({title:r,description:e,icon:t,selected:n,theme:a,onClick:i}){return(0,rr.h)("div",{onClick:i,class:(0,Bp.default)("-cbwsdk-connect-item",a,{selected:n})},(0,rr.h)("div",null,(0,rr.h)("img",{src:t,alt:r})),(0,rr.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,rr.h)("h3",{class:"-cbwsdk-connect-item-title"},r),(0,rr.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}Dp.ConnectItem=Xvt;function e2t({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"Scan")," "),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(Zvt.QRCodeIcon,{fill:qPe(r)})))))}Dp.CoinbaseWalletSteps=e2t;function t2t({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"More")),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(NJr.StatusDotIcon,{fill:qPe(r)})),(0,rr.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,rr.h)("strong",null,"Scan")),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(Zvt.QRCodeIcon,{fill:qPe(r)})))))}Dp.CoinbaseAppSteps=t2t});var a2t=_(wye=>{"use strict";d();p();Object.defineProperty(wye,"__esModule",{value:!0});wye.ArrowLeftIcon=void 0;var n2t=(Pc(),nt(Dl));function FJr(r){return(0,n2t.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,n2t.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}wye.ArrowLeftIcon=FJr});var i2t=_(xye=>{"use strict";d();p();Object.defineProperty(xye,"__esModule",{value:!0});xye.LaptopIcon=void 0;var FPe=(Pc(),nt(Dl));function WJr(r){return(0,FPe.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,FPe.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,FPe.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}xye.LaptopIcon=WJr});var o2t=_(_ye=>{"use strict";d();p();Object.defineProperty(_ye,"__esModule",{value:!0});_ye.SafeIcon=void 0;var s2t=(Pc(),nt(Dl));function UJr(r){return(0,s2t.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,s2t.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}_ye.SafeIcon=UJr});var c2t=_(WPe=>{"use strict";d();p();Object.defineProperty(WPe,"__esModule",{value:!0});WPe.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"});var l2t=_(l$=>{"use strict";d();p();var u2t=l$&&l$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(l$,"__esModule",{value:!0});l$.TryExtensionContent=void 0;var hw=u2t(dre()),Zs=(Pc(),nt(Dl)),UPe=(s1(),nt(i$)),HJr=a2t(),jJr=i2t(),zJr=o2t(),KJr=u2t(c2t());function GJr({theme:r}){let[e,t]=(0,UPe.useState)(!1),n=(0,UPe.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,UPe.useCallback)(()=>{e?window.location.reload():(n(),t(!0))},[n,e]);return(0,Zs.h)("div",{class:(0,hw.default)("-cbwsdk-try-extension",r)},(0,Zs.h)("style",null,KJr.default),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Zs.h)("h3",{class:(0,hw.default)("-cbwsdk-try-extension-heading",r)},"Or try the Coinbase Wallet browser extension"),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Zs.h)("button",{class:(0,hw.default)("-cbwsdk-try-extension-cta",r),onClick:a},e?"Refresh":"Install"),(0,Zs.h)("div",null,!e&&(0,Zs.h)(HJr.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:r==="light"?"#0052FF":"#588AF5"})))),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Zs.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Zs.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Zs.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Zs.h)("span",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Zs.h)(jJr.LaptopIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Zs.h)("div",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-copy",r)},"Connect with dapps with just one click on your desktop browser")),(0,Zs.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Zs.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Zs.h)("span",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Zs.h)(zJr.SafeIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Zs.h)("div",{class:(0,hw.default)("-cbwsdk-try-extension-list-item-copy",r)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}l$.TryExtensionContent=GJr});var d2t=_(HPe=>{"use strict";d();p();Object.defineProperty(HPe,"__esModule",{value:!0});HPe.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"});var h2t=_(d$=>{"use strict";d();p();var p2t=d$&&d$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(d$,"__esModule",{value:!0});d$.ConnectDialog=void 0;var jPe=p2t(dre()),fw=(Pc(),nt(Dl)),zPe=(s1(),nt(i$)),VJr=r2t(),YJr=l2t(),$Jr=p2t(d2t()),QJr=r=>{let{isOpen:e,darkMode:t}=r,[n,a]=(0,zPe.useState)(!e),[i,s]=(0,zPe.useState)(!e);(0,zPe.useEffect)(()=>{let c=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):c.push(window.setTimeout(()=>{a(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[r.isOpen]);let o=t?"dark":"light";return(0,fw.h)("div",{class:(0,jPe.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,fw.h)("style",null,$Jr.default),(0,fw.h)("div",{class:(0,jPe.default)("-cbwsdk-connect-dialog-backdrop",o,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,fw.h)("div",{class:"-cbwsdk-connect-dialog"},(0,fw.h)("div",{class:(0,jPe.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},r.connectDisabled?null:(0,fw.h)(VJr.ConnectContent,{theme:o,version:r.version,sessionId:r.sessionId,sessionSecret:r.sessionSecret,linkAPIUrl:r.linkAPIUrl,isConnected:r.isConnected,isParentConnection:r.isParentConnection,chainId:r.chainId,onCancel:r.onCancel}),(0,fw.h)(YJr.TryExtensionContent,{theme:o}))))};d$.ConnectDialog=QJr});var m2t=_(Tye=>{"use strict";d();p();Object.defineProperty(Tye,"__esModule",{value:!0});Tye.LinkFlow=void 0;var KPe=(Pc(),nt(Dl)),f2t=lre(),JJr=h2t(),GPe=class{constructor(e){this.extensionUI$=new f2t.BehaviorSubject({}),this.subscriptions=new f2t.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var e;!this.root||(this.subscriptions.unsubscribe(),(0,KPe.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{!this.root||(0,KPe.render)((0,KPe.h)(JJr.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}};Tye.LinkFlow=GPe});var y2t=_(VPe=>{"use strict";d();p();Object.defineProperty(VPe,"__esModule",{value:!0});VPe.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"});var b2t=_(Lp=>{"use strict";d();p();var g2t=Lp&&Lp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lp,"__esModule",{value:!0});Lp.SnackbarInstance=Lp.SnackbarContainer=Lp.Snackbar=void 0;var Iye=g2t(dre()),Xs=(Pc(),nt(Dl)),YPe=(s1(),nt(i$)),ZJr=g2t(y2t()),XJr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function eZr(r){switch(r){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}var $Pe=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){!this.root||(0,Xs.render)((0,Xs.h)("div",null,(0,Xs.h)(Lp.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,Xs.h)(Lp.SnackbarInstance,Object.assign({},t,{key:e}))))),this.root)}};Lp.Snackbar=$Pe;var tZr=r=>(0,Xs.h)("div",{class:(0,Iye.default)("-cbwsdk-snackbar-container")},(0,Xs.h)("style",null,ZJr.default),(0,Xs.h)("div",{class:"-cbwsdk-snackbar"},r.children));Lp.SnackbarContainer=tZr;var rZr=({autoExpand:r,message:e,menuItems:t,appSrc:n})=>{let[a,i]=(0,YPe.useState)(!0),[s,o]=(0,YPe.useState)(r??!1);(0,YPe.useEffect)(()=>{let u=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{o(!s)};return(0,Xs.h)("div",{class:(0,Iye.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",s&&"-cbwsdk-snackbar-instance-expanded")},(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:c},(0,Xs.h)("img",{src:eZr(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,Xs.h)("div",{class:"-gear-container"},!s&&(0,Xs.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Xs.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,Xs.h)("img",{src:XJr,class:"-gear-icon",title:"Expand"}))),t&&t.length>0&&(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},t.map((u,l)=>(0,Xs.h)("div",{class:(0,Iye.default)("-cbwsdk-snackbar-instance-menu-item",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:u.onClick,key:l},(0,Xs.h)("svg",{width:u.svgWidth,height:u.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Xs.h)("path",{"fill-rule":u.defaultFillRule,"clip-rule":u.defaultClipRule,d:u.path,fill:"#AAAAAA"})),(0,Xs.h)("span",{class:(0,Iye.default)("-cbwsdk-snackbar-instance-menu-item-info",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},u.info)))))};Lp.SnackbarInstance=rZr});var v2t=_(QPe=>{"use strict";d();p();Object.defineProperty(QPe,"__esModule",{value:!0});QPe.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'});var w2t=_(p$=>{"use strict";d();p();var nZr=p$&&p$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(p$,"__esModule",{value:!0});p$.injectCssReset=void 0;var aZr=nZr(v2t());function iZr(){let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(aZr.default)),document.documentElement.appendChild(r)}p$.injectCssReset=iZr});var x2t=_(Eye=>{"use strict";d();p();Object.defineProperty(Eye,"__esModule",{value:!0});Eye.WalletSDKUI=void 0;var sZr=m2t(),oZr=b2t(),cZr=w2t(),JPe=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new oZr.Snackbar({darkMode:e.darkMode}),this.linkFlow=new sZr.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,cZr.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return e.isUnlinkedErrorState?t={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:t={message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};Eye.WalletSDKUI=JPe});var T2t=_(Cye=>{"use strict";d();p();Object.defineProperty(Cye,"__esModule",{value:!0});var h$;(function(r){r.typeOfFunction="function",r.boolTrue=!0})(h$||(h$={}));function _2t(r,e,t){if(!t||typeof t.value!==h$.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:h$.boolTrue,get:function(){var n=t.value.bind(this);return Object.defineProperty(this,e,{value:n,configurable:h$.boolTrue,writable:h$.boolTrue}),n}}}Cye.bind=_2t;Cye.default=_2t});var XPe=_(fre=>{"use strict";d();p();var uZr=fre&&fre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fre,"__esModule",{value:!0});var ZPe=Ji();function lZr(r){return function(t){return t.lift(new dZr(r))}}fre.audit=lZr;var dZr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new pZr(e,this.durationSelector))},r}(),pZr=function(r){uZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{var a=this.durationSelector;n=a(t)}catch(s){return this.destination.error(s)}var i=ZPe.innerSubscribe(n,new ZPe.SimpleInnerSubscriber(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}},e.prototype.clearThrottle=function(){var t=this,n=t.value,a=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(ZPe.SimpleOuterSubscriber)});var I2t=_(eSe=>{"use strict";d();p();Object.defineProperty(eSe,"__esModule",{value:!0});var hZr=Qu(),fZr=XPe(),mZr=IPe();function yZr(r,e){return e===void 0&&(e=hZr.async),fZr.audit(function(){return mZr.timer(r,e)})}eSe.auditTime=yZr});var E2t=_(mre=>{"use strict";d();p();var gZr=mre&&mre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mre,"__esModule",{value:!0});var tSe=Ji();function bZr(r){return function(t){return t.lift(new vZr(r))}}mre.buffer=bZr;var vZr=function(){function r(e){this.closingNotifier=e}return r.prototype.call=function(e,t){return t.subscribe(new wZr(e,this.closingNotifier))},r}(),wZr=function(r){gZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.buffer=[],a.add(tSe.innerSubscribe(n,new tSe.SimpleInnerSubscriber(a))),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(tSe.SimpleOuterSubscriber)});var A2t=_(yre=>{"use strict";d();p();var C2t=yre&&yre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yre,"__esModule",{value:!0});var k2t=tr();function xZr(r,e){return e===void 0&&(e=null),function(n){return n.lift(new _Zr(r,e))}}yre.bufferCount=xZr;var _Zr=function(){function r(e,t){this.bufferSize=e,this.startBufferEvery=t,!t||e===t?this.subscriberClass=TZr:this.subscriberClass=IZr}return r.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},r}(),TZr=function(r){C2t(e,r);function e(t,n){var a=r.call(this,t)||this;return a.bufferSize=n,a.buffer=[],a}return e.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},e.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),r.prototype._complete.call(this)},e}(k2t.Subscriber),IZr=function(r){C2t(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=a,i.buffers=[],i.count=0,i}return e.prototype._next=function(t){var n=this,a=n.bufferSize,i=n.startBufferEvery,s=n.buffers,o=n.count;this.count++,o%i===0&&s.push([]);for(var c=s.length;c--;){var u=s[c];u.push(t),u.length===a&&(s.splice(c,1),this.destination.next(u))}},e.prototype._complete=function(){for(var t=this,n=t.buffers,a=t.destination;n.length>0;){var i=n.shift();i.length>0&&a.next(i)}r.prototype._complete.call(this)},e}(k2t.Subscriber)});var R2t=_(gre=>{"use strict";d();p();var EZr=gre&&gre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gre,"__esModule",{value:!0});var CZr=Qu(),kZr=tr(),AZr=Qh();function PZr(r){var e=arguments.length,t=CZr.async;AZr.isScheduler(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new SZr(r,n,a,t))}}gre.bufferTime=PZr;var SZr=function(){function r(e,t,n,a){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new MZr(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},r}(),RZr=function(){function r(){this.buffer=[]}return r}(),MZr=function(r){EZr(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=a,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var c=o.openContext();if(o.timespanOnly=a==null||a<0,o.timespanOnly){var u={subscriber:o,context:c,bufferTimeSpan:n};o.add(c.closeAction=s.schedule(P2t,n,u))}else{var l={subscriber:o,context:c},h={bufferTimeSpan:n,bufferCreationInterval:a,subscriber:o,scheduler:s};o.add(c.closeAction=s.schedule(S2t,n,l)),o.add(s.schedule(NZr,a,h))}return o}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i,s=0;s0;){var i=n.shift();a.next(i.buffer)}r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var a=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:a};this.add(t.closeAction=this.scheduler.schedule(P2t,a,i))}},e.prototype.openContext=function(){var t=new RZr;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts,a=n?n.indexOf(t):-1;a>=0&&n.splice(n.indexOf(t),1)},e}(kZr.Subscriber);function P2t(r){var e=r.subscriber,t=r.context;t&&e.closeContext(t),e.closed||(r.context=e.openContext(),r.context.closeAction=this.schedule(r,r.bufferTimeSpan))}function NZr(r){var e=r.bufferCreationInterval,t=r.bufferTimeSpan,n=r.subscriber,a=r.scheduler,i=n.openContext(),s=this;n.closed||(n.add(i.closeAction=a.schedule(S2t,t,{subscriber:n,context:i})),s.schedule(r,e))}function S2t(r){var e=r.subscriber,t=r.context;e.closeContext(t)}});var N2t=_(bre=>{"use strict";d();p();var BZr=bre&&bre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(bre,"__esModule",{value:!0});var DZr=_o(),M2t=n1(),LZr=r1();function OZr(r,e){return function(n){return n.lift(new qZr(r,e))}}bre.bufferToggle=OZr;var qZr=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new FZr(e,this.openings,this.closingSelector))},r}(),FZr=function(r){BZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.closingSelector=a,i.contexts=[],i.add(M2t.subscribeToResult(i,n)),i}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i=0;i0;){var a=n.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},e.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._complete.call(this)},e.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var n=this.closingSelector,a=n.call(this,t);a&&this.trySubscribe(a)}catch(i){this._error(i)}},e.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var a=t.buffer,i=t.subscription;this.destination.next(a),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var n=this.contexts,a=[],i=new DZr.Subscription,s={buffer:a,subscription:i};n.push(s);var o=M2t.subscribeToResult(this,t,s);!o||o.closed?this.closeBuffer(s):(o.context=s,this.add(o),i.add(o))},e}(LZr.OuterSubscriber)});var B2t=_(vre=>{"use strict";d();p();var WZr=vre&&vre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vre,"__esModule",{value:!0});var UZr=_o(),rSe=Ji();function HZr(r){return function(e){return e.lift(new jZr(r))}}vre.bufferWhen=HZr;var jZr=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new zZr(e,this.closingSelector))},r}(),zZr=function(r){WZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.closingSelector=n,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];var a;try{var i=this.closingSelector;a=i()}catch(s){return this.error(s)}t=new UZr.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(rSe.innerSubscribe(a,new rSe.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(rSe.SimpleOuterSubscriber)});var D2t=_(wre=>{"use strict";d();p();var KZr=wre&&wre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wre,"__esModule",{value:!0});var nSe=Ji();function GZr(r){return function(t){var n=new VZr(r),a=t.lift(n);return n.caught=a}}wre.catchError=GZr;var VZr=function(){function r(e){this.selector=e}return r.prototype.call=function(e,t){return t.subscribe(new YZr(e,this.selector,this.caught))},r}(),YZr=function(r){KZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.selector=n,i.caught=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(s){r.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new nSe.SimpleInnerSubscriber(this);this.add(a);var i=nSe.innerSubscribe(n,a);i!==a&&this.add(i)}},e}(nSe.SimpleOuterSubscriber)});var L2t=_(aSe=>{"use strict";d();p();Object.defineProperty(aSe,"__esModule",{value:!0});var $Zr=J0e();function QZr(r){return function(e){return e.lift(new $Zr.CombineLatestOperator(r))}}aSe.combineAll=QZr});var O2t=_(iSe=>{"use strict";d();p();Object.defineProperty(iSe,"__esModule",{value:!0});var JZr=$u(),ZZr=J0e(),XZr=Jh();function eXr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(sSe,"__esModule",{value:!0});var tXr=sre();function rXr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(oSe,"__esModule",{value:!0});var nXr=ire();function aXr(r,e){return nXr.mergeMap(r,e,1)}oSe.concatMap=aXr});var F2t=_(uSe=>{"use strict";d();p();Object.defineProperty(uSe,"__esModule",{value:!0});var iXr=cSe();function sXr(r,e){return iXr.concatMap(function(){return r},e)}uSe.concatMapTo=sXr});var W2t=_(xre=>{"use strict";d();p();var oXr=xre&&xre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xre,"__esModule",{value:!0});var cXr=tr();function uXr(r){return function(e){return e.lift(new lXr(r,e))}}xre.count=uXr;var lXr=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new dXr(e,this.predicate,this.source))},r}(),dXr=function(r){oXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.count=0,i.index=0,i}return e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var n;try{n=this.predicate(t,this.index++,this.source)}catch(a){this.destination.error(a);return}n&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(cXr.Subscriber)});var U2t=_(_re=>{"use strict";d();p();var pXr=_re&&_re.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_re,"__esModule",{value:!0});var lSe=Ji();function hXr(r){return function(e){return e.lift(new fXr(r))}}_re.debounce=hXr;var fXr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new mXr(e,this.durationSelector))},r}(),mXr=function(r){pXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){try{var n=this.durationSelector.call(this,t);n&&this._tryNext(t,n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,n){var a=this.durationSubscription;this.value=t,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=lSe.innerSubscribe(n,new lSe.SimpleInnerSubscriber(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,r.prototype._next.call(this,t)}},e}(lSe.SimpleOuterSubscriber)});var H2t=_(Tre=>{"use strict";d();p();var yXr=Tre&&Tre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tre,"__esModule",{value:!0});var gXr=tr(),bXr=Qu();function vXr(r,e){return e===void 0&&(e=bXr.async),function(t){return t.lift(new wXr(r,e))}}Tre.debounceTime=vXr;var wXr=function(){function r(e,t){this.dueTime=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new xXr(e,this.dueTime,this.scheduler))},r}(),xXr=function(r){yXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.dueTime=n,i.scheduler=a,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(_Xr,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(gXr.Subscriber);function _Xr(r){r.debouncedNext()}});var f$=_(Ire=>{"use strict";d();p();var TXr=Ire&&Ire.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ire,"__esModule",{value:!0});var IXr=tr();function EXr(r){return r===void 0&&(r=null),function(e){return e.lift(new CXr(r))}}Ire.defaultIfEmpty=EXr;var CXr=function(){function r(e){this.defaultValue=e}return r.prototype.call=function(e,t){return t.subscribe(new kXr(e,this.defaultValue))},r}(),kXr=function(r){TXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.defaultValue=n,a.isEmpty=!0,a}return e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(IXr.Subscriber)});var pSe=_(dSe=>{"use strict";d();p();Object.defineProperty(dSe,"__esModule",{value:!0});function AXr(r){return r instanceof Date&&!isNaN(+r)}dSe.isDate=AXr});var z2t=_(Ere=>{"use strict";d();p();var PXr=Ere&&Ere.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ere,"__esModule",{value:!0});var SXr=Qu(),RXr=pSe(),MXr=tr(),j2t=Kte();function NXr(r,e){e===void 0&&(e=SXr.async);var t=RXr.isDate(r),n=t?+r-e.now():Math.abs(r);return function(a){return a.lift(new BXr(n,e))}}Ere.delay=NXr;var BXr=function(){function r(e,t){this.delay=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new DXr(e,this.delay,this.scheduler))},r}(),DXr=function(r){PXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.delay=n,i.scheduler=a,i.queue=[],i.active=!1,i.errored=!1,i}return e.dispatch=function(t){for(var n=t.source,a=n.queue,i=t.scheduler,s=t.destination;a.length>0&&a[0].time-i.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var o=Math.max(0,a[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),n.active=!1},e.prototype._schedule=function(t){this.active=!0;var n=this.destination;n.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var n=this.scheduler,a=new LXr(n.now()+this.delay,t);this.queue.push(a),this.active===!1&&this._schedule(n)}},e.prototype._next=function(t){this.scheduleNotification(j2t.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(j2t.Notification.createComplete()),this.unsubscribe()},e}(MXr.Subscriber),LXr=function(){function r(e,t){this.time=e,this.notification=t}return r}()});var G2t=_(Cre=>{"use strict";d();p();var hSe=Cre&&Cre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Cre,"__esModule",{value:!0});var OXr=tr(),qXr=sn(),FXr=r1(),WXr=n1();function UXr(r,e){return e?function(t){return new jXr(t,e).lift(new K2t(r))}:function(t){return t.lift(new K2t(r))}}Cre.delayWhen=UXr;var K2t=function(){function r(e){this.delayDurationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new HXr(e,this.delayDurationSelector))},r}(),HXr=function(r){hSe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.delayDurationSelector=n,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(t,n){this._error(t)},e.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},e.prototype._next=function(t){var n=this.index++;try{var a=this.delayDurationSelector(t,n);a&&this.tryDelay(a,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return n!==-1&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},e.prototype.tryDelay=function(t,n){var a=WXr.subscribeToResult(this,t,n);if(a&&!a.closed){var i=this.destination;i.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(FXr.OuterSubscriber),jXr=function(r){hSe(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subscriptionDelay=n,a}return e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new zXr(t,this.source))},e}(qXr.Observable),zXr=function(r){hSe(e,r);function e(t,n){var a=r.call(this)||this;return a.parent=t,a.source=n,a.sourceSubscribed=!1,a}return e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(OXr.Subscriber)});var V2t=_(kre=>{"use strict";d();p();var KXr=kre&&kre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kre,"__esModule",{value:!0});var GXr=tr();function VXr(){return function(e){return e.lift(new YXr)}}kre.dematerialize=VXr;var YXr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new $Xr(e))},r}(),$Xr=function(r){KXr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){t.observe(this.destination)},e}(GXr.Subscriber)});var $2t=_(m$=>{"use strict";d();p();var QXr=m$&&m$.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(m$,"__esModule",{value:!0});var fSe=Ji();function JXr(r,e){return function(t){return t.lift(new ZXr(r,e))}}m$.distinct=JXr;var ZXr=function(){function r(e,t){this.keySelector=e,this.flushes=t}return r.prototype.call=function(e,t){return t.subscribe(new Y2t(e,this.keySelector,this.flushes))},r}(),Y2t=function(r){QXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=n,i.values=new Set,a&&i.add(fSe.innerSubscribe(a,new fSe.SimpleInnerSubscriber(i))),i}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var n,a=this.destination;try{n=this.keySelector(t)}catch(i){a.error(i);return}this._finalizeNext(n,t)},e.prototype._finalizeNext=function(t,n){var a=this.values;a.has(t)||(a.add(t),this.destination.next(n))},e}(fSe.SimpleOuterSubscriber);m$.DistinctSubscriber=Y2t});var mSe=_(Are=>{"use strict";d();p();var XXr=Are&&Are.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Are,"__esModule",{value:!0});var een=tr();function ten(r,e){return function(t){return t.lift(new ren(r,e))}}Are.distinctUntilChanged=ten;var ren=function(){function r(e,t){this.compare=e,this.keySelector=t}return r.prototype.call=function(e,t){return t.subscribe(new nen(e,this.compare,this.keySelector))},r}(),nen=function(r){XXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=a,i.hasKey=!1,typeof n=="function"&&(i.compare=n),i}return e.prototype.compare=function(t,n){return t===n},e.prototype._next=function(t){var n;try{var a=this.keySelector;n=a?a(t):t}catch(o){return this.destination.error(o)}var i=!1;if(this.hasKey)try{var s=this.compare;i=s(this.key,n)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},e}(een.Subscriber)});var Q2t=_(ySe=>{"use strict";d();p();Object.defineProperty(ySe,"__esModule",{value:!0});var aen=mSe();function ien(r,e){return aen.distinctUntilChanged(function(t,n){return e?e(t[r],n[r]):t[r]===n[r]})}ySe.distinctUntilKeyChanged=ien});var Sre=_(Pre=>{"use strict";d();p();var sen=Pre&&Pre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Pre,"__esModule",{value:!0});var oen=ZY(),cen=tr();function uen(r){return r===void 0&&(r=pen),function(e){return e.lift(new len(r))}}Pre.throwIfEmpty=uen;var len=function(){function r(e){this.errorFactory=e}return r.prototype.call=function(e,t){return t.subscribe(new den(e,this.errorFactory))},r}(),den=function(r){sen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.errorFactory=n,a.hasValue=!1,a}return e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},e}(cen.Subscriber);function pen(){return new oen.EmptyError}});var kye=_(Rre=>{"use strict";d();p();var hen=Rre&&Rre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rre,"__esModule",{value:!0});var fen=tr(),men=JY(),yen=$h();function gen(r){return function(e){return r===0?yen.empty():e.lift(new ben(r))}}Rre.take=gen;var ben=function(){function r(e){if(this.total=e,this.total<0)throw new men.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new ven(e,this.total))},r}(),ven=function(r){hen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){var n=this.total,a=++this.count;a<=n&&(this.destination.next(t),a===n&&(this.destination.complete(),this.unsubscribe()))},e}(fen.Subscriber)});var Z2t=_(gSe=>{"use strict";d();p();Object.defineProperty(gSe,"__esModule",{value:!0});var J2t=JY(),wen=cw(),xen=Sre(),_en=f$(),Ten=kye();function Ien(r,e){if(r<0)throw new J2t.ArgumentOutOfRangeError;var t=arguments.length>=2;return function(n){return n.pipe(wen.filter(function(a,i){return i===r}),Ten.take(1),t?_en.defaultIfEmpty(e):xen.throwIfEmpty(function(){return new J2t.ArgumentOutOfRangeError}))}}gSe.elementAt=Ien});var X2t=_(bSe=>{"use strict";d();p();Object.defineProperty(bSe,"__esModule",{value:!0});var Een=sre(),Cen=jte();function ken(){for(var r=[],e=0;e{"use strict";d();p();var Aen=Mre&&Mre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Mre,"__esModule",{value:!0});var Pen=tr();function Sen(r,e){return function(t){return t.lift(new Ren(r,e,t))}}Mre.every=Sen;var Ren=function(){function r(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return r.prototype.call=function(e,t){return t.subscribe(new Men(e,this.predicate,this.thisArg,this.source))},r}(),Men=function(r){Aen(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.predicate=n,s.thisArg=a,s.source=i,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(a){this.destination.error(a);return}n||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(Pen.Subscriber)});var twt=_(Nre=>{"use strict";d();p();var Nen=Nre&&Nre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nre,"__esModule",{value:!0});var vSe=Ji();function Ben(){return function(r){return r.lift(new Den)}}Nre.exhaust=Ben;var Den=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new Len(e))},r}(),Len=function(r){Nen(e,r);function e(t){var n=r.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(vSe.innerSubscribe(t,new vSe.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(vSe.SimpleOuterSubscriber)});var nwt=_(Bre=>{"use strict";d();p();var Oen=Bre&&Bre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bre,"__esModule",{value:!0});var qen=hd(),Fen=Jh(),wSe=Ji();function rwt(r,e){return e?function(t){return t.pipe(rwt(function(n,a){return Fen.from(r(n,a)).pipe(qen.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new Wen(r))}}Bre.exhaustMap=rwt;var Wen=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new Uen(e,this.project))},r}(),Uen=function(r){Oen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this.hasSubscription=!0,this._innerSub(n)},e.prototype._innerSub=function(t){var n=new wSe.SimpleInnerSubscriber(this),a=this.destination;a.add(n);var i=wSe.innerSubscribe(t,n);i!==n&&a.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(wSe.SimpleOuterSubscriber)});var swt=_(mw=>{"use strict";d();p();var Hen=mw&&mw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mw,"__esModule",{value:!0});var xSe=Ji();function jen(r,e,t){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new awt(r,e,t))}}mw.expand=jen;var awt=function(){function r(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return r.prototype.call=function(e,t){return t.subscribe(new iwt(e,this.project,this.concurrent,this.scheduler))},r}();mw.ExpandOperator=awt;var iwt=function(r){Hen(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.project=n,s.concurrent=a,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,a0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(xSe.SimpleOuterSubscriber);mw.ExpandSubscriber=iwt});var owt=_(Dre=>{"use strict";d();p();var zen=Dre&&Dre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Dre,"__esModule",{value:!0});var Ken=tr(),Gen=_o();function Ven(r){return function(e){return e.lift(new Yen(r))}}Dre.finalize=Ven;var Yen=function(){function r(e){this.callback=e}return r.prototype.call=function(e,t){return t.subscribe(new $en(e,this.callback))},r}(),$en=function(r){zen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.add(new Gen.Subscription(n)),a}return e}(Ken.Subscriber)});var _Se=_(yw=>{"use strict";d();p();var Qen=yw&&yw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yw,"__esModule",{value:!0});var Jen=tr();function Zen(r,e){if(typeof r!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new cwt(r,t,!1,e))}}yw.find=Zen;var cwt=function(){function r(e,t,n,a){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=a}return r.prototype.call=function(e,t){return t.subscribe(new uwt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},r}();yw.FindValueOperator=cwt;var uwt=function(r){Qen(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.predicate=n,o.source=a,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},e.prototype._next=function(t){var n=this,a=n.predicate,i=n.thisArg,s=this.index++;try{var o=a.call(i||this,t,s,this.source);o&&this.notifyComplete(this.yieldIndex?s:t)}catch(c){this.destination.error(c)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(Jen.Subscriber);yw.FindValueSubscriber=uwt});var lwt=_(TSe=>{"use strict";d();p();Object.defineProperty(TSe,"__esModule",{value:!0});var Xen=_Se();function etn(r,e){return function(t){return t.lift(new Xen.FindValueOperator(r,t,!0,e))}}TSe.findIndex=etn});var dwt=_(ISe=>{"use strict";d();p();Object.defineProperty(ISe,"__esModule",{value:!0});var ttn=ZY(),rtn=cw(),ntn=kye(),atn=f$(),itn=Sre(),stn=e1();function otn(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?rtn.filter(function(a,i){return r(a,i,n)}):stn.identity,ntn.take(1),t?atn.defaultIfEmpty(e):itn.throwIfEmpty(function(){return new ttn.EmptyError}))}}ISe.first=otn});var pwt=_(Lre=>{"use strict";d();p();var ctn=Lre&&Lre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lre,"__esModule",{value:!0});var utn=tr();function ltn(){return function(e){return e.lift(new dtn)}}Lre.ignoreElements=ltn;var dtn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new ptn(e))},r}(),ptn=function(r){ctn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype._next=function(t){},e}(utn.Subscriber)});var hwt=_(Ore=>{"use strict";d();p();var htn=Ore&&Ore.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ore,"__esModule",{value:!0});var ftn=tr();function mtn(){return function(r){return r.lift(new ytn)}}Ore.isEmpty=mtn;var ytn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new gtn(e))},r}(),gtn=function(r){htn(e,r);function e(t){return r.call(this,t)||this}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(ftn.Subscriber)});var Aye=_(qre=>{"use strict";d();p();var btn=qre&&qre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qre,"__esModule",{value:!0});var vtn=tr(),wtn=JY(),xtn=$h();function _tn(r){return function(t){return r===0?xtn.empty():t.lift(new Ttn(r))}}qre.takeLast=_tn;var Ttn=function(){function r(e){if(this.total=e,this.total<0)throw new wtn.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new Itn(e,this.total))},r}(),Itn=function(r){btn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.ring=new Array,a.count=0,a}return e.prototype._next=function(t){var n=this.ring,a=this.total,i=this.count++;if(n.length0)for(var a=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s{"use strict";d();p();Object.defineProperty(ESe,"__esModule",{value:!0});var Etn=ZY(),Ctn=cw(),ktn=Aye(),Atn=Sre(),Ptn=f$(),Stn=e1();function Rtn(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?Ctn.filter(function(a,i){return r(a,i,n)}):Stn.identity,ktn.takeLast(1),t?Ptn.defaultIfEmpty(e):Atn.throwIfEmpty(function(){return new Etn.EmptyError}))}}ESe.last=Rtn});var mwt=_(Fre=>{"use strict";d();p();var Mtn=Fre&&Fre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Fre,"__esModule",{value:!0});var Ntn=tr();function Btn(r){return function(e){return e.lift(new Dtn(r))}}Fre.mapTo=Btn;var Dtn=function(){function r(e){this.value=e}return r.prototype.call=function(e,t){return t.subscribe(new Ltn(e,this.value))},r}(),Ltn=function(r){Mtn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.value=n,a}return e.prototype._next=function(t){this.destination.next(this.value)},e}(Ntn.Subscriber)});var ywt=_(Wre=>{"use strict";d();p();var Otn=Wre&&Wre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wre,"__esModule",{value:!0});var qtn=tr(),CSe=Kte();function Ftn(){return function(e){return e.lift(new Wtn)}}Wre.materialize=Ftn;var Wtn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new Utn(e))},r}(),Utn=function(r){Otn(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){this.destination.next(CSe.Notification.createNext(t))},e.prototype._error=function(t){var n=this.destination;n.next(CSe.Notification.createError(t)),n.complete()},e.prototype._complete=function(){var t=this.destination;t.next(CSe.Notification.createComplete()),t.complete()},e}(qtn.Subscriber)});var Pye=_(Ure=>{"use strict";d();p();var Htn=Ure&&Ure.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ure,"__esModule",{value:!0});var jtn=tr();function ztn(r,e){var t=!1;return arguments.length>=2&&(t=!0),function(a){return a.lift(new Ktn(r,e,t))}}Ure.scan=ztn;var Ktn=function(){function r(e,t,n){n===void 0&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return r.prototype.call=function(e,t){return t.subscribe(new Gtn(e,this.accumulator,this.seed,this.hasSeed))},r}(),Gtn=function(r){Htn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s._seed=a,s.hasSeed=i,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},e.prototype._tryNext=function(t){var n=this.index++,a;try{a=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=a,this.destination.next(a)},e}(jtn.Subscriber)});var Hre=_(kSe=>{"use strict";d();p();Object.defineProperty(kSe,"__esModule",{value:!0});var gwt=Pye(),bwt=Aye(),Vtn=f$(),vwt=U0e();function Ytn(r,e){return arguments.length>=2?function(n){return vwt.pipe(gwt.scan(r,e),bwt.takeLast(1),Vtn.defaultIfEmpty(e))(n)}:function(n){return vwt.pipe(gwt.scan(function(a,i,s){return r(a,i,s+1)}),bwt.takeLast(1))(n)}}kSe.reduce=Ytn});var wwt=_(ASe=>{"use strict";d();p();Object.defineProperty(ASe,"__esModule",{value:!0});var $tn=Hre();function Qtn(r){var e=typeof r=="function"?function(t,n){return r(t,n)>0?t:n}:function(t,n){return t>n?t:n};return $tn.reduce(e)}ASe.max=Qtn});var xwt=_(PSe=>{"use strict";d();p();Object.defineProperty(PSe,"__esModule",{value:!0});var Jtn=mPe();function Ztn(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(SSe,"__esModule",{value:!0});var _wt=ire();function Xtn(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?_wt.mergeMap(function(){return r},e,t):(typeof e=="number"&&(t=e),_wt.mergeMap(function(){return r},t))}SSe.mergeMapTo=Xtn});var Cwt=_(gw=>{"use strict";d();p();var ern=gw&&gw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gw,"__esModule",{value:!0});var RSe=Ji();function trn(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(n){return n.lift(new Iwt(r,e,t))}}gw.mergeScan=trn;var Iwt=function(){function r(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return r.prototype.call=function(e,t){return t.subscribe(new Ewt(e,this.accumulator,this.seed,this.concurrent))},r}();gw.MergeScanOperator=Iwt;var Ewt=function(r){ern(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s.acc=a,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(t){if(this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(RSe.SimpleOuterSubscriber);gw.MergeScanSubscriber=Ewt});var kwt=_(MSe=>{"use strict";d();p();Object.defineProperty(MSe,"__esModule",{value:!0});var rrn=Hre();function nrn(r){var e=typeof r=="function"?function(t,n){return r(t,n)<0?t:n}:function(t,n){return t{"use strict";d();p();Object.defineProperty(Sye,"__esModule",{value:!0});var arn=pAe();function irn(r,e){return function(n){var a;if(typeof r=="function"?a=r:a=function(){return r},typeof e=="function")return n.lift(new Awt(a,e));var i=Object.create(n,arn.connectableObservableDescriptor);return i.source=n,i.subjectFactory=a,i}}Sye.multicast=irn;var Awt=function(){function r(e,t){this.subjectFactory=e,this.selector=t}return r.prototype.call=function(e,t){var n=this.selector,a=this.subjectFactory(),i=n(a).subscribe(e);return i.add(t.subscribe(a)),i},r}();Sye.MulticastOperator=Awt});var Rwt=_(y$=>{"use strict";d();p();var srn=y$&&y$.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(y$,"__esModule",{value:!0});var orn=Jh(),Pwt=$u(),NSe=Ji();function crn(){for(var r=[],e=0;e{"use strict";d();p();var drn=jre&&jre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(jre,"__esModule",{value:!0});var prn=tr();function hrn(){return function(r){return r.lift(new frn)}}jre.pairwise=hrn;var frn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new mrn(e))},r}(),mrn=function(r){drn(e,r);function e(t){var n=r.call(this,t)||this;return n.hasPrev=!1,n}return e.prototype._next=function(t){var n;this.hasPrev?n=[this.prev,t]:this.hasPrev=!0,this.prev=t,n&&this.destination.next(n)},e}(prn.Subscriber)});var Bwt=_(BSe=>{"use strict";d();p();Object.defineProperty(BSe,"__esModule",{value:!0});var yrn=wPe(),Nwt=cw();function grn(r,e){return function(t){return[Nwt.filter(r,e)(t),Nwt.filter(yrn.not(r,e))(t)]}}BSe.partition=grn});var Dwt=_(DSe=>{"use strict";d();p();Object.defineProperty(DSe,"__esModule",{value:!0});var brn=hd();function vrn(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(LSe,"__esModule",{value:!0});var Lwt=Au(),Owt=bw();function xrn(r){return r?Owt.multicast(function(){return new Lwt.Subject},r):Owt.multicast(new Lwt.Subject)}LSe.publish=xrn});var Fwt=_(OSe=>{"use strict";d();p();Object.defineProperty(OSe,"__esModule",{value:!0});var _rn=mAe(),Trn=bw();function Irn(r){return function(e){return Trn.multicast(new _rn.BehaviorSubject(r))(e)}}OSe.publishBehavior=Irn});var Wwt=_(qSe=>{"use strict";d();p();Object.defineProperty(qSe,"__esModule",{value:!0});var Ern=Yte(),Crn=bw();function krn(){return function(r){return Crn.multicast(new Ern.AsyncSubject)(r)}}qSe.publishLast=krn});var Uwt=_(FSe=>{"use strict";d();p();Object.defineProperty(FSe,"__esModule",{value:!0});var Arn=V0e(),Prn=bw();function Srn(r,e,t,n){t&&typeof t!="function"&&(n=t);var a=typeof t=="function"?t:void 0,i=new Arn.ReplaySubject(r,e,n);return function(s){return Prn.multicast(function(){return i},a)(s)}}FSe.publishReplay=Srn});var Hwt=_(WSe=>{"use strict";d();p();Object.defineProperty(WSe,"__esModule",{value:!0});var Rrn=$u(),Mrn=_Pe();function Nrn(){for(var r=[],e=0;e{"use strict";d();p();var Brn=zre&&zre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zre,"__esModule",{value:!0});var Drn=tr(),Lrn=$h();function Orn(r){return r===void 0&&(r=-1),function(e){return r===0?Lrn.empty():r<0?e.lift(new jwt(-1,e)):e.lift(new jwt(r-1,e))}}zre.repeat=Orn;var jwt=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new qrn(e,this.count,this.source))},r}(),qrn=function(r){Brn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,a=t.count;if(a===0)return r.prototype.complete.call(this);a>-1&&(this.count=a-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(Drn.Subscriber)});var Kwt=_(Kre=>{"use strict";d();p();var Frn=Kre&&Kre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kre,"__esModule",{value:!0});var Wrn=Au(),USe=Ji();function Urn(r){return function(e){return e.lift(new Hrn(r))}}Kre.repeatWhen=Urn;var Hrn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new jrn(e,this.notifier,t))},r}(),jrn=function(r){Frn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i.sourceIsBeingSubscribedTo=!0,i}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return r.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this,n=t.notifications,a=t.retriesSubscription;n&&(n.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},e.prototype.subscribeToRetries=function(){this.notifications=new Wrn.Subject;var t;try{var n=this.notifier;t=n(this.notifications)}catch{return r.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=USe.innerSubscribe(t,new USe.SimpleInnerSubscriber(this))},e}(USe.SimpleOuterSubscriber)});var Gwt=_(Gre=>{"use strict";d();p();var zrn=Gre&&Gre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gre,"__esModule",{value:!0});var Krn=tr();function Grn(r){return r===void 0&&(r=-1),function(e){return e.lift(new Vrn(r,e))}}Gre.retry=Grn;var Vrn=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Yrn(e,this.count,this.source))},r}(),Yrn=function(r){zrn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this,a=n.source,i=n.count;if(i===0)return r.prototype.error.call(this,t);i>-1&&(this.count=i-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(Krn.Subscriber)});var Vwt=_(Vre=>{"use strict";d();p();var $rn=Vre&&Vre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vre,"__esModule",{value:!0});var Qrn=Au(),HSe=Ji();function Jrn(r){return function(e){return e.lift(new Zrn(r,e))}}Vre.retryWhen=Jrn;var Zrn=function(){function r(e,t){this.notifier=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Xrn(e,this.notifier,this.source))},r}(),Xrn=function(r){$rn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this.errors,a=this.retries,i=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{n=new Qrn.Subject;try{var s=this.notifier;a=s(n)}catch(o){return r.prototype.error.call(this,o)}i=HSe.innerSubscribe(a,new HSe.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=a,this.retriesSubscription=i,n.next(t)}},e.prototype._unsubscribe=function(){var t=this,n=t.errors,a=t.retriesSubscription;n&&(n.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(HSe.SimpleOuterSubscriber)});var Ywt=_(Yre=>{"use strict";d();p();var enn=Yre&&Yre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Yre,"__esModule",{value:!0});var jSe=Ji();function tnn(r){return function(e){return e.lift(new rnn(r))}}Yre.sample=tnn;var rnn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new nnn(e),a=t.subscribe(n);return a.add(jSe.innerSubscribe(this.notifier,new jSe.SimpleInnerSubscriber(n))),a},r}(),nnn=function(r){enn(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasValue=!1,t}return e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(jSe.SimpleOuterSubscriber)});var $wt=_($re=>{"use strict";d();p();var ann=$re&&$re.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($re,"__esModule",{value:!0});var inn=tr(),snn=Qu();function onn(r,e){return e===void 0&&(e=snn.async),function(t){return t.lift(new cnn(r,e))}}$re.sampleTime=onn;var cnn=function(){function r(e,t){this.period=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new unn(e,this.period,this.scheduler))},r}(),unn=function(r){ann(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.period=n,i.scheduler=a,i.hasValue=!1,i.add(a.schedule(lnn,n,{subscriber:i,period:n})),i}return e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(inn.Subscriber);function lnn(r){var e=r.subscriber,t=r.period;e.notifyNext(),this.schedule(r,t)}});var e5t=_(vw=>{"use strict";d();p();var Qwt=vw&&vw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vw,"__esModule",{value:!0});var Jwt=tr();function dnn(r,e){return function(t){return t.lift(new Zwt(r,e))}}vw.sequenceEqual=dnn;var Zwt=function(){function r(e,t){this.compareTo=e,this.comparator=t}return r.prototype.call=function(e,t){return t.subscribe(new Xwt(e,this.compareTo,this.comparator))},r}();vw.SequenceEqualOperator=Zwt;var Xwt=function(r){Qwt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.compareTo=n,i.comparator=a,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new pnn(t,i))),i}return e.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,n=t._a,a=t._b,i=t.comparator;n.length>0&&a.length>0;){var s=n.shift(),o=a.shift(),c=!1;try{c=i?i(s,o):s===o}catch(u){this.destination.error(u)}c||this.emit(!1)}},e.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}(Jwt.Subscriber);vw.SequenceEqualSubscriber=Xwt;var pnn=function(r){Qwt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.parent=n,a}return e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(Jwt.Subscriber)});var t5t=_(zSe=>{"use strict";d();p();Object.defineProperty(zSe,"__esModule",{value:!0});var hnn=bw(),fnn=j0e(),mnn=Au();function ynn(){return new mnn.Subject}function gnn(){return function(r){return fnn.refCount()(hnn.multicast(ynn)(r))}}zSe.share=gnn});var r5t=_(KSe=>{"use strict";d();p();Object.defineProperty(KSe,"__esModule",{value:!0});var bnn=V0e();function vnn(r,e,t){var n;return r&&typeof r=="object"?n=r:n={bufferSize:r,windowTime:e,refCount:!1,scheduler:t},function(a){return a.lift(wnn(n))}}KSe.shareReplay=vnn;function wnn(r){var e=r.bufferSize,t=e===void 0?Number.POSITIVE_INFINITY:e,n=r.windowTime,a=n===void 0?Number.POSITIVE_INFINITY:n,i=r.refCount,s=r.scheduler,o,c=0,u,l=!1,h=!1;return function(m){c++;var y;!o||l?(l=!1,o=new bnn.ReplaySubject(t,a,s),y=o.subscribe(this),u=m.subscribe({next:function(I){o.next(I)},error:function(I){l=!0,o.error(I)},complete:function(){h=!0,u=void 0,o.complete()}}),h&&(u=void 0)):y=o.subscribe(this),this.add(function(){c--,y.unsubscribe(),y=void 0,u&&!h&&i&&c===0&&(u.unsubscribe(),u=void 0,o=void 0)})}}});var n5t=_(Qre=>{"use strict";d();p();var xnn=Qre&&Qre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qre,"__esModule",{value:!0});var _nn=tr(),Tnn=ZY();function Inn(r){return function(e){return e.lift(new Enn(r,e))}}Qre.single=Inn;var Enn=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Cnn(e,this.predicate,this.source))},r}(),Cnn=function(r){xnn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.seenValue=!1,i.index=0,i}return e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},e.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Tnn.EmptyError)},e}(_nn.Subscriber)});var a5t=_(Jre=>{"use strict";d();p();var knn=Jre&&Jre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jre,"__esModule",{value:!0});var Ann=tr();function Pnn(r){return function(e){return e.lift(new Snn(r))}}Jre.skip=Pnn;var Snn=function(){function r(e){this.total=e}return r.prototype.call=function(e,t){return t.subscribe(new Rnn(e,this.total))},r}(),Rnn=function(r){knn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(Ann.Subscriber)});var s5t=_(Zre=>{"use strict";d();p();var Mnn=Zre&&Zre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Zre,"__esModule",{value:!0});var i5t=tr(),Nnn=JY();function Bnn(r){return function(e){return e.lift(new Dnn(r))}}Zre.skipLast=Bnn;var Dnn=function(){function r(e){if(this._skipCount=e,this._skipCount<0)throw new Nnn.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return this._skipCount===0?t.subscribe(new i5t.Subscriber(e)):t.subscribe(new Lnn(e,this._skipCount))},r}(),Lnn=function(r){Mnn(e,r);function e(t,n){var a=r.call(this,t)||this;return a._skipCount=n,a._count=0,a._ring=new Array(n),a}return e.prototype._next=function(t){var n=this._skipCount,a=this._count++;if(a{"use strict";d();p();var Onn=Xre&&Xre.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xre,"__esModule",{value:!0});var GSe=Ji();function qnn(r){return function(e){return e.lift(new Fnn(r))}}Xre.skipUntil=qnn;var Fnn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new Wnn(e,this.notifier))},r}(),Wnn=function(r){Onn(e,r);function e(t,n){var a=r.call(this,t)||this;a.hasValue=!1;var i=new GSe.SimpleInnerSubscriber(a);a.add(i),a.innerSubscription=i;var s=GSe.innerSubscribe(n,i);return s!==i&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(t){this.hasValue&&r.prototype._next.call(this,t)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(GSe.SimpleOuterSubscriber)});var c5t=_(ene=>{"use strict";d();p();var Unn=ene&&ene.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ene,"__esModule",{value:!0});var Hnn=tr();function jnn(r){return function(e){return e.lift(new znn(r))}}ene.skipWhile=jnn;var znn=function(){function r(e){this.predicate=e}return r.prototype.call=function(e,t){return t.subscribe(new Knn(e,this.predicate))},r}(),Knn=function(r){Unn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.predicate=n,a.skipping=!0,a.index=0,a}return e.prototype._next=function(t){var n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)},e.prototype.tryCallPredicate=function(t){try{var n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(a){this.destination.error(a)}},e}(Hnn.Subscriber)});var l5t=_(VSe=>{"use strict";d();p();Object.defineProperty(VSe,"__esModule",{value:!0});var u5t=sre(),Gnn=Qh();function Vnn(){for(var r=[],e=0;e{"use strict";d();p();var Ynn=tne&&tne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tne,"__esModule",{value:!0});var $nn=sn(),YSe=AAe(),Qnn=ore(),Jnn=function(r){Ynn(e,r);function e(t,n,a){n===void 0&&(n=0),a===void 0&&(a=YSe.asap);var i=r.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=a,(!Qnn.isNumeric(n)||n<0)&&(i.delayTime=0),(!a||typeof a.schedule!="function")&&(i.scheduler=YSe.asap),i}return e.create=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=YSe.asap),new e(t,n,a)},e.dispatch=function(t){var n=t.source,a=t.subscriber;return this.add(n.subscribe(a))},e.prototype._subscribe=function(t){var n=this.delayTime,a=this.source,i=this.scheduler;return i.schedule(e.dispatch,n,{source:a,subscriber:t})},e}($nn.Observable);tne.SubscribeOnObservable=Jnn});var p5t=_($Se=>{"use strict";d();p();Object.defineProperty($Se,"__esModule",{value:!0});var Znn=d5t();function Xnn(r,e){return e===void 0&&(e=0),function(n){return n.lift(new ean(r,e))}}$Se.subscribeOn=Xnn;var ean=function(){function r(e,t){this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return new Znn.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},r}()});var Rye=_(rne=>{"use strict";d();p();var tan=rne&&rne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rne,"__esModule",{value:!0});var ran=hd(),nan=Jh(),QSe=Ji();function h5t(r,e){return typeof e=="function"?function(t){return t.pipe(h5t(function(n,a){return nan.from(r(n,a)).pipe(ran.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new aan(r))}}rne.switchMap=h5t;var aan=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new ian(e,this.project))},r}(),ian=function(r){tan(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.index=0,a}return e.prototype._next=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this._innerSub(n)},e.prototype._innerSub=function(t){var n=this.innerSubscription;n&&n.unsubscribe();var a=new QSe.SimpleInnerSubscriber(this),i=this.destination;i.add(a),this.innerSubscription=QSe.innerSubscribe(t,a),this.innerSubscription!==a&&i.add(this.innerSubscription)},e.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&r.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&r.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(QSe.SimpleOuterSubscriber)});var f5t=_(JSe=>{"use strict";d();p();Object.defineProperty(JSe,"__esModule",{value:!0});var san=Rye(),oan=e1();function can(){return san.switchMap(oan.identity)}JSe.switchAll=can});var y5t=_(ZSe=>{"use strict";d();p();Object.defineProperty(ZSe,"__esModule",{value:!0});var m5t=Rye();function uan(r,e){return e?m5t.switchMap(function(){return r},e):m5t.switchMap(function(){return r})}ZSe.switchMapTo=uan});var g5t=_(nne=>{"use strict";d();p();var lan=nne&&nne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nne,"__esModule",{value:!0});var XSe=Ji();function dan(r){return function(e){return e.lift(new pan(r))}}nne.takeUntil=dan;var pan=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new han(e),a=XSe.innerSubscribe(this.notifier,new XSe.SimpleInnerSubscriber(n));return a&&!n.seenValue?(n.add(a),t.subscribe(n)):n},r}(),han=function(r){lan(e,r);function e(t){var n=r.call(this,t)||this;return n.seenValue=!1,n}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(XSe.SimpleOuterSubscriber)});var b5t=_(ane=>{"use strict";d();p();var fan=ane&&ane.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ane,"__esModule",{value:!0});var man=tr();function yan(r,e){return e===void 0&&(e=!1),function(t){return t.lift(new gan(r,e))}}ane.takeWhile=yan;var gan=function(){function r(e,t){this.predicate=e,this.inclusive=t}return r.prototype.call=function(e,t){return t.subscribe(new ban(e,this.predicate,this.inclusive))},r}(),ban=function(r){fan(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.inclusive=a,i.index=0,i}return e.prototype._next=function(t){var n=this.destination,a;try{a=this.predicate(t,this.index++)}catch(i){n.error(i);return}this.nextOrComplete(t,a)},e.prototype.nextOrComplete=function(t,n){var a=this.destination;Boolean(n)?a.next(t):(this.inclusive&&a.next(t),a.complete())},e}(man.Subscriber)});var v5t=_(ine=>{"use strict";d();p();var van=ine&&ine.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ine,"__esModule",{value:!0});var wan=tr(),u1=Q0e(),xan=HY();function _an(r,e,t){return function(a){return a.lift(new Tan(r,e,t))}}ine.tap=_an;var Tan=function(){function r(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return r.prototype.call=function(e,t){return t.subscribe(new Ian(e,this.nextOrObserver,this.error,this.complete))},r}(),Ian=function(r){van(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s._tapNext=u1.noop,s._tapError=u1.noop,s._tapComplete=u1.noop,s._tapError=a||u1.noop,s._tapComplete=i||u1.noop,xan.isFunction(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||u1.noop,s._tapError=n.error||u1.noop,s._tapComplete=n.complete||u1.noop),s}return e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(wan.Subscriber)});var t7e=_(ww=>{"use strict";d();p();var Ean=ww&&ww.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ww,"__esModule",{value:!0});var e7e=Ji();ww.defaultThrottleConfig={leading:!0,trailing:!1};function Can(r,e){return e===void 0&&(e=ww.defaultThrottleConfig),function(t){return t.lift(new kan(r,!!e.leading,!!e.trailing))}}ww.throttle=Can;var kan=function(){function r(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return r.prototype.call=function(e,t){return t.subscribe(new Aan(e,this.durationSelector,this.leading,this.trailing))},r}(),Aan=function(r){Ean(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=a,s._trailing=i,s._hasValue=!1,s}return e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this,n=t._hasValue,a=t._sendValue;n&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var n=this.tryDurationSelector(t);n&&this.add(this._throttled=e7e.innerSubscribe(n,new e7e.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(n){return this.destination.error(n),null}},e.prototype.throttlingDone=function(){var t=this,n=t._throttled,a=t._trailing;n&&n.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(e7e.SimpleOuterSubscriber)});var w5t=_(sne=>{"use strict";d();p();var Pan=sne&&sne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sne,"__esModule",{value:!0});var San=tr(),Ran=Qu(),Man=t7e();function Nan(r,e,t){return e===void 0&&(e=Ran.async),t===void 0&&(t=Man.defaultThrottleConfig),function(n){return n.lift(new Ban(r,e,t.leading,t.trailing))}}sne.throttleTime=Nan;var Ban=function(){function r(e,t,n,a){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=a}return r.prototype.call=function(e,t){return t.subscribe(new Dan(e,this.duration,this.scheduler,this.leading,this.trailing))},r}(),Dan=function(r){Pan(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.duration=n,o.scheduler=a,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Lan,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(San.Subscriber);function Lan(r){var e=r.subscriber;e.clearThrottle()}});var _5t=_(Mye=>{"use strict";d();p();Object.defineProperty(Mye,"__esModule",{value:!0});var Oan=Qu(),qan=Pye(),Fan=tye(),Wan=hd();function Uan(r){return r===void 0&&(r=Oan.async),function(e){return Fan.defer(function(){return e.pipe(qan.scan(function(t,n){var a=t.current;return{value:n,current:r.now(),last:a}},{current:r.now(),value:void 0,last:void 0}),Wan.map(function(t){var n=t.current,a=t.last,i=t.value;return new x5t(i,n-a)}))})}}Mye.timeInterval=Uan;var x5t=function(){function r(e,t){this.value=e,this.interval=t}return r}();Mye.TimeInterval=x5t});var n7e=_(one=>{"use strict";d();p();var Han=one&&one.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(one,"__esModule",{value:!0});var jan=Qu(),zan=pSe(),r7e=Ji();function Kan(r,e,t){return t===void 0&&(t=jan.async),function(n){var a=zan.isDate(r),i=a?+r-t.now():Math.abs(r);return n.lift(new Gan(i,a,e,t))}}one.timeoutWith=Kan;var Gan=function(){function r(e,t,n,a){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new Van(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},r}(),Van=function(r){Han(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.absoluteTimeout=n,o.waitFor=a,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return e.dispatchTimeout=function(t){var n=t.withObservable;t._unsubscribeAndRecycle(),t.add(r7e.innerSubscribe(n,new r7e.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),r.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(r7e.SimpleOuterSubscriber)});var T5t=_(a7e=>{"use strict";d();p();Object.defineProperty(a7e,"__esModule",{value:!0});var Yan=Qu(),$an=BAe(),Qan=n7e(),Jan=G0e();function Zan(r,e){return e===void 0&&(e=Yan.async),Qan.timeoutWith(r,Jan.throwError(new $an.TimeoutError),e)}a7e.timeout=Zan});var E5t=_(Nye=>{"use strict";d();p();Object.defineProperty(Nye,"__esModule",{value:!0});var Xan=Qu(),ein=hd();function tin(r){return r===void 0&&(r=Xan.async),ein.map(function(e){return new I5t(e,r.now())})}Nye.timestamp=tin;var I5t=function(){function r(e,t){this.value=e,this.timestamp=t}return r}();Nye.Timestamp=I5t});var C5t=_(i7e=>{"use strict";d();p();Object.defineProperty(i7e,"__esModule",{value:!0});var rin=Hre();function nin(r,e,t){return t===0?[e]:(r.push(e),r)}function ain(){return rin.reduce(nin,[])}i7e.toArray=ain});var A5t=_(cne=>{"use strict";d();p();var iin=cne&&cne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cne,"__esModule",{value:!0});var k5t=Au(),s7e=Ji();function sin(r){return function(t){return t.lift(new oin(r))}}cne.window=sin;var oin=function(){function r(e){this.windowBoundaries=e}return r.prototype.call=function(e,t){var n=new cin(e),a=t.subscribe(n);return a.closed||n.add(s7e.innerSubscribe(this.windowBoundaries,new s7e.SimpleInnerSubscriber(n))),a},r}(),cin=function(r){iin(e,r);function e(t){var n=r.call(this,t)||this;return n.window=new k5t.Subject,t.next(n.window),n}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var n=this.destination,a=this.window=new k5t.Subject;n.next(a)},e}(s7e.SimpleOuterSubscriber)});var S5t=_(une=>{"use strict";d();p();var uin=une&&une.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(une,"__esModule",{value:!0});var lin=tr(),P5t=Au();function din(r,e){return e===void 0&&(e=0),function(n){return n.lift(new pin(r,e))}}une.windowCount=din;var pin=function(){function r(e,t){this.windowSize=e,this.startWindowEvery=t}return r.prototype.call=function(e,t){return t.subscribe(new hin(e,this.windowSize,this.startWindowEvery))},r}(),hin=function(r){uin(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=a,i.windows=[new P5t.Subject],i.count=0,t.next(i.windows[0]),i}return e.prototype._next=function(t){for(var n=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,i=this.windowSize,s=this.windows,o=s.length,c=0;c=0&&u%n===0&&!this.closed&&s.shift().complete(),++this.count%n===0&&!this.closed){var l=new P5t.Subject;s.push(l),a.next(l)}},e.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(lin.Subscriber)});var B5t=_(lne=>{"use strict";d();p();var M5t=lne&&lne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lne,"__esModule",{value:!0});var fin=Au(),min=Qu(),yin=tr(),R5t=ore(),o7e=Qh();function gin(r){var e=min.async,t=null,n=Number.POSITIVE_INFINITY;return o7e.isScheduler(arguments[3])&&(e=arguments[3]),o7e.isScheduler(arguments[2])?e=arguments[2]:R5t.isNumeric(arguments[2])&&(n=Number(arguments[2])),o7e.isScheduler(arguments[1])?e=arguments[1]:R5t.isNumeric(arguments[1])&&(t=Number(arguments[1])),function(i){return i.lift(new bin(r,t,n,e))}}lne.windowTime=gin;var bin=function(){function r(e,t,n,a){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new win(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},r}(),vin=function(r){M5t(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return e.prototype.next=function(t){this._numberOfNextedValues++,r.prototype.next.call(this,t)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(fin.Subject),win=function(r){M5t(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=a,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var c=o.openWindow();if(a!==null&&a>=0){var u={subscriber:o,window:c,context:null},l={windowTimeSpan:n,windowCreationInterval:a,subscriber:o,scheduler:s};o.add(s.schedule(N5t,n,u)),o.add(s.schedule(_in,a,l))}else{var h={subscriber:o,window:c,windowTimeSpan:n};o.add(s.schedule(xin,n,h))}return o}return e.prototype._next=function(t){for(var n=this.windows,a=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new vin;this.windows.push(t);var n=this.destination;return n.next(t),t},e.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},e}(yin.Subscriber);function xin(r){var e=r.subscriber,t=r.windowTimeSpan,n=r.window;n&&e.closeWindow(n),r.window=e.openWindow(),this.schedule(r,t)}function _in(r){var e=r.windowTimeSpan,t=r.subscriber,n=r.scheduler,a=r.windowCreationInterval,i=t.openWindow(),s=this,o={action:s,subscription:null},c={subscriber:t,window:i,context:o};o.subscription=n.schedule(N5t,e,c),s.add(o.subscription),s.schedule(r,a)}function N5t(r){var e=r.subscriber,t=r.window,n=r.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(t)}});var L5t=_(dne=>{"use strict";d();p();var Tin=dne&&dne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dne,"__esModule",{value:!0});var Iin=Au(),Ein=_o(),Cin=r1(),D5t=n1();function kin(r,e){return function(t){return t.lift(new Ain(r,e))}}dne.windowToggle=kin;var Ain=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new Pin(e,this.openings,this.closingSelector))},r}(),Pin=function(r){Tin(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.openings=n,i.closingSelector=a,i.contexts=[],i.add(i.openSubscription=D5t.subscribeToResult(i,n,n)),i}return e.prototype._next=function(t){var n=this.contexts;if(n)for(var a=n.length,i=0;i{"use strict";d();p();var Sin=pne&&pne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pne,"__esModule",{value:!0});var Rin=Au(),Min=r1(),Nin=n1();function Bin(r){return function(t){return t.lift(new Din(r))}}pne.windowWhen=Bin;var Din=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new Lin(e,this.closingSelector))},r}(),Lin=function(r){Sin(e,r);function e(t,n){var a=r.call(this,t)||this;return a.destination=t,a.closingSelector=n,a.openWindow(),a}return e.prototype.notifyNext=function(t,n,a,i,s){this.openWindow(s)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var n=this.window;n&&n.complete();var a=this.window=new Rin.Subject;this.destination.next(a);var i;try{var s=this.closingSelector;i=s()}catch(o){this.destination.error(o),this.window.error(o);return}this.add(this.closingNotification=Nin.subscribeToResult(this,i))},e}(Min.OuterSubscriber)});var q5t=_(hne=>{"use strict";d();p();var Oin=hne&&hne.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hne,"__esModule",{value:!0});var qin=r1(),Fin=n1();function Win(){for(var r=[],e=0;e0){var s=i.indexOf(a);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(this.toRespond.length===0){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},e.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(qin.OuterSubscriber)});var F5t=_(c7e=>{"use strict";d();p();Object.defineProperty(c7e,"__esModule",{value:!0});var jin=sye();function zin(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(u7e,"__esModule",{value:!0});var Kin=sye();function Gin(r){return function(e){return e.lift(new Kin.ZipOperator(r))}}u7e.zipAll=Gin});var Bye=_(Pe=>{"use strict";d();p();Object.defineProperty(Pe,"__esModule",{value:!0});var Vin=XPe();Pe.audit=Vin.audit;var Yin=I2t();Pe.auditTime=Yin.auditTime;var $in=E2t();Pe.buffer=$in.buffer;var Qin=A2t();Pe.bufferCount=Qin.bufferCount;var Jin=R2t();Pe.bufferTime=Jin.bufferTime;var Zin=N2t();Pe.bufferToggle=Zin.bufferToggle;var Xin=B2t();Pe.bufferWhen=Xin.bufferWhen;var esn=D2t();Pe.catchError=esn.catchError;var tsn=L2t();Pe.combineAll=tsn.combineAll;var rsn=O2t();Pe.combineLatest=rsn.combineLatest;var nsn=q2t();Pe.concat=nsn.concat;var asn=aPe();Pe.concatAll=asn.concatAll;var isn=cSe();Pe.concatMap=isn.concatMap;var ssn=F2t();Pe.concatMapTo=ssn.concatMapTo;var osn=W2t();Pe.count=osn.count;var csn=U2t();Pe.debounce=csn.debounce;var usn=H2t();Pe.debounceTime=usn.debounceTime;var lsn=f$();Pe.defaultIfEmpty=lsn.defaultIfEmpty;var dsn=z2t();Pe.delay=dsn.delay;var psn=G2t();Pe.delayWhen=psn.delayWhen;var hsn=V2t();Pe.dematerialize=hsn.dematerialize;var fsn=$2t();Pe.distinct=fsn.distinct;var msn=mSe();Pe.distinctUntilChanged=msn.distinctUntilChanged;var ysn=Q2t();Pe.distinctUntilKeyChanged=ysn.distinctUntilKeyChanged;var gsn=Z2t();Pe.elementAt=gsn.elementAt;var bsn=X2t();Pe.endWith=bsn.endWith;var vsn=ewt();Pe.every=vsn.every;var wsn=twt();Pe.exhaust=wsn.exhaust;var xsn=nwt();Pe.exhaustMap=xsn.exhaustMap;var _sn=swt();Pe.expand=_sn.expand;var Tsn=cw();Pe.filter=Tsn.filter;var Isn=owt();Pe.finalize=Isn.finalize;var Esn=_Se();Pe.find=Esn.find;var Csn=lwt();Pe.findIndex=Csn.findIndex;var ksn=dwt();Pe.first=ksn.first;var Asn=fAe();Pe.groupBy=Asn.groupBy;var Psn=pwt();Pe.ignoreElements=Psn.ignoreElements;var Ssn=hwt();Pe.isEmpty=Ssn.isEmpty;var Rsn=fwt();Pe.last=Rsn.last;var Msn=hd();Pe.map=Msn.map;var Nsn=mwt();Pe.mapTo=Nsn.mapTo;var Bsn=ywt();Pe.materialize=Bsn.materialize;var Dsn=wwt();Pe.max=Dsn.max;var Lsn=xwt();Pe.merge=Lsn.merge;var Osn=eye();Pe.mergeAll=Osn.mergeAll;var U5t=ire();Pe.mergeMap=U5t.mergeMap;Pe.flatMap=U5t.flatMap;var qsn=Twt();Pe.mergeMapTo=qsn.mergeMapTo;var Fsn=Cwt();Pe.mergeScan=Fsn.mergeScan;var Wsn=kwt();Pe.min=Wsn.min;var Usn=bw();Pe.multicast=Usn.multicast;var Hsn=kAe();Pe.observeOn=Hsn.observeOn;var jsn=Rwt();Pe.onErrorResumeNext=jsn.onErrorResumeNext;var zsn=Mwt();Pe.pairwise=zsn.pairwise;var Ksn=Bwt();Pe.partition=Ksn.partition;var Gsn=Dwt();Pe.pluck=Gsn.pluck;var Vsn=qwt();Pe.publish=Vsn.publish;var Ysn=Fwt();Pe.publishBehavior=Ysn.publishBehavior;var $sn=Wwt();Pe.publishLast=$sn.publishLast;var Qsn=Uwt();Pe.publishReplay=Qsn.publishReplay;var Jsn=Hwt();Pe.race=Jsn.race;var Zsn=Hre();Pe.reduce=Zsn.reduce;var Xsn=zwt();Pe.repeat=Xsn.repeat;var eon=Kwt();Pe.repeatWhen=eon.repeatWhen;var ton=Gwt();Pe.retry=ton.retry;var ron=Vwt();Pe.retryWhen=ron.retryWhen;var non=j0e();Pe.refCount=non.refCount;var aon=Ywt();Pe.sample=aon.sample;var ion=$wt();Pe.sampleTime=ion.sampleTime;var son=Pye();Pe.scan=son.scan;var oon=e5t();Pe.sequenceEqual=oon.sequenceEqual;var con=t5t();Pe.share=con.share;var uon=r5t();Pe.shareReplay=uon.shareReplay;var lon=n5t();Pe.single=lon.single;var don=a5t();Pe.skip=don.skip;var pon=s5t();Pe.skipLast=pon.skipLast;var hon=o5t();Pe.skipUntil=hon.skipUntil;var fon=c5t();Pe.skipWhile=fon.skipWhile;var mon=l5t();Pe.startWith=mon.startWith;var yon=p5t();Pe.subscribeOn=yon.subscribeOn;var gon=f5t();Pe.switchAll=gon.switchAll;var bon=Rye();Pe.switchMap=bon.switchMap;var von=y5t();Pe.switchMapTo=von.switchMapTo;var won=kye();Pe.take=won.take;var xon=Aye();Pe.takeLast=xon.takeLast;var _on=g5t();Pe.takeUntil=_on.takeUntil;var Ton=b5t();Pe.takeWhile=Ton.takeWhile;var Ion=v5t();Pe.tap=Ion.tap;var Eon=t7e();Pe.throttle=Eon.throttle;var Con=w5t();Pe.throttleTime=Con.throttleTime;var kon=Sre();Pe.throwIfEmpty=kon.throwIfEmpty;var Aon=_5t();Pe.timeInterval=Aon.timeInterval;var Pon=T5t();Pe.timeout=Pon.timeout;var Son=n7e();Pe.timeoutWith=Son.timeoutWith;var Ron=E5t();Pe.timestamp=Ron.timestamp;var Mon=C5t();Pe.toArray=Mon.toArray;var Non=A5t();Pe.window=Non.window;var Bon=S5t();Pe.windowCount=Bon.windowCount;var Don=B5t();Pe.windowTime=Don.windowTime;var Lon=L5t();Pe.windowToggle=Lon.windowToggle;var Oon=O5t();Pe.windowWhen=Oon.windowWhen;var qon=q5t();Pe.withLatestFrom=qon.withLatestFrom;var Fon=F5t();Pe.zip=Fon.zip;var Won=W5t();Pe.zipAll=Won.zipAll});var H5t=_(Op=>{"use strict";d();p();Object.defineProperty(Op,"__esModule",{value:!0});Op.ClientMessagePublishEvent=Op.ClientMessageSetSessionConfig=Op.ClientMessageGetSessionConfig=Op.ClientMessageIsLinked=Op.ClientMessageHostSession=void 0;function Uon(r){return Object.assign({type:"HostSession"},r)}Op.ClientMessageHostSession=Uon;function Hon(r){return Object.assign({type:"IsLinked"},r)}Op.ClientMessageIsLinked=Hon;function jon(r){return Object.assign({type:"GetSessionConfig"},r)}Op.ClientMessageGetSessionConfig=jon;function zon(r){return Object.assign({type:"SetSessionConfig"},r)}Op.ClientMessageSetSessionConfig=zon;function Kon(r){return Object.assign({type:"PublishEvent"},r)}Op.ClientMessagePublishEvent=Kon});var z5t=_(xw=>{"use strict";d();p();Object.defineProperty(xw,"__esModule",{value:!0});xw.RxWebSocket=xw.ConnectionState=void 0;var g$=lre(),j5t=Bye(),b$;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(b$=xw.ConnectionState||(xw.ConnectionState={}));var l7e=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new g$.BehaviorSubject(b$.DISCONNECTED),this.incomingDataSubject=new g$.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,g$.throwError)(new Error("webSocket object is not null")):new g$.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(n){e.error(n);return}this.connectionStateSubject.next(b$.CONNECTING),t.onclose=n=>{this.clearWebSocket(),e.error(new Error(`websocket error ${n.code}: ${n.reason}`)),this.connectionStateSubject.next(b$.DISCONNECTED)},t.onopen=n=>{e.next(),e.complete(),this.connectionStateSubject.next(b$.CONNECTED)},t.onmessage=n=>{this.incomingDataSubject.next(n.data)}}).pipe((0,j5t.take)(1))}disconnect(){let{webSocket:e}=this;if(!!e){this.clearWebSocket(),this.connectionStateSubject.next(b$.DISCONNECTED);try{e.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,j5t.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch{return(0,g$.empty)()}return(0,g$.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;!e||(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};xw.RxWebSocket=l7e});var K5t=_(Dye=>{"use strict";d();p();Object.defineProperty(Dye,"__esModule",{value:!0});Dye.isServerMessageFail=void 0;function Gon(r){return r&&r.type==="Fail"&&typeof r.id=="number"&&typeof r.sessionId=="string"&&typeof r.error=="string"}Dye.isServerMessageFail=Gon});var V5t=_(Oye=>{"use strict";d();p();Object.defineProperty(Oye,"__esModule",{value:!0});Oye.WalletSDKConnection=void 0;var Zh=lre(),$r=Bye(),fne=r0e(),v$=yte(),mne=H5t(),yne=Gme(),Lye=z5t(),d7e=K5t(),G5t=1e4,Von=6e4,p7e=class{constructor(e,t,n,a,i=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new Zh.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,v$.IntNumber)(1),this.connectedSubject=new Zh.BehaviorSubject(!1),this.linkedSubject=new Zh.BehaviorSubject(!1),this.sessionConfigSubject=new Zh.ReplaySubject(1);let s=new Lye.RxWebSocket(n+"/rpc",i);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,$r.tap)(o=>{var c;return(c=this.diagnostic)===null||c===void 0?void 0:c.log(yne.EVENTS.CONNECTED_STATE_CHANGE,{state:o,sessionIdHash:fne.Session.hash(e)})}),(0,$r.skip)(1),(0,$r.filter)(o=>o===Lye.ConnectionState.DISCONNECTED&&!this.destroyed),(0,$r.delay)(5e3),(0,$r.filter)(o=>!this.destroyed),(0,$r.flatMap)(o=>s.connect()),(0,$r.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,$r.skip)(2),(0,$r.switchMap)(o=>(0,Zh.iif)(()=>o===Lye.ConnectionState.CONNECTED,this.authenticate().pipe((0,$r.tap)(c=>this.sendIsLinked()),(0,$r.tap)(c=>this.sendGetSessionConfig()),(0,$r.map)(c=>!0)),(0,Zh.of)(!1))),(0,$r.distinctUntilChanged)(),(0,$r.catchError)(o=>(0,Zh.of)(!1))).subscribe(o=>this.connectedSubject.next(o))),this.subscriptions.add(s.connectionState$.pipe((0,$r.skip)(1),(0,$r.switchMap)(o=>(0,Zh.iif)(()=>o===Lye.ConnectionState.CONNECTED,(0,Zh.timer)(0,G5t)))).subscribe(o=>o===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,$r.filter)(o=>o==="h")).subscribe(o=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,$r.filter)(o=>["IsLinkedOK","Linked"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(yne.EVENTS.LINKED,{sessionIdHash:fne.Session.hash(e),linked:u.linked,type:o.type,onlineGuests:u.onlineGuests}),this.linkedSubject.next(u.linked||u.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,$r.filter)(o=>["GetSessionConfigOK","SessionConfigUpdated"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(yne.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:fne.Session.hash(e),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.sessionConfigSubject.next({webhookId:u.webhookId,webhookUrl:u.webhookUrl,metadata:u.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(yne.EVENTS.STARTED_CONNECTING,{sessionIdHash:fne.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(yne.EVENTS.DISCONNECTED,{sessionIdHash:fne.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,$r.filter)(e=>e),(0,$r.take)(1),(0,$r.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,$r.filter)(e=>e),(0,$r.take)(1),(0,$r.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,$r.filter)(e=>{if(e.type!=="Event")return!1;let t=e;return typeof t.sessionId=="string"&&typeof t.eventId=="string"&&typeof t.event=="string"&&typeof t.data=="string"}),(0,$r.map)(e=>e))}setSessionMetadata(e,t){let n=(0,mne.ClientMessageSetSessionConfig)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,$r.flatMap)(a=>this.makeRequest(n)),(0,$r.map)(a=>{if((0,d7e.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let a=(0,mne.ClientMessagePublishEvent)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,$r.flatMap)(i=>this.makeRequest(a)),(0,$r.map)(i=>{if((0,d7e.isServerMessageFail)(i))throw new Error(i.error||"failed to publish event");return i.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>G5t*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,t=Von){let n=e.id;try{this.sendData(e)}catch(a){return(0,Zh.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,$r.timeoutWith)(t,(0,Zh.throwError)(new Error(`request ${n} timed out`))),(0,$r.filter)(a=>a.id===n),(0,$r.take)(1))}authenticate(){let e=(0,mne.ClientMessageHostSession)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,$r.map)(t=>{if((0,d7e.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,mne.ClientMessageIsLinked)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,mne.ClientMessageGetSessionConfig)({id:(0,v$.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}};Oye.WalletSDKConnection=p7e});var Y5t=_(qye=>{"use strict";d();p();Object.defineProperty(qye,"__esModule",{value:!0});qye.WalletUIError=void 0;var _w=class extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}};qye.WalletUIError=_w;_w.UserRejectedRequest=new _w("User rejected request");_w.SwitchEthereumChainUnsupportedChainId=new _w("Unsupported chainId",4902)});var $5t=_(w$=>{"use strict";d();p();Object.defineProperty(w$,"__esModule",{value:!0});w$.decrypt=w$.encrypt=void 0;var Fye=$0();async function Yon(r,e){if(e.length!==64)throw Error("secret must be 256 bits");let t=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,Fye.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,i=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},n,a.encode(r)),s=16,o=i.slice(i.byteLength-s),c=i.slice(0,i.byteLength-s),u=new Uint8Array(o),l=new Uint8Array(c),h=new Uint8Array([...t,...u,...l]);return(0,Fye.uint8ArrayToHex)(h)}w$.encrypt=Yon;function $on(r,e){if(e.length!==64)throw Error("secret must be 256 bits");return new Promise((t,n)=>{(async function(){let a=await crypto.subtle.importKey("raw",(0,Fye.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=(0,Fye.hexStringToUint8Array)(r),s=i.slice(0,12),o=i.slice(12,28),c=i.slice(28),u=new Uint8Array([...c,...o]),l={name:"AES-GCM",iv:new Uint8Array(s)};try{let h=await window.crypto.subtle.decrypt(l,a,u),f=new TextDecoder;t(f.decode(h))}catch(h){n(h)}})()})}w$.decrypt=$on});var h7e=_(gne=>{"use strict";d();p();Object.defineProperty(gne,"__esModule",{value:!0});gne.Web3Method=void 0;var Qon;(function(r){r.requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"})(Qon=gne.Web3Method||(gne.Web3Method={}))});var Wye=_(bne=>{"use strict";d();p();Object.defineProperty(bne,"__esModule",{value:!0});bne.RelayMessageType=void 0;var Jon;(function(r){r.SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"})(Jon=bne.RelayMessageType||(bne.RelayMessageType={}))});var Q5t=_(Uye=>{"use strict";d();p();Object.defineProperty(Uye,"__esModule",{value:!0});Uye.Web3RequestCanceledMessage=void 0;var Zon=Wye();function Xon(r){return{type:Zon.RelayMessageType.WEB3_REQUEST_CANCELED,id:r}}Uye.Web3RequestCanceledMessage=Xon});var J5t=_(Hye=>{"use strict";d();p();Object.defineProperty(Hye,"__esModule",{value:!0});Hye.Web3RequestMessage=void 0;var ecn=Wye();function tcn(r){return Object.assign({type:ecn.RelayMessageType.WEB3_REQUEST},r)}Hye.Web3RequestMessage=tcn});var Z5t=_(Mi=>{"use strict";d();p();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.EthereumAddressFromSignedMessageResponse=Mi.SubmitEthereumTransactionResponse=Mi.SignEthereumTransactionResponse=Mi.SignEthereumMessageResponse=Mi.isRequestEthereumAccountsResponse=Mi.SelectProviderResponse=Mi.WatchAssetReponse=Mi.RequestEthereumAccountsResponse=Mi.SwitchEthereumChainResponse=Mi.AddEthereumChainResponse=Mi.ErrorResponse=void 0;var Em=h7e();function rcn(r,e,t){return{method:r,errorMessage:e,errorCode:t}}Mi.ErrorResponse=rcn;function ncn(r){return{method:Em.Web3Method.addEthereumChain,result:r}}Mi.AddEthereumChainResponse=ncn;function acn(r){return{method:Em.Web3Method.switchEthereumChain,result:r}}Mi.SwitchEthereumChainResponse=acn;function icn(r){return{method:Em.Web3Method.requestEthereumAccounts,result:r}}Mi.RequestEthereumAccountsResponse=icn;function scn(r){return{method:Em.Web3Method.watchAsset,result:r}}Mi.WatchAssetReponse=scn;function ocn(r){return{method:Em.Web3Method.selectProvider,result:r}}Mi.SelectProviderResponse=ocn;function ccn(r){return r&&r.method===Em.Web3Method.requestEthereumAccounts}Mi.isRequestEthereumAccountsResponse=ccn;function ucn(r){return{method:Em.Web3Method.signEthereumMessage,result:r}}Mi.SignEthereumMessageResponse=ucn;function lcn(r){return{method:Em.Web3Method.signEthereumTransaction,result:r}}Mi.SignEthereumTransactionResponse=lcn;function dcn(r){return{method:Em.Web3Method.submitEthereumTransaction,result:r}}Mi.SubmitEthereumTransactionResponse=dcn;function pcn(r){return{method:Em.Web3Method.ethereumAddressFromSignedMessage,result:r}}Mi.EthereumAddressFromSignedMessageResponse=pcn});var e3t=_(x$=>{"use strict";d();p();Object.defineProperty(x$,"__esModule",{value:!0});x$.isWeb3ResponseMessage=x$.Web3ResponseMessage=void 0;var X5t=Wye();function hcn(r){return Object.assign({type:X5t.RelayMessageType.WEB3_RESPONSE},r)}x$.Web3ResponseMessage=hcn;function fcn(r){return r&&r.type===X5t.RelayMessageType.WEB3_RESPONSE}x$.isWeb3ResponseMessage=fcn});var a3t=_(Ll=>{"use strict";d();p();var mcn=Ll&&Ll.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ycn=Ll&&Ll.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),r3t=Ll&&Ll.__decorate||function(r,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(s=r[o])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},gcn=Ll&&Ll.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&mcn(e,r,t);return ycn(e,r),e},bcn=Ll&&Ll.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.WalletSDKRelay=void 0;var n3t=bcn(T2t()),t3t=zme(),_$=lre(),To=Bye(),Pu=Gme(),vcn=V5t(),f7e=Y5t(),wcn=yte(),Ni=$0(),l1=gcn($5t()),d1=r0e(),jye=eke(),nc=h7e(),xcn=Q5t(),_cn=J5t(),md=Z5t(),Ju=e3t(),yd=class extends jye.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new _$.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new _$.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:a,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(t=e.reloadOnDisconnect)!==null&&t!==void 0?t:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));let e=d1.Session.load(this.storage)||new d1.Session(this.storage).save(),t=new vcn.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,To.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,To.skip)(1),(0,To.tap)(a=>{var i;this.isLinked=a;let s=this.storage.getItem(jye.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){let o=s.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";if(o[0]!==""&&!a&&this.session.linked&&!c){this.isUnlinkedErrorState=!0;let u=this.getSessionIdHash();(i=this.diagnostic)===null||i===void 0||i.log(Pu.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:u})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;let i=t.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:i,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(jye.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(jye.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,To.mergeMap)(a=>(0,_$.zip)(l1.decrypt(a.metadata.ChainId,e.secret),l1.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,To.distinctUntilChanged)()).subscribe({next:([a,i])=>{this.chainCallback&&this.chainCallback(a,i)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),yd.accountRequestCallbackIds.size>0&&(Array.from(yd.accountRequestCallbackIds.values()).forEach(i=>{let s=(0,Ju.Web3ResponseMessage)({id:i,response:(0,md.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:i}))}),yd.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,To.mergeMap)(a=>l1.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,To.timeout)(1e3),(0,To.catchError)(e=>(0,_$.of)(null))).subscribe(e=>{var t,n,a;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(n=this.diagnostic)===null||n===void 0||n.log(Pu.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=d1.Session.load(this.storage);if(s?.id===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(Pu.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:d1.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:o,ui:c,connection:u}=this.subscribe();this._session=o,this.connection=u,this.ui=c,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,a){return this.sendRequest({method:nc.Web3Method.signEthereumMessage,params:{message:(0,Ni.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:nc.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,Ni.hexStringFromBuffer)(e,!0),signature:(0,Ni.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:nc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Ni.bigIntStringFromBN)(e.weiValue),data:(0,Ni.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,Ni.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:nc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Ni.bigIntStringFromBN)(e.weiValue),data:(0,Ni.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Ni.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Ni.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Ni.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Ni.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:nc.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,Ni.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:nc.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,Ni.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:nc.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,Ni.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,c=>{if(t?.(),c.errorMessage)return o(new Error(c.errorMessage));s(c)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let a=(0,_cn.Web3RequestMessage)({id:e,request:t}),i=d1.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(Pu.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?d1.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var o;(o=this.diagnostic)===null||o===void 0||o.log(Pu.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?d1.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,xcn.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let a=this.session.secret;return new _$.Observable(i=>{l1.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),a).then(s=>{i.next(s),i.complete()})}).pipe((0,To.mergeMap)(i=>this.connection.publishEvent(e,i,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,_$.from)(l1.decrypt(e.data,this.session.secret)).pipe((0,To.map)(t=>JSON.parse(t))).subscribe({next:t=>{let n=(0,Ju.isWeb3ResponseMessage)(t)?t:null;!n||this.handleWeb3ResponseMessage(n)},error:()=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if((t=this.diagnostic)===null||t===void 0||t.log(Pu.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,md.isRequestEthereumAccountsResponse)(n)){yd.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),yd.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,a){this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:e,response:(0,md.ErrorResponse)(t,(n??f7e.WalletUIError.UserRejectedRequest).message,a)}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:nc.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,n=(0,Ni.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{var c;this.relayEventManager.callbacks.set(n,l=>{if(this.ui.hideRequestEthereumAccounts(),t?.(),l.errorMessage)return o(new Error(l.errorMessage));s(l)});let u=((c=window?.navigator)===null||c===void 0?void 0:c.userAgent)||null;if(u&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u)){let l;try{(0,Ni.isInIFrame)()&&window.top?l=window.top.location:l=window.location}catch{l=window.location}l.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(l.href)}`;return}if(this.ui.inlineAccountsResponse()){let l=h=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,md.RequestEthereumAccountsResponse)(h)}))};this.ui.requestEthereumAccounts({onCancel:a,onAccounts:l})}else{let l=t3t.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>a(l)})}yd.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:a}}selectProvider(e){let t={method:nc.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,Ni.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s)},i=new Promise((s,o)=>{this.relayEventManager.callbacks.set(n,l=>{if(l.errorMessage)return o(new Error(l.errorMessage));s(l)});let c=l=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,md.SelectProviderResponse)(wcn.ProviderType.Unselected)}))},u=l=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,md.SelectProviderResponse)(l)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:u,onCancel:c,providerOptions:e})});return{cancel:a,promise:i}}watchAsset(e,t,n,a,i,s){let o={method:nc.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:a,image:i},chainId:s}},c=null,u=(0,Ni.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}));let h=new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,C=>{if(c?.(),C.errorMessage)return m(new Error(C.errorMessage));f(C)});let y=C=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.WatchAssetReponse)(!1)}))},I=()=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:I,onCancel:y,type:e,address:t,symbol:n,decimals:a,image:i,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)});return{cancel:l,promise:h}}addEthereumChain(e,t,n,a,i,s){let o={method:nc.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:a,chainName:i,iconUrls:n,nativeCurrency:s}},c=null,u=(0,Ni.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,C=>{if(c?.(),C.errorMessage)return m(new Error(C.errorMessage));f(C)});let y=C=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},I=C=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,md.AddEthereumChainResponse)({isApproved:!0,rpcUrl:C})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:y,onApprove:I,chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)}),cancel:l}}switchEthereumChain(e,t){let n={method:nc.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},a=(0,Ni.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,n.method,o)};return{promise:new Promise((o,c)=>{this.relayEventManager.callbacks.set(a,h=>{if(h.errorMessage&&h.errorCode)return c(t3t.ethErrors.provider.custom({code:h.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(h.errorMessage)return c(new Error(h.errorMessage));o(h)});let u=h=>{if(typeof h=="number"){let f=h;this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,md.ErrorResponse)(nc.Web3Method.switchEthereumChain,f7e.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,f)}))}else h instanceof f7e.WalletUIError?this.handleErrorResponse(a,nc.Web3Method.switchEthereumChain,h,h.errorCode):this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,md.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},l=h=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,md.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:h})}))};this.ui.switchEthereumChain({onCancel:u,onApprove:l,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,n)}),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return d1.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=i=>{this.handleErrorResponse(e,t.method,i)},a=i=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:e,response:i}))};switch(t.method){case nc.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case nc.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:a});break;default:n();break}}onSessionConfigChanged(e){}};yd.accountRequestCallbackIds=new Set;r3t([n3t.default],yd.prototype,"resetAndReload",null);r3t([n3t.default],yd.prototype,"handleIncomingEvent",null);Ll.WalletSDKRelay=yd});var i3t=_(zye=>{"use strict";d();p();Object.defineProperty(zye,"__esModule",{value:!0});zye.WalletSDKRelayEventManager=void 0;var Tcn=$0(),m7e=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,Tcn.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}};zye.WalletSDKRelayEventManager=m7e});var s3t=_((Vfa,Icn)=>{Icn.exports={name:"@coinbase/wallet-sdk",version:"3.6.4",description:"Coinbase Wallet JavaScript SDK",keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],main:"dist/index.js",types:"dist/index.d.ts",repository:"https://github.com/coinbase/coinbase-wallet-sdk.git",author:"Coinbase, Inc.",license:"Apache-2.0",scripts:{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start",prebuild:`rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`,build:"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL='http://localhost:3000'; yarn build","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'","build:prod":`yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`,"lint:types":"tsc --noEmit","lint:prettier":'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"',"lint:eslint":"eslint ./src --ext .ts,.tsx",lint:"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write",release:"./scripts/release.sh"},dependencies:{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1",buffer:"^6.0.3",clsx:"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0",keccak:"^3.0.1",preact:"^10.5.9",qs:"^6.10.3",rxjs:"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0",util:"^0.12.4"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1",browserify:"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2",eslint:"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0",jasmine:"3.8.0",jest:"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0",karma:"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1",nodemon:"^2.0.6",prettier:"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7",sass:"^1.50.0",svgo:"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0",tslib:"^2.0.3",typescript:"^4.1.3",watchify:"4.0.0",webpack:"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},engines:{node:">= 10.0.0"}}});var y7e=_(Kye=>{"use strict";d();p();Object.defineProperty(Kye,"__esModule",{value:!0});Kye.CoinbaseWalletSDK=void 0;var Ecn=Rmt(),Ccn=Mmt(),kcn=P0e(),Acn=x2t(),Pcn=a3t(),Scn=i3t(),Rcn=$0(),Mcn=g.env.LINK_API_URL||"https://www.walletlink.org",o3t=g.env.SDK_VERSION||s3t().version||"unknown",T$=class{constructor(e){var t,n,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=e.linkAPIUrl||Mcn,s;if(e.uiConstructor?s=e.uiConstructor:s=u=>new Acn.WalletSDKUI(u),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;let o=new URL(i),c=`${o.protocol}//${o.host}`;this._storage=new Ccn.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem("version",T$.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new Scn.WalletSDKRelayEventManager,this._relay=new Pcn.WalletSDKRelay({linkAPIUrl:i,version:o3t,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;let a=this.coinbaseBrowser;if(a)return a;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new kcn.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,Rcn.getFavicon)();let a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,t;return(t=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&t!==void 0?t:null}getCoinbaseWalletLogo(e,t=240){return(0,Ecn.walletLogo)(e,t)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}};Kye.CoinbaseWalletSDK=T$;T$.VERSION=o3t});var b7e=_(Tw=>{"use strict";d();p();Object.defineProperty(Tw,"__esModule",{value:!0});Tw.CoinbaseWalletProvider=Tw.CoinbaseWalletSDK=void 0;var g7e=y7e(),c3t=P0e(),Ncn=y7e();Object.defineProperty(Tw,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return Ncn.CoinbaseWalletSDK}});var Bcn=P0e();Object.defineProperty(Tw,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return Bcn.CoinbaseWalletProvider}});Tw.default=g7e.CoinbaseWalletSDK;typeof window<"u"&&(window.CoinbaseWalletSDK=g7e.CoinbaseWalletSDK,window.CoinbaseWalletProvider=c3t.CoinbaseWalletProvider,window.WalletLink=g7e.CoinbaseWalletSDK,window.WalletLinkProvider=c3t.CoinbaseWalletProvider)});var p3t=_(_7e=>{"use strict";d();p();Object.defineProperty(_7e,"__esModule",{value:!0});var v7e=ym(),Xh=gm(),I$=ec(),u3t=je(),Gye=Xr(),Iw=_Y(),l3t=TY();Vu();vt();Je();function Dcn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var E$=new WeakMap,vne=new WeakMap,w7e=new WeakSet,x7e=class extends Iw.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),v7e._classPrivateMethodInitSpec(this,w7e),I$._defineProperty(this,"id","coinbaseWallet"),I$._defineProperty(this,"name","Coinbase Wallet"),I$._defineProperty(this,"ready",!0),Xh._classPrivateFieldInitSpec(this,E$,{writable:!0,value:void 0}),Xh._classPrivateFieldInitSpec(this,vne,{writable:!0,value:void 0}),I$._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:Gye.getAddress(a[0])})}),I$._defineProperty(this,"onChainChanged",a=>{let i=l3t.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),I$._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=Gye.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new u3t.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new Iw.UserRejectedRequestError(t):t}}async disconnect(){if(!Xh._classPrivateFieldGet(this,vne))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return Gye.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return l3t.normalizeChainId(e.chainId)}async getProvider(){if(!Xh._classPrivateFieldGet(this,vne)){let e=(await Promise.resolve().then(function(){return Dcn(b7e())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),Xh._classPrivateFieldSet(this,E$,new e(this.options));let t=Xh._classPrivateFieldGet(this,E$).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];Xh._classPrivateFieldSet(this,vne,Xh._classPrivateFieldGet(this,E$).makeWeb3Provider(i,a))}return Xh._classPrivateFieldGet(this,vne)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new u3t.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Gye.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Iw.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw v7e._classPrivateMethodGet(this,w7e,d3t).call(this,s)?new Iw.UserRejectedRequestError(s):new Iw.AddChainError}throw v7e._classPrivateMethodGet(this,w7e,d3t).call(this,a)?new Iw.UserRejectedRequestError(a):new Iw.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrUrl(){if(await this.getProvider(),!Xh._classPrivateFieldGet(this,E$))throw new Error("Coinbase Wallet SDK not initialized");return Xh._classPrivateFieldGet(this,E$).getQrUrl()}};function d3t(r){return/(user rejected)/i.test(r.message)}_7e.CoinbaseWalletConnector=x7e});var h3t=_(T7e=>{"use strict";d();p();Object.defineProperty(T7e,"__esModule",{value:!0});var wne=ec(),Lcn=vY(),Ocn=xY(),qcn=lc();Je();ym();Vu();Yg();je();vt();typeof window<"u"&&(window.Buffer=qcn.Buffer);var Ew=class extends Ocn.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Ew.id,e),wne._defineProperty(this,"connector",void 0),wne._defineProperty(this,"coinbaseConnector",void 0),wne._defineProperty(this,"headlessMode",void 0),this.headlessMode=e?.headlessMode||!1}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return p3t()}),t=new e({chains:this.chains,options:{appName:this.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.dappMetadata.isDarkMode,headlessMode:this.headlessMode}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new Lcn.WagmiAdapter(t)}return this.connector}async getQrUrl(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrUrl()}};wne._defineProperty(Ew,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});wne._defineProperty(Ew,"id","coinbaseWallet");T7e.CoinbaseWallet=Ew});var ac=_(f3t=>{"use strict";d();p();function Fcn(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Wcn(r){var e=Fcn(r,"string");return typeof e=="symbol"?e:String(e)}function Ucn(r,e,t){return e=Wcn(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}f3t._defineProperty=Ucn});var C$=_(E7e=>{"use strict";d();p();var Hcn=ac(),jcn=Je();function zcn(r){return r&&r.__esModule?r:{default:r}}var Kcn=zcn(jcn),Vye=class extends Kcn.default{},I7e=class extends Vye{constructor(e){super(),Hcn._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};E7e.TWConnector=Vye;E7e.WagmiAdapter=I7e});var Zu=_(m3t=>{"use strict";d();p();function Gcn(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}m3t._checkPrivateRedeclaration=Gcn});var Cm=_(C7e=>{"use strict";d();p();var Vcn=Zu();function Ycn(r,e){Vcn._checkPrivateRedeclaration(r,e),e.add(r)}function $cn(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}C7e._classPrivateMethodGet=$cn;C7e._classPrivateMethodInitSpec=Ycn});var p1=_(Yye=>{"use strict";d();p();Object.defineProperty(Yye,"__esModule",{value:!0});var y3t=ac(),k$=je(),Qcn=Je();function Jcn(r){return r&&r.__esModule?r:{default:r}}var Zcn=Jcn(Qcn);function Xcn(r){return`https://${r}.rpc.thirdweb.com`}var eun=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],tun="0x1626ba7e";async function g3t(r,e,t,n){let a=new k$.providers.JsonRpcProvider(Xcn(n)),i=new k$.Contract(t,eun,a),s=k$.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===tun}catch{return!1}}var k7e=class extends Zcn.default{constructor(){super(...arguments),y3t._defineProperty(this,"type","evm"),y3t._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=k$.utils.hashMessage(e),s=k$.utils.arrayify(i);if(k$.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await g3t(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};Yye.AbstractWallet=k7e;Yye.checkContractWalletSignature=g3t});var A$=_(_ne=>{"use strict";d();p();var xne=Cm(),Cw=ac(),run=p1(),nun=vt(),A7e="__TW__",$ye=class{constructor(e){Cw._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${A7e}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${A7e}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${A7e}/${this.name}/${e}`),t()})}};function v3t(r){return new $ye(r)}var w3t={name:"thirdweb powered dApp",url:"https://thirdweb.com",description:"thirdweb powered dApp",logoUrl:"https://thirdweb.com/favicon.ico",isDarkMode:!0},P7e=new WeakSet,x3t=new WeakSet,Qye=class extends run.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),xne._classPrivateMethodInitSpec(this,x3t),xne._classPrivateMethodInitSpec(this,P7e),Cw._defineProperty(this,"walletId",void 0),Cw._defineProperty(this,"walletStorage",void 0),Cw._defineProperty(this,"chains",void 0),Cw._defineProperty(this,"dappMetadata",void 0),Cw._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t?.chains||nun.defaultChains,this.dappMetadata=t?.dappMetadata||w3t,this.walletStorage=t?.walletStorage||v3t(this.walletId)}async autoConnect(e){let t=e?{...e,chainId:void 0}:void 0;return xne._classPrivateMethodGet(this,P7e,b3t).call(this,!0,t)}async connect(e){let t=await xne._classPrivateMethodGet(this,P7e,b3t).call(this,!1,e);if(!t)throw new Error("Failed to connect to the wallet.");return t}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),this.emit("disconnect"),e.removeAllListeners())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function b3t(r,e){let t=await this.getConnector();if(xne._classPrivateMethodGet(this,x3t,aun).call(this,t),await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),e?.chainId&&await t.switchChain(e?.chainId),this.emit("connect",{address:i,chainId:await this.getChainId()}),i}if(r)throw new Error("Failed to auto connect to the wallet.");return await t.connect(e)}async function aun(r){r.on("connect",e=>{this.emit("connect",{address:e.account,chainId:e.chain?.id})}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id})}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}Cw._defineProperty(Qye,"meta",void 0);_ne.AbstractBrowserWallet=Qye;_ne.AsyncLocalStorage=$ye;_ne.DEFAULT_DAPP_META=w3t;_ne.createAsyncLocalStorage=v3t});var km=_(Jye=>{"use strict";d();p();var iun=Zu();function sun(r,e,t){iun._checkPrivateRedeclaration(r,e),e.set(r,t)}function oun(r,e){return e.get?e.get.call(r):e.value}function _3t(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function cun(r,e){var t=_3t(r,e,"get");return oun(r,t)}function uun(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function lun(r,e,t){var n=_3t(r,e,"set");return uun(r,n,t),t}Jye._classPrivateFieldGet=cun;Jye._classPrivateFieldInitSpec=sun;Jye._classPrivateFieldSet=lun});var P$=_(Z0=>{"use strict";d();p();var Su=ac(),dun=vt(),pun=Je();function hun(r){return r&&r.__esModule?r:{default:r}}var fun=hun(pun),S7e=class extends fun.default{constructor(e){let{chains:t=dun.defaultChains,options:n}=e;super(),Su._defineProperty(this,"id",void 0),Su._defineProperty(this,"name",void 0),Su._defineProperty(this,"chains",void 0),Su._defineProperty(this,"options",void 0),Su._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},Zye=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),Su._defineProperty(this,"cause",void 0),Su._defineProperty(this,"code",void 0),Su._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},Tne=class extends Zye{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},R7e=class extends Error{constructor(){super(...arguments),Su._defineProperty(this,"name","AddChainError"),Su._defineProperty(this,"message","Error adding chain")}},M7e=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),Su._defineProperty(this,"name","ChainNotConfigured")}},N7e=class extends Error{constructor(){super(...arguments),Su._defineProperty(this,"name","ConnectorNotFoundError"),Su._defineProperty(this,"message","Connector not found")}},B7e=class extends Zye{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),Su._defineProperty(this,"name","ResourceUnavailable")}},D7e=class extends Tne{constructor(e){super("Error switching chain",{cause:e,code:4902}),Su._defineProperty(this,"name","SwitchChainError")}},L7e=class extends Tne{constructor(e){super("User rejected request",{cause:e,code:4001}),Su._defineProperty(this,"name","UserRejectedRequestError")}};Z0.AddChainError=R7e;Z0.ChainNotConfiguredError=M7e;Z0.Connector=S7e;Z0.ConnectorNotFoundError=N7e;Z0.ProviderRpcError=Tne;Z0.ResourceUnavailableError=B7e;Z0.SwitchChainError=D7e;Z0.UserRejectedRequestError=L7e});var S$=_(T3t=>{"use strict";d();p();function mun(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}T3t.normalizeChainId=mun});var k3t=_(W7e=>{"use strict";d();p();Object.defineProperty(W7e,"__esModule",{value:!0});var O7e=Cm(),ef=km(),R$=ac(),I3t=je(),Xye=Xr(),kw=P$(),E3t=S$();Zu();vt();Je();function yun(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var M$=new WeakMap,Ine=new WeakMap,q7e=new WeakSet,F7e=class extends kw.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),O7e._classPrivateMethodInitSpec(this,q7e),R$._defineProperty(this,"id","coinbaseWallet"),R$._defineProperty(this,"name","Coinbase Wallet"),R$._defineProperty(this,"ready",!0),ef._classPrivateFieldInitSpec(this,M$,{writable:!0,value:void 0}),ef._classPrivateFieldInitSpec(this,Ine,{writable:!0,value:void 0}),R$._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:Xye.getAddress(a[0])})}),R$._defineProperty(this,"onChainChanged",a=>{let i=E3t.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),R$._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=Xye.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new I3t.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new kw.UserRejectedRequestError(t):t}}async disconnect(){if(!ef._classPrivateFieldGet(this,Ine))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return Xye.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return E3t.normalizeChainId(e.chainId)}async getProvider(){if(!ef._classPrivateFieldGet(this,Ine)){let e=(await Promise.resolve().then(function(){return yun(b7e())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),ef._classPrivateFieldSet(this,M$,new e(this.options));let t=ef._classPrivateFieldGet(this,M$).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];ef._classPrivateFieldSet(this,Ine,ef._classPrivateFieldGet(this,M$).makeWeb3Provider(i,a))}return ef._classPrivateFieldGet(this,Ine)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new I3t.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Xye.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new kw.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw O7e._classPrivateMethodGet(this,q7e,C3t).call(this,s)?new kw.UserRejectedRequestError(s):new kw.AddChainError}throw O7e._classPrivateMethodGet(this,q7e,C3t).call(this,a)?new kw.UserRejectedRequestError(a):new kw.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrUrl(){if(await this.getProvider(),!ef._classPrivateFieldGet(this,M$))throw new Error("Coinbase Wallet SDK not initialized");return ef._classPrivateFieldGet(this,M$).getQrUrl()}};function C3t(r){return/(user rejected)/i.test(r.message)}W7e.CoinbaseWalletConnector=F7e});var A3t=_(U7e=>{"use strict";d();p();Object.defineProperty(U7e,"__esModule",{value:!0});var Ene=ac(),gun=C$(),bun=A$(),vun=lc();Je();Cm();Zu();p1();je();vt();typeof window<"u"&&(window.Buffer=vun.Buffer);var Aw=class extends bun.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Aw.id,e),Ene._defineProperty(this,"connector",void 0),Ene._defineProperty(this,"coinbaseConnector",void 0),Ene._defineProperty(this,"headlessMode",void 0),this.headlessMode=e?.headlessMode||!1}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return k3t()}),t=new e({chains:this.chains,options:{appName:this.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.dappMetadata.isDarkMode,headlessMode:this.headlessMode}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new gun.WagmiAdapter(t)}return this.connector}async getQrUrl(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrUrl()}};Ene._defineProperty(Aw,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});Ene._defineProperty(Aw,"id","coinbaseWallet");U7e.CoinbaseWallet=Aw});var P3t=_((Fma,H7e)=>{"use strict";d();p();g.env.NODE_ENV==="production"?H7e.exports=h3t():H7e.exports=A3t()});var R3t=_(z7e=>{"use strict";d();p();Object.defineProperty(z7e,"__esModule",{value:!0});var hs=gm(),Cne=ec(),wun=vY(),S3t=je(),xun=TY();Vu();Je();var X0=new WeakMap,Pw=new WeakMap,N$=new WeakMap,j7e=class extends wun.TWConnector{constructor(e){super(),Cne._defineProperty(this,"id","device_wallet"),Cne._defineProperty(this,"name","Device Wallet"),Cne._defineProperty(this,"options",void 0),hs._classPrivateFieldInitSpec(this,X0,{writable:!0,value:void 0}),hs._classPrivateFieldInitSpec(this,Pw,{writable:!0,value:void 0}),hs._classPrivateFieldInitSpec(this,N$,{writable:!0,value:void 0}),Cne._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),Cne._defineProperty(this,"onChainChanged",t=>{let n=xun.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,hs._classPrivateFieldSet(this,X0,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await hs._classPrivateFieldGet(this,X0).getSavedWalletAddress()?await hs._classPrivateFieldGet(this,X0).loadSavedWallet(e):(await hs._classPrivateFieldGet(this,X0).generateNewWallet(),await hs._classPrivateFieldGet(this,X0).save(e))}async disconnect(){hs._classPrivateFieldSet(this,Pw,void 0),hs._classPrivateFieldSet(this,N$,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return hs._classPrivateFieldGet(this,Pw)||hs._classPrivateFieldSet(this,Pw,new S3t.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),hs._classPrivateFieldGet(this,Pw)}async getSigner(){if(!hs._classPrivateFieldGet(this,X0))throw new Error("No wallet found");if(!hs._classPrivateFieldGet(this,N$)){let e=await this.getProvider();hs._classPrivateFieldSet(this,N$,await hs._classPrivateFieldGet(this,X0).getSigner(e))}return hs._classPrivateFieldGet(this,N$)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");hs._classPrivateFieldSet(this,Pw,new S3t.providers.JsonRpcBatchProvider(t.rpc[0])),hs._classPrivateFieldSet(this,N$,await hs._classPrivateFieldGet(this,X0).getSigner(hs._classPrivateFieldGet(this,Pw))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};z7e.DeviceWalletConnector=j7e});var B3t=_(tge=>{"use strict";d();p();Object.defineProperty(tge,"__esModule",{value:!0});var ey=gm(),Sw=ec(),_un=Yg(),K7e=xY(),M3t=vt(),N3t=je();Vu();Je();ym();var G7e="data",V7e="address",ege=new WeakMap,Rw=class extends K7e.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(Rw.id,{...e}),Sw._defineProperty(this,"connector",void 0),ey._classPrivateFieldInitSpec(this,ege,{writable:!0,value:void 0}),Sw._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return R3t()}),t;switch(this.options.storageType){case"asyncStore":t=await ty.fromAsyncStorage(this.options.storage||K7e.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await ty.fromCredentialStore();break;default:t=await ty.fromAsyncStorage(this.options.storage||K7e.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||M3t.Ethereum,wallet:t,chains:this.options.chains||M3t.defaultChains}),ey._classPrivateFieldSet(this,ege,t)}return this.connector}getWalletData(){if(!ey._classPrivateFieldGet(this,ege))throw new Error("Wallet not initialized");return ey._classPrivateFieldGet(this,ege).getWalletData()}static getAddressStorageKey(){return V7e}static getDataStorageKey(){return G7e}};Sw._defineProperty(Rw,"id","deviceWallet");Sw._defineProperty(Rw,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var kne=new WeakMap,ty=class extends _un.AbstractWallet{static async fromAsyncStorage(e){return new ty({storage:new Y7e(e)})}static async fromCredentialStore(){return new ty({storage:new $7e(navigator.credentials)})}constructor(e){super(),Sw._defineProperty(this,"options",void 0),ey._classPrivateFieldInitSpec(this,kne,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!ey._classPrivateFieldGet(this,kne))throw new Error("Wallet not initialized");let t=ey._classPrivateFieldGet(this,kne);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=N3t.ethers.Wallet.createRandom();return ey._classPrivateFieldSet(this,kne,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await N3t.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return ey._classPrivateFieldSet(this,kne,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},Y7e=class{constructor(e){Sw._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem(V7e),this.storage.getItem(G7e)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem(V7e,e.address),this.storage.setItem(G7e,e.encryptedData)])}},$7e=class{constructor(e){Sw._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};tge.DeviceBrowserWallet=Rw;tge.DeviceWalletImpl=ty});var L3t=_(J7e=>{"use strict";d();p();Object.defineProperty(J7e,"__esModule",{value:!0});var fs=km(),Ane=ac(),Tun=C$(),D3t=je(),Iun=S$();Zu();Je();var ry=new WeakMap,Mw=new WeakMap,B$=new WeakMap,Q7e=class extends Tun.TWConnector{constructor(e){super(),Ane._defineProperty(this,"id","device_wallet"),Ane._defineProperty(this,"name","Device Wallet"),Ane._defineProperty(this,"options",void 0),fs._classPrivateFieldInitSpec(this,ry,{writable:!0,value:void 0}),fs._classPrivateFieldInitSpec(this,Mw,{writable:!0,value:void 0}),fs._classPrivateFieldInitSpec(this,B$,{writable:!0,value:void 0}),Ane._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),Ane._defineProperty(this,"onChainChanged",t=>{let n=Iun.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,fs._classPrivateFieldSet(this,ry,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await fs._classPrivateFieldGet(this,ry).getSavedWalletAddress()?await fs._classPrivateFieldGet(this,ry).loadSavedWallet(e):(await fs._classPrivateFieldGet(this,ry).generateNewWallet(),await fs._classPrivateFieldGet(this,ry).save(e))}async disconnect(){fs._classPrivateFieldSet(this,Mw,void 0),fs._classPrivateFieldSet(this,B$,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return fs._classPrivateFieldGet(this,Mw)||fs._classPrivateFieldSet(this,Mw,new D3t.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),fs._classPrivateFieldGet(this,Mw)}async getSigner(){if(!fs._classPrivateFieldGet(this,ry))throw new Error("No wallet found");if(!fs._classPrivateFieldGet(this,B$)){let e=await this.getProvider();fs._classPrivateFieldSet(this,B$,await fs._classPrivateFieldGet(this,ry).getSigner(e))}return fs._classPrivateFieldGet(this,B$)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");fs._classPrivateFieldSet(this,Mw,new D3t.providers.JsonRpcBatchProvider(t.rpc[0])),fs._classPrivateFieldSet(this,B$,await fs._classPrivateFieldGet(this,ry).getSigner(fs._classPrivateFieldGet(this,Mw))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};J7e.DeviceWalletConnector=Q7e});var F3t=_(nge=>{"use strict";d();p();Object.defineProperty(nge,"__esModule",{value:!0});var ny=km(),Nw=ac(),Eun=p1(),Z7e=A$(),O3t=vt(),q3t=je();Zu();Je();Cm();var X7e="data",eRe="address",rge=new WeakMap,Bw=class extends Z7e.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(Bw.id,{...e}),Nw._defineProperty(this,"connector",void 0),ny._classPrivateFieldInitSpec(this,rge,{writable:!0,value:void 0}),Nw._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return L3t()}),t;switch(this.options.storageType){case"asyncStore":t=await ay.fromAsyncStorage(this.options.storage||Z7e.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await ay.fromCredentialStore();break;default:t=await ay.fromAsyncStorage(this.options.storage||Z7e.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||O3t.Ethereum,wallet:t,chains:this.options.chains||O3t.defaultChains}),ny._classPrivateFieldSet(this,rge,t)}return this.connector}getWalletData(){if(!ny._classPrivateFieldGet(this,rge))throw new Error("Wallet not initialized");return ny._classPrivateFieldGet(this,rge).getWalletData()}static getAddressStorageKey(){return eRe}static getDataStorageKey(){return X7e}};Nw._defineProperty(Bw,"id","deviceWallet");Nw._defineProperty(Bw,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var Pne=new WeakMap,ay=class extends Eun.AbstractWallet{static async fromAsyncStorage(e){return new ay({storage:new tRe(e)})}static async fromCredentialStore(){return new ay({storage:new rRe(navigator.credentials)})}constructor(e){super(),Nw._defineProperty(this,"options",void 0),ny._classPrivateFieldInitSpec(this,Pne,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!ny._classPrivateFieldGet(this,Pne))throw new Error("Wallet not initialized");let t=ny._classPrivateFieldGet(this,Pne);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=q3t.ethers.Wallet.createRandom();return ny._classPrivateFieldSet(this,Pne,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await q3t.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return ny._classPrivateFieldSet(this,Pne,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},tRe=class{constructor(e){Nw._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem(eRe),this.storage.getItem(X7e)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem(eRe,e.address),this.storage.setItem(X7e,e.encryptedData)])}},rRe=class{constructor(e){Nw._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};nge.DeviceBrowserWallet=Bw;nge.DeviceWalletImpl=ay});var W3t=_((e0a,nRe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?nRe.exports=B3t():nRe.exports=F3t()});var U3t=_(oRe=>{"use strict";d();p();Object.defineProperty(oRe,"__esModule",{value:!0});var aRe=gm(),Cun=Yg();Vu();ec();je();Je();var iRe=new WeakMap,sRe=class extends Cun.AbstractWallet{constructor(e){super(),aRe._classPrivateFieldInitSpec(this,iRe,{writable:!0,value:void 0}),aRe._classPrivateFieldSet(this,iRe,e)}async getSigner(){return aRe._classPrivateFieldGet(this,iRe)}};oRe.EthersWallet=sRe});var H3t=_(dRe=>{"use strict";d();p();Object.defineProperty(dRe,"__esModule",{value:!0});var cRe=km(),kun=p1();Zu();ac();je();Je();var uRe=new WeakMap,lRe=class extends kun.AbstractWallet{constructor(e){super(),cRe._classPrivateFieldInitSpec(this,uRe,{writable:!0,value:void 0}),cRe._classPrivateFieldSet(this,uRe,e)}async getSigner(){return cRe._classPrivateFieldGet(this,uRe)}};dRe.EthersWallet=lRe});var j3t=_((u0a,pRe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?pRe.exports=U3t():pRe.exports=H3t()});var age=_(z3t=>{"use strict";d();p();function Aun(r){return typeof r<"u"&&"ethereum"in r}z3t.assertWindowEthereum=Aun});var yRe=_(mRe=>{"use strict";d();p();Object.defineProperty(mRe,"__esModule",{value:!0});var Dw=gm(),h1=ec(),Pun=age(),Sne=je(),gd=_Y(),K3t=TY();Vu();vt();Je();function Sun(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var hRe=new WeakMap,ige=new WeakMap,fRe=class extends gd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(Pun.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),h1._defineProperty(this,"id",void 0),h1._defineProperty(this,"name",void 0),h1._defineProperty(this,"ready",void 0),Dw._classPrivateFieldInitSpec(this,hRe,{writable:!0,value:void 0}),Dw._classPrivateFieldInitSpec(this,ige,{writable:!0,value:void 0}),h1._defineProperty(this,"connectorStorage",void 0),h1._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),h1._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:Sne.utils.getAddress(i[0])})}),h1._defineProperty(this,"onChainChanged",i=>{let s=K3t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),h1._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&Dw._classPrivateFieldGet(this,ige)){Dw._classPrivateFieldSet(this,ige,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=Sun(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new gd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=Sne.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new gd.UserRejectedRequestError(t):t.code===-32002?new gd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new gd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return Sne.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new gd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(K3t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&Dw._classPrivateFieldSet(this,hRe,e),Dw._classPrivateFieldGet(this,hRe)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new Sne.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new gd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&Dw._classPrivateFieldSet(this,ige,!0);let t=await this.getProvider();if(!t)throw new gd.ConnectorNotFoundError;let n=Sne.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new gd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new gd.UserRejectedRequestError(a):new gd.AddChainError}throw this.isUserRejectedRequestError(a)?new gd.UserRejectedRequestError(a):new gd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};mRe.InjectedConnector=fRe});var V3t=_(bRe=>{"use strict";d();p();Object.defineProperty(bRe,"__esModule",{value:!0});var gRe=ec(),G3t=xY(),Run=vY();ym();Vu();Yg();je();Je();vt();var D$=class extends G3t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(D$.id,e),gRe._defineProperty(this,"connector",void 0),gRe._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||G3t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return yRe()});this.connector=new Run.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};gRe._defineProperty(D$,"id","injected");bRe.InjectedWallet=D$});var sge=_(Y3t=>{"use strict";d();p();function Mun(r){return typeof r<"u"&&"ethereum"in r}Y3t.assertWindowEthereum=Mun});var _Re=_(xRe=>{"use strict";d();p();Object.defineProperty(xRe,"__esModule",{value:!0});var Lw=km(),f1=ac(),Nun=sge(),Rne=je(),bd=P$(),$3t=S$();Zu();vt();Je();function Bun(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var vRe=new WeakMap,oge=new WeakMap,wRe=class extends bd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(Nun.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),f1._defineProperty(this,"id",void 0),f1._defineProperty(this,"name",void 0),f1._defineProperty(this,"ready",void 0),Lw._classPrivateFieldInitSpec(this,vRe,{writable:!0,value:void 0}),Lw._classPrivateFieldInitSpec(this,oge,{writable:!0,value:void 0}),f1._defineProperty(this,"connectorStorage",void 0),f1._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),f1._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:Rne.utils.getAddress(i[0])})}),f1._defineProperty(this,"onChainChanged",i=>{let s=$3t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),f1._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&Lw._classPrivateFieldGet(this,oge)){Lw._classPrivateFieldSet(this,oge,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=Bun(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new bd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=Rne.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new bd.UserRejectedRequestError(t):t.code===-32002?new bd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new bd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return Rne.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new bd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then($3t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&Lw._classPrivateFieldSet(this,vRe,e),Lw._classPrivateFieldGet(this,vRe)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new Rne.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new bd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&Lw._classPrivateFieldSet(this,oge,!0);let t=await this.getProvider();if(!t)throw new bd.ConnectorNotFoundError;let n=Rne.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new bd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new bd.UserRejectedRequestError(a):new bd.AddChainError}throw this.isUserRejectedRequestError(a)?new bd.UserRejectedRequestError(a):new bd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};xRe.InjectedConnector=wRe});var J3t=_(IRe=>{"use strict";d();p();Object.defineProperty(IRe,"__esModule",{value:!0});var TRe=ac(),Q3t=A$(),Dun=C$();Cm();Zu();p1();je();Je();vt();var L$=class extends Q3t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(L$.id,e),TRe._defineProperty(this,"connector",void 0),TRe._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||Q3t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return _Re()});this.connector=new Dun.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};TRe._defineProperty(L$,"id","injected");IRe.InjectedWallet=L$});var Z3t=_((S0a,ERe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?ERe.exports=V3t():ERe.exports=J3t()});var X3t=_(PRe=>{"use strict";d();p();Object.defineProperty(PRe,"__esModule",{value:!0});var CRe=gm(),Lun=ec(),cge=_Y(),Oun=age(),qun=yRe(),Fun=je();Vu();vt();Je();TY();var kRe=new WeakMap,ARe=class extends qun.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&Oun.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),Lun._defineProperty(this,"id","metaMask"),CRe._classPrivateFieldInitSpec(this,kRe,{writable:!0,value:void 0}),CRe._classPrivateFieldSet(this,kRe,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new cge.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(CRe._classPrivateFieldGet(this,kRe)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new cge.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=Fun.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new cge.UserRejectedRequestError(t):t.code===-32002?new cge.ResourceUnavailableError(t):t}}};PRe.MetaMaskConnector=ARe});var ext=ce(()=>{d();p()});var Ow,SRe=ce(()=>{d();p();Ow=class{}});var uge,Mne,O$,txt=ce(()=>{d();p();SRe();uge=class extends Ow{constructor(e){super()}},Mne=class extends Ow{constructor(){super()}},O$=class extends Mne{constructor(e){super()}}});var rxt=ce(()=>{d();p()});var RRe={};cr(RRe,{IBaseJsonRpcProvider:()=>Mne,IEvents:()=>Ow,IJsonRpcConnection:()=>uge,IJsonRpcProvider:()=>O$});var lge=ce(()=>{d();p();ext();SRe();txt();rxt()});var nxt,axt,ixt,sxt,dge,Nne,MRe,pge,m1,Bne,hge=ce(()=>{d();p();nxt="PARSE_ERROR",axt="INVALID_REQUEST",ixt="METHOD_NOT_FOUND",sxt="INVALID_PARAMS",dge="INTERNAL_ERROR",Nne="SERVER_ERROR",MRe=[-32700,-32600,-32601,-32602,-32603],pge=[-32e3,-32099],m1={[nxt]:{code:-32700,message:"Parse error"},[axt]:{code:-32600,message:"Invalid Request"},[ixt]:{code:-32601,message:"Method not found"},[sxt]:{code:-32602,message:"Invalid params"},[dge]:{code:-32603,message:"Internal error"},[Nne]:{code:-32e3,message:"Server error"}},Bne=Nne});function Wun(r){return r<=pge[0]&&r>=pge[1]}function fge(r){return MRe.includes(r)}function oxt(r){return typeof r=="number"}function mge(r){return Object.keys(m1).includes(r)?m1[r]:m1[Bne]}function yge(r){let e=Object.values(m1).find(t=>t.code===r);return e||m1[Bne]}function Uun(r){if(typeof r.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof r.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!oxt(r.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${r.error.code}`};if(fge(r.error.code)){let e=yge(r.error.code);if(e.message!==m1[Bne].message&&r.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${r.error.code}`}}return{valid:!0}}function Dne(r,e,t){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${e}`):r}var NRe=ce(()=>{d();p();hge()});var vd=_((sya,bge)=>{d();p();var cxt,uxt,lxt,dxt,pxt,hxt,fxt,mxt,yxt,gge,BRe,gxt,bxt,q$,vxt,wxt,xxt,_xt,Txt,Ixt,Ext,Cxt,kxt;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof bge=="object"&&typeof bge.exports=="object"?r(t(e,t(bge.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])};cxt=function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)},uxt=Object.assign||function(t){for(var n,a=1,i=arguments.length;a=0;u--)(c=t[u])&&(o=(s<3?c(o):s>3?c(n,a,o):c(n,a))||o);return s>3&&o&&Object.defineProperty(n,a,o),o},pxt=function(t,n){return function(a,i){n(a,i,t)}},hxt=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)},fxt=function(t,n,a,i){function s(o){return o instanceof a?o:new a(function(c){c(o)})}return new(a||(a=Promise))(function(o,c){function u(f){try{h(i.next(f))}catch(m){c(m)}}function l(f){try{h(i.throw(f))}catch(m){c(m)}}function h(f){f.done?o(f.value):s(f.value).then(u,l)}h((i=i.apply(t,n||[])).next())})},mxt=function(t,n){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(f){return l([h,f])}}function l(h){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(o=h[0]&2?s.return:h[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,h[1])).done)return o;switch(s=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,s=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},BRe=function(t,n){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}return o},gxt=function(){for(var t=[],n=0;n1||u(y,I)})})}function u(y,I){try{l(i[y](I))}catch(C){m(o[0][3],C)}}function l(y){y.value instanceof q$?Promise.resolve(y.value.v).then(h,f):m(o[0][2],y)}function h(y){u("next",y)}function f(y){u("throw",y)}function m(y,I){y(I),o.shift(),o.length&&u(o[0][0],o[0][1])}},wxt=function(t){var n,a;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,o){n[s]=t[s]?function(c){return(a=!a)?{value:q$(t[s](c)),done:s==="return"}:o?o(c):c}:o}},xxt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],a;return n?n.call(t):(t=typeof gge=="function"?gge(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(o){a[o]=t[o]&&function(c){return new Promise(function(u,l){c=t[o](c),s(u,l,c.done,c.value)})}}function s(o,c,u,l){Promise.resolve(l).then(function(h){o({value:h,done:u})},c)}},_xt=function(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t},Txt=function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a in t)Object.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n.default=t,n},Ixt=function(t){return t&&t.__esModule?t:{default:t}},Ext=function(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)},Cxt=function(t,n,a){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,a),a},r("__extends",cxt),r("__assign",uxt),r("__rest",lxt),r("__decorate",dxt),r("__param",pxt),r("__metadata",hxt),r("__awaiter",fxt),r("__generator",mxt),r("__exportStar",yxt),r("__createBinding",kxt),r("__values",gge),r("__read",BRe),r("__spread",gxt),r("__spreadArrays",bxt),r("__await",q$),r("__asyncGenerator",vxt),r("__asyncDelegator",wxt),r("__asyncValues",xxt),r("__makeTemplateObject",_xt),r("__importStar",Txt),r("__importDefault",Ixt),r("__classPrivateFieldGet",Ext),r("__classPrivateFieldSet",Cxt)})});var Pxt=_(y1=>{"use strict";d();p();Object.defineProperty(y1,"__esModule",{value:!0});y1.isBrowserCryptoAvailable=y1.getSubtleCrypto=y1.getBrowerCrypto=void 0;function DRe(){return(global===null||global===void 0?void 0:global.crypto)||(global===null||global===void 0?void 0:global.msCrypto)||{}}y1.getBrowerCrypto=DRe;function Axt(){let r=DRe();return r.subtle||r.webkitSubtle}y1.getSubtleCrypto=Axt;function Hun(){return!!DRe()&&!!Axt()}y1.isBrowserCryptoAvailable=Hun});var Mxt=_(g1=>{"use strict";d();p();Object.defineProperty(g1,"__esModule",{value:!0});g1.isBrowser=g1.isNode=g1.isReactNative=void 0;function Sxt(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}g1.isReactNative=Sxt;function Rxt(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}g1.isNode=Rxt;function jun(){return!Sxt()&&!Rxt()}g1.isBrowser=jun});var F$=_(vge=>{"use strict";d();p();Object.defineProperty(vge,"__esModule",{value:!0});var Nxt=vd();Nxt.__exportStar(Pxt(),vge);Nxt.__exportStar(Mxt(),vge)});var eo={};cr(eo,{isNodeJs:()=>Dxt});var Bxt,Dxt,Lxt=ce(()=>{d();p();Bxt=un(F$());gr(eo,un(F$()));Dxt=Bxt.isNode});function wge(){let r=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return r+e}function LRe(r,e,t){return{id:t||wge(),jsonrpc:"2.0",method:r,params:e}}function zun(r,e){return{id:r,jsonrpc:"2.0",result:e}}function Lne(r,e,t){return{id:r,jsonrpc:"2.0",error:Oxt(e,t)}}function Oxt(r,e){return typeof r>"u"?mge(dge):(typeof r=="string"&&(r=Object.assign(Object.assign({},mge(Nne)),{message:r})),typeof e<"u"&&(r.data=e),fge(r.code)&&(r=yge(r.code)),r)}var qxt=ce(()=>{d();p();NRe();hge()});function Kun(r){return r.includes("*")?_ge(r):!/\W/g.test(r)}function xge(r){return r==="*"}function _ge(r){return xge(r)?!0:!(!r.includes("*")||r.split("*").length!==2||r.split("*").filter(e=>e.trim()==="").length!==1)}function Gun(r){return!xge(r)&&_ge(r)&&!r.split("*")[0].trim()}function Vun(r){return!xge(r)&&_ge(r)&&!r.split("*")[1].trim()}var Fxt=ce(()=>{d();p()});var Wxt=ce(()=>{d();p();lge()});function Qun(r){let e=r.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function Uxt(r,e){let t=Qun(r);return typeof t>"u"?!1:new RegExp(e).test(t)}function Tge(r){return Uxt(r,Yun)}function Ige(r){return Uxt(r,$un)}function ORe(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}var Yun,$un,Hxt=ce(()=>{d();p();Yun="^https?:",$un="^wss?:"});function qRe(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Jun(r){return qRe(r)&&"method"in r}function FRe(r){return qRe(r)&&(jxt(r)||Ege(r))}function jxt(r){return"result"in r}function Ege(r){return"error"in r}function Zun(r){return"error"in r&&r.valid===!1}var zxt=ce(()=>{d();p()});var to={};cr(to,{DEFAULT_ERROR:()=>Bne,IBaseJsonRpcProvider:()=>Mne,IEvents:()=>Ow,IJsonRpcConnection:()=>uge,IJsonRpcProvider:()=>O$,INTERNAL_ERROR:()=>dge,INVALID_PARAMS:()=>sxt,INVALID_REQUEST:()=>axt,METHOD_NOT_FOUND:()=>ixt,PARSE_ERROR:()=>nxt,RESERVED_ERROR_CODES:()=>MRe,SERVER_ERROR:()=>Nne,SERVER_ERROR_CODE_RANGE:()=>pge,STANDARD_ERROR_MAP:()=>m1,formatErrorMessage:()=>Oxt,formatJsonRpcError:()=>Lne,formatJsonRpcRequest:()=>LRe,formatJsonRpcResult:()=>zun,getError:()=>mge,getErrorByCode:()=>yge,isHttpUrl:()=>Tge,isJsonRpcError:()=>Ege,isJsonRpcPayload:()=>qRe,isJsonRpcRequest:()=>Jun,isJsonRpcResponse:()=>FRe,isJsonRpcResult:()=>jxt,isJsonRpcValidationInvalid:()=>Zun,isLocalhostUrl:()=>ORe,isNodeJs:()=>Dxt,isReservedErrorCode:()=>fge,isServerErrorCode:()=>Wun,isValidDefaultRoute:()=>xge,isValidErrorCode:()=>oxt,isValidLeadingWildcardRoute:()=>Gun,isValidRoute:()=>Kun,isValidTrailingWildcardRoute:()=>Vun,isValidWildcardRoute:()=>_ge,isWsUrl:()=>Ige,parseConnectionError:()=>Dne,payloadId:()=>wge,validateJsonRpcError:()=>Uun});var iy=ce(()=>{d();p();hge();NRe();Lxt();gr(to,eo);qxt();Fxt();Wxt();Hxt();zxt()});var Kxt=ce(()=>{d();p()});var One,sy,WRe,URe,HRe,jRe,zRe,KRe,GRe,Cge,VRe,YRe,kge,Gxt=ce(()=>{d();p();One="Session currently connected",sy="Session currently disconnected",WRe="Session Rejected",URe="Missing JSON RPC response",HRe='JSON-RPC success response must include "result" field',jRe='JSON-RPC error response must include "error" field',zRe='JSON RPC request must have valid "method" value',KRe='JSON RPC request must have valid "id" value',GRe="Missing one of the required parameters: bridge / uri / session",Cge="JSON RPC response format is invalid",VRe="URI format is invalid",YRe="QRCode Modal not provided",kge="User close QRCode Modal"});var Age,Xun,Vxt=ce(()=>{d();p();Age=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Xun=Age});var Yxt,W$,$xt,eln,tln,Qxt=ce(()=>{d();p();Yxt=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],W$=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...Yxt],$xt=["eth_accounts","eth_chainId","net_version"],eln=W$,tln=$xt});var qw,rln,Jxt=ce(()=>{d();p();qw="WALLETCONNECT_DEEPLINK_CHOICE",rln=qw});var Pge,nln,Zxt=ce(()=>{d();p();Pge={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},nln=Pge});var Xxt=ce(()=>{d();p();Gxt();Vxt();Qxt();Jxt();Zxt()});var e_t=ce(()=>{d();p()});var $Re,t_t=ce(()=>{d();p();$Re=class{}});var r_t=ce(()=>{d();p()});var n_t=ce(()=>{d();p()});var a_t=ce(()=>{d();p()});var i_t=ce(()=>{d();p()});var s_t=ce(()=>{d();p()});var o_t=ce(()=>{d();p()});var c_t=ce(()=>{d();p()});var QRe={};cr(QRe,{ERROR_INVALID_RESPONSE:()=>Cge,ERROR_INVALID_URI:()=>VRe,ERROR_MISSING_ERROR:()=>jRe,ERROR_MISSING_ID:()=>KRe,ERROR_MISSING_JSON_RPC:()=>URe,ERROR_MISSING_METHOD:()=>zRe,ERROR_MISSING_REQUIRED:()=>GRe,ERROR_MISSING_RESULT:()=>HRe,ERROR_QRCODE_MODAL_NOT_PROVIDED:()=>YRe,ERROR_QRCODE_MODAL_USER_CLOSED:()=>kge,ERROR_SESSION_CONNECTED:()=>One,ERROR_SESSION_DISCONNECTED:()=>sy,ERROR_SESSION_REJECTED:()=>WRe,IEvents:()=>$Re,INFURA_NETWORKS:()=>Pge,MOBILE_LINK_CHOICE_KEY:()=>qw,RESERVED_EVENTS:()=>Age,SIGNING_METHODS:()=>W$,STATE_METHODS:()=>$xt,WALLET_METHODS:()=>Yxt,infuraNetworks:()=>nln,mobileLinkChoiceKey:()=>rln,reservedEvents:()=>Xun,signingMethods:()=>eln,stateMethods:()=>tln});var Fw=ce(()=>{d();p();Kxt();Xxt();e_t();t_t();r_t();n_t();a_t();i_t();s_t();o_t();c_t()});var ZRe=_((Zga,d_t)=>{d();p();d_t.exports=JRe;JRe.strict=u_t;JRe.loose=l_t;var aln=Object.prototype.toString,iln={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function JRe(r){return u_t(r)||l_t(r)}function u_t(r){return r instanceof Int8Array||r instanceof Int16Array||r instanceof Int32Array||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Uint16Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array}function l_t(r){return iln[aln.call(r)]}});var h_t=_((t1a,p_t)=>{d();p();var sln=ZRe().strict;p_t.exports=function(e){if(sln(e)){var t=b.Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}else return b.Buffer.from(e)}});function b1(r){return new Uint8Array(r)}function Rge(r,e=!1){let t=r.toString(XRe);return e?U$(t):t}function Mge(r){return r.toString(e9e)}function t9e(r){return r.readUIntBE(0,r.length)}function v1(r){return(0,m_t.default)(r)}function Am(r,e=!1){return Rge(v1(r),e)}function Nge(r){return Mge(v1(r))}function r9e(r){return t9e(v1(r))}function Bge(r){return b.Buffer.from(w1(r),XRe)}function Pm(r){return b1(Bge(r))}function y_t(r){return Mge(Bge(r))}function g_t(r){return r9e(Pm(r))}function Dge(r){return b.Buffer.from(r,e9e)}function Lge(r){return b1(Dge(r))}function b_t(r,e=!1){return Rge(Dge(r),e)}function v_t(r){let e=parseInt(r,10);return wln(vln(e),"Number can only safely store up to 53 bits"),e}function w_t(r){return pln(n9e(r))}function x_t(r){return a9e(n9e(r))}function __t(r,e){return hln(n9e(r),e)}function T_t(r){return`${r}`}function n9e(r){let e=(r>>>0).toString(2);return c9e(e)}function pln(r){return v1(a9e(r))}function a9e(r){return new Uint8Array(yln(r).map(e=>parseInt(e,2)))}function hln(r,e){return Am(a9e(r),e)}function fln(r){return!(typeof r!="string"||!new RegExp(/^[01]+$/).test(r)||r.length%8!==0)}function i9e(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function qne(r){return b.Buffer.isBuffer(r)}function Oge(r){return f_t.default.strict(r)&&!qne(r)}function s9e(r){return!Oge(r)&&!qne(r)&&typeof r.byteLength<"u"}function I_t(r){return qne(r)?cln:Oge(r)?lln:s9e(r)?dln:Array.isArray(r)?uln:typeof r}function E_t(r){return fln(r)?oln:i9e(r)?XRe:e9e}function C_t(...r){return b.Buffer.concat(r)}function o9e(...r){let e=[];return r.forEach(t=>e=e.concat(Array.from(t))),new Uint8Array([...e])}function mln(r,e=8){let t=r%e;return t?(r-t)/e*e+e:r}function yln(r,e=8){let t=c9e(r).match(new RegExp(`.{${e}}`,"gi"));return Array.from(t||[])}function c9e(r,e=8,t=Sge){return gln(r,mln(r.length,e),t)}function gln(r,e,t=Sge){return xln(r,e,!0,t)}function w1(r){return r.replace(/^0x/,"")}function U$(r){return r.startsWith("0x")?r:`0x${r}`}function k_t(r){return r=w1(r),r=c9e(r,2),r&&(r=U$(r)),r}function A_t(r){let e=r.startsWith("0x");return r=w1(r),r=r.startsWith(Sge)?r.substring(1):r,e?U$(r):r}function bln(r){return typeof r>"u"}function vln(r){return!bln(r)}function wln(r,e){if(!r)throw new Error(e)}function xln(r,e,t,n=Sge){let a=e-r.length,i=r;if(a>0){let s=n.repeat(a);i=t?s+r:r+s}return i}var f_t,m_t,XRe,e9e,oln,cln,uln,lln,dln,Sge,Fne=ce(()=>{d();p();f_t=un(ZRe()),m_t=un(h_t()),XRe="hex",e9e="utf8",oln="binary",cln="buffer",uln="array",lln="typed-array",dln="array-buffer",Sge="0"});function Wne(r){return v1(new Uint8Array(r))}function _ln(r){return Nge(new Uint8Array(r))}function u9e(r,e){return Am(new Uint8Array(r),!e)}function Tln(r){return r9e(new Uint8Array(r))}function Iln(...r){return Pm(r.map(e=>Am(new Uint8Array(e))).join("")).buffer}function l9e(r){return b1(r).buffer}function Eln(r){return Mge(r)}function Cln(r,e){return Rge(r,!e)}function kln(r){return t9e(r)}function Aln(...r){return C_t(...r)}function Pln(r){return Lge(r).buffer}function Sln(r){return Dge(r)}function Rln(r,e){return b_t(r,!e)}function Mln(r){return v_t(r)}function Nln(r){return Bge(r)}function d9e(r){return Pm(r).buffer}function Bln(r){return y_t(r)}function Dln(r){return g_t(r)}function Lln(r){return w_t(r)}function Oln(r){return x_t(r).buffer}function qln(r){return T_t(r)}function p9e(r,e){return __t(Number(r),!e)}var P_t=ce(()=>{d();p();Fne()});var f9e=_(Bi=>{"use strict";d();p();var S_t=Bi&&Bi.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new O_t:typeof navigator<"u"?h9e(navigator.userAgent):W_t()}Bi.detect=Hln;function q_t(r){return r!==""&&Uln.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function jln(r){var e=q_t(r);return e?e[0]:null}Bi.browserName=jln;function h9e(r){var e=q_t(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new L_t;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length{"use strict";d();p();Object.defineProperty(ri,"__esModule",{value:!0});ri.getLocalStorage=ri.getLocalStorageOrThrow=ri.getCrypto=ri.getCryptoOrThrow=ri.getLocation=ri.getLocationOrThrow=ri.getNavigator=ri.getNavigatorOrThrow=ri.getDocument=ri.getDocumentOrThrow=ri.getFromWindowOrThrow=ri.getFromWindow=void 0;function Ww(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}ri.getFromWindow=Ww;function H$(r){let e=Ww(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}ri.getFromWindowOrThrow=H$;function Kln(){return H$("document")}ri.getDocumentOrThrow=Kln;function Gln(){return Ww("document")}ri.getDocument=Gln;function Vln(){return H$("navigator")}ri.getNavigatorOrThrow=Vln;function Yln(){return Ww("navigator")}ri.getNavigator=Yln;function $ln(){return H$("location")}ri.getLocationOrThrow=$ln;function Qln(){return Ww("location")}ri.getLocation=Qln;function Jln(){return H$("crypto")}ri.getCryptoOrThrow=Jln;function Zln(){return Ww("crypto")}ri.getCrypto=Zln;function Xln(){return H$("localStorage")}ri.getLocalStorageOrThrow=Xln;function edn(){return Ww("localStorage")}ri.getLocalStorage=edn});var Di,tdn,rdn,ndn,adn,idn,m9e,sdn,y9e,odn,cdn,udn,Une,Wge=ce(()=>{d();p();Di=un(Fge()),tdn=Di.getFromWindow,rdn=Di.getFromWindowOrThrow,ndn=Di.getDocumentOrThrow,adn=Di.getDocument,idn=Di.getNavigatorOrThrow,m9e=Di.getNavigator,sdn=Di.getLocationOrThrow,y9e=Di.getLocation,odn=Di.getCryptoOrThrow,cdn=Di.getCrypto,udn=Di.getLocalStorageOrThrow,Une=Di.getLocalStorage});function Hne(r){return(0,U_t.detect)(r)}function Uge(){let r=Hne();return r&&r.os?r.os:void 0}function H_t(){let r=Uge();return r?r.toLowerCase().includes("android"):!1}function j_t(){let r=Uge();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function g9e(){return Uge()?H_t()||j_t():!1}function z_t(){let r=Hne();return r&&r.name?r.name.toLowerCase()==="node":!1}function b9e(){return!z_t()&&!!m9e()}var U_t,K_t=ce(()=>{d();p();U_t=un(f9e());Wge()});var v9e={};cr(v9e,{safeJsonParse:()=>oy,safeJsonStringify:()=>Sm});function oy(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function Sm(r){return typeof r=="string"?r:JSON.stringify(r)}var j$=ce(()=>{d();p()});var w9e,x9e,_9e=ce(()=>{d();p();j$();w9e=oy,x9e=Sm});function jne(r,e){let t=x9e(e),n=Une();n&&n.setItem(r,t)}function zne(r){let e=null,t=null,n=Une();return n&&(t=n.getItem(r)),e=t&&w9e(t),e}function Kne(r){let e=Une();e&&e.removeItem(r)}var T9e=ce(()=>{d();p();_9e();Wge()});var I9e=_(Hge=>{"use strict";d();p();Object.defineProperty(Hge,"__esModule",{value:!0});Hge.getWindowMetadata=void 0;var G_t=Fge();function ldn(){let r,e;try{r=G_t.getDocumentOrThrow(),e=G_t.getLocationOrThrow()}catch{return null}function t(){let h=r.getElementsByTagName("link"),f=[];for(let m=0;m-1){let C=y.getAttribute("href");if(C)if(C.toLowerCase().indexOf("https:")===-1&&C.toLowerCase().indexOf("http:")===-1&&C.indexOf("//")!==0){let R=e.protocol+"//"+e.host;if(C.indexOf("/")===0)R+=C;else{let L=e.pathname.split("/");L.pop();let F=L.join("/");R+=F+"/"+C}f.push(R)}else if(C.indexOf("//")===0){let R=e.protocol+C;f.push(R)}else f.push(C)}}return f}function n(...h){let f=r.getElementsByTagName("meta");for(let m=0;my.getAttribute(C)).filter(C=>C?h.includes(C):!1);if(I.length&&I){let C=y.getAttribute("content");if(C)return C}}return""}function a(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=r.title),h}function i(){return n("description","og:description","twitter:description","keywords")}let s=a(),o=i(),c=e.origin,u=t();return{description:o,url:c,icons:u,name:s}}Hge.getWindowMetadata=ldn});function jge(){return V_t.getWindowMetadata()}var V_t,Y_t=ce(()=>{d();p();V_t=un(I9e())});function ddn(r){return k_t(r)}function pdn(r){return U$(r)}function hdn(r){return w1(r)}function fdn(r){return A_t(U$(r))}function Gne(){return((e,t)=>{for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t})()}function mdn(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function $_t(r,e){let t,n=Pge[r];return n&&(t=`https://${n}.infura.io/v3/${e}`),t}function ydn(r,e){let t,n=$_t(r,e.infuraId);return e.custom&&e.custom[r]?t=e.custom[r]:n&&(t=n),t}var E9e,Q_t=ce(()=>{d();p();Fne();iy();Fw();E9e=wge});function gdn(r,e){let t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function bdn(r){let e=r.href.split("?")[0];jne(qw,Object.assign(Object.assign({},r),{href:e}))}function J_t(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function vdn(r,e){let t=r;return e&&(t=e.map(n=>J_t(r,n)).filter(Boolean)),t}var Z_t=ce(()=>{d();p();Fw();T9e()});function wdn(r,e){return async(...n)=>new Promise((a,i)=>{let s=(o,c)=>{(o===null||typeof o>"u")&&i(o),a(c)};r.apply(e,[...n,s])})}function C9e(r){let e=r.message||"Failed or Rejected Request",t=-32e3;if(r&&!r.code)switch(e){case"Parse error":t=-32700;break;case"Invalid request":t=-32600;break;case"Method not found":t=-32601;break;case"Invalid params":t=-32602;break;case"Internal error":t=-32603;break;default:t=-32e3;break}let n={code:t,message:e};return r.data&&(n.data=r.data),n}var X_t=ce(()=>{d();p()});function xdn(){return eTt+"/api/v2/wallets"}function _dn(){return eTt+"/api/v2/dapps"}function tTt(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function Tdn(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>tTt(t,e))}var eTt,rTt=ce(()=>{d();p();eTt="https://registry.walletconnect.com"});var k9e=_((X1a,nTt)=>{"use strict";d();p();nTt.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var P9e=_((rba,oTt)=>{"use strict";d();p();var sTt="%[a-f0-9]{2}",aTt=new RegExp("("+sTt+")|([^%]+?)","gi"),iTt=new RegExp("("+sTt+")+","gi");function A9e(r,e){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],A9e(t),A9e(n))}function Idn(r){try{return decodeURIComponent(r)}catch{for(var e=r.match(aTt)||[],t=1;t{"use strict";d();p();cTt.exports=(r,e)=>{if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[r];let t=r.indexOf(e);return t===-1?[r]:[r.slice(0,t),r.slice(t+e.length)]}});var R9e=_((cba,uTt)=>{"use strict";d();p();uTt.exports=function(r,e){for(var t={},n=Object.keys(r),a=Array.isArray(e),i=0;i{"use strict";d();p();var Cdn=k9e(),kdn=P9e(),dTt=S9e(),Adn=R9e(),Pdn=r=>r==null;function Sdn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Sc(e,r),"[",a,"]"].join("")]:[...t,[Sc(e,r),"[",Sc(a,r),"]=",Sc(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Sc(e,r),"[]"].join("")]:[...t,[Sc(e,r),"[]=",Sc(n,r)].join("")];case"comma":case"separator":return e=>(t,n)=>n==null||n.length===0?t:t.length===0?[[Sc(e,r),"=",Sc(n,r)].join("")]:[[t,Sc(n,r)].join(r.arrayFormatSeparator)];default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Sc(e,r)]:[...t,[Sc(e,r),"=",Sc(n,r)].join("")]}}function Rdn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&Uw(n,r).includes(r.arrayFormatSeparator);n=s?Uw(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>Uw(c,r)):n===null?n:Uw(n,r);a[t]=o};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function pTt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Sc(r,e){return e.encode?e.strict?Cdn(r):encodeURIComponent(r):r}function Uw(r,e){return e.decode?kdn(r):r}function hTt(r){return Array.isArray(r)?r.sort():typeof r=="object"?hTt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function fTt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function Mdn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function mTt(r){r=fTt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function lTt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function yTt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),pTt(e.arrayFormatSeparator);let t=Rdn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=dTt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator"].includes(e.arrayFormat)?s:Uw(s,e),t(Uw(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=lTt(i[s],e);else n[a]=lTt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=hTt(s):a[i]=s,a},Object.create(null))}Ol.extract=mTt;Ol.parse=yTt;Ol.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),pTt(e.arrayFormatSeparator);let t=s=>e.skipNull&&Pdn(r[s])||e.skipEmptyString&&r[s]==="",n=Sdn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Sc(s,e):Array.isArray(o)?o.reduce(n(s),[]).join("&"):Sc(s,e)+"="+Sc(o,e)}).filter(s=>s.length>0).join("&")};Ol.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=dTt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:yTt(mTt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:Uw(n,e)}:{})};Ol.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0},e);let t=fTt(r.url).split("?")[0]||"",n=Ol.extract(r.url),a=Ol.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Ol.stringify(i,e);s&&(s=`?${s}`);let o=Mdn(r.url);return r.fragmentIdentifier&&(o=`#${Sc(r.fragmentIdentifier,e)}`),`${t}${s}${o}`};Ol.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);let{url:n,query:a,fragmentIdentifier:i}=Ol.parseUrl(r,t);return Ol.stringifyUrl({url:n,query:Adn(a,e),fragmentIdentifier:i},t)};Ol.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Ol.pick(r,n,t)}});function M9e(r){let e=r.indexOf("?")!==-1?r.indexOf("?"):void 0;return typeof e<"u"?r.substr(e):""}function N9e(r,e){let t=Kge(r);return t=Object.assign(Object.assign({},t),e),r=bTt(t),r}function Kge(r){return zge.parse(r)}function bTt(r){return zge.stringify(r)}var zge,B9e=ce(()=>{d();p();zge=un(gTt())});function D9e(r){return typeof r.bridge<"u"}function L9e(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t);function i(h){let f="@",m=h.split(f);return{handshakeTopic:m[0],version:parseInt(m[1],10)}}let s=i(a),o=typeof t<"u"?r.substr(t):"";function c(h){let f=Kge(h);return{key:f.key||"",bridge:f.bridge||""}}let u=c(o);return Object.assign(Object.assign({protocol:n},s),u)}var vTt=ce(()=>{d();p();B9e()});function Ndn(r){return r===""||typeof r=="string"&&r.trim()===""}function Bdn(r){return!(r&&r.length)}function Ddn(r){return qne(r)}function Ldn(r){return Oge(r)}function Odn(r){return s9e(r)}function qdn(r){return I_t(r)}function Fdn(r){return E_t(r)}function Wdn(r,e){return i9e(r,e)}function Udn(r){return typeof r.params=="object"}function O9e(r){return typeof r.method<"u"}function x1(r){return typeof r.result<"u"}function Hw(r){return typeof r.error<"u"}function Gge(r){return typeof r.event<"u"}function q9e(r){return Age.includes(r)||r.startsWith("wc_")}function F9e(r){return r.method.startsWith("wc_")?!0:!W$.includes(r.method)}var wTt=ce(()=>{d();p();Fne();Fw()});var Vge={};cr(Vge,{addHexPrefix:()=>pdn,appendToQueryString:()=>N9e,concatArrayBuffers:()=>Iln,concatBuffers:()=>Aln,convertArrayBufferToBuffer:()=>Wne,convertArrayBufferToHex:()=>u9e,convertArrayBufferToNumber:()=>Tln,convertArrayBufferToUtf8:()=>_ln,convertBufferToArrayBuffer:()=>l9e,convertBufferToHex:()=>Cln,convertBufferToNumber:()=>kln,convertBufferToUtf8:()=>Eln,convertHexToArrayBuffer:()=>d9e,convertHexToBuffer:()=>Nln,convertHexToNumber:()=>Dln,convertHexToUtf8:()=>Bln,convertNumberToArrayBuffer:()=>Oln,convertNumberToBuffer:()=>Lln,convertNumberToHex:()=>p9e,convertNumberToUtf8:()=>qln,convertUtf8ToArrayBuffer:()=>Pln,convertUtf8ToBuffer:()=>Sln,convertUtf8ToHex:()=>Rln,convertUtf8ToNumber:()=>Mln,detectEnv:()=>Hne,detectOS:()=>Uge,formatIOSMobile:()=>gdn,formatMobileRegistry:()=>Tdn,formatMobileRegistryEntry:()=>tTt,formatQueryString:()=>bTt,formatRpcError:()=>C9e,getClientMeta:()=>jge,getCrypto:()=>cdn,getCryptoOrThrow:()=>odn,getDappRegistryUrl:()=>_dn,getDocument:()=>adn,getDocumentOrThrow:()=>ndn,getEncoding:()=>Fdn,getFromWindow:()=>tdn,getFromWindowOrThrow:()=>rdn,getInfuraRpcUrl:()=>$_t,getLocal:()=>zne,getLocalStorage:()=>Une,getLocalStorageOrThrow:()=>udn,getLocation:()=>y9e,getLocationOrThrow:()=>sdn,getMobileLinkRegistry:()=>vdn,getMobileRegistryEntry:()=>J_t,getNavigator:()=>m9e,getNavigatorOrThrow:()=>idn,getQueryString:()=>M9e,getRpcUrl:()=>ydn,getType:()=>qdn,getWalletRegistryUrl:()=>xdn,isAndroid:()=>H_t,isArrayBuffer:()=>Odn,isBrowser:()=>b9e,isBuffer:()=>Ddn,isEmptyArray:()=>Bdn,isEmptyString:()=>Ndn,isHexString:()=>Wdn,isIOS:()=>j_t,isInternalEvent:()=>Gge,isJsonRpcRequest:()=>O9e,isJsonRpcResponseError:()=>Hw,isJsonRpcResponseSuccess:()=>x1,isJsonRpcSubscription:()=>Udn,isMobile:()=>g9e,isNode:()=>z_t,isReservedEvent:()=>q9e,isSilentPayload:()=>F9e,isTypedArray:()=>Ldn,isWalletConnectSession:()=>D9e,logDeprecationWarning:()=>mdn,parseQueryString:()=>Kge,parseWalletConnectUri:()=>L9e,payloadId:()=>E9e,promisify:()=>wdn,removeHexLeadingZeros:()=>fdn,removeHexPrefix:()=>hdn,removeLocal:()=>Kne,safeJsonParse:()=>w9e,safeJsonStringify:()=>x9e,sanitizeHex:()=>ddn,saveMobileLinkInfo:()=>bdn,setLocal:()=>jne,uuid:()=>Gne});var cy=ce(()=>{d();p();P_t();K_t();_9e();T9e();Y_t();Q_t();Z_t();X_t();rTt();vTt();B9e();wTt();Wge()});var W9e,xTt,_Tt=ce(()=>{d();p();W9e=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(n=>n.event===e)),t.forEach(n=>{n.callback()})}},xTt=W9e});var ITt=_((jba,TTt)=>{"use strict";d();p();TTt.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});function jdn(r,e,t){var n,a;let s=(r.startsWith("https")?r.replace("https","wss"):r.startsWith("http")?r.replace("http","ws"):r).split("?"),o=b9e()?{protocol:e,version:t,env:"browser",host:((n=y9e())===null||n===void 0?void 0:n.host)||""}:{protocol:e,version:t,env:((a=Hne())===null||a===void 0?void 0:a.name)||""},c=N9e(M9e(s[1]||""),o);return s[0]+"?"+c}var Hdn,U9e,ETt,CTt=ce(()=>{d();p();cy();_Tt();Hdn=typeof global.WebSocket<"u"?global.WebSocket:ITt(),U9e=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new xTt,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||typeof t!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;let e=jdn(this._url,this._protocol,this._version);if(this._nextSocket=new Hdn(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let t=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(a=>a.event==="message");n&&n.length&&n.forEach(a=>a.callback(t))}}_socketError(e){let t=this._events.filter(n=>n.event==="error");t&&t.length&&t.forEach(n=>n.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(t=>this._socketSend(t)),this._queue=[]}};ETt=U9e});var H9e,kTt,ATt=ce(()=>{d();p();cy();H9e=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t=[],n;O9e(e)?n=e.method:x1(e)||Hw(e)?n=`response:${e.id}`:Gge(e)?n=e.event:n="",n&&(t=this._eventEmitters.filter(a=>a.event===n)),(!t||!t.length)&&!q9e(n)&&!Gge(n)&&(t=this._eventEmitters.filter(a=>a.event==="call_request")),t.forEach(a=>{if(Hw(e)){let i=new Error(e.error.message);a.callback(i,null)}else a.callback(null,e)})}},kTt=H9e});var j9e,PTt,STt=ce(()=>{d();p();cy();j9e=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,t=zne(this.storageId);return t&&D9e(t)&&(e=t),e}setSession(e){return jne(this.storageId,e),e}removeSession(){Kne(this.storageId)}},PTt=j9e});function Gdn(r){let e=r.indexOf("//")>-1?r.split("/")[2]:r.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function Vdn(r){return Gdn(r).split(".").slice(-2).join(".")}function Ydn(){return Math.floor(Math.random()*RTt.length)}function $dn(){return RTt[Ydn()]}function Qdn(r){return Vdn(r)===zdn}function MTt(r){return Qdn(r)?$dn():r}var zdn,Kdn,RTt,NTt=ce(()=>{d();p();zdn="walletconnect.org",Kdn="abcdefghijklmnopqrstuvwxyz0123456789",RTt=Kdn.split("").map(r=>`https://${r}.bridge.walletconnect.org`)});var z9e,BTt,DTt=ce(()=>{d();p();Fw();cy();CTt();ATt();STt();NTt();z9e=class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new kTt,this._clientMeta=jge()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new PTt(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...W$,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(GRe);e.connectorOpts.bridge&&(this.bridge=MTt(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new ETt({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){!e||(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let t=d9e(e);this._key=t}get key(){return this._key?u9e(this._key,!0):""}set clientId(e){!e||(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Gne()),this._clientId}set peerId(e){!e||(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=jge()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){!e||(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){!e||(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;let{handshakeTopic:t,bridge:n,key:a}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=a}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){!e||(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){let n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=Gne(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(kge)});let n=()=>{this.killSession()};try{let a=await this._sendCallRequest(t);return a&&n(),a}catch(a){throw n(),a}}async connect(e){if(!this._qrcodeModal)throw new Error(YRe);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(t,n)=>{this.on("modal_closed",()=>n(new Error(kge))),this.on("connect",(a,i)=>{if(a)return n(a);t(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(One);if(this.pending)return;this._key=await this._generateKey();let t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=Gne(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(One);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(One);let t=e&&e.message?e.message:WRe,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(sy);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let t=e?e.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},a=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(a),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(sy);let t=e,n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(sy);let t=e,n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(sy);let t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(sy);let t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(sy);let t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");let t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((n,a)=>{this._subscribeToResponse(e.id,(i,s)=>{if(i){a(i);return}if(!s)throw new Error(URe);n(s)})})}async sendCustomRequest(e,t){if(!this._connected)throw new Error(sy);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return p9e(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break;default:break}let n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(x1(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(HRe)}rejectRequest(e){if(Hw(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(jRe)}transportClose(){this._transport.close()}async _sendRequest(e,t){let n=this._formatRequest(e),a=await this._encrypt(n),i=typeof t?.topic<"u"?t.topic:this.peerId,s=JSON.stringify(a),o=typeof t?.forcePushNotification<"u"?!t.forcePushNotification:F9e(n);this._transport.send(s,i,o)}async _sendResponse(e){let t=await this._encrypt(e),n=this.peerId,a=JSON.stringify(t),i=!0;this._transport.send(a,n,i)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(zRe);return{id:typeof e.id>"u"?E9e():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(KRe);let t={id:e.id,jsonrpc:"2.0"};if(Hw(e)){let n=C9e(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}else if(x1(e))return Object.assign(Object.assign({},t),e);throw new Error(Cge)}_handleSessionDisconnect(e){let t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Kne(qw)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t?t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let n;try{n=JSON.parse(e.payload)}catch{return}let a=await this._decrypt(n);a&&this._eventManager.trigger(a)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(n,a)=>{if(n){this._handleSessionResponse(n.message);return}x1(a)?this._handleSessionResponse(t,a.result):a.error&&a.error.message?this._handleSessionResponse(a.error.message):this._handleSessionResponse(t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(a,i)=>{if(a){n(a);return}x1(i)?t(i.result):i.error&&i.error.message?n(i.error):n(new Error(Cge))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,t)=>{let{request:n}=t.params[0];if(g9e()&&this._signingMethods.includes(n.method)){let a=zne(qw);a&&(window.location.href=a.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;let n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let e=this.protocol,t=this.handshakeTopic,n=this.version,a=encodeURIComponent(this.bridge),i=this.key;return`${e}:${t}@${n}?bridge=${a}&key=${i}`}_parseUri(e){let t=L9e(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");let a=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");let i=t.key;return{handshakeTopic:n,bridge:a,key:i}}else throw new Error(VRe)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");let t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,a)=>{if(n)throw n;if(e.peerMeta){let i=a.params[0].peerMeta.name;t.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}},BTt=z9e});function K9e(r){return LTt.getBrowerCrypto().getRandomValues(new Uint8Array(r))}var LTt,OTt=ce(()=>{d();p();LTt=un(F$())});var Jdn,G9e,V9e,Yge,Zdn,Xdn,$ge,Y9e,epn,$9e=ce(()=>{d();p();Jdn=0,G9e=1,V9e=16,Yge=32,Zdn=64,Xdn=128,$ge=256,Y9e=512,epn=1024});var Vne,Qge,Rm,Q9e,jw,J9e,Z9e,tpn,rpn,npn,apn,ipn,spn,opn,cpn,upn,qTt=ce(()=>{d();p();$9e();Vne=256,Qge=256,Rm="AES-CBC",Q9e=`SHA-${Vne}`,jw="HMAC",J9e="SHA-256",Z9e="SHA-512",tpn=`aes-${Vne}-cbc`,rpn=`sha${Qge}`,npn="sha256",apn="sha512",ipn="ripemd160",spn=1,opn=32,cpn=16,upn=32});var lpn,dpn,FTt=ce(()=>{d();p();lpn="hex",dpn="utf8"});var ppn,WTt=ce(()=>{d();p();ppn="Bad MAC"});var X9e,eMe,tMe,rMe,UTt=ce(()=>{d();p();X9e="encrypt",eMe="decrypt",tMe="sign",rMe="verify"});var nMe=ce(()=>{d();p();qTt();FTt();WTt();$9e();UTt()});function hpn(r){return r===Rm?{length:Vne,name:Rm}:{hash:{name:Q9e},name:jw}}function fpn(r){return r===Rm?[X9e,eMe]:[tMe,rMe]}async function Jge(r,e=Rm){return _1.getSubtleCrypto().importKey("raw",r,hpn(e),!0,fpn(e))}async function HTt(r,e,t){let n=_1.getSubtleCrypto(),a=await Jge(e,Rm),i=await n.encrypt({iv:r,name:Rm},a,t);return new Uint8Array(i)}async function jTt(r,e,t){let n=_1.getSubtleCrypto(),a=await Jge(e,Rm),i=await n.decrypt({iv:r,name:Rm},a,t);return new Uint8Array(i)}async function aMe(r,e){let t=_1.getSubtleCrypto(),n=await Jge(r,jw),a=await t.sign({length:Qge,name:jw},n,e);return new Uint8Array(a)}async function iMe(r,e){let t=_1.getSubtleCrypto(),n=await Jge(r,jw),a=await t.sign({length:512,name:jw},n,e);return new Uint8Array(a)}async function zTt(r){let t=await _1.getSubtleCrypto().digest({name:J9e},r);return new Uint8Array(t)}async function KTt(r){let t=await _1.getSubtleCrypto().digest({name:Z9e},r);return new Uint8Array(t)}var _1,Zge=ce(()=>{d();p();_1=un(F$());nMe()});function sMe(r,e,t){return HTt(r,e,t)}function oMe(r,e,t){return jTt(r,e,t)}var GTt=ce(()=>{d();p();Zge()});var ql={};var VTt=ce(()=>{d();p();gr(ql,un(F$()))});var mpn,YTt,$Tt=ce(()=>{d();p();mpn=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],YTt={pad(r){let e=mpn[r.byteLength%16||0],t=new Uint8Array(r.byteLength+e.length);return t.set(r),t.set(e,r.byteLength),t},unpad(r){return r.subarray(0,r.byteLength-r[r.byteLength-1])}}});var QTt=ce(()=>{d();p()});function JTt(r,e){if(!r)throw new Error(e||"Assertion failed")}function Yne(r,e){if(r.length!==e.length)return!1;let t=0;for(let n=0;n{d();p()});var Io={};cr(Io,{assert:()=>JTt,isConstantTime:()=>Yne,pkcs7:()=>YTt});var cMe=ce(()=>{d();p();VTt();gr(Io,ql);$Tt();QTt();ZTt()});async function Xge(r,e){return await aMe(r,e)}async function ypn(r,e,t){let n=await aMe(r,e);return Yne(n,t)}async function gpn(r,e){return await iMe(r,e)}async function bpn(r,e,t){let n=await iMe(r,e);return Yne(n,t)}var XTt=ce(()=>{d();p();Zge();cMe()});async function vpn(r){return await zTt(r)}async function wpn(r){return await KTt(r)}async function xpn(r){throw new Error("Not supported for Browser async methods, use sync instead!")}var e6t=ce(()=>{d();p();Zge()});var qp={};cr(qp,{AES_BROWSER_ALGO:()=>Rm,AES_LENGTH:()=>Vne,AES_NODE_ALGO:()=>tpn,DECRYPT_OP:()=>eMe,ENCRYPT_OP:()=>X9e,ERROR_BAD_MAC:()=>ppn,HEX_ENC:()=>lpn,HMAC_BROWSER:()=>jw,HMAC_BROWSER_ALGO:()=>Q9e,HMAC_LENGTH:()=>Qge,HMAC_NODE_ALGO:()=>rpn,IV_LENGTH:()=>cpn,KEY_LENGTH:()=>opn,LENGTH_0:()=>Jdn,LENGTH_1:()=>G9e,LENGTH_1024:()=>epn,LENGTH_128:()=>Xdn,LENGTH_16:()=>V9e,LENGTH_256:()=>$ge,LENGTH_32:()=>Yge,LENGTH_512:()=>Y9e,LENGTH_64:()=>Zdn,MAC_LENGTH:()=>upn,PREFIX_LENGTH:()=>spn,RIPEMD160_NODE_ALGO:()=>ipn,SHA256_BROWSER_ALGO:()=>J9e,SHA256_NODE_ALGO:()=>npn,SHA512_BROWSER_ALGO:()=>Z9e,SHA512_NODE_ALGO:()=>apn,SIGN_OP:()=>tMe,UTF8_ENC:()=>dpn,VERIFY_OP:()=>rMe,aesCbcDecrypt:()=>oMe,aesCbcEncrypt:()=>sMe,assert:()=>JTt,hmacSha256Sign:()=>Xge,hmacSha256Verify:()=>ypn,hmacSha512Sign:()=>gpn,hmacSha512Verify:()=>bpn,isConstantTime:()=>Yne,pkcs7:()=>YTt,randomBytes:()=>K9e,ripemd160:()=>xpn,sha256:()=>vpn,sha512:()=>wpn});var t6t=ce(()=>{d();p();OTt();GTt();XTt();e6t();cMe();gr(qp,Io);nMe()});var uMe={};cr(uMe,{decrypt:()=>Tpn,encrypt:()=>_pn,generateKey:()=>r6t,verifyHmac:()=>n6t});async function r6t(r){let e=(r||256)/8,t=K9e(e);return l9e(v1(t))}async function n6t(r,e){let t=Pm(r.data),n=Pm(r.iv),a=Pm(r.hmac),i=Am(a,!1),s=o9e(t,n),o=await Xge(e,s),c=Am(o,!1);return w1(i)===w1(c)}async function _pn(r,e,t){let n=b1(Wne(e)),a=t||await r6t(128),i=b1(Wne(a)),s=Am(i,!1),o=JSON.stringify(r),c=Lge(o),u=await sMe(i,n,c),l=Am(u,!1),h=o9e(u,i),f=await Xge(n,h),m=Am(f,!1);return{data:l,hmac:m,iv:s}}async function Tpn(r,e){let t=b1(Wne(e));if(!t)throw new Error("Missing key: required for decryption");if(!await n6t(r,t))return null;let a=Pm(r.data),i=Pm(r.iv),s=await oMe(i,t,a),o=Nge(s),c;try{c=JSON.parse(o)}catch{return null}return c}var a6t=ce(()=>{d();p();t6t();Fne();cy()});var dMe={};cr(dMe,{default:()=>Ipn});var lMe,Ipn,pMe=ce(()=>{d();p();DTt();a6t();lMe=class extends BTt{constructor(e,t){super({cryptoLib:uMe,connectorOpts:e,pushServerOpts:t})}},Ipn=lMe});var s6t=_((q2a,i6t)=>{d();p();i6t.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var T1=_(zw=>{d();p();var hMe,Epn=[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];zw.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};zw.getSymbolTotalCodewords=function(e){return Epn[e]};zw.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};zw.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');hMe=e};zw.isKanjiModeEnabled=function(){return typeof hMe<"u"};zw.toSJIS=function(e){return hMe(e)}});var e1e=_(Fp=>{d();p();Fp.L={bit:1};Fp.M={bit:0};Fp.Q={bit:3};Fp.H={bit:2};function Cpn(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return Fp.L;case"m":case"medium":return Fp.M;case"q":case"quartile":return Fp.Q;case"h":case"high":return Fp.H;default:throw new Error("Unknown EC Level: "+r)}}Fp.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Fp.from=function(e,t){if(Fp.isValid(e))return e;try{return Cpn(e)}catch{return t}}});var u6t=_((V2a,c6t)=>{d();p();function o6t(){this.buffer=[],this.length=0}o6t.prototype={get:function(r){let e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};c6t.exports=o6t});var d6t=_((Q2a,l6t)=>{d();p();function $ne(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}$ne.prototype.set=function(r,e,t,n){let a=r*this.size+e;this.data[a]=t,n&&(this.reservedBit[a]=!0)};$ne.prototype.get=function(r,e){return this.data[r*this.size+e]};$ne.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};$ne.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};l6t.exports=$ne});var p6t=_(t1e=>{d();p();var kpn=T1().getSymbolSize;t1e.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=kpn(e),a=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s{d();p();var Apn=T1().getSymbolSize,h6t=7;f6t.getPositions=function(e){let t=Apn(e);return[[0,0],[t-h6t,0],[0,t-h6t]]}});var y6t=_(ni=>{d();p();ni.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var Kw={N1:3,N2:3,N3:40,N4:10};ni.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};ni.from=function(e){return ni.isValid(e)?parseInt(e,10):void 0};ni.getPenaltyN1=function(e){let t=e.size,n=0,a=0,i=0,s=null,o=null;for(let c=0;c=5&&(n+=Kw.N1+(a-5)),s=l,a=1),l=e.get(u,c),l===o?i++:(i>=5&&(n+=Kw.N1+(i-5)),o=l,i=1)}a>=5&&(n+=Kw.N1+(a-5)),i>=5&&(n+=Kw.N1+(i-5))}return n};ni.getPenaltyN2=function(e){let t=e.size,n=0;for(let a=0;a=10&&(a===1488||a===93)&&n++,i=i<<1&2047|e.get(o,s),o>=10&&(i===1488||i===93)&&n++}return n*Kw.N3};ni.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let i=0;i{d();p();var I1=e1e(),r1e=[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],n1e=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];fMe.getBlocksCount=function(e,t){switch(t){case I1.L:return r1e[(e-1)*4+0];case I1.M:return r1e[(e-1)*4+1];case I1.Q:return r1e[(e-1)*4+2];case I1.H:return r1e[(e-1)*4+3];default:return}};fMe.getTotalCodewordsCount=function(e,t){switch(t){case I1.L:return n1e[(e-1)*4+0];case I1.M:return n1e[(e-1)*4+1];case I1.Q:return n1e[(e-1)*4+2];case I1.H:return n1e[(e-1)*4+3];default:return}}});var g6t=_(i1e=>{d();p();var Qne=new Uint8Array(512),a1e=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)Qne[t]=e,a1e[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)Qne[t]=Qne[t-255]})();i1e.log=function(e){if(e<1)throw new Error("log("+e+")");return a1e[e]};i1e.exp=function(e){return Qne[e]};i1e.mul=function(e,t){return e===0||t===0?0:Qne[a1e[e]+a1e[t]]}});var b6t=_(Jne=>{d();p();var yMe=g6t();Jne.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a=0;){let a=n[0];for(let s=0;s{d();p();var v6t=b6t();function gMe(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}gMe.prototype.initialize=function(e){this.degree=e,this.genPoly=v6t.generateECPolynomial(this.degree)};gMe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=v6t.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let i=new Uint8Array(this.degree);return i.set(n,a),i}return n};w6t.exports=gMe});var bMe=_(_6t=>{d();p();_6t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var vMe=_(uy=>{d();p();var T6t="[0-9]+",Spn="[A-Z $%*+\\-./:]+",Zne="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Zne=Zne.replace(/u/g,"\\u");var Rpn="(?:(?![A-Z0-9 $%*+\\-./:]|"+Zne+`)(?:.|[\r -]))+`;uy.KANJI=new RegExp(Zne,"g");uy.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");uy.BYTE=new RegExp(Rpn,"g");uy.NUMERIC=new RegExp(T6t,"g");uy.ALPHANUMERIC=new RegExp(Spn,"g");var Mpn=new RegExp("^"+Zne+"$"),Npn=new RegExp("^"+T6t+"$"),Bpn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");uy.testKanji=function(e){return Mpn.test(e)};uy.testNumeric=function(e){return Npn.test(e)};uy.testAlphanumeric=function(e){return Bpn.test(e)}});var E1=_(ro=>{d();p();var Dpn=bMe(),wMe=vMe();ro.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};ro.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};ro.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};ro.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};ro.MIXED={bit:-1};ro.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Dpn.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};ro.getBestModeForData=function(e){return wMe.testNumeric(e)?ro.NUMERIC:wMe.testAlphanumeric(e)?ro.ALPHANUMERIC:wMe.testKanji(e)?ro.KANJI:ro.BYTE};ro.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};ro.isValid=function(e){return e&&e.bit&&e.ccBits};function Lpn(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return ro.NUMERIC;case"alphanumeric":return ro.ALPHANUMERIC;case"kanji":return ro.KANJI;case"byte":return ro.BYTE;default:throw new Error("Unknown mode: "+r)}}ro.from=function(e,t){if(ro.isValid(e))return e;try{return Lpn(e)}catch{return t}}});var A6t=_(Gw=>{d();p();var s1e=T1(),Opn=mMe(),I6t=e1e(),C1=E1(),xMe=bMe(),C6t=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,E6t=s1e.getBCHDigit(C6t);function qpn(r,e,t){for(let n=1;n<=40;n++)if(e<=Gw.getCapacity(n,t,r))return n}function k6t(r,e){return C1.getCharCountIndicator(r,e)+4}function Fpn(r,e){let t=0;return r.forEach(function(n){let a=k6t(n.mode,e);t+=a+n.getBitsLength()}),t}function Wpn(r,e){for(let t=1;t<=40;t++)if(Fpn(r,t)<=Gw.getCapacity(t,e,C1.MIXED))return t}Gw.from=function(e,t){return xMe.isValid(e)?parseInt(e,10):t};Gw.getCapacity=function(e,t,n){if(!xMe.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=C1.BYTE);let a=s1e.getSymbolTotalCodewords(e),i=Opn.getTotalCodewordsCount(e,t),s=(a-i)*8;if(n===C1.MIXED)return s;let o=s-k6t(n,e);switch(n){case C1.NUMERIC:return Math.floor(o/10*3);case C1.ALPHANUMERIC:return Math.floor(o/11*2);case C1.KANJI:return Math.floor(o/13);case C1.BYTE:default:return Math.floor(o/8)}};Gw.getBestVersionForData=function(e,t){let n,a=I6t.from(t,I6t.M);if(Array.isArray(e)){if(e.length>1)return Wpn(e,a);if(e.length===0)return 1;n=e[0]}else n=e;return qpn(n.mode,n.getLength(),a)};Gw.getEncodedBits=function(e){if(!xMe.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;s1e.getBCHDigit(t)-E6t>=0;)t^=C6t<{d();p();var _Me=T1(),S6t=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Upn=1<<14|1<<12|1<<10|1<<4|1<<1,P6t=_Me.getBCHDigit(S6t);R6t.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;_Me.getBCHDigit(a)-P6t>=0;)a^=S6t<<_Me.getBCHDigit(a)-P6t;return(n<<10|a)^Upn}});var B6t=_((Dwa,N6t)=>{d();p();var Hpn=E1();function z$(r){this.mode=Hpn.NUMERIC,this.data=r.toString()}z$.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};z$.prototype.getLength=function(){return this.data.length};z$.prototype.getBitsLength=function(){return z$.getBitsLength(this.data.length)};z$.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,i*3+1))};N6t.exports=z$});var L6t=_((qwa,D6t)=>{d();p();var jpn=E1(),TMe=["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 K$(r){this.mode=jpn.ALPHANUMERIC,this.data=r}K$.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};K$.prototype.getLength=function(){return this.data.length};K$.prototype.getBitsLength=function(){return K$.getBitsLength(this.data.length)};K$.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=TMe.indexOf(this.data[t])*45;n+=TMe.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(TMe.indexOf(this.data[t]),6)};D6t.exports=K$});var q6t=_((Uwa,O6t)=>{"use strict";d();p();O6t.exports=function(e){for(var t=[],n=e.length,a=0;a=55296&&i<=56319&&n>a+1){var s=e.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|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(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}});var W6t=_((zwa,F6t)=>{d();p();var zpn=q6t(),Kpn=E1();function G$(r){this.mode=Kpn.BYTE,typeof r=="string"&&(r=zpn(r)),this.data=new Uint8Array(r)}G$.getBitsLength=function(e){return e*8};G$.prototype.getLength=function(){return this.data.length};G$.prototype.getBitsLength=function(){return G$.getBitsLength(this.data.length)};G$.prototype.write=function(r){for(let e=0,t=this.data.length;e{d();p();var Gpn=E1(),Vpn=T1();function V$(r){this.mode=Gpn.KANJI,this.data=r}V$.getBitsLength=function(e){return e*13};V$.prototype.getLength=function(){return this.data.length};V$.prototype.getBitsLength=function(){return V$.getBitsLength(this.data.length)};V$.prototype.write=function(r){let e;for(e=0;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};U6t.exports=V$});var j6t=_((Qwa,IMe)=>{"use strict";d();p();var Xne={single_source_shortest_paths:function(r,e,t){var n={},a={};a[e]=0;var i=Xne.PriorityQueue.make();i.push(e,0);for(var s,o,c,u,l,h,f,m,y;!i.empty();){s=i.pop(),o=s.value,u=s.cost,l=r[o]||{};for(c in l)l.hasOwnProperty(c)&&(h=l[c],f=u+h,m=a[c],y=typeof a[c]>"u",(y||m>f)&&(a[c]=f,i.push(c,f),n[c]=o))}if(typeof t<"u"&&typeof a[t]>"u"){var I=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(I)}return n},extract_shortest_path_from_predecessor_list:function(r,e){for(var t=[],n=e,a;n;)t.push(n),a=r[n],n=r[n];return t.reverse(),t},find_path:function(r,e,t){var n=Xne.single_source_shortest_paths(r,e,t);return Xne.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(r){var e=Xne.PriorityQueue,t={},n;r=r||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=r.sorter||e.default_sorter,t},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var t={value:r,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof IMe<"u"&&(IMe.exports=Xne)});var J6t=_(Y$=>{d();p();var Ba=E1(),G6t=B6t(),V6t=L6t(),Y6t=W6t(),$6t=H6t(),eae=vMe(),o1e=T1(),Ypn=j6t();function z6t(r){return unescape(encodeURIComponent(r)).length}function tae(r,e,t){let n=[],a;for(;(a=r.exec(t))!==null;)n.push({data:a[0],index:a.index,mode:e,length:a[0].length});return n}function Q6t(r){let e=tae(eae.NUMERIC,Ba.NUMERIC,r),t=tae(eae.ALPHANUMERIC,Ba.ALPHANUMERIC,r),n,a;return o1e.isKanjiModeEnabled()?(n=tae(eae.BYTE,Ba.BYTE,r),a=tae(eae.KANJI,Ba.KANJI,r)):(n=tae(eae.BYTE_KANJI,Ba.BYTE,r),a=[]),e.concat(t,n,a).sort(function(s,o){return s.index-o.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function EMe(r,e){switch(e){case Ba.NUMERIC:return G6t.getBitsLength(r);case Ba.ALPHANUMERIC:return V6t.getBitsLength(r);case Ba.KANJI:return $6t.getBitsLength(r);case Ba.BYTE:return Y6t.getBitsLength(r)}}function $pn(r){return r.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function Qpn(r){let e=[];for(let t=0;t{d();p();var u1e=T1(),CMe=e1e(),Zpn=u6t(),Xpn=d6t(),ehn=p6t(),thn=m6t(),PMe=y6t(),SMe=mMe(),rhn=x6t(),c1e=A6t(),nhn=M6t(),ahn=E1(),kMe=J6t();function ihn(r,e){let t=r.size,n=thn.getPositions(e);for(let a=0;a=0&&o<=6&&(c===0||c===6)||c>=0&&c<=6&&(o===0||o===6)||o>=2&&o<=4&&c>=2&&c<=4?r.set(i+o,s+c,!0,!0):r.set(i+o,s+c,!1,!0))}}function shn(r){let e=r.size;for(let t=8;t>o&1)===1,r.set(a,i,s,!0),r.set(i,a,s,!0)}function AMe(r,e,t){let n=r.size,a=nhn.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?r.set(i,8,s,!0):i<8?r.set(i+1,8,s,!0):r.set(n-15+i,8,s,!0),i<8?r.set(8,n-i-1,s,!0):i<9?r.set(8,15-i-1+1,s,!0):r.set(8,15-i-1,s,!0);r.set(n-8,8,1,!0)}function uhn(r,e){let t=r.size,n=-1,a=t-1,i=7,s=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let c=0;c<2;c++)if(!r.isReserved(a,o-c)){let u=!1;s>>i&1)===1),r.set(a,o-c,u),i--,i===-1&&(s++,i=7)}if(a+=n,a<0||t<=a){a-=n,n=-n;break}}}function lhn(r,e,t){let n=new Zpn;t.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),ahn.getCharCountIndicator(c.mode,r)),c.write(n)});let a=u1e.getSymbolTotalCodewords(r),i=SMe.getTotalCodewordsCount(r,e),s=(a-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let o=(s-n.getLengthInBits())/8;for(let c=0;c{"use strict";f();d();Object.defineProperty(X3e,"__esModule",{value:!0});X3e.StatusDotIcon=void 0;var sMt=(cu(),Ht(xf));function EEn(r){return(0,sMt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,sMt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}X3e.StatusDotIcon=EEn});var dMt=E((xJa,fMt)=>{f();d();function cMt(r){this.mode=gd.MODE_8BIT_BYTE,this.data=r,this.parsedData=[];for(var e=0,t=this.data.length;e65536?(n[0]=240|(a&1835008)>>>18,n[1]=128|(a&258048)>>>12,n[2]=128|(a&4032)>>>6,n[3]=128|a&63):a>2048?(n[0]=224|(a&61440)>>>12,n[1]=128|(a&4032)>>>6,n[2]=128|a&63):a>128?(n[0]=192|(a&1984)>>>6,n[1]=128|a&63):n[0]=a,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}cMt.prototype={getLength:function(r){return this.parsedData.length},write:function(r){for(var e=0,t=this.parsedData.length;e=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=ty.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=t&&t<=6&&(n==0||n==6)||0<=n&&n<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=n&&n<=4?this.modules[r+t][e+n]=!0:this.modules[r+t][e+n]=!1)},getBestMaskPattern:function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var n=so.getLostPoint(this);(t==0||r>n)&&(r=n,e=t)}return e},createMovieClip:function(r,e,t){var n=r.createEmptyMovieClip(e,t),a=1;this.make();for(var i=0;i>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=n}for(var t=0;t<18;t++){var n=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=n}},setupTypeInfo:function(r,e){for(var t=this.errorCorrectLevel<<3|e,n=so.getBCHTypeInfo(t),a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(var a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!r},mapData:function(r,e){for(var t=-1,n=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var o=0;o<2;o++)if(this.modules[n][s-o]==null){var c=!1;i>>a&1)==1);var u=so.getMask(e,n,s-o);u&&(c=!c),this.modules[n][s-o]=c,a--,a==-1&&(i++,a=7)}if(n+=t,n<0||this.moduleCount<=n){n-=t,t=-t;break}}}};ty.PAD0=236;ty.PAD1=17;ty.createData=function(r,e,t){for(var n=ey.getRSBlocks(r,e),a=new uMt,i=0;io*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+o*8+")");for(a.getLengthInBits()+4<=o*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=o*8||(a.put(ty.PAD0,8),a.getLengthInBits()>=o*8));)a.put(ty.PAD1,8);return ty.createBytes(a,n)};ty.createBytes=function(r,e){for(var t=0,n=0,a=0,i=new Array(e.length),s=new Array(e.length),o=0;o=0?m.get(y):0}}for(var C=0,l=0;l=0;)e^=so.G15<=0;)e^=so.G18<>>=1;return e},getPatternPosition:function(r){return so.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case g6.PATTERN000:return(e+t)%2==0;case g6.PATTERN001:return e%2==0;case g6.PATTERN010:return t%3==0;case g6.PATTERN011:return(e+t)%3==0;case g6.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case g6.PATTERN101:return e*t%2+e*t%3==0;case g6.PATTERN110:return(e*t%2+e*t%3)%2==0;case g6.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new hte([1],0),t=0;t5&&(t+=3+i-5)}for(var n=0;n=256;)r-=255;return k0.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(Tc=0;Tc<8;Tc++)k0.EXP_TABLE[Tc]=1<>>7-r%8&1)==1},put:function(r,e){for(var t=0;t>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var CUe=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function lMt(r){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof r=="string"&&(r={content:r}),r)for(var t in r)this.options[t]=r[t];if(typeof this.options.content!="string")throw new Error("Expected 'content' as string!");if(this.options.content.length===0)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function n(u){switch(u){case"L":return v6.L;case"M":return v6.M;case"Q":return v6.Q;case"H":return v6.H;default:throw new Error("Unknwon error correction level: "+u)}}function a(u,l){for(var p=i(u),h=1,m=0,y=0,C=CUe.length;y<=C;y++){var P=CUe[y];if(!P)throw new Error("Content too long: expected "+m+" but got "+p);switch(l){case"L":m=P[0];break;case"M":m=P[1];break;case"Q":m=P[2];break;case"H":m=P[3];break;default:throw new Error("Unknwon error correction level: "+l)}if(p<=m)break;h++}if(h>CUe.length)throw new Error("Content too long");return h}function i(u){var l=encodeURI(u).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return l.length+(l.length!=u?3:0)}var s=this.options.content,o=a(s,this.options.ecl),c=n(this.options.ecl);this.qrcode=new ty(o,c),this.qrcode.addData(s),this.qrcode.make()}lMt.prototype.svg=function(r){var e=this.options||{},t=this.qrcode.modules;typeof r>"u"&&(r={container:e.container||"svg"});for(var n=typeof e.pretty<"u"?!!e.pretty:!0,a=n?" ":"",i=n?`\r +`:"",s=e.width,o=e.height,c=t.length,u=s/(c+2*e.padding),l=o/(c+2*e.padding),p=typeof e.join<"u"?!!e.join:!1,h=typeof e.swap<"u"?!!e.swap:!1,m=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,y=typeof e.predefined<"u"?!!e.predefined:!1,C=y?a+''+i:"",P=a+''+i,A="",B="",F=0;F'+i:A+=a+''+i}}p&&(A=a+'');let b="";if(this.options.image!==void 0&&this.options.image.svg){let S=s*this.options.image.width/100,w=o*this.options.image.height/100,R=s/2-S/2,O=o/2-w/2;b+=``,b+=this.options.image.svg+i,b+=""}var k="";switch(r.container){case"svg":m&&(k+=''+i),k+=''+i,k+=C+P+A,k+=b,k+="";break;case"svg-viewbox":m&&(k+=''+i),k+=''+i,k+=C+P+A,k+=b,k+="";break;case"g":k+=''+i,k+=C+P+A,k+=b,k+="";break;default:k+=(C+P+A+b).replace(/^\s+/,"");break}return k};fMt.exports=lMt});var hMt=E(mte=>{"use strict";f();d();var IEn=mte&&mte.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(mte,"__esModule",{value:!0});mte.QRCode=void 0;var CEn=(cu(),Ht(xf)),pMt=(b6(),Ht(pte)),AEn=IEn(dMt()),kEn=r=>{let[e,t]=(0,pMt.useState)("");return(0,pMt.useEffect)(()=>{var n,a;let i=new AEn.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:(n=r.width)!==null&&n!==void 0?n:256,height:(a=r.height)!==null&&a!==void 0?a:256,padding:0,image:r.image}),s=v.Buffer.from(i.svg(),"utf8").toString("base64");t(`data:image/svg+xml;base64,${s}`)}),e?(0,CEn.h)("img",{src:e,alt:"QR Code"}):null};mte.QRCode=kEn});var mMt=E(AUe=>{"use strict";f();d();Object.defineProperty(AUe,"__esModule",{value:!0});AUe.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"});var yMt=E(yte=>{"use strict";f();d();var SEn=yte&&yte.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(yte,"__esModule",{value:!0});yte.Spinner=void 0;var e8e=(cu(),Ht(xf)),PEn=SEn(mMt()),REn=r=>{var e;let t=(e=r.size)!==null&&e!==void 0?e:64,n=r.color||"#000";return(0,e8e.h)("div",{class:"-cbwsdk-spinner"},(0,e8e.h)("style",null,PEn.default),(0,e8e.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:t}},(0,e8e.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};yte.Spinner=REn});var bMt=E(kUe=>{"use strict";f();d();Object.defineProperty(kUe,"__esModule",{value:!0});kUe.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"});var EMt=E(Hp=>{"use strict";f();d();var bte=Hp&&Hp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Hp,"__esModule",{value:!0});Hp.CoinbaseAppSteps=Hp.CoinbaseWalletSteps=Hp.ConnectItem=Hp.ConnectContent=void 0;var Up=bte(V0e()),_r=(cu(),Ht(xf)),gMt=(b6(),Ht(pte)),MEn=Kb(),BEn=ZRt(),DEn=eMt(),NEn=bte(tMt()),OEn=bte(rMt()),wMt=nMt(),FEn=bte(aMt()),LEn=bte(iMt()),qEn=oMt(),WEn=hMt(),UEn=yMt(),HEn=bte(bMt()),vMt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:OEn.default,steps:_Mt},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:NEn.default,steps:TMt}},jEn=r=>{switch(r){case"coinbase-app":return FEn.default;case"coinbase-wallet-app":default:return LEn.default}},SUe=r=>r==="light"?"#FFFFFF":"#0A0B0D";function zEn(r){let{theme:e}=r,[t,n]=(0,gMt.useState)("coinbase-wallet-app"),a=(0,gMt.useCallback)(u=>{n(u)},[]),i=(0,MEn.createQrUrl)(r.sessionId,r.sessionSecret,r.linkAPIUrl,r.isParentConnection,r.version,r.chainId),s=vMt[t];if(!t)return null;let o=s.steps,c=t==="coinbase-app";return(0,_r.h)("div",{"data-testid":"connect-content",class:(0,Up.default)("-cbwsdk-connect-content",e)},(0,_r.h)("style",null,HEn.default),(0,_r.h)("div",{class:"-cbwsdk-connect-content-header"},(0,_r.h)("h2",{class:(0,Up.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),r.onCancel&&(0,_r.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:r.onCancel},(0,_r.h)(DEn.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,_r.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,_r.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,_r.h)("div",null,Object.entries(vMt).map(([u,l])=>(0,_r.h)(xMt,{key:u,title:l.title,description:l.description,icon:l.icon,selected:t===u,onClick:()=>a(u),theme:e}))),c&&(0,_r.h)("div",{class:(0,Up.default)("-cbwsdk-connect-content-update-app",e)},"Don\u2019t see a ",(0,_r.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,_r.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,_r.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,_r.h)(WEn.QRCode,{content:i,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:jEn(t),width:25,height:25}}),(0,_r.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:BEn.LIB_VERSION}),(0,_r.h)("input",{type:"hidden",value:i})),(0,_r.h)(o,{theme:e}),!r.isConnected&&(0,_r.h)("div",{"data-testid":"connecting-spinner",class:(0,Up.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,_r.h)(UEn.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,_r.h)("p",null,"Connecting...")))))}Hp.ConnectContent=zEn;function xMt({title:r,description:e,icon:t,selected:n,theme:a,onClick:i}){return(0,_r.h)("div",{onClick:i,class:(0,Up.default)("-cbwsdk-connect-item",a,{selected:n})},(0,_r.h)("div",null,(0,_r.h)("img",{src:t,alt:r})),(0,_r.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,_r.h)("h3",{class:"-cbwsdk-connect-item-title"},r),(0,_r.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}Hp.ConnectItem=xMt;function _Mt({theme:r}){return(0,_r.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,_r.h)("li",{class:(0,Up.default)("-cbwsdk-wallet-steps-item",r)},(0,_r.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,_r.h)("li",{class:(0,Up.default)("-cbwsdk-wallet-steps-item",r)},(0,_r.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,_r.h)("span",null,"Tap ",(0,_r.h)("strong",null,"Scan")," "),(0,_r.h)("span",{class:(0,Up.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,_r.h)(wMt.QRCodeIcon,{fill:SUe(r)})))))}Hp.CoinbaseWalletSteps=_Mt;function TMt({theme:r}){return(0,_r.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,_r.h)("li",{class:(0,Up.default)("-cbwsdk-wallet-steps-item",r)},(0,_r.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,_r.h)("li",{class:(0,Up.default)("-cbwsdk-wallet-steps-item",r)},(0,_r.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,_r.h)("span",null,"Tap ",(0,_r.h)("strong",null,"More")),(0,_r.h)("span",{class:(0,Up.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,_r.h)(qEn.StatusDotIcon,{fill:SUe(r)})),(0,_r.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,_r.h)("strong",null,"Scan")),(0,_r.h)("span",{class:(0,Up.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,_r.h)(wMt.QRCodeIcon,{fill:SUe(r)})))))}Hp.CoinbaseAppSteps=TMt});var CMt=E(t8e=>{"use strict";f();d();Object.defineProperty(t8e,"__esModule",{value:!0});t8e.ArrowLeftIcon=void 0;var IMt=(cu(),Ht(xf));function KEn(r){return(0,IMt.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,IMt.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}t8e.ArrowLeftIcon=KEn});var AMt=E(r8e=>{"use strict";f();d();Object.defineProperty(r8e,"__esModule",{value:!0});r8e.LaptopIcon=void 0;var PUe=(cu(),Ht(xf));function GEn(r){return(0,PUe.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,PUe.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,PUe.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}r8e.LaptopIcon=GEn});var SMt=E(n8e=>{"use strict";f();d();Object.defineProperty(n8e,"__esModule",{value:!0});n8e.SafeIcon=void 0;var kMt=(cu(),Ht(xf));function VEn(r){return(0,kMt.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,kMt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}n8e.SafeIcon=VEn});var PMt=E(RUe=>{"use strict";f();d();Object.defineProperty(RUe,"__esModule",{value:!0});RUe.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"});var MMt=E(gte=>{"use strict";f();d();var RMt=gte&>e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gte,"__esModule",{value:!0});gte.TryExtensionContent=void 0;var t8=RMt(V0e()),Ec=(cu(),Ht(xf)),MUe=(b6(),Ht(pte)),$En=CMt(),YEn=AMt(),QEn=SMt(),JEn=RMt(PMt());function ZEn({theme:r}){let[e,t]=(0,MUe.useState)(!1),n=(0,MUe.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,MUe.useCallback)(()=>{e?window.location.reload():(n(),t(!0))},[n,e]);return(0,Ec.h)("div",{class:(0,t8.default)("-cbwsdk-try-extension",r)},(0,Ec.h)("style",null,JEn.default),(0,Ec.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ec.h)("h3",{class:(0,t8.default)("-cbwsdk-try-extension-heading",r)},"Or try the Coinbase Wallet browser extension"),(0,Ec.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Ec.h)("button",{class:(0,t8.default)("-cbwsdk-try-extension-cta",r),onClick:a},e?"Refresh":"Install"),(0,Ec.h)("div",null,!e&&(0,Ec.h)($En.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:r==="light"?"#0052FF":"#588AF5"})))),(0,Ec.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Ec.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Ec.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ec.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ec.h)("span",{class:(0,t8.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Ec.h)(YEn.LaptopIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ec.h)("div",{class:(0,t8.default)("-cbwsdk-try-extension-list-item-copy",r)},"Connect with dapps with just one click on your desktop browser")),(0,Ec.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Ec.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Ec.h)("span",{class:(0,t8.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Ec.h)(QEn.SafeIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Ec.h)("div",{class:(0,t8.default)("-cbwsdk-try-extension-list-item-copy",r)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}gte.TryExtensionContent=ZEn});var BMt=E(BUe=>{"use strict";f();d();Object.defineProperty(BUe,"__esModule",{value:!0});BUe.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"});var NMt=E(vte=>{"use strict";f();d();var DMt=vte&&vte.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vte,"__esModule",{value:!0});vte.ConnectDialog=void 0;var DUe=DMt(V0e()),r8=(cu(),Ht(xf)),NUe=(b6(),Ht(pte)),XEn=EMt(),e9n=MMt(),t9n=DMt(BMt()),r9n=r=>{let{isOpen:e,darkMode:t}=r,[n,a]=(0,NUe.useState)(!e),[i,s]=(0,NUe.useState)(!e);(0,NUe.useEffect)(()=>{let c=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):c.push(window.setTimeout(()=>{a(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[r.isOpen]);let o=t?"dark":"light";return(0,r8.h)("div",{class:(0,DUe.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,r8.h)("style",null,t9n.default),(0,r8.h)("div",{class:(0,DUe.default)("-cbwsdk-connect-dialog-backdrop",o,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,r8.h)("div",{class:"-cbwsdk-connect-dialog"},(0,r8.h)("div",{class:(0,DUe.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},r.connectDisabled?null:(0,r8.h)(XEn.ConnectContent,{theme:o,version:r.version,sessionId:r.sessionId,sessionSecret:r.sessionSecret,linkAPIUrl:r.linkAPIUrl,isConnected:r.isConnected,isParentConnection:r.isParentConnection,chainId:r.chainId,onCancel:r.onCancel}),(0,r8.h)(e9n.TryExtensionContent,{theme:o}))))};vte.ConnectDialog=r9n});var FMt=E(a8e=>{"use strict";f();d();Object.defineProperty(a8e,"__esModule",{value:!0});a8e.LinkFlow=void 0;var OUe=(cu(),Ht(xf)),OMt=G0e(),n9n=NMt(),FUe=class{constructor(e){this.extensionUI$=new OMt.BehaviorSubject({}),this.subscriptions=new OMt.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var e;!this.root||(this.subscriptions.unsubscribe(),(0,OUe.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{!this.root||(0,OUe.render)((0,OUe.h)(n9n.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}};a8e.LinkFlow=FUe});var LMt=E(LUe=>{"use strict";f();d();Object.defineProperty(LUe,"__esModule",{value:!0});LUe.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"});var WMt=E(jp=>{"use strict";f();d();var qMt=jp&&jp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jp,"__esModule",{value:!0});jp.SnackbarInstance=jp.SnackbarContainer=jp.Snackbar=void 0;var i8e=qMt(V0e()),Ic=(cu(),Ht(xf)),qUe=(b6(),Ht(pte)),a9n=qMt(LMt()),i9n="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function s9n(r){switch(r){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}var WUe=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){!this.root||(0,Ic.render)((0,Ic.h)("div",null,(0,Ic.h)(jp.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,Ic.h)(jp.SnackbarInstance,Object.assign({},t,{key:e}))))),this.root)}};jp.Snackbar=WUe;var o9n=r=>(0,Ic.h)("div",{class:(0,i8e.default)("-cbwsdk-snackbar-container")},(0,Ic.h)("style",null,a9n.default),(0,Ic.h)("div",{class:"-cbwsdk-snackbar"},r.children));jp.SnackbarContainer=o9n;var c9n=({autoExpand:r,message:e,menuItems:t,appSrc:n})=>{let[a,i]=(0,qUe.useState)(!0),[s,o]=(0,qUe.useState)(r??!1);(0,qUe.useEffect)(()=>{let u=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{o(!s)};return(0,Ic.h)("div",{class:(0,i8e.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",s&&"-cbwsdk-snackbar-instance-expanded")},(0,Ic.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:c},(0,Ic.h)("img",{src:s9n(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,Ic.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,Ic.h)("div",{class:"-gear-container"},!s&&(0,Ic.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Ic.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,Ic.h)("img",{src:i9n,class:"-gear-icon",title:"Expand"}))),t&&t.length>0&&(0,Ic.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},t.map((u,l)=>(0,Ic.h)("div",{class:(0,i8e.default)("-cbwsdk-snackbar-instance-menu-item",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:u.onClick,key:l},(0,Ic.h)("svg",{width:u.svgWidth,height:u.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Ic.h)("path",{"fill-rule":u.defaultFillRule,"clip-rule":u.defaultClipRule,d:u.path,fill:"#AAAAAA"})),(0,Ic.h)("span",{class:(0,i8e.default)("-cbwsdk-snackbar-instance-menu-item-info",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},u.info)))))};jp.SnackbarInstance=c9n});var UMt=E(UUe=>{"use strict";f();d();Object.defineProperty(UUe,"__esModule",{value:!0});UUe.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'});var HMt=E(wte=>{"use strict";f();d();var u9n=wte&&wte.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wte,"__esModule",{value:!0});wte.injectCssReset=void 0;var l9n=u9n(UMt());function f9n(){let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(l9n.default)),document.documentElement.appendChild(r)}wte.injectCssReset=f9n});var jMt=E(s8e=>{"use strict";f();d();Object.defineProperty(s8e,"__esModule",{value:!0});s8e.WalletSDKUI=void 0;var d9n=FMt(),p9n=WMt(),h9n=HMt(),HUe=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new p9n.Snackbar({darkMode:e.darkMode}),this.linkFlow=new d9n.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,h9n.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return e.isUnlinkedErrorState?t={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:t={message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};s8e.WalletSDKUI=HUe});var KMt=E(o8e=>{"use strict";f();d();Object.defineProperty(o8e,"__esModule",{value:!0});var xte;(function(r){r.typeOfFunction="function",r.boolTrue=!0})(xte||(xte={}));function zMt(r,e,t){if(!t||typeof t.value!==xte.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:xte.boolTrue,get:function(){var n=t.value.bind(this);return Object.defineProperty(this,e,{value:n,configurable:xte.boolTrue,writable:xte.boolTrue}),n}}}o8e.bind=zMt;o8e.default=zMt});var zUe=E(Q0e=>{"use strict";f();d();var m9n=Q0e&&Q0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Q0e,"__esModule",{value:!0});var jUe=io();function y9n(r){return function(t){return t.lift(new b9n(r))}}Q0e.audit=y9n;var b9n=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new g9n(e,this.durationSelector))},r}(),g9n=function(r){m9n(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{var a=this.durationSelector;n=a(t)}catch(s){return this.destination.error(s)}var i=jUe.innerSubscribe(n,new jUe.SimpleInnerSubscriber(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}},e.prototype.clearThrottle=function(){var t=this,n=t.value,a=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(jUe.SimpleOuterSubscriber)});var GMt=E(KUe=>{"use strict";f();d();Object.defineProperty(KUe,"__esModule",{value:!0});var v9n=kl(),w9n=zUe(),x9n=mUe();function _9n(r,e){return e===void 0&&(e=v9n.async),w9n.audit(function(){return x9n.timer(r,e)})}KUe.auditTime=_9n});var VMt=E(J0e=>{"use strict";f();d();var T9n=J0e&&J0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(J0e,"__esModule",{value:!0});var GUe=io();function E9n(r){return function(t){return t.lift(new I9n(r))}}J0e.buffer=E9n;var I9n=function(){function r(e){this.closingNotifier=e}return r.prototype.call=function(e,t){return t.subscribe(new C9n(e,this.closingNotifier))},r}(),C9n=function(r){T9n(e,r);function e(t,n){var a=r.call(this,t)||this;return a.buffer=[],a.add(GUe.innerSubscribe(n,new GUe.SimpleInnerSubscriber(a))),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(GUe.SimpleOuterSubscriber)});var QMt=E(Z0e=>{"use strict";f();d();var $Mt=Z0e&&Z0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Z0e,"__esModule",{value:!0});var YMt=xr();function A9n(r,e){return e===void 0&&(e=null),function(n){return n.lift(new k9n(r,e))}}Z0e.bufferCount=A9n;var k9n=function(){function r(e,t){this.bufferSize=e,this.startBufferEvery=t,!t||e===t?this.subscriberClass=S9n:this.subscriberClass=P9n}return r.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},r}(),S9n=function(r){$Mt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.bufferSize=n,a.buffer=[],a}return e.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},e.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),r.prototype._complete.call(this)},e}(YMt.Subscriber),P9n=function(r){$Mt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=a,i.buffers=[],i.count=0,i}return e.prototype._next=function(t){var n=this,a=n.bufferSize,i=n.startBufferEvery,s=n.buffers,o=n.count;this.count++,o%i===0&&s.push([]);for(var c=s.length;c--;){var u=s[c];u.push(t),u.length===a&&(s.splice(c,1),this.destination.next(u))}},e.prototype._complete=function(){for(var t=this,n=t.buffers,a=t.destination;n.length>0;){var i=n.shift();i.length>0&&a.next(i)}r.prototype._complete.call(this)},e}(YMt.Subscriber)});var XMt=E(X0e=>{"use strict";f();d();var R9n=X0e&&X0e.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(X0e,"__esModule",{value:!0});var M9n=kl(),B9n=xr(),D9n=pm();function N9n(r){var e=arguments.length,t=M9n.async;D9n.isScheduler(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new O9n(r,n,a,t))}}X0e.bufferTime=N9n;var O9n=function(){function r(e,t,n,a){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new L9n(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},r}(),F9n=function(){function r(){this.buffer=[]}return r}(),L9n=function(r){R9n(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=a,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var c=o.openContext();if(o.timespanOnly=a==null||a<0,o.timespanOnly){var u={subscriber:o,context:c,bufferTimeSpan:n};o.add(c.closeAction=s.schedule(JMt,n,u))}else{var l={subscriber:o,context:c},p={bufferTimeSpan:n,bufferCreationInterval:a,subscriber:o,scheduler:s};o.add(c.closeAction=s.schedule(ZMt,n,l)),o.add(s.schedule(q9n,a,p))}return o}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i,s=0;s0;){var i=n.shift();a.next(i.buffer)}r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var a=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:a};this.add(t.closeAction=this.scheduler.schedule(JMt,a,i))}},e.prototype.openContext=function(){var t=new F9n;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts,a=n?n.indexOf(t):-1;a>=0&&n.splice(n.indexOf(t),1)},e}(B9n.Subscriber);function JMt(r){var e=r.subscriber,t=r.context;t&&e.closeContext(t),e.closed||(r.context=e.openContext(),r.context.closeAction=this.schedule(r,r.bufferTimeSpan))}function q9n(r){var e=r.bufferCreationInterval,t=r.bufferTimeSpan,n=r.subscriber,a=r.scheduler,i=n.openContext(),s=this;n.closed||(n.add(i.closeAction=a.schedule(ZMt,t,{subscriber:n,context:i})),s.schedule(r,e))}function ZMt(r){var e=r.subscriber,t=r.context;e.closeContext(t)}});var tBt=E(eue=>{"use strict";f();d();var W9n=eue&&eue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(eue,"__esModule",{value:!0});var U9n=Gc(),eBt=h6(),H9n=p6();function j9n(r,e){return function(n){return n.lift(new z9n(r,e))}}eue.bufferToggle=j9n;var z9n=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new K9n(e,this.openings,this.closingSelector))},r}(),K9n=function(r){W9n(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.closingSelector=a,i.contexts=[],i.add(eBt.subscribeToResult(i,n)),i}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i=0;i0;){var a=n.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},e.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._complete.call(this)},e.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var n=this.closingSelector,a=n.call(this,t);a&&this.trySubscribe(a)}catch(i){this._error(i)}},e.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var a=t.buffer,i=t.subscription;this.destination.next(a),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var n=this.contexts,a=[],i=new U9n.Subscription,s={buffer:a,subscription:i};n.push(s);var o=eBt.subscribeToResult(this,t,s);!o||o.closed?this.closeBuffer(s):(o.context=s,this.add(o),i.add(o))},e}(H9n.OuterSubscriber)});var rBt=E(tue=>{"use strict";f();d();var G9n=tue&&tue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tue,"__esModule",{value:!0});var V9n=Gc(),VUe=io();function $9n(r){return function(e){return e.lift(new Y9n(r))}}tue.bufferWhen=$9n;var Y9n=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new Q9n(e,this.closingSelector))},r}(),Q9n=function(r){G9n(e,r);function e(t,n){var a=r.call(this,t)||this;return a.closingSelector=n,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];var a;try{var i=this.closingSelector;a=i()}catch(s){return this.error(s)}t=new V9n.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(VUe.innerSubscribe(a,new VUe.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(VUe.SimpleOuterSubscriber)});var nBt=E(rue=>{"use strict";f();d();var J9n=rue&&rue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rue,"__esModule",{value:!0});var $Ue=io();function Z9n(r){return function(t){var n=new X9n(r),a=t.lift(n);return n.caught=a}}rue.catchError=Z9n;var X9n=function(){function r(e){this.selector=e}return r.prototype.call=function(e,t){return t.subscribe(new e7n(e,this.selector,this.caught))},r}(),e7n=function(r){J9n(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.selector=n,i.caught=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(s){r.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new $Ue.SimpleInnerSubscriber(this);this.add(a);var i=$Ue.innerSubscribe(n,a);i!==a&&this.add(i)}},e}($Ue.SimpleOuterSubscriber)});var aBt=E(YUe=>{"use strict";f();d();Object.defineProperty(YUe,"__esModule",{value:!0});var t7n=M3e();function r7n(r){return function(e){return e.lift(new t7n.CombineLatestOperator(r))}}YUe.combineAll=r7n});var iBt=E(QUe=>{"use strict";f();d();Object.defineProperty(QUe,"__esModule",{value:!0});var n7n=Al(),a7n=M3e(),i7n=hm();function s7n(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(JUe,"__esModule",{value:!0});var o7n=H0e();function c7n(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(ZUe,"__esModule",{value:!0});var u7n=U0e();function l7n(r,e){return u7n.mergeMap(r,e,1)}ZUe.concatMap=l7n});var oBt=E(eHe=>{"use strict";f();d();Object.defineProperty(eHe,"__esModule",{value:!0});var f7n=XUe();function d7n(r,e){return f7n.concatMap(function(){return r},e)}eHe.concatMapTo=d7n});var cBt=E(nue=>{"use strict";f();d();var p7n=nue&&nue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nue,"__esModule",{value:!0});var h7n=xr();function m7n(r){return function(e){return e.lift(new y7n(r,e))}}nue.count=m7n;var y7n=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new b7n(e,this.predicate,this.source))},r}(),b7n=function(r){p7n(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.count=0,i.index=0,i}return e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var n;try{n=this.predicate(t,this.index++,this.source)}catch(a){this.destination.error(a);return}n&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(h7n.Subscriber)});var uBt=E(aue=>{"use strict";f();d();var g7n=aue&&aue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(aue,"__esModule",{value:!0});var tHe=io();function v7n(r){return function(e){return e.lift(new w7n(r))}}aue.debounce=v7n;var w7n=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new x7n(e,this.durationSelector))},r}(),x7n=function(r){g7n(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){try{var n=this.durationSelector.call(this,t);n&&this._tryNext(t,n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,n){var a=this.durationSubscription;this.value=t,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=tHe.innerSubscribe(n,new tHe.SimpleInnerSubscriber(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,r.prototype._next.call(this,t)}},e}(tHe.SimpleOuterSubscriber)});var lBt=E(iue=>{"use strict";f();d();var _7n=iue&&iue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(iue,"__esModule",{value:!0});var T7n=xr(),E7n=kl();function I7n(r,e){return e===void 0&&(e=E7n.async),function(t){return t.lift(new C7n(r,e))}}iue.debounceTime=I7n;var C7n=function(){function r(e,t){this.dueTime=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new A7n(e,this.dueTime,this.scheduler))},r}(),A7n=function(r){_7n(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.dueTime=n,i.scheduler=a,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(k7n,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(T7n.Subscriber);function k7n(r){r.debouncedNext()}});var _te=E(sue=>{"use strict";f();d();var S7n=sue&&sue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sue,"__esModule",{value:!0});var P7n=xr();function R7n(r){return r===void 0&&(r=null),function(e){return e.lift(new M7n(r))}}sue.defaultIfEmpty=R7n;var M7n=function(){function r(e){this.defaultValue=e}return r.prototype.call=function(e,t){return t.subscribe(new B7n(e,this.defaultValue))},r}(),B7n=function(r){S7n(e,r);function e(t,n){var a=r.call(this,t)||this;return a.defaultValue=n,a.isEmpty=!0,a}return e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(P7n.Subscriber)});var nHe=E(rHe=>{"use strict";f();d();Object.defineProperty(rHe,"__esModule",{value:!0});function D7n(r){return r instanceof Date&&!isNaN(+r)}rHe.isDate=D7n});var dBt=E(oue=>{"use strict";f();d();var N7n=oue&&oue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(oue,"__esModule",{value:!0});var O7n=kl(),F7n=nHe(),L7n=xr(),fBt=A0e();function q7n(r,e){e===void 0&&(e=O7n.async);var t=F7n.isDate(r),n=t?+r-e.now():Math.abs(r);return function(a){return a.lift(new W7n(n,e))}}oue.delay=q7n;var W7n=function(){function r(e,t){this.delay=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new U7n(e,this.delay,this.scheduler))},r}(),U7n=function(r){N7n(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.delay=n,i.scheduler=a,i.queue=[],i.active=!1,i.errored=!1,i}return e.dispatch=function(t){for(var n=t.source,a=n.queue,i=t.scheduler,s=t.destination;a.length>0&&a[0].time-i.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var o=Math.max(0,a[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),n.active=!1},e.prototype._schedule=function(t){this.active=!0;var n=this.destination;n.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var n=this.scheduler,a=new H7n(n.now()+this.delay,t);this.queue.push(a),this.active===!1&&this._schedule(n)}},e.prototype._next=function(t){this.scheduleNotification(fBt.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(fBt.Notification.createComplete()),this.unsubscribe()},e}(L7n.Subscriber),H7n=function(){function r(e,t){this.time=e,this.notification=t}return r}()});var hBt=E(cue=>{"use strict";f();d();var aHe=cue&&cue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cue,"__esModule",{value:!0});var j7n=xr(),z7n=Qn(),K7n=p6(),G7n=h6();function V7n(r,e){return e?function(t){return new Y7n(t,e).lift(new pBt(r))}:function(t){return t.lift(new pBt(r))}}cue.delayWhen=V7n;var pBt=function(){function r(e){this.delayDurationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new $7n(e,this.delayDurationSelector))},r}(),$7n=function(r){aHe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.delayDurationSelector=n,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(t,n){this._error(t)},e.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},e.prototype._next=function(t){var n=this.index++;try{var a=this.delayDurationSelector(t,n);a&&this.tryDelay(a,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return n!==-1&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},e.prototype.tryDelay=function(t,n){var a=G7n.subscribeToResult(this,t,n);if(a&&!a.closed){var i=this.destination;i.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(K7n.OuterSubscriber),Y7n=function(r){aHe(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subscriptionDelay=n,a}return e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new Q7n(t,this.source))},e}(z7n.Observable),Q7n=function(r){aHe(e,r);function e(t,n){var a=r.call(this)||this;return a.parent=t,a.source=n,a.sourceSubscribed=!1,a}return e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(j7n.Subscriber)});var mBt=E(uue=>{"use strict";f();d();var J7n=uue&&uue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uue,"__esModule",{value:!0});var Z7n=xr();function X7n(){return function(e){return e.lift(new eIn)}}uue.dematerialize=X7n;var eIn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new tIn(e))},r}(),tIn=function(r){J7n(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){t.observe(this.destination)},e}(Z7n.Subscriber)});var bBt=E(Tte=>{"use strict";f();d();var rIn=Tte&&Tte.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tte,"__esModule",{value:!0});var iHe=io();function nIn(r,e){return function(t){return t.lift(new aIn(r,e))}}Tte.distinct=nIn;var aIn=function(){function r(e,t){this.keySelector=e,this.flushes=t}return r.prototype.call=function(e,t){return t.subscribe(new yBt(e,this.keySelector,this.flushes))},r}(),yBt=function(r){rIn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=n,i.values=new Set,a&&i.add(iHe.innerSubscribe(a,new iHe.SimpleInnerSubscriber(i))),i}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var n,a=this.destination;try{n=this.keySelector(t)}catch(i){a.error(i);return}this._finalizeNext(n,t)},e.prototype._finalizeNext=function(t,n){var a=this.values;a.has(t)||(a.add(t),this.destination.next(n))},e}(iHe.SimpleOuterSubscriber);Tte.DistinctSubscriber=yBt});var sHe=E(lue=>{"use strict";f();d();var iIn=lue&&lue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lue,"__esModule",{value:!0});var sIn=xr();function oIn(r,e){return function(t){return t.lift(new cIn(r,e))}}lue.distinctUntilChanged=oIn;var cIn=function(){function r(e,t){this.compare=e,this.keySelector=t}return r.prototype.call=function(e,t){return t.subscribe(new uIn(e,this.compare,this.keySelector))},r}(),uIn=function(r){iIn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=a,i.hasKey=!1,typeof n=="function"&&(i.compare=n),i}return e.prototype.compare=function(t,n){return t===n},e.prototype._next=function(t){var n;try{var a=this.keySelector;n=a?a(t):t}catch(o){return this.destination.error(o)}var i=!1;if(this.hasKey)try{var s=this.compare;i=s(this.key,n)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},e}(sIn.Subscriber)});var gBt=E(oHe=>{"use strict";f();d();Object.defineProperty(oHe,"__esModule",{value:!0});var lIn=sHe();function fIn(r,e){return lIn.distinctUntilChanged(function(t,n){return e?e(t[r],n[r]):t[r]===n[r]})}oHe.distinctUntilKeyChanged=fIn});var due=E(fue=>{"use strict";f();d();var dIn=fue&&fue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fue,"__esModule",{value:!0});var pIn=ste(),hIn=xr();function mIn(r){return r===void 0&&(r=gIn),function(e){return e.lift(new yIn(r))}}fue.throwIfEmpty=mIn;var yIn=function(){function r(e){this.errorFactory=e}return r.prototype.call=function(e,t){return t.subscribe(new bIn(e,this.errorFactory))},r}(),bIn=function(r){dIn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.errorFactory=n,a.hasValue=!1,a}return e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},e}(hIn.Subscriber);function gIn(){return new pIn.EmptyError}});var c8e=E(pue=>{"use strict";f();d();var vIn=pue&&pue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pue,"__esModule",{value:!0});var wIn=xr(),xIn=ite(),_In=dm();function TIn(r){return function(e){return r===0?_In.empty():e.lift(new EIn(r))}}pue.take=TIn;var EIn=function(){function r(e){if(this.total=e,this.total<0)throw new xIn.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new IIn(e,this.total))},r}(),IIn=function(r){vIn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){var n=this.total,a=++this.count;a<=n&&(this.destination.next(t),a===n&&(this.destination.complete(),this.unsubscribe()))},e}(wIn.Subscriber)});var wBt=E(cHe=>{"use strict";f();d();Object.defineProperty(cHe,"__esModule",{value:!0});var vBt=ite(),CIn=Q3(),AIn=due(),kIn=_te(),SIn=c8e();function PIn(r,e){if(r<0)throw new vBt.ArgumentOutOfRangeError;var t=arguments.length>=2;return function(n){return n.pipe(CIn.filter(function(a,i){return i===r}),SIn.take(1),t?kIn.defaultIfEmpty(e):AIn.throwIfEmpty(function(){return new vBt.ArgumentOutOfRangeError}))}}cHe.elementAt=PIn});var xBt=E(uHe=>{"use strict";f();d();Object.defineProperty(uHe,"__esModule",{value:!0});var RIn=H0e(),MIn=I0e();function BIn(){for(var r=[],e=0;e{"use strict";f();d();var DIn=hue&&hue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hue,"__esModule",{value:!0});var NIn=xr();function OIn(r,e){return function(t){return t.lift(new FIn(r,e,t))}}hue.every=OIn;var FIn=function(){function r(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return r.prototype.call=function(e,t){return t.subscribe(new LIn(e,this.predicate,this.thisArg,this.source))},r}(),LIn=function(r){DIn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.predicate=n,s.thisArg=a,s.source=i,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(a){this.destination.error(a);return}n||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(NIn.Subscriber)});var TBt=E(mue=>{"use strict";f();d();var qIn=mue&&mue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mue,"__esModule",{value:!0});var lHe=io();function WIn(){return function(r){return r.lift(new UIn)}}mue.exhaust=WIn;var UIn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new HIn(e))},r}(),HIn=function(r){qIn(e,r);function e(t){var n=r.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(lHe.innerSubscribe(t,new lHe.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(lHe.SimpleOuterSubscriber)});var IBt=E(yue=>{"use strict";f();d();var jIn=yue&&yue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yue,"__esModule",{value:!0});var zIn=bd(),KIn=hm(),fHe=io();function EBt(r,e){return e?function(t){return t.pipe(EBt(function(n,a){return KIn.from(r(n,a)).pipe(zIn.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new GIn(r))}}yue.exhaustMap=EBt;var GIn=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new VIn(e,this.project))},r}(),VIn=function(r){jIn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this.hasSubscription=!0,this._innerSub(n)},e.prototype._innerSub=function(t){var n=new fHe.SimpleInnerSubscriber(this),a=this.destination;a.add(n);var i=fHe.innerSubscribe(t,n);i!==n&&a.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(fHe.SimpleOuterSubscriber)});var kBt=E(n8=>{"use strict";f();d();var $In=n8&&n8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(n8,"__esModule",{value:!0});var dHe=io();function YIn(r,e,t){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new CBt(r,e,t))}}n8.expand=YIn;var CBt=function(){function r(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return r.prototype.call=function(e,t){return t.subscribe(new ABt(e,this.project,this.concurrent,this.scheduler))},r}();n8.ExpandOperator=CBt;var ABt=function(r){$In(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.project=n,s.concurrent=a,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,a0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(dHe.SimpleOuterSubscriber);n8.ExpandSubscriber=ABt});var SBt=E(bue=>{"use strict";f();d();var QIn=bue&&bue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(bue,"__esModule",{value:!0});var JIn=xr(),ZIn=Gc();function XIn(r){return function(e){return e.lift(new eCn(r))}}bue.finalize=XIn;var eCn=function(){function r(e){this.callback=e}return r.prototype.call=function(e,t){return t.subscribe(new tCn(e,this.callback))},r}(),tCn=function(r){QIn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.add(new ZIn.Subscription(n)),a}return e}(JIn.Subscriber)});var pHe=E(a8=>{"use strict";f();d();var rCn=a8&&a8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a8,"__esModule",{value:!0});var nCn=xr();function aCn(r,e){if(typeof r!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new PBt(r,t,!1,e))}}a8.find=aCn;var PBt=function(){function r(e,t,n,a){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=a}return r.prototype.call=function(e,t){return t.subscribe(new RBt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},r}();a8.FindValueOperator=PBt;var RBt=function(r){rCn(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.predicate=n,o.source=a,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},e.prototype._next=function(t){var n=this,a=n.predicate,i=n.thisArg,s=this.index++;try{var o=a.call(i||this,t,s,this.source);o&&this.notifyComplete(this.yieldIndex?s:t)}catch(c){this.destination.error(c)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(nCn.Subscriber);a8.FindValueSubscriber=RBt});var MBt=E(hHe=>{"use strict";f();d();Object.defineProperty(hHe,"__esModule",{value:!0});var iCn=pHe();function sCn(r,e){return function(t){return t.lift(new iCn.FindValueOperator(r,t,!0,e))}}hHe.findIndex=sCn});var BBt=E(mHe=>{"use strict";f();d();Object.defineProperty(mHe,"__esModule",{value:!0});var oCn=ste(),cCn=Q3(),uCn=c8e(),lCn=_te(),fCn=due(),dCn=f6();function pCn(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?cCn.filter(function(a,i){return r(a,i,n)}):dCn.identity,uCn.take(1),t?lCn.defaultIfEmpty(e):fCn.throwIfEmpty(function(){return new oCn.EmptyError}))}}mHe.first=pCn});var DBt=E(gue=>{"use strict";f();d();var hCn=gue&&gue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gue,"__esModule",{value:!0});var mCn=xr();function yCn(){return function(e){return e.lift(new bCn)}}gue.ignoreElements=yCn;var bCn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new gCn(e))},r}(),gCn=function(r){hCn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype._next=function(t){},e}(mCn.Subscriber)});var NBt=E(vue=>{"use strict";f();d();var vCn=vue&&vue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vue,"__esModule",{value:!0});var wCn=xr();function xCn(){return function(r){return r.lift(new _Cn)}}vue.isEmpty=xCn;var _Cn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new TCn(e))},r}(),TCn=function(r){vCn(e,r);function e(t){return r.call(this,t)||this}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(wCn.Subscriber)});var u8e=E(wue=>{"use strict";f();d();var ECn=wue&&wue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wue,"__esModule",{value:!0});var ICn=xr(),CCn=ite(),ACn=dm();function kCn(r){return function(t){return r===0?ACn.empty():t.lift(new SCn(r))}}wue.takeLast=kCn;var SCn=function(){function r(e){if(this.total=e,this.total<0)throw new CCn.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new PCn(e,this.total))},r}(),PCn=function(r){ECn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.ring=new Array,a.count=0,a}return e.prototype._next=function(t){var n=this.ring,a=this.total,i=this.count++;if(n.length0)for(var a=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s{"use strict";f();d();Object.defineProperty(yHe,"__esModule",{value:!0});var RCn=ste(),MCn=Q3(),BCn=u8e(),DCn=due(),NCn=_te(),OCn=f6();function FCn(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?MCn.filter(function(a,i){return r(a,i,n)}):OCn.identity,BCn.takeLast(1),t?NCn.defaultIfEmpty(e):DCn.throwIfEmpty(function(){return new RCn.EmptyError}))}}yHe.last=FCn});var FBt=E(xue=>{"use strict";f();d();var LCn=xue&&xue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xue,"__esModule",{value:!0});var qCn=xr();function WCn(r){return function(e){return e.lift(new UCn(r))}}xue.mapTo=WCn;var UCn=function(){function r(e){this.value=e}return r.prototype.call=function(e,t){return t.subscribe(new HCn(e,this.value))},r}(),HCn=function(r){LCn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.value=n,a}return e.prototype._next=function(t){this.destination.next(this.value)},e}(qCn.Subscriber)});var LBt=E(_ue=>{"use strict";f();d();var jCn=_ue&&_ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_ue,"__esModule",{value:!0});var zCn=xr(),bHe=A0e();function KCn(){return function(e){return e.lift(new GCn)}}_ue.materialize=KCn;var GCn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new VCn(e))},r}(),VCn=function(r){jCn(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){this.destination.next(bHe.Notification.createNext(t))},e.prototype._error=function(t){var n=this.destination;n.next(bHe.Notification.createError(t)),n.complete()},e.prototype._complete=function(){var t=this.destination;t.next(bHe.Notification.createComplete()),t.complete()},e}(zCn.Subscriber)});var l8e=E(Tue=>{"use strict";f();d();var $Cn=Tue&&Tue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tue,"__esModule",{value:!0});var YCn=xr();function QCn(r,e){var t=!1;return arguments.length>=2&&(t=!0),function(a){return a.lift(new JCn(r,e,t))}}Tue.scan=QCn;var JCn=function(){function r(e,t,n){n===void 0&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return r.prototype.call=function(e,t){return t.subscribe(new ZCn(e,this.accumulator,this.seed,this.hasSeed))},r}(),ZCn=function(r){$Cn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s._seed=a,s.hasSeed=i,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},e.prototype._tryNext=function(t){var n=this.index++,a;try{a=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=a,this.destination.next(a)},e}(YCn.Subscriber)});var Eue=E(gHe=>{"use strict";f();d();Object.defineProperty(gHe,"__esModule",{value:!0});var qBt=l8e(),WBt=u8e(),XCn=_te(),UBt=_3e();function eAn(r,e){return arguments.length>=2?function(n){return UBt.pipe(qBt.scan(r,e),WBt.takeLast(1),XCn.defaultIfEmpty(e))(n)}:function(n){return UBt.pipe(qBt.scan(function(a,i,s){return r(a,i,s+1)}),WBt.takeLast(1))(n)}}gHe.reduce=eAn});var HBt=E(vHe=>{"use strict";f();d();Object.defineProperty(vHe,"__esModule",{value:!0});var tAn=Eue();function rAn(r){var e=typeof r=="function"?function(t,n){return r(t,n)>0?t:n}:function(t,n){return t>n?t:n};return tAn.reduce(e)}vHe.max=rAn});var jBt=E(wHe=>{"use strict";f();d();Object.defineProperty(wHe,"__esModule",{value:!0});var nAn=sUe();function aAn(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(xHe,"__esModule",{value:!0});var zBt=U0e();function iAn(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?zBt.mergeMap(function(){return r},e,t):(typeof e=="number"&&(t=e),zBt.mergeMap(function(){return r},t))}xHe.mergeMapTo=iAn});var $Bt=E(i8=>{"use strict";f();d();var sAn=i8&&i8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(i8,"__esModule",{value:!0});var _He=io();function oAn(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(n){return n.lift(new GBt(r,e,t))}}i8.mergeScan=oAn;var GBt=function(){function r(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return r.prototype.call=function(e,t){return t.subscribe(new VBt(e,this.accumulator,this.seed,this.concurrent))},r}();i8.MergeScanOperator=GBt;var VBt=function(r){sAn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s.acc=a,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(t){if(this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(_He.SimpleOuterSubscriber);i8.MergeScanSubscriber=VBt});var YBt=E(THe=>{"use strict";f();d();Object.defineProperty(THe,"__esModule",{value:!0});var cAn=Eue();function uAn(r){var e=typeof r=="function"?function(t,n){return r(t,n)<0?t:n}:function(t,n){return t{"use strict";f();d();Object.defineProperty(f8e,"__esModule",{value:!0});var lAn=nWe();function fAn(r,e){return function(n){var a;if(typeof r=="function"?a=r:a=function(){return r},typeof e=="function")return n.lift(new QBt(a,e));var i=Object.create(n,lAn.connectableObservableDescriptor);return i.source=n,i.subjectFactory=a,i}}f8e.multicast=fAn;var QBt=function(){function r(e,t){this.subjectFactory=e,this.selector=t}return r.prototype.call=function(e,t){var n=this.selector,a=this.subjectFactory(),i=n(a).subscribe(e);return i.add(t.subscribe(a)),i},r}();f8e.MulticastOperator=QBt});var XBt=E(Ete=>{"use strict";f();d();var dAn=Ete&&Ete.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ete,"__esModule",{value:!0});var pAn=hm(),JBt=Al(),EHe=io();function hAn(){for(var r=[],e=0;e{"use strict";f();d();var bAn=Iue&&Iue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Iue,"__esModule",{value:!0});var gAn=xr();function vAn(){return function(r){return r.lift(new wAn)}}Iue.pairwise=vAn;var wAn=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new xAn(e))},r}(),xAn=function(r){bAn(e,r);function e(t){var n=r.call(this,t)||this;return n.hasPrev=!1,n}return e.prototype._next=function(t){var n;this.hasPrev?n=[this.prev,t]:this.hasPrev=!0,this.prev=t,n&&this.destination.next(n)},e}(gAn.Subscriber)});var rDt=E(IHe=>{"use strict";f();d();Object.defineProperty(IHe,"__esModule",{value:!0});var _An=fUe(),tDt=Q3();function TAn(r,e){return function(t){return[tDt.filter(r,e)(t),tDt.filter(_An.not(r,e))(t)]}}IHe.partition=TAn});var nDt=E(CHe=>{"use strict";f();d();Object.defineProperty(CHe,"__esModule",{value:!0});var EAn=bd();function IAn(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(AHe,"__esModule",{value:!0});var aDt=al(),iDt=s8();function AAn(r){return r?iDt.multicast(function(){return new aDt.Subject},r):iDt.multicast(new aDt.Subject)}AHe.publish=AAn});var oDt=E(kHe=>{"use strict";f();d();Object.defineProperty(kHe,"__esModule",{value:!0});var kAn=sWe(),SAn=s8();function PAn(r){return function(e){return SAn.multicast(new kAn.BehaviorSubject(r))(e)}}kHe.publishBehavior=PAn});var cDt=E(SHe=>{"use strict";f();d();Object.defineProperty(SHe,"__esModule",{value:!0});var RAn=P0e(),MAn=s8();function BAn(){return function(r){return MAn.multicast(new RAn.AsyncSubject)(r)}}SHe.publishLast=BAn});var uDt=E(PHe=>{"use strict";f();d();Object.defineProperty(PHe,"__esModule",{value:!0});var DAn=k3e(),NAn=s8();function OAn(r,e,t,n){t&&typeof t!="function"&&(n=t);var a=typeof t=="function"?t:void 0,i=new DAn.ReplaySubject(r,e,n);return function(s){return NAn.multicast(function(){return i},a)(s)}}PHe.publishReplay=OAn});var lDt=E(RHe=>{"use strict";f();d();Object.defineProperty(RHe,"__esModule",{value:!0});var FAn=Al(),LAn=pUe();function qAn(){for(var r=[],e=0;e{"use strict";f();d();var WAn=Cue&&Cue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Cue,"__esModule",{value:!0});var UAn=xr(),HAn=dm();function jAn(r){return r===void 0&&(r=-1),function(e){return r===0?HAn.empty():r<0?e.lift(new fDt(-1,e)):e.lift(new fDt(r-1,e))}}Cue.repeat=jAn;var fDt=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new zAn(e,this.count,this.source))},r}(),zAn=function(r){WAn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,a=t.count;if(a===0)return r.prototype.complete.call(this);a>-1&&(this.count=a-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(UAn.Subscriber)});var pDt=E(Aue=>{"use strict";f();d();var KAn=Aue&&Aue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Aue,"__esModule",{value:!0});var GAn=al(),MHe=io();function VAn(r){return function(e){return e.lift(new $An(r))}}Aue.repeatWhen=VAn;var $An=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new YAn(e,this.notifier,t))},r}(),YAn=function(r){KAn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i.sourceIsBeingSubscribedTo=!0,i}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return r.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this,n=t.notifications,a=t.retriesSubscription;n&&(n.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},e.prototype.subscribeToRetries=function(){this.notifications=new GAn.Subject;var t;try{var n=this.notifier;t=n(this.notifications)}catch{return r.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=MHe.innerSubscribe(t,new MHe.SimpleInnerSubscriber(this))},e}(MHe.SimpleOuterSubscriber)});var hDt=E(kue=>{"use strict";f();d();var QAn=kue&&kue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kue,"__esModule",{value:!0});var JAn=xr();function ZAn(r){return r===void 0&&(r=-1),function(e){return e.lift(new XAn(r,e))}}kue.retry=ZAn;var XAn=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new ekn(e,this.count,this.source))},r}(),ekn=function(r){QAn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this,a=n.source,i=n.count;if(i===0)return r.prototype.error.call(this,t);i>-1&&(this.count=i-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(JAn.Subscriber)});var mDt=E(Sue=>{"use strict";f();d();var tkn=Sue&&Sue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Sue,"__esModule",{value:!0});var rkn=al(),BHe=io();function nkn(r){return function(e){return e.lift(new akn(r,e))}}Sue.retryWhen=nkn;var akn=function(){function r(e,t){this.notifier=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new ikn(e,this.notifier,this.source))},r}(),ikn=function(r){tkn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this.errors,a=this.retries,i=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{n=new rkn.Subject;try{var s=this.notifier;a=s(n)}catch(o){return r.prototype.error.call(this,o)}i=BHe.innerSubscribe(a,new BHe.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=a,this.retriesSubscription=i,n.next(t)}},e.prototype._unsubscribe=function(){var t=this,n=t.errors,a=t.retriesSubscription;n&&(n.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(BHe.SimpleOuterSubscriber)});var yDt=E(Pue=>{"use strict";f();d();var skn=Pue&&Pue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Pue,"__esModule",{value:!0});var DHe=io();function okn(r){return function(e){return e.lift(new ckn(r))}}Pue.sample=okn;var ckn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new ukn(e),a=t.subscribe(n);return a.add(DHe.innerSubscribe(this.notifier,new DHe.SimpleInnerSubscriber(n))),a},r}(),ukn=function(r){skn(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasValue=!1,t}return e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(DHe.SimpleOuterSubscriber)});var bDt=E(Rue=>{"use strict";f();d();var lkn=Rue&&Rue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rue,"__esModule",{value:!0});var fkn=xr(),dkn=kl();function pkn(r,e){return e===void 0&&(e=dkn.async),function(t){return t.lift(new hkn(r,e))}}Rue.sampleTime=pkn;var hkn=function(){function r(e,t){this.period=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new mkn(e,this.period,this.scheduler))},r}(),mkn=function(r){lkn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.period=n,i.scheduler=a,i.hasValue=!1,i.add(a.schedule(ykn,n,{subscriber:i,period:n})),i}return e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(fkn.Subscriber);function ykn(r){var e=r.subscriber,t=r.period;e.notifyNext(),this.schedule(r,t)}});var _Dt=E(o8=>{"use strict";f();d();var gDt=o8&&o8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(o8,"__esModule",{value:!0});var vDt=xr();function bkn(r,e){return function(t){return t.lift(new wDt(r,e))}}o8.sequenceEqual=bkn;var wDt=function(){function r(e,t){this.compareTo=e,this.comparator=t}return r.prototype.call=function(e,t){return t.subscribe(new xDt(e,this.compareTo,this.comparator))},r}();o8.SequenceEqualOperator=wDt;var xDt=function(r){gDt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.compareTo=n,i.comparator=a,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new gkn(t,i))),i}return e.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,n=t._a,a=t._b,i=t.comparator;n.length>0&&a.length>0;){var s=n.shift(),o=a.shift(),c=!1;try{c=i?i(s,o):s===o}catch(u){this.destination.error(u)}c||this.emit(!1)}},e.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}(vDt.Subscriber);o8.SequenceEqualSubscriber=xDt;var gkn=function(r){gDt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.parent=n,a}return e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(vDt.Subscriber)});var TDt=E(NHe=>{"use strict";f();d();Object.defineProperty(NHe,"__esModule",{value:!0});var vkn=s8(),wkn=E3e(),xkn=al();function _kn(){return new xkn.Subject}function Tkn(){return function(r){return wkn.refCount()(vkn.multicast(_kn)(r))}}NHe.share=Tkn});var EDt=E(OHe=>{"use strict";f();d();Object.defineProperty(OHe,"__esModule",{value:!0});var Ekn=k3e();function Ikn(r,e,t){var n;return r&&typeof r=="object"?n=r:n={bufferSize:r,windowTime:e,refCount:!1,scheduler:t},function(a){return a.lift(Ckn(n))}}OHe.shareReplay=Ikn;function Ckn(r){var e=r.bufferSize,t=e===void 0?Number.POSITIVE_INFINITY:e,n=r.windowTime,a=n===void 0?Number.POSITIVE_INFINITY:n,i=r.refCount,s=r.scheduler,o,c=0,u,l=!1,p=!1;return function(m){c++;var y;!o||l?(l=!1,o=new Ekn.ReplaySubject(t,a,s),y=o.subscribe(this),u=m.subscribe({next:function(C){o.next(C)},error:function(C){l=!0,o.error(C)},complete:function(){p=!0,u=void 0,o.complete()}}),p&&(u=void 0)):y=o.subscribe(this),this.add(function(){c--,y.unsubscribe(),y=void 0,u&&!p&&i&&c===0&&(u.unsubscribe(),u=void 0,o=void 0)})}}});var IDt=E(Mue=>{"use strict";f();d();var Akn=Mue&&Mue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Mue,"__esModule",{value:!0});var kkn=xr(),Skn=ste();function Pkn(r){return function(e){return e.lift(new Rkn(r,e))}}Mue.single=Pkn;var Rkn=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new Mkn(e,this.predicate,this.source))},r}(),Mkn=function(r){Akn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.seenValue=!1,i.index=0,i}return e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},e.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Skn.EmptyError)},e}(kkn.Subscriber)});var CDt=E(Bue=>{"use strict";f();d();var Bkn=Bue&&Bue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bue,"__esModule",{value:!0});var Dkn=xr();function Nkn(r){return function(e){return e.lift(new Okn(r))}}Bue.skip=Nkn;var Okn=function(){function r(e){this.total=e}return r.prototype.call=function(e,t){return t.subscribe(new Fkn(e,this.total))},r}(),Fkn=function(r){Bkn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(Dkn.Subscriber)});var kDt=E(Due=>{"use strict";f();d();var Lkn=Due&&Due.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Due,"__esModule",{value:!0});var ADt=xr(),qkn=ite();function Wkn(r){return function(e){return e.lift(new Ukn(r))}}Due.skipLast=Wkn;var Ukn=function(){function r(e){if(this._skipCount=e,this._skipCount<0)throw new qkn.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return this._skipCount===0?t.subscribe(new ADt.Subscriber(e)):t.subscribe(new Hkn(e,this._skipCount))},r}(),Hkn=function(r){Lkn(e,r);function e(t,n){var a=r.call(this,t)||this;return a._skipCount=n,a._count=0,a._ring=new Array(n),a}return e.prototype._next=function(t){var n=this._skipCount,a=this._count++;if(a{"use strict";f();d();var jkn=Nue&&Nue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nue,"__esModule",{value:!0});var FHe=io();function zkn(r){return function(e){return e.lift(new Kkn(r))}}Nue.skipUntil=zkn;var Kkn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new Gkn(e,this.notifier))},r}(),Gkn=function(r){jkn(e,r);function e(t,n){var a=r.call(this,t)||this;a.hasValue=!1;var i=new FHe.SimpleInnerSubscriber(a);a.add(i),a.innerSubscription=i;var s=FHe.innerSubscribe(n,i);return s!==i&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(t){this.hasValue&&r.prototype._next.call(this,t)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(FHe.SimpleOuterSubscriber)});var PDt=E(Oue=>{"use strict";f();d();var Vkn=Oue&&Oue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Oue,"__esModule",{value:!0});var $kn=xr();function Ykn(r){return function(e){return e.lift(new Qkn(r))}}Oue.skipWhile=Ykn;var Qkn=function(){function r(e){this.predicate=e}return r.prototype.call=function(e,t){return t.subscribe(new Jkn(e,this.predicate))},r}(),Jkn=function(r){Vkn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.predicate=n,a.skipping=!0,a.index=0,a}return e.prototype._next=function(t){var n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)},e.prototype.tryCallPredicate=function(t){try{var n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(a){this.destination.error(a)}},e}($kn.Subscriber)});var MDt=E(LHe=>{"use strict";f();d();Object.defineProperty(LHe,"__esModule",{value:!0});var RDt=H0e(),Zkn=pm();function Xkn(){for(var r=[],e=0;e{"use strict";f();d();var eSn=Fue&&Fue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Fue,"__esModule",{value:!0});var tSn=Qn(),qHe=vWe(),rSn=j0e(),nSn=function(r){eSn(e,r);function e(t,n,a){n===void 0&&(n=0),a===void 0&&(a=qHe.asap);var i=r.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=a,(!rSn.isNumeric(n)||n<0)&&(i.delayTime=0),(!a||typeof a.schedule!="function")&&(i.scheduler=qHe.asap),i}return e.create=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=qHe.asap),new e(t,n,a)},e.dispatch=function(t){var n=t.source,a=t.subscriber;return this.add(n.subscribe(a))},e.prototype._subscribe=function(t){var n=this.delayTime,a=this.source,i=this.scheduler;return i.schedule(e.dispatch,n,{source:a,subscriber:t})},e}(tSn.Observable);Fue.SubscribeOnObservable=nSn});var DDt=E(WHe=>{"use strict";f();d();Object.defineProperty(WHe,"__esModule",{value:!0});var aSn=BDt();function iSn(r,e){return e===void 0&&(e=0),function(n){return n.lift(new sSn(r,e))}}WHe.subscribeOn=iSn;var sSn=function(){function r(e,t){this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return new aSn.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},r}()});var d8e=E(Lue=>{"use strict";f();d();var oSn=Lue&&Lue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lue,"__esModule",{value:!0});var cSn=bd(),uSn=hm(),UHe=io();function NDt(r,e){return typeof e=="function"?function(t){return t.pipe(NDt(function(n,a){return uSn.from(r(n,a)).pipe(cSn.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new lSn(r))}}Lue.switchMap=NDt;var lSn=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new fSn(e,this.project))},r}(),fSn=function(r){oSn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.index=0,a}return e.prototype._next=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this._innerSub(n)},e.prototype._innerSub=function(t){var n=this.innerSubscription;n&&n.unsubscribe();var a=new UHe.SimpleInnerSubscriber(this),i=this.destination;i.add(a),this.innerSubscription=UHe.innerSubscribe(t,a),this.innerSubscription!==a&&i.add(this.innerSubscription)},e.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&r.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&r.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(UHe.SimpleOuterSubscriber)});var ODt=E(HHe=>{"use strict";f();d();Object.defineProperty(HHe,"__esModule",{value:!0});var dSn=d8e(),pSn=f6();function hSn(){return dSn.switchMap(pSn.identity)}HHe.switchAll=hSn});var LDt=E(jHe=>{"use strict";f();d();Object.defineProperty(jHe,"__esModule",{value:!0});var FDt=d8e();function mSn(r,e){return e?FDt.switchMap(function(){return r},e):FDt.switchMap(function(){return r})}jHe.switchMapTo=mSn});var qDt=E(que=>{"use strict";f();d();var ySn=que&&que.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(que,"__esModule",{value:!0});var zHe=io();function bSn(r){return function(e){return e.lift(new gSn(r))}}que.takeUntil=bSn;var gSn=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new vSn(e),a=zHe.innerSubscribe(this.notifier,new zHe.SimpleInnerSubscriber(n));return a&&!n.seenValue?(n.add(a),t.subscribe(n)):n},r}(),vSn=function(r){ySn(e,r);function e(t){var n=r.call(this,t)||this;return n.seenValue=!1,n}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(zHe.SimpleOuterSubscriber)});var WDt=E(Wue=>{"use strict";f();d();var wSn=Wue&&Wue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wue,"__esModule",{value:!0});var xSn=xr();function _Sn(r,e){return e===void 0&&(e=!1),function(t){return t.lift(new TSn(r,e))}}Wue.takeWhile=_Sn;var TSn=function(){function r(e,t){this.predicate=e,this.inclusive=t}return r.prototype.call=function(e,t){return t.subscribe(new ESn(e,this.predicate,this.inclusive))},r}(),ESn=function(r){wSn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.inclusive=a,i.index=0,i}return e.prototype._next=function(t){var n=this.destination,a;try{a=this.predicate(t,this.index++)}catch(i){n.error(i);return}this.nextOrComplete(t,a)},e.prototype.nextOrComplete=function(t,n){var a=this.destination;Boolean(n)?a.next(t):(this.inclusive&&a.next(t),a.complete())},e}(xSn.Subscriber)});var UDt=E(Uue=>{"use strict";f();d();var ISn=Uue&&Uue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Uue,"__esModule",{value:!0});var CSn=xr(),w6=R3e(),ASn=Qee();function kSn(r,e,t){return function(a){return a.lift(new SSn(r,e,t))}}Uue.tap=kSn;var SSn=function(){function r(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return r.prototype.call=function(e,t){return t.subscribe(new PSn(e,this.nextOrObserver,this.error,this.complete))},r}(),PSn=function(r){ISn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s._tapNext=w6.noop,s._tapError=w6.noop,s._tapComplete=w6.noop,s._tapError=a||w6.noop,s._tapComplete=i||w6.noop,ASn.isFunction(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||w6.noop,s._tapError=n.error||w6.noop,s._tapComplete=n.complete||w6.noop),s}return e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(CSn.Subscriber)});var GHe=E(c8=>{"use strict";f();d();var RSn=c8&&c8.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(c8,"__esModule",{value:!0});var KHe=io();c8.defaultThrottleConfig={leading:!0,trailing:!1};function MSn(r,e){return e===void 0&&(e=c8.defaultThrottleConfig),function(t){return t.lift(new BSn(r,!!e.leading,!!e.trailing))}}c8.throttle=MSn;var BSn=function(){function r(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return r.prototype.call=function(e,t){return t.subscribe(new DSn(e,this.durationSelector,this.leading,this.trailing))},r}(),DSn=function(r){RSn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=a,s._trailing=i,s._hasValue=!1,s}return e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this,n=t._hasValue,a=t._sendValue;n&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var n=this.tryDurationSelector(t);n&&this.add(this._throttled=KHe.innerSubscribe(n,new KHe.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(n){return this.destination.error(n),null}},e.prototype.throttlingDone=function(){var t=this,n=t._throttled,a=t._trailing;n&&n.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(KHe.SimpleOuterSubscriber)});var HDt=E(Hue=>{"use strict";f();d();var NSn=Hue&&Hue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Hue,"__esModule",{value:!0});var OSn=xr(),FSn=kl(),LSn=GHe();function qSn(r,e,t){return e===void 0&&(e=FSn.async),t===void 0&&(t=LSn.defaultThrottleConfig),function(n){return n.lift(new WSn(r,e,t.leading,t.trailing))}}Hue.throttleTime=qSn;var WSn=function(){function r(e,t,n,a){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=a}return r.prototype.call=function(e,t){return t.subscribe(new USn(e,this.duration,this.scheduler,this.leading,this.trailing))},r}(),USn=function(r){NSn(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.duration=n,o.scheduler=a,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(HSn,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(OSn.Subscriber);function HSn(r){var e=r.subscriber;e.clearThrottle()}});var zDt=E(p8e=>{"use strict";f();d();Object.defineProperty(p8e,"__esModule",{value:!0});var jSn=kl(),zSn=l8e(),KSn=O3e(),GSn=bd();function VSn(r){return r===void 0&&(r=jSn.async),function(e){return KSn.defer(function(){return e.pipe(zSn.scan(function(t,n){var a=t.current;return{value:n,current:r.now(),last:a}},{current:r.now(),value:void 0,last:void 0}),GSn.map(function(t){var n=t.current,a=t.last,i=t.value;return new jDt(i,n-a)}))})}}p8e.timeInterval=VSn;var jDt=function(){function r(e,t){this.value=e,this.interval=t}return r}();p8e.TimeInterval=jDt});var $He=E(jue=>{"use strict";f();d();var $Sn=jue&&jue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(jue,"__esModule",{value:!0});var YSn=kl(),QSn=nHe(),VHe=io();function JSn(r,e,t){return t===void 0&&(t=YSn.async),function(n){var a=QSn.isDate(r),i=a?+r-t.now():Math.abs(r);return n.lift(new ZSn(i,a,e,t))}}jue.timeoutWith=JSn;var ZSn=function(){function r(e,t,n,a){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new XSn(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},r}(),XSn=function(r){$Sn(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.absoluteTimeout=n,o.waitFor=a,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return e.dispatchTimeout=function(t){var n=t.withObservable;t._unsubscribeAndRecycle(),t.add(VHe.innerSubscribe(n,new VHe.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),r.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(VHe.SimpleOuterSubscriber)});var KDt=E(YHe=>{"use strict";f();d();Object.defineProperty(YHe,"__esModule",{value:!0});var ePn=kl(),tPn=IWe(),rPn=$He(),nPn=A3e();function aPn(r,e){return e===void 0&&(e=ePn.async),rPn.timeoutWith(r,nPn.throwError(new tPn.TimeoutError),e)}YHe.timeout=aPn});var VDt=E(h8e=>{"use strict";f();d();Object.defineProperty(h8e,"__esModule",{value:!0});var iPn=kl(),sPn=bd();function oPn(r){return r===void 0&&(r=iPn.async),sPn.map(function(e){return new GDt(e,r.now())})}h8e.timestamp=oPn;var GDt=function(){function r(e,t){this.value=e,this.timestamp=t}return r}();h8e.Timestamp=GDt});var $Dt=E(QHe=>{"use strict";f();d();Object.defineProperty(QHe,"__esModule",{value:!0});var cPn=Eue();function uPn(r,e,t){return t===0?[e]:(r.push(e),r)}function lPn(){return cPn.reduce(uPn,[])}QHe.toArray=lPn});var QDt=E(zue=>{"use strict";f();d();var fPn=zue&&zue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zue,"__esModule",{value:!0});var YDt=al(),JHe=io();function dPn(r){return function(t){return t.lift(new pPn(r))}}zue.window=dPn;var pPn=function(){function r(e){this.windowBoundaries=e}return r.prototype.call=function(e,t){var n=new hPn(e),a=t.subscribe(n);return a.closed||n.add(JHe.innerSubscribe(this.windowBoundaries,new JHe.SimpleInnerSubscriber(n))),a},r}(),hPn=function(r){fPn(e,r);function e(t){var n=r.call(this,t)||this;return n.window=new YDt.Subject,t.next(n.window),n}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var n=this.destination,a=this.window=new YDt.Subject;n.next(a)},e}(JHe.SimpleOuterSubscriber)});var ZDt=E(Kue=>{"use strict";f();d();var mPn=Kue&&Kue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kue,"__esModule",{value:!0});var yPn=xr(),JDt=al();function bPn(r,e){return e===void 0&&(e=0),function(n){return n.lift(new gPn(r,e))}}Kue.windowCount=bPn;var gPn=function(){function r(e,t){this.windowSize=e,this.startWindowEvery=t}return r.prototype.call=function(e,t){return t.subscribe(new vPn(e,this.windowSize,this.startWindowEvery))},r}(),vPn=function(r){mPn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=a,i.windows=[new JDt.Subject],i.count=0,t.next(i.windows[0]),i}return e.prototype._next=function(t){for(var n=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,i=this.windowSize,s=this.windows,o=s.length,c=0;c=0&&u%n===0&&!this.closed&&s.shift().complete(),++this.count%n===0&&!this.closed){var l=new JDt.Subject;s.push(l),a.next(l)}},e.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(yPn.Subscriber)});var rNt=E(Gue=>{"use strict";f();d();var eNt=Gue&&Gue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gue,"__esModule",{value:!0});var wPn=al(),xPn=kl(),_Pn=xr(),XDt=j0e(),ZHe=pm();function TPn(r){var e=xPn.async,t=null,n=Number.POSITIVE_INFINITY;return ZHe.isScheduler(arguments[3])&&(e=arguments[3]),ZHe.isScheduler(arguments[2])?e=arguments[2]:XDt.isNumeric(arguments[2])&&(n=Number(arguments[2])),ZHe.isScheduler(arguments[1])?e=arguments[1]:XDt.isNumeric(arguments[1])&&(t=Number(arguments[1])),function(i){return i.lift(new EPn(r,t,n,e))}}Gue.windowTime=TPn;var EPn=function(){function r(e,t,n,a){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new CPn(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},r}(),IPn=function(r){eNt(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return e.prototype.next=function(t){this._numberOfNextedValues++,r.prototype.next.call(this,t)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(wPn.Subject),CPn=function(r){eNt(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=a,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var c=o.openWindow();if(a!==null&&a>=0){var u={subscriber:o,window:c,context:null},l={windowTimeSpan:n,windowCreationInterval:a,subscriber:o,scheduler:s};o.add(s.schedule(tNt,n,u)),o.add(s.schedule(kPn,a,l))}else{var p={subscriber:o,window:c,windowTimeSpan:n};o.add(s.schedule(APn,n,p))}return o}return e.prototype._next=function(t){for(var n=this.windows,a=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new IPn;this.windows.push(t);var n=this.destination;return n.next(t),t},e.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},e}(_Pn.Subscriber);function APn(r){var e=r.subscriber,t=r.windowTimeSpan,n=r.window;n&&e.closeWindow(n),r.window=e.openWindow(),this.schedule(r,t)}function kPn(r){var e=r.windowTimeSpan,t=r.subscriber,n=r.scheduler,a=r.windowCreationInterval,i=t.openWindow(),s=this,o={action:s,subscription:null},c={subscriber:t,window:i,context:o};o.subscription=n.schedule(tNt,e,c),s.add(o.subscription),s.schedule(r,a)}function tNt(r){var e=r.subscriber,t=r.window,n=r.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(t)}});var aNt=E(Vue=>{"use strict";f();d();var SPn=Vue&&Vue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vue,"__esModule",{value:!0});var PPn=al(),RPn=Gc(),MPn=p6(),nNt=h6();function BPn(r,e){return function(t){return t.lift(new DPn(r,e))}}Vue.windowToggle=BPn;var DPn=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new NPn(e,this.openings,this.closingSelector))},r}(),NPn=function(r){SPn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.openings=n,i.closingSelector=a,i.contexts=[],i.add(i.openSubscription=nNt.subscribeToResult(i,n,n)),i}return e.prototype._next=function(t){var n=this.contexts;if(n)for(var a=n.length,i=0;i{"use strict";f();d();var OPn=$ue&&$ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($ue,"__esModule",{value:!0});var FPn=al(),LPn=p6(),qPn=h6();function WPn(r){return function(t){return t.lift(new UPn(r))}}$ue.windowWhen=WPn;var UPn=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new HPn(e,this.closingSelector))},r}(),HPn=function(r){OPn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.destination=t,a.closingSelector=n,a.openWindow(),a}return e.prototype.notifyNext=function(t,n,a,i,s){this.openWindow(s)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var n=this.window;n&&n.complete();var a=this.window=new FPn.Subject;this.destination.next(a);var i;try{var s=this.closingSelector;i=s()}catch(o){this.destination.error(o),this.window.error(o);return}this.add(this.closingNotification=qPn.subscribeToResult(this,i))},e}(LPn.OuterSubscriber)});var sNt=E(Yue=>{"use strict";f();d();var jPn=Yue&&Yue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Yue,"__esModule",{value:!0});var zPn=p6(),KPn=h6();function GPn(){for(var r=[],e=0;e0){var s=i.indexOf(a);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(this.toRespond.length===0){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},e.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(zPn.OuterSubscriber)});var oNt=E(XHe=>{"use strict";f();d();Object.defineProperty(XHe,"__esModule",{value:!0});var YPn=U3e();function QPn(){for(var r=[],e=0;e{"use strict";f();d();Object.defineProperty(eje,"__esModule",{value:!0});var JPn=U3e();function ZPn(r){return function(e){return e.lift(new JPn.ZipOperator(r))}}eje.zipAll=ZPn});var m8e=E(Fe=>{"use strict";f();d();Object.defineProperty(Fe,"__esModule",{value:!0});var XPn=zUe();Fe.audit=XPn.audit;var eRn=GMt();Fe.auditTime=eRn.auditTime;var tRn=VMt();Fe.buffer=tRn.buffer;var rRn=QMt();Fe.bufferCount=rRn.bufferCount;var nRn=XMt();Fe.bufferTime=nRn.bufferTime;var aRn=tBt();Fe.bufferToggle=aRn.bufferToggle;var iRn=rBt();Fe.bufferWhen=iRn.bufferWhen;var sRn=nBt();Fe.catchError=sRn.catchError;var oRn=aBt();Fe.combineAll=oRn.combineAll;var cRn=iBt();Fe.combineLatest=cRn.combineLatest;var uRn=sBt();Fe.concat=uRn.concat;var lRn=YWe();Fe.concatAll=lRn.concatAll;var fRn=XUe();Fe.concatMap=fRn.concatMap;var dRn=oBt();Fe.concatMapTo=dRn.concatMapTo;var pRn=cBt();Fe.count=pRn.count;var hRn=uBt();Fe.debounce=hRn.debounce;var mRn=lBt();Fe.debounceTime=mRn.debounceTime;var yRn=_te();Fe.defaultIfEmpty=yRn.defaultIfEmpty;var bRn=dBt();Fe.delay=bRn.delay;var gRn=hBt();Fe.delayWhen=gRn.delayWhen;var vRn=mBt();Fe.dematerialize=vRn.dematerialize;var wRn=bBt();Fe.distinct=wRn.distinct;var xRn=sHe();Fe.distinctUntilChanged=xRn.distinctUntilChanged;var _Rn=gBt();Fe.distinctUntilKeyChanged=_Rn.distinctUntilKeyChanged;var TRn=wBt();Fe.elementAt=TRn.elementAt;var ERn=xBt();Fe.endWith=ERn.endWith;var IRn=_Bt();Fe.every=IRn.every;var CRn=TBt();Fe.exhaust=CRn.exhaust;var ARn=IBt();Fe.exhaustMap=ARn.exhaustMap;var kRn=kBt();Fe.expand=kRn.expand;var SRn=Q3();Fe.filter=SRn.filter;var PRn=SBt();Fe.finalize=PRn.finalize;var RRn=pHe();Fe.find=RRn.find;var MRn=MBt();Fe.findIndex=MRn.findIndex;var BRn=BBt();Fe.first=BRn.first;var DRn=iWe();Fe.groupBy=DRn.groupBy;var NRn=DBt();Fe.ignoreElements=NRn.ignoreElements;var ORn=NBt();Fe.isEmpty=ORn.isEmpty;var FRn=OBt();Fe.last=FRn.last;var LRn=bd();Fe.map=LRn.map;var qRn=FBt();Fe.mapTo=qRn.mapTo;var WRn=LBt();Fe.materialize=WRn.materialize;var URn=HBt();Fe.max=URn.max;var HRn=jBt();Fe.merge=HRn.merge;var jRn=N3e();Fe.mergeAll=jRn.mergeAll;var uNt=U0e();Fe.mergeMap=uNt.mergeMap;Fe.flatMap=uNt.flatMap;var zRn=KBt();Fe.mergeMapTo=zRn.mergeMapTo;var KRn=$Bt();Fe.mergeScan=KRn.mergeScan;var GRn=YBt();Fe.min=GRn.min;var VRn=s8();Fe.multicast=VRn.multicast;var $Rn=gWe();Fe.observeOn=$Rn.observeOn;var YRn=XBt();Fe.onErrorResumeNext=YRn.onErrorResumeNext;var QRn=eDt();Fe.pairwise=QRn.pairwise;var JRn=rDt();Fe.partition=JRn.partition;var ZRn=nDt();Fe.pluck=ZRn.pluck;var XRn=sDt();Fe.publish=XRn.publish;var eMn=oDt();Fe.publishBehavior=eMn.publishBehavior;var tMn=cDt();Fe.publishLast=tMn.publishLast;var rMn=uDt();Fe.publishReplay=rMn.publishReplay;var nMn=lDt();Fe.race=nMn.race;var aMn=Eue();Fe.reduce=aMn.reduce;var iMn=dDt();Fe.repeat=iMn.repeat;var sMn=pDt();Fe.repeatWhen=sMn.repeatWhen;var oMn=hDt();Fe.retry=oMn.retry;var cMn=mDt();Fe.retryWhen=cMn.retryWhen;var uMn=E3e();Fe.refCount=uMn.refCount;var lMn=yDt();Fe.sample=lMn.sample;var fMn=bDt();Fe.sampleTime=fMn.sampleTime;var dMn=l8e();Fe.scan=dMn.scan;var pMn=_Dt();Fe.sequenceEqual=pMn.sequenceEqual;var hMn=TDt();Fe.share=hMn.share;var mMn=EDt();Fe.shareReplay=mMn.shareReplay;var yMn=IDt();Fe.single=yMn.single;var bMn=CDt();Fe.skip=bMn.skip;var gMn=kDt();Fe.skipLast=gMn.skipLast;var vMn=SDt();Fe.skipUntil=vMn.skipUntil;var wMn=PDt();Fe.skipWhile=wMn.skipWhile;var xMn=MDt();Fe.startWith=xMn.startWith;var _Mn=DDt();Fe.subscribeOn=_Mn.subscribeOn;var TMn=ODt();Fe.switchAll=TMn.switchAll;var EMn=d8e();Fe.switchMap=EMn.switchMap;var IMn=LDt();Fe.switchMapTo=IMn.switchMapTo;var CMn=c8e();Fe.take=CMn.take;var AMn=u8e();Fe.takeLast=AMn.takeLast;var kMn=qDt();Fe.takeUntil=kMn.takeUntil;var SMn=WDt();Fe.takeWhile=SMn.takeWhile;var PMn=UDt();Fe.tap=PMn.tap;var RMn=GHe();Fe.throttle=RMn.throttle;var MMn=HDt();Fe.throttleTime=MMn.throttleTime;var BMn=due();Fe.throwIfEmpty=BMn.throwIfEmpty;var DMn=zDt();Fe.timeInterval=DMn.timeInterval;var NMn=KDt();Fe.timeout=NMn.timeout;var OMn=$He();Fe.timeoutWith=OMn.timeoutWith;var FMn=VDt();Fe.timestamp=FMn.timestamp;var LMn=$Dt();Fe.toArray=LMn.toArray;var qMn=QDt();Fe.window=qMn.window;var WMn=ZDt();Fe.windowCount=WMn.windowCount;var UMn=rNt();Fe.windowTime=UMn.windowTime;var HMn=aNt();Fe.windowToggle=HMn.windowToggle;var jMn=iNt();Fe.windowWhen=jMn.windowWhen;var zMn=sNt();Fe.withLatestFrom=zMn.withLatestFrom;var KMn=oNt();Fe.zip=KMn.zip;var GMn=cNt();Fe.zipAll=GMn.zipAll});var lNt=E(zp=>{"use strict";f();d();Object.defineProperty(zp,"__esModule",{value:!0});zp.ClientMessagePublishEvent=zp.ClientMessageSetSessionConfig=zp.ClientMessageGetSessionConfig=zp.ClientMessageIsLinked=zp.ClientMessageHostSession=void 0;function VMn(r){return Object.assign({type:"HostSession"},r)}zp.ClientMessageHostSession=VMn;function $Mn(r){return Object.assign({type:"IsLinked"},r)}zp.ClientMessageIsLinked=$Mn;function YMn(r){return Object.assign({type:"GetSessionConfig"},r)}zp.ClientMessageGetSessionConfig=YMn;function QMn(r){return Object.assign({type:"SetSessionConfig"},r)}zp.ClientMessageSetSessionConfig=QMn;function JMn(r){return Object.assign({type:"PublishEvent"},r)}zp.ClientMessagePublishEvent=JMn});var dNt=E(u8=>{"use strict";f();d();Object.defineProperty(u8,"__esModule",{value:!0});u8.RxWebSocket=u8.ConnectionState=void 0;var Ite=G0e(),fNt=m8e(),Cte;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(Cte=u8.ConnectionState||(u8.ConnectionState={}));var tje=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new Ite.BehaviorSubject(Cte.DISCONNECTED),this.incomingDataSubject=new Ite.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,Ite.throwError)(new Error("webSocket object is not null")):new Ite.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(n){e.error(n);return}this.connectionStateSubject.next(Cte.CONNECTING),t.onclose=n=>{this.clearWebSocket(),e.error(new Error(`websocket error ${n.code}: ${n.reason}`)),this.connectionStateSubject.next(Cte.DISCONNECTED)},t.onopen=n=>{e.next(),e.complete(),this.connectionStateSubject.next(Cte.CONNECTED)},t.onmessage=n=>{this.incomingDataSubject.next(n.data)}}).pipe((0,fNt.take)(1))}disconnect(){let{webSocket:e}=this;if(!!e){this.clearWebSocket(),this.connectionStateSubject.next(Cte.DISCONNECTED);try{e.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,fNt.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch{return(0,Ite.empty)()}return(0,Ite.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;!e||(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};u8.RxWebSocket=tje});var pNt=E(y8e=>{"use strict";f();d();Object.defineProperty(y8e,"__esModule",{value:!0});y8e.isServerMessageFail=void 0;function ZMn(r){return r&&r.type==="Fail"&&typeof r.id=="number"&&typeof r.sessionId=="string"&&typeof r.error=="string"}y8e.isServerMessageFail=ZMn});var mNt=E(g8e=>{"use strict";f();d();Object.defineProperty(g8e,"__esModule",{value:!0});g8e.WalletSDKConnection=void 0;var mm=G0e(),qn=m8e(),Que=Fwe(),Ate=Zce(),Jue=lNt(),Zue=Awe(),b8e=dNt(),rje=pNt(),hNt=1e4,XMn=6e4,nje=class{constructor(e,t,n,a,i=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new mm.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,Ate.IntNumber)(1),this.connectedSubject=new mm.BehaviorSubject(!1),this.linkedSubject=new mm.BehaviorSubject(!1),this.sessionConfigSubject=new mm.ReplaySubject(1);let s=new b8e.RxWebSocket(n+"/rpc",i);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,qn.tap)(o=>{var c;return(c=this.diagnostic)===null||c===void 0?void 0:c.log(Zue.EVENTS.CONNECTED_STATE_CHANGE,{state:o,sessionIdHash:Que.Session.hash(e)})}),(0,qn.skip)(1),(0,qn.filter)(o=>o===b8e.ConnectionState.DISCONNECTED&&!this.destroyed),(0,qn.delay)(5e3),(0,qn.filter)(o=>!this.destroyed),(0,qn.flatMap)(o=>s.connect()),(0,qn.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,qn.skip)(2),(0,qn.switchMap)(o=>(0,mm.iif)(()=>o===b8e.ConnectionState.CONNECTED,this.authenticate().pipe((0,qn.tap)(c=>this.sendIsLinked()),(0,qn.tap)(c=>this.sendGetSessionConfig()),(0,qn.map)(c=>!0)),(0,mm.of)(!1))),(0,qn.distinctUntilChanged)(),(0,qn.catchError)(o=>(0,mm.of)(!1))).subscribe(o=>this.connectedSubject.next(o))),this.subscriptions.add(s.connectionState$.pipe((0,qn.skip)(1),(0,qn.switchMap)(o=>(0,mm.iif)(()=>o===b8e.ConnectionState.CONNECTED,(0,mm.timer)(0,hNt)))).subscribe(o=>o===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,qn.filter)(o=>o==="h")).subscribe(o=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,qn.filter)(o=>["IsLinkedOK","Linked"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(Zue.EVENTS.LINKED,{sessionIdHash:Que.Session.hash(e),linked:u.linked,type:o.type,onlineGuests:u.onlineGuests}),this.linkedSubject.next(u.linked||u.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,qn.filter)(o=>["GetSessionConfigOK","SessionConfigUpdated"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(Zue.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:Que.Session.hash(e),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.sessionConfigSubject.next({webhookId:u.webhookId,webhookUrl:u.webhookUrl,metadata:u.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(Zue.EVENTS.STARTED_CONNECTING,{sessionIdHash:Que.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(Zue.EVENTS.DISCONNECTED,{sessionIdHash:Que.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,qn.filter)(e=>e),(0,qn.take)(1),(0,qn.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,qn.filter)(e=>e),(0,qn.take)(1),(0,qn.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,qn.filter)(e=>{if(e.type!=="Event")return!1;let t=e;return typeof t.sessionId=="string"&&typeof t.eventId=="string"&&typeof t.event=="string"&&typeof t.data=="string"}),(0,qn.map)(e=>e))}setSessionMetadata(e,t){let n=(0,Jue.ClientMessageSetSessionConfig)({id:(0,Ate.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,qn.flatMap)(a=>this.makeRequest(n)),(0,qn.map)(a=>{if((0,rje.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let a=(0,Jue.ClientMessagePublishEvent)({id:(0,Ate.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,qn.flatMap)(i=>this.makeRequest(a)),(0,qn.map)(i=>{if((0,rje.isServerMessageFail)(i))throw new Error(i.error||"failed to publish event");return i.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>hNt*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,t=XMn){let n=e.id;try{this.sendData(e)}catch(a){return(0,mm.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,qn.timeoutWith)(t,(0,mm.throwError)(new Error(`request ${n} timed out`))),(0,qn.filter)(a=>a.id===n),(0,qn.take)(1))}authenticate(){let e=(0,Jue.ClientMessageHostSession)({id:(0,Ate.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,qn.map)(t=>{if((0,rje.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,Jue.ClientMessageIsLinked)({id:(0,Ate.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,Jue.ClientMessageGetSessionConfig)({id:(0,Ate.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}};g8e.WalletSDKConnection=nje});var yNt=E(v8e=>{"use strict";f();d();Object.defineProperty(v8e,"__esModule",{value:!0});v8e.WalletUIError=void 0;var l8=class extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}};v8e.WalletUIError=l8;l8.UserRejectedRequest=new l8("User rejected request");l8.SwitchEthereumChainUnsupportedChainId=new l8("Unsupported chainId",4902)});var bNt=E(kte=>{"use strict";f();d();Object.defineProperty(kte,"__esModule",{value:!0});kte.decrypt=kte.encrypt=void 0;var w8e=Kb();async function eBn(r,e){if(e.length!==64)throw Error("secret must be 256 bits");let t=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,w8e.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,i=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},n,a.encode(r)),s=16,o=i.slice(i.byteLength-s),c=i.slice(0,i.byteLength-s),u=new Uint8Array(o),l=new Uint8Array(c),p=new Uint8Array([...t,...u,...l]);return(0,w8e.uint8ArrayToHex)(p)}kte.encrypt=eBn;function tBn(r,e){if(e.length!==64)throw Error("secret must be 256 bits");return new Promise((t,n)=>{(async function(){let a=await crypto.subtle.importKey("raw",(0,w8e.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=(0,w8e.hexStringToUint8Array)(r),s=i.slice(0,12),o=i.slice(12,28),c=i.slice(28),u=new Uint8Array([...c,...o]),l={name:"AES-GCM",iv:new Uint8Array(s)};try{let p=await window.crypto.subtle.decrypt(l,a,u),h=new TextDecoder;t(h.decode(p))}catch(p){n(p)}})()})}kte.decrypt=tBn});var aje=E(Xue=>{"use strict";f();d();Object.defineProperty(Xue,"__esModule",{value:!0});Xue.Web3Method=void 0;var rBn;(function(r){r.requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"})(rBn=Xue.Web3Method||(Xue.Web3Method={}))});var x8e=E(ele=>{"use strict";f();d();Object.defineProperty(ele,"__esModule",{value:!0});ele.RelayMessageType=void 0;var nBn;(function(r){r.SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"})(nBn=ele.RelayMessageType||(ele.RelayMessageType={}))});var gNt=E(_8e=>{"use strict";f();d();Object.defineProperty(_8e,"__esModule",{value:!0});_8e.Web3RequestCanceledMessage=void 0;var aBn=x8e();function iBn(r){return{type:aBn.RelayMessageType.WEB3_REQUEST_CANCELED,id:r}}_8e.Web3RequestCanceledMessage=iBn});var vNt=E(T8e=>{"use strict";f();d();Object.defineProperty(T8e,"__esModule",{value:!0});T8e.Web3RequestMessage=void 0;var sBn=x8e();function oBn(r){return Object.assign({type:sBn.RelayMessageType.WEB3_REQUEST},r)}T8e.Web3RequestMessage=oBn});var wNt=E(Ws=>{"use strict";f();d();Object.defineProperty(Ws,"__esModule",{value:!0});Ws.EthereumAddressFromSignedMessageResponse=Ws.SubmitEthereumTransactionResponse=Ws.SignEthereumTransactionResponse=Ws.SignEthereumMessageResponse=Ws.isRequestEthereumAccountsResponse=Ws.SelectProviderResponse=Ws.WatchAssetReponse=Ws.RequestEthereumAccountsResponse=Ws.SwitchEthereumChainResponse=Ws.AddEthereumChainResponse=Ws.ErrorResponse=void 0;var ry=aje();function cBn(r,e,t){return{method:r,errorMessage:e,errorCode:t}}Ws.ErrorResponse=cBn;function uBn(r){return{method:ry.Web3Method.addEthereumChain,result:r}}Ws.AddEthereumChainResponse=uBn;function lBn(r){return{method:ry.Web3Method.switchEthereumChain,result:r}}Ws.SwitchEthereumChainResponse=lBn;function fBn(r){return{method:ry.Web3Method.requestEthereumAccounts,result:r}}Ws.RequestEthereumAccountsResponse=fBn;function dBn(r){return{method:ry.Web3Method.watchAsset,result:r}}Ws.WatchAssetReponse=dBn;function pBn(r){return{method:ry.Web3Method.selectProvider,result:r}}Ws.SelectProviderResponse=pBn;function hBn(r){return r&&r.method===ry.Web3Method.requestEthereumAccounts}Ws.isRequestEthereumAccountsResponse=hBn;function mBn(r){return{method:ry.Web3Method.signEthereumMessage,result:r}}Ws.SignEthereumMessageResponse=mBn;function yBn(r){return{method:ry.Web3Method.signEthereumTransaction,result:r}}Ws.SignEthereumTransactionResponse=yBn;function bBn(r){return{method:ry.Web3Method.submitEthereumTransaction,result:r}}Ws.SubmitEthereumTransactionResponse=bBn;function gBn(r){return{method:ry.Web3Method.ethereumAddressFromSignedMessage,result:r}}Ws.EthereumAddressFromSignedMessageResponse=gBn});var _Nt=E(Ste=>{"use strict";f();d();Object.defineProperty(Ste,"__esModule",{value:!0});Ste.isWeb3ResponseMessage=Ste.Web3ResponseMessage=void 0;var xNt=x8e();function vBn(r){return Object.assign({type:xNt.RelayMessageType.WEB3_RESPONSE},r)}Ste.Web3ResponseMessage=vBn;function wBn(r){return r&&r.type===xNt.RelayMessageType.WEB3_RESPONSE}Ste.isWeb3ResponseMessage=wBn});var CNt=E(_f=>{"use strict";f();d();var xBn=_f&&_f.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),_Bn=_f&&_f.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),ENt=_f&&_f.__decorate||function(r,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(s=r[o])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},TBn=_f&&_f.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&xBn(e,r,t);return _Bn(e,r),e},EBn=_f&&_f.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_f,"__esModule",{value:!0});_f.WalletSDKRelay=void 0;var INt=EBn(KMt()),TNt=Iwe(),Pte=G0e(),Vc=m8e(),il=Awe(),IBn=mNt(),ije=yNt(),CBn=Zce(),Us=Kb(),x6=TBn(bNt()),_6=Fwe(),E8e=zLe(),S0=aje(),ABn=gNt(),kBn=vNt(),vd=wNt(),Sl=_Nt(),wd=class extends E8e.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new Pte.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new Pte.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:a,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(t=e.reloadOnDisconnect)!==null&&t!==void 0?t:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));let e=_6.Session.load(this.storage)||new _6.Session(this.storage).save(),t=new IBn.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,Vc.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,Vc.skip)(1),(0,Vc.tap)(a=>{var i;this.isLinked=a;let s=this.storage.getItem(E8e.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){let o=s.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";if(o[0]!==""&&!a&&this.session.linked&&!c){this.isUnlinkedErrorState=!0;let u=this.getSessionIdHash();(i=this.diagnostic)===null||i===void 0||i.log(il.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:u})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,Vc.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;let i=t.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:i,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,Vc.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,Vc.mergeMap)(a=>x6.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(E8e.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Vc.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,Vc.mergeMap)(a=>x6.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(E8e.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Vc.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,Vc.mergeMap)(a=>(0,Pte.zip)(x6.decrypt(a.metadata.ChainId,e.secret),x6.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,Vc.distinctUntilChanged)()).subscribe({next:([a,i])=>{this.chainCallback&&this.chainCallback(a,i)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Vc.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,Vc.mergeMap)(a=>x6.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),wd.accountRequestCallbackIds.size>0&&(Array.from(wd.accountRequestCallbackIds.values()).forEach(i=>{let s=(0,Sl.Web3ResponseMessage)({id:i,response:(0,vd.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:i}))}),wd.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,Vc.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,Vc.mergeMap)(a=>x6.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,Vc.timeout)(1e3),(0,Vc.catchError)(e=>(0,Pte.of)(null))).subscribe(e=>{var t,n,a;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(t=this.diagnostic)===null||t===void 0||t.log(il.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(n=this.diagnostic)===null||n===void 0||n.log(il.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=_6.Session.load(this.storage);if(s?.id===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(il.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:_6.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:o,ui:c,connection:u}=this.subscribe();this._session=o,this.connection=u,this.ui=c,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(il.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,a){return this.sendRequest({method:S0.Web3Method.signEthereumMessage,params:{message:(0,Us.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:S0.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,Us.hexStringFromBuffer)(e,!0),signature:(0,Us.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:S0.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Us.bigIntStringFromBN)(e.weiValue),data:(0,Us.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Us.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Us.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Us.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,Us.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:S0.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Us.bigIntStringFromBN)(e.weiValue),data:(0,Us.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Us.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Us.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Us.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Us.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:S0.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,Us.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:S0.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,Us.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:S0.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,Us.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,c=>{if(t?.(),c.errorMessage)return o(new Error(c.errorMessage));s(c)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let a=(0,kBn.Web3RequestMessage)({id:e,request:t}),i=_6.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(il.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?_6.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var o;(o=this.diagnostic)===null||o===void 0||o.log(il.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?_6.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,ABn.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let a=this.session.secret;return new Pte.Observable(i=>{x6.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),a).then(s=>{i.next(s),i.complete()})}).pipe((0,Vc.mergeMap)(i=>this.connection.publishEvent(e,i,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,Pte.from)(x6.decrypt(e.data,this.session.secret)).pipe((0,Vc.map)(t=>JSON.parse(t))).subscribe({next:t=>{let n=(0,Sl.isWeb3ResponseMessage)(t)?t:null;!n||this.handleWeb3ResponseMessage(n)},error:()=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(il.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if((t=this.diagnostic)===null||t===void 0||t.log(il.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,vd.isRequestEthereumAccountsResponse)(n)){wd.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),wd.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,a){this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:e,response:(0,vd.ErrorResponse)(t,(n??ije.WalletUIError.UserRejectedRequest).message,a)}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:S0.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,n=(0,Us.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{var c;this.relayEventManager.callbacks.set(n,l=>{if(this.ui.hideRequestEthereumAccounts(),t?.(),l.errorMessage)return o(new Error(l.errorMessage));s(l)});let u=((c=window?.navigator)===null||c===void 0?void 0:c.userAgent)||null;if(u&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u)){let l;try{(0,Us.isInIFrame)()&&window.top?l=window.top.location:l=window.location}catch{l=window.location}l.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(l.href)}`;return}if(this.ui.inlineAccountsResponse()){let l=p=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:n,response:(0,vd.RequestEthereumAccountsResponse)(p)}))};this.ui.requestEthereumAccounts({onCancel:a,onAccounts:l})}else{let l=TNt.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>a(l)})}wd.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:a}}selectProvider(e){let t={method:S0.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,Us.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s)},i=new Promise((s,o)=>{this.relayEventManager.callbacks.set(n,l=>{if(l.errorMessage)return o(new Error(l.errorMessage));s(l)});let c=l=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:n,response:(0,vd.SelectProviderResponse)(CBn.ProviderType.Unselected)}))},u=l=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:n,response:(0,vd.SelectProviderResponse)(l)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:u,onCancel:c,providerOptions:e})});return{cancel:a,promise:i}}watchAsset(e,t,n,a,i,s){let o={method:S0.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:a,image:i},chainId:s}},c=null,u=(0,Us.randomBytesHex)(8),l=h=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,h),c?.()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}));let p=new Promise((h,m)=>{this.relayEventManager.callbacks.set(u,P=>{if(c?.(),P.errorMessage)return m(new Error(P.errorMessage));h(P)});let y=P=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:u,response:(0,vd.WatchAssetReponse)(!1)}))},C=()=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:u,response:(0,vd.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:C,onCancel:y,type:e,address:t,symbol:n,decimals:a,image:i,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)});return{cancel:l,promise:p}}addEthereumChain(e,t,n,a,i,s){let o={method:S0.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:a,chainName:i,iconUrls:n,nativeCurrency:s}},c=null,u=(0,Us.randomBytesHex)(8),l=h=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,h),c?.()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise((h,m)=>{this.relayEventManager.callbacks.set(u,P=>{if(c?.(),P.errorMessage)return m(new Error(P.errorMessage));h(P)});let y=P=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:u,response:(0,vd.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},C=P=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:u,response:(0,vd.AddEthereumChainResponse)({isApproved:!0,rpcUrl:P})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:y,onApprove:C,chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)}),cancel:l}}switchEthereumChain(e,t){let n={method:S0.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},a=(0,Us.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,n.method,o)};return{promise:new Promise((o,c)=>{this.relayEventManager.callbacks.set(a,p=>{if(p.errorMessage&&p.errorCode)return c(TNt.ethErrors.provider.custom({code:p.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(p.errorMessage)return c(new Error(p.errorMessage));o(p)});let u=p=>{if(typeof p=="number"){let h=p;this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:a,response:(0,vd.ErrorResponse)(S0.Web3Method.switchEthereumChain,ije.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,h)}))}else p instanceof ije.WalletUIError?this.handleErrorResponse(a,S0.Web3Method.switchEthereumChain,p,p.errorCode):this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:a,response:(0,vd.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},l=p=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:a,response:(0,vd.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:p})}))};this.ui.switchEthereumChain({onCancel:u,onApprove:l,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,n)}),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return _6.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=i=>{this.handleErrorResponse(e,t.method,i)},a=i=>{this.handleWeb3ResponseMessage((0,Sl.Web3ResponseMessage)({id:e,response:i}))};switch(t.method){case S0.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:a,onCancel:n});break;case S0.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case S0.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case S0.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:a});break;default:n();break}}onSessionConfigChanged(e){}};wd.accountRequestCallbackIds=new Set;ENt([INt.default],wd.prototype,"resetAndReload",null);ENt([INt.default],wd.prototype,"handleIncomingEvent",null);_f.WalletSDKRelay=wd});var ANt=E(I8e=>{"use strict";f();d();Object.defineProperty(I8e,"__esModule",{value:!0});I8e.WalletSDKRelayEventManager=void 0;var SBn=Kb(),sje=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,SBn.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}};I8e.WalletSDKRelayEventManager=sje});var kNt=E((qai,PBn)=>{PBn.exports={name:"@coinbase/wallet-sdk",version:"3.6.4",description:"Coinbase Wallet JavaScript SDK",keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],main:"dist/index.js",types:"dist/index.d.ts",repository:"https://github.com/coinbase/coinbase-wallet-sdk.git",author:"Coinbase, Inc.",license:"Apache-2.0",scripts:{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start",prebuild:`rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`,build:"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL='http://localhost:3000'; yarn build","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'","build:prod":`yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`,"lint:types":"tsc --noEmit","lint:prettier":'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"',"lint:eslint":"eslint ./src --ext .ts,.tsx",lint:"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write",release:"./scripts/release.sh"},dependencies:{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1",buffer:"^6.0.3",clsx:"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0",keccak:"^3.0.1",preact:"^10.5.9",qs:"^6.10.3",rxjs:"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0",util:"^0.12.4"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1",browserify:"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2",eslint:"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0",jasmine:"3.8.0",jest:"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0",karma:"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1",nodemon:"^2.0.6",prettier:"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7",sass:"^1.50.0",svgo:"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0",tslib:"^2.0.3",typescript:"^4.1.3",watchify:"4.0.0",webpack:"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},engines:{node:">= 10.0.0"}}});var oje=E(C8e=>{"use strict";f();d();Object.defineProperty(C8e,"__esModule",{value:!0});C8e.CoinbaseWalletSDK=void 0;var RBn=eCt(),MBn=tCt(),BBn=l3e(),DBn=jMt(),NBn=CNt(),OBn=ANt(),FBn=Kb(),LBn=g.env.LINK_API_URL||"https://www.walletlink.org",SNt=g.env.SDK_VERSION||kNt().version||"unknown",Rte=class{constructor(e){var t,n,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=e.linkAPIUrl||LBn,s;if(e.uiConstructor?s=e.uiConstructor:s=u=>new DBn.WalletSDKUI(u),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;let o=new URL(i),c=`${o.protocol}//${o.host}`;this._storage=new MBn.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem("version",Rte.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new OBn.WalletSDKRelayEventManager,this._relay=new NBn.WalletSDKRelay({linkAPIUrl:i,version:SNt,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;let a=this.coinbaseBrowser;if(a)return a;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new BBn.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,FBn.getFavicon)();let a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,t;return(t=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&t!==void 0?t:null}getCoinbaseWalletLogo(e,t=240){return(0,RBn.walletLogo)(e,t)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}};C8e.CoinbaseWalletSDK=Rte;Rte.VERSION=SNt});var uje=E(f8=>{"use strict";f();d();Object.defineProperty(f8,"__esModule",{value:!0});f8.CoinbaseWalletProvider=f8.CoinbaseWalletSDK=void 0;var cje=oje(),PNt=l3e(),qBn=oje();Object.defineProperty(f8,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return qBn.CoinbaseWalletSDK}});var WBn=l3e();Object.defineProperty(f8,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return WBn.CoinbaseWalletProvider}});f8.default=cje.CoinbaseWalletSDK;typeof window<"u"&&(window.CoinbaseWalletSDK=cje.CoinbaseWalletSDK,window.CoinbaseWalletProvider=PNt.CoinbaseWalletProvider,window.WalletLink=cje.CoinbaseWalletSDK,window.WalletLinkProvider=PNt.CoinbaseWalletProvider)});var DNt=E(pje=>{"use strict";f();d();Object.defineProperty(pje,"__esModule",{value:!0});var lje=Zu(),ym=bf(),Mte=Oi(),RNt=ke(),A8e=dt(),UBn=n6(),MNt=jb(),Bte=O3();ao();Ct();Xe();function HBn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Dte=new WeakMap,tle=new WeakMap,fje=new WeakSet,dje=class extends UBn.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),lje._classPrivateMethodInitSpec(this,fje),Mte._defineProperty(this,"id","coinbaseWallet"),Mte._defineProperty(this,"name","Coinbase Wallet"),Mte._defineProperty(this,"ready",!0),ym._classPrivateFieldInitSpec(this,Dte,{writable:!0,value:void 0}),ym._classPrivateFieldInitSpec(this,tle,{writable:!0,value:void 0}),Mte._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:A8e.getAddress(a[0])})}),Mte._defineProperty(this,"onChainChanged",a=>{let i=MNt.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),Mte._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=A8e.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new RNt.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new Bte.UserRejectedRequestError(t):t}}async disconnect(){if(!ym._classPrivateFieldGet(this,tle))return;let e=await this.getProvider();e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),e.disconnect(),e.close()}async getAccount(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return A8e.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return MNt.normalizeChainId(e.chainId)}async getProvider(){if(!ym._classPrivateFieldGet(this,tle)){let e=(await Promise.resolve().then(function(){return HBn(uje())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),ym._classPrivateFieldSet(this,Dte,new e(this.options));let t=ym._classPrivateFieldGet(this,Dte).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];ym._classPrivateFieldSet(this,tle,ym._classPrivateFieldGet(this,Dte).makeWeb3Provider(i,a))}return ym._classPrivateFieldGet(this,tle)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new RNt.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=A8e.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Bte.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw lje._classPrivateMethodGet(this,fje,BNt).call(this,s)?new Bte.UserRejectedRequestError(s):new Bte.AddChainError}throw lje._classPrivateMethodGet(this,fje,BNt).call(this,a)?new Bte.UserRejectedRequestError(a):new Bte.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrUrl(){if(await this.getProvider(),!ym._classPrivateFieldGet(this,Dte))throw new Error("Coinbase Wallet SDK not initialized");return ym._classPrivateFieldGet(this,Dte).getQrUrl()}};function BNt(r){return/(user rejected)/i.test(r.message)}pje.CoinbaseWalletConnector=dje});var mje=E(hje=>{"use strict";f();d();Object.defineProperty(hje,"__esModule",{value:!0});var rle=Oi(),jBn=md(),zBn=Dp(),KBn=Uo();Xe();Zu();ao();yf();ke();Ct();typeof window<"u"&&(window.Buffer=KBn.Buffer);var d8=class extends zBn.AbstractClientWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(d8.id,e),rle._defineProperty(this,"connector",void 0),rle._defineProperty(this,"coinbaseConnector",void 0),rle._defineProperty(this,"headlessMode",void 0),this.headlessMode=e?.headlessMode||!1}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return DNt()}),t=new e({chains:this.chains,options:{appName:this.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.dappMetadata.isDarkMode,headlessMode:this.headlessMode}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new jBn.WagmiAdapter(t)}return this.connector}async getQrUrl(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrUrl()}};rle._defineProperty(d8,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet",urls:{chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-nfts-crypto/id1278383455"}});rle._defineProperty(d8,"id","coinbaseWallet");hje.CoinbaseWallet=d8});var yje=E(NNt=>{"use strict";f();d();var GBn="4f20f63d3ce0ec88eca639a291effef1559289d5614d77040d783048a4b3f316";NNt.DEFAULT_WALLET_API_KEY=GBn});var qNt=E(gje=>{"use strict";f();d();Object.defineProperty(gje,"__esModule",{value:!0});var xd=bf(),nle=Oi(),VBn=md(),ONt=V1(),FNt=yje(),$Bn=jb();ao();Xe();var p8=new WeakMap,Nte=new WeakMap,bje=class extends VBn.TWConnector{constructor(e){super(),nle._defineProperty(this,"id","local_wallet"),nle._defineProperty(this,"name","Local Wallet"),nle._defineProperty(this,"options",void 0),xd._classPrivateFieldInitSpec(this,p8,{writable:!0,value:void 0}),xd._classPrivateFieldInitSpec(this,Nte,{writable:!0,value:void 0}),nle._defineProperty(this,"shimDisconnectKey","localWallet.shimDisconnect"),nle._defineProperty(this,"onChainChanged",t=>{let n=$Bn.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e}async connect(e){return e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async disconnect(){xd._classPrivateFieldSet(this,p8,void 0),xd._classPrivateFieldSet(this,Nte,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return xd._classPrivateFieldGet(this,p8)||xd._classPrivateFieldSet(this,p8,ONt.getChainProvider(this.options.chain,{thirdwebApiKey:this.options.thirdwebApiKey||FNt.DEFAULT_WALLET_API_KEY})),xd._classPrivateFieldGet(this,p8)}async getSigner(){if(!xd._classPrivateFieldGet(this,Nte)){let e=await this.getProvider();xd._classPrivateFieldSet(this,Nte,LNt(this.options.ethersWallet,e))}return xd._classPrivateFieldGet(this,Nte)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error(`Chain not found for chainId ${e}, please add it to the chains property when creating this wallet`);xd._classPrivateFieldSet(this,p8,ONt.getChainProvider(t,{thirdwebApiKey:this.options.thirdwebApiKey||FNt.DEFAULT_WALLET_API_KEY})),xd._classPrivateFieldSet(this,Nte,LNt(this.options.ethersWallet,xd._classPrivateFieldGet(this,p8))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};function LNt(r,e){return e?r.connect(e):r}gje.LocalWalletConnector=bje});var Wn=E((k8e,WNt)=>{f();d();(function(r,e){typeof k8e=="object"?WNt.exports=k8e=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(k8e,function(){var r=r||function(e,t){var n;if(typeof window<"u"&&window.crypto&&(n=window.crypto),typeof self<"u"&&self.crypto&&(n=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window<"u"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global<"u"&&global.crypto&&(n=global.crypto),!n&&typeof My=="function")try{n=N1e()}catch{}var a=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function A(){}return function(B){var F;return A.prototype=B,F=new A,A.prototype=null,F}}(),s={},o=s.lib={},c=o.Base=function(){return{extend:function(A){var B=i(this);return A&&B.mixIn(A),(!B.hasOwnProperty("init")||this.init===B.init)&&(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var A=this.extend();return A.init.apply(A,arguments),A},init:function(){},mixIn:function(A){for(var B in A)A.hasOwnProperty(B)&&(this[B]=A[B]);A.hasOwnProperty("toString")&&(this.toString=A.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),u=o.WordArray=c.extend({init:function(A,B){A=this.words=A||[],B!=t?this.sigBytes=B:this.sigBytes=A.length*4},toString:function(A){return(A||p).stringify(this)},concat:function(A){var B=this.words,F=A.words,W=this.sigBytes,K=A.sigBytes;if(this.clamp(),W%4)for(var z=0;z>>2]>>>24-z%4*8&255;B[W+z>>>2]|=G<<24-(W+z)%4*8}else for(var j=0;j>>2]=F[j>>>2];return this.sigBytes+=K,this},clamp:function(){var A=this.words,B=this.sigBytes;A[B>>>2]&=4294967295<<32-B%4*8,A.length=e.ceil(B/4)},clone:function(){var A=c.clone.call(this);return A.words=this.words.slice(0),A},random:function(A){for(var B=[],F=0;F>>2]>>>24-K%4*8&255;W.push((z>>>4).toString(16)),W.push((z&15).toString(16))}return W.join("")},parse:function(A){for(var B=A.length,F=[],W=0;W>>3]|=parseInt(A.substr(W,2),16)<<24-W%8*4;return new u.init(F,B/2)}},h=l.Latin1={stringify:function(A){for(var B=A.words,F=A.sigBytes,W=[],K=0;K>>2]>>>24-K%4*8&255;W.push(String.fromCharCode(z))}return W.join("")},parse:function(A){for(var B=A.length,F=[],W=0;W>>2]|=(A.charCodeAt(W)&255)<<24-W%4*8;return new u.init(F,B)}},m=l.Utf8={stringify:function(A){try{return decodeURIComponent(escape(h.stringify(A)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(A){return h.parse(unescape(encodeURIComponent(A)))}},y=o.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(A){typeof A=="string"&&(A=m.parse(A)),this._data.concat(A),this._nDataBytes+=A.sigBytes},_process:function(A){var B,F=this._data,W=F.words,K=F.sigBytes,z=this.blockSize,G=z*4,j=K/G;A?j=e.ceil(j):j=e.max((j|0)-this._minBufferSize,0);var H=j*z,I=e.min(H*4,K);if(H){for(var b=0;b{f();d();(function(r,e){typeof S8e=="object"?UNt.exports=S8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(S8e,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},o=s.Word=a.extend({init:function(u,l){this.high=u,this.low=l}}),c=s.WordArray=a.extend({init:function(u,l){u=this.words=u||[],l!=e?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,p=[],h=0;h{f();d();(function(r,e){typeof P8e=="object"?HNt.exports=P8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(P8e,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var o=s.byteLength,c=[],u=0;u>>2]|=s[u]<<24-u%4*8;a.call(this,c,o)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var KNt=E((R8e,zNt)=>{f();d();(function(r,e){typeof R8e=="object"?zNt.exports=R8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(R8e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],p=0;p>>2]>>>16-p%4*8&65535;l.push(String.fromCharCode(h))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=o.charCodeAt(l)<<16-l%2*16;return n.create(u,c*2)}};a.Utf16LE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],p=0;p>>2]>>>16-p%4*8&65535);l.push(String.fromCharCode(h))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=s(o.charCodeAt(l)<<16-l%2*16);return n.create(u,c*2)}};function s(o){return o<<8&4278255360|o>>>8&16711935}}(),r.enc.Utf16})});var h8=E((M8e,GNt)=>{f();d();(function(r,e){typeof M8e=="object"?GNt.exports=M8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(M8e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(o){var c=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var p=[],h=0;h>>2]>>>24-h%4*8&255,y=c[h+1>>>2]>>>24-(h+1)%4*8&255,C=c[h+2>>>2]>>>24-(h+2)%4*8&255,P=m<<16|y<<8|C,A=0;A<4&&h+A*.75>>6*(3-A)&63));var B=l.charAt(64);if(B)for(;p.length%4;)p.push(B);return p.join("")},parse:function(o){var c=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var p=0;p>>6-h%4*2,C=m|y;l[p>>>2]|=C<<24-p%4*8,p++}return n.create(l,p)}}(),r.enc.Base64})});var $Nt=E((B8e,VNt)=>{f();d();(function(r,e){typeof B8e=="object"?VNt.exports=B8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(B8e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64url={stringify:function(o,c=!0){var u=o.words,l=o.sigBytes,p=c?this._safe_map:this._map;o.clamp();for(var h=[],m=0;m>>2]>>>24-m%4*8&255,C=u[m+1>>>2]>>>24-(m+1)%4*8&255,P=u[m+2>>>2]>>>24-(m+2)%4*8&255,A=y<<16|C<<8|P,B=0;B<4&&m+B*.75>>6*(3-B)&63));var F=p.charAt(64);if(F)for(;h.length%4;)h.push(F);return h.join("")},parse:function(o,c=!0){var u=o.length,l=c?this._safe_map:this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var h=0;h>>6-h%4*2,C=m|y;l[p>>>2]|=C<<24-p%4*8,p++}return n.create(l,p)}}(),r.enc.Base64url})});var m8=E((D8e,YNt)=>{f();d();(function(r,e){typeof D8e=="object"?YNt.exports=D8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(D8e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=e.abs(e.sin(m+1))*4294967296|0})();var c=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,y){for(var C=0;C<16;C++){var P=y+C,A=m[P];m[P]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var B=this._hash.words,F=m[y+0],W=m[y+1],K=m[y+2],z=m[y+3],G=m[y+4],j=m[y+5],H=m[y+6],I=m[y+7],b=m[y+8],k=m[y+9],S=m[y+10],w=m[y+11],R=m[y+12],O=m[y+13],D=m[y+14],T=m[y+15],x=B[0],N=B[1],U=B[2],M=B[3];x=u(x,N,U,M,F,7,o[0]),M=u(M,x,N,U,W,12,o[1]),U=u(U,M,x,N,K,17,o[2]),N=u(N,U,M,x,z,22,o[3]),x=u(x,N,U,M,G,7,o[4]),M=u(M,x,N,U,j,12,o[5]),U=u(U,M,x,N,H,17,o[6]),N=u(N,U,M,x,I,22,o[7]),x=u(x,N,U,M,b,7,o[8]),M=u(M,x,N,U,k,12,o[9]),U=u(U,M,x,N,S,17,o[10]),N=u(N,U,M,x,w,22,o[11]),x=u(x,N,U,M,R,7,o[12]),M=u(M,x,N,U,O,12,o[13]),U=u(U,M,x,N,D,17,o[14]),N=u(N,U,M,x,T,22,o[15]),x=l(x,N,U,M,W,5,o[16]),M=l(M,x,N,U,H,9,o[17]),U=l(U,M,x,N,w,14,o[18]),N=l(N,U,M,x,F,20,o[19]),x=l(x,N,U,M,j,5,o[20]),M=l(M,x,N,U,S,9,o[21]),U=l(U,M,x,N,T,14,o[22]),N=l(N,U,M,x,G,20,o[23]),x=l(x,N,U,M,k,5,o[24]),M=l(M,x,N,U,D,9,o[25]),U=l(U,M,x,N,z,14,o[26]),N=l(N,U,M,x,b,20,o[27]),x=l(x,N,U,M,O,5,o[28]),M=l(M,x,N,U,K,9,o[29]),U=l(U,M,x,N,I,14,o[30]),N=l(N,U,M,x,R,20,o[31]),x=p(x,N,U,M,j,4,o[32]),M=p(M,x,N,U,b,11,o[33]),U=p(U,M,x,N,w,16,o[34]),N=p(N,U,M,x,D,23,o[35]),x=p(x,N,U,M,W,4,o[36]),M=p(M,x,N,U,G,11,o[37]),U=p(U,M,x,N,I,16,o[38]),N=p(N,U,M,x,S,23,o[39]),x=p(x,N,U,M,O,4,o[40]),M=p(M,x,N,U,F,11,o[41]),U=p(U,M,x,N,z,16,o[42]),N=p(N,U,M,x,H,23,o[43]),x=p(x,N,U,M,k,4,o[44]),M=p(M,x,N,U,R,11,o[45]),U=p(U,M,x,N,T,16,o[46]),N=p(N,U,M,x,K,23,o[47]),x=h(x,N,U,M,F,6,o[48]),M=h(M,x,N,U,I,10,o[49]),U=h(U,M,x,N,D,15,o[50]),N=h(N,U,M,x,j,21,o[51]),x=h(x,N,U,M,R,6,o[52]),M=h(M,x,N,U,z,10,o[53]),U=h(U,M,x,N,S,15,o[54]),N=h(N,U,M,x,W,21,o[55]),x=h(x,N,U,M,b,6,o[56]),M=h(M,x,N,U,T,10,o[57]),U=h(U,M,x,N,H,15,o[58]),N=h(N,U,M,x,O,21,o[59]),x=h(x,N,U,M,G,6,o[60]),M=h(M,x,N,U,w,10,o[61]),U=h(U,M,x,N,K,15,o[62]),N=h(N,U,M,x,k,21,o[63]),B[0]=B[0]+x|0,B[1]=B[1]+N|0,B[2]=B[2]+U|0,B[3]=B[3]+M|0},_doFinalize:function(){var m=this._data,y=m.words,C=this._nDataBytes*8,P=m.sigBytes*8;y[P>>>5]|=128<<24-P%32;var A=e.floor(C/4294967296),B=C;y[(P+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,y[(P+64>>>9<<4)+14]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,m.sigBytes=(y.length+1)*4,this._process();for(var F=this._hash,W=F.words,K=0;K<4;K++){var z=W[K];W[K]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return F},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});function u(m,y,C,P,A,B,F){var W=m+(y&C|~y&P)+A+F;return(W<>>32-B)+y}function l(m,y,C,P,A,B,F){var W=m+(y&P|C&~P)+A+F;return(W<>>32-B)+y}function p(m,y,C,P,A,B,F){var W=m+(y^C^P)+A+F;return(W<>>32-B)+y}function h(m,y,C,P,A,B,F){var W=m+(C^(y|~P))+A+F;return(W<>>32-B)+y}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5})});var O8e=E((N8e,QNt)=>{f();d();(function(r,e){typeof N8e=="object"?QNt.exports=N8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(N8e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var l=this._hash.words,p=l[0],h=l[1],m=l[2],y=l[3],C=l[4],P=0;P<80;P++){if(P<16)s[P]=c[u+P]|0;else{var A=s[P-3]^s[P-8]^s[P-14]^s[P-16];s[P]=A<<1|A>>>31}var B=(p<<5|p>>>27)+C+s[P];P<20?B+=(h&m|~h&y)+1518500249:P<40?B+=(h^m^y)+1859775393:P<60?B+=(h&m|h&y|m&y)-1894007588:B+=(h^m^y)-899497514,C=y,y=m,m=h<<30|h>>>2,h=p,p=B}l[0]=l[0]+p|0,l[1]=l[1]+h|0,l[2]=l[2]+m|0,l[3]=l[3]+y|0,l[4]=l[4]+C|0},_doFinalize:function(){var c=this._data,u=c.words,l=this._nDataBytes*8,p=c.sigBytes*8;return u[p>>>5]|=128<<24-p%32,u[(p+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(p+64>>>9<<4)+15]=l,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o)}(),r.SHA1})});var vje=E((F8e,JNt)=>{f();d();(function(r,e){typeof F8e=="object"?JNt.exports=F8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(F8e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];(function(){function p(C){for(var P=e.sqrt(C),A=2;A<=P;A++)if(!(C%A))return!1;return!0}function h(C){return(C-(C|0))*4294967296|0}for(var m=2,y=0;y<64;)p(m)&&(y<8&&(o[y]=h(e.pow(m,1/2))),c[y]=h(e.pow(m,1/3)),y++),m++})();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(p,h){for(var m=this._hash.words,y=m[0],C=m[1],P=m[2],A=m[3],B=m[4],F=m[5],W=m[6],K=m[7],z=0;z<64;z++){if(z<16)u[z]=p[h+z]|0;else{var G=u[z-15],j=(G<<25|G>>>7)^(G<<14|G>>>18)^G>>>3,H=u[z-2],I=(H<<15|H>>>17)^(H<<13|H>>>19)^H>>>10;u[z]=j+u[z-7]+I+u[z-16]}var b=B&F^~B&W,k=y&C^y&P^C&P,S=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),w=(B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25),R=K+w+b+c[z]+u[z],O=S+k;K=W,W=F,F=B,B=A+R|0,A=P,P=C,C=y,y=R+O|0}m[0]=m[0]+y|0,m[1]=m[1]+C|0,m[2]=m[2]+P|0,m[3]=m[3]+A|0,m[4]=m[4]+B|0,m[5]=m[5]+F|0,m[6]=m[6]+W|0,m[7]=m[7]+K|0},_doFinalize:function(){var p=this._data,h=p.words,m=this._nDataBytes*8,y=p.sigBytes*8;return h[y>>>5]|=128<<24-y%32,h[(y+64>>>9<<4)+14]=e.floor(m/4294967296),h[(y+64>>>9<<4)+15]=m,p.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var p=i.clone.call(this);return p._hash=this._hash.clone(),p}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256})});var XNt=E((L8e,ZNt)=>{f();d();(function(r,e,t){typeof L8e=="object"?ZNt.exports=L8e=e(Wn(),vje()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(L8e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=4,o}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var wje=E((q8e,eOt)=>{f();d();(function(r,e,t){typeof q8e=="object"?eOt.exports=q8e=e(Wn(),ale()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(q8e,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,o=e.algo;function c(){return i.create.apply(i,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var h=0;h<80;h++)l[h]=c()})();var p=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(h,m){for(var y=this._hash.words,C=y[0],P=y[1],A=y[2],B=y[3],F=y[4],W=y[5],K=y[6],z=y[7],G=C.high,j=C.low,H=P.high,I=P.low,b=A.high,k=A.low,S=B.high,w=B.low,R=F.high,O=F.low,D=W.high,T=W.low,x=K.high,N=K.low,U=z.high,M=z.low,V=G,ee=j,$=H,X=I,se=b,ue=k,ye=S,Ie=w,ge=R,xe=O,Ue=D,Te=T,Be=x,Tr=N,et=U,mt=M,jt=0;jt<80;jt++){var je,ht,ir=l[jt];if(jt<16)ht=ir.high=h[m+jt*2]|0,je=ir.low=h[m+jt*2+1]|0;else{var tt=l[jt-15],It=tt.high,br=tt.low,lt=(It>>>1|br<<31)^(It>>>8|br<<24)^It>>>7,Ut=(br>>>1|It<<31)^(br>>>8|It<<24)^(br>>>7|It<<25),Or=l[jt-2],Ve=Or.high,At=Or.low,Gr=(Ve>>>19|At<<13)^(Ve<<3|At>>>29)^Ve>>>6,rt=(At>>>19|Ve<<13)^(At<<3|Ve>>>29)^(At>>>6|Ve<<26),Ft=l[jt-7],Vr=Ft.high,st=Ft.low,Lt=l[jt-16],Hr=Lt.high,nt=Lt.low;je=Ut+st,ht=lt+Vr+(je>>>0>>0?1:0),je=je+rt,ht=ht+Gr+(je>>>0>>0?1:0),je=je+nt,ht=ht+Hr+(je>>>0>>0?1:0),ir.high=ht,ir.low=je}var Kt=ge&Ue^~ge&Be,Pr=xe&Te^~xe&Tr,ot=V&$^V&se^$&se,Gt=ee&X^ee&ue^X&ue,Er=(V>>>28|ee<<4)^(V<<30|ee>>>2)^(V<<25|ee>>>7),at=(ee>>>28|V<<4)^(ee<<30|V>>>2)^(ee<<25|V>>>7),Vt=(ge>>>14|xe<<18)^(ge>>>18|xe<<14)^(ge<<23|xe>>>9),$r=(xe>>>14|ge<<18)^(xe>>>18|ge<<14)^(xe<<23|ge>>>9),it=u[jt],$t=it.high,jr=it.low,Le=mt+$r,yt=et+Vt+(Le>>>0>>0?1:0),Le=Le+Pr,yt=yt+Kt+(Le>>>0>>0?1:0),Le=Le+jr,yt=yt+$t+(Le>>>0>>0?1:0),Le=Le+je,yt=yt+ht+(Le>>>0>>0?1:0),zr=at+Gt,ft=Er+ot+(zr>>>0>>0?1:0);et=Be,mt=Tr,Be=Ue,Tr=Te,Ue=ge,Te=xe,xe=Ie+Le|0,ge=ye+yt+(xe>>>0>>0?1:0)|0,ye=se,Ie=ue,se=$,ue=X,$=V,X=ee,ee=Le+zr|0,V=yt+ft+(ee>>>0>>0?1:0)|0}j=C.low=j+ee,C.high=G+V+(j>>>0>>0?1:0),I=P.low=I+X,P.high=H+$+(I>>>0>>0?1:0),k=A.low=k+ue,A.high=b+se+(k>>>0>>0?1:0),w=B.low=w+Ie,B.high=S+ye+(w>>>0>>0?1:0),O=F.low=O+xe,F.high=R+ge+(O>>>0>>0?1:0),T=W.low=T+Te,W.high=D+Ue+(T>>>0>>0?1:0),N=K.low=N+Tr,K.high=x+Be+(N>>>0>>0?1:0),M=z.low=M+mt,z.high=U+et+(M>>>0>>0?1:0)},_doFinalize:function(){var h=this._data,m=h.words,y=this._nDataBytes*8,C=h.sigBytes*8;m[C>>>5]|=128<<24-C%32,m[(C+128>>>10<<5)+30]=Math.floor(y/4294967296),m[(C+128>>>10<<5)+31]=y,h.sigBytes=m.length*4,this._process();var P=this._hash.toX32();return P},clone:function(){var h=n.clone.call(this);return h._hash=this._hash.clone(),h},blockSize:1024/32});e.SHA512=n._createHelper(p),e.HmacSHA512=n._createHmacHelper(p)}(),r.SHA512})});var rOt=E((W8e,tOt)=>{f();d();(function(r,e,t){typeof W8e=="object"?tOt.exports=W8e=e(Wn(),ale(),wje()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(W8e,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,o=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),r.SHA384})});var aOt=E((U8e,nOt)=>{f();d();(function(r,e,t){typeof U8e=="object"?nOt.exports=U8e=e(Wn(),ale()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(U8e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,o=s.Word,c=t.algo,u=[],l=[],p=[];(function(){for(var y=1,C=0,P=0;P<24;P++){u[y+5*C]=(P+1)*(P+2)/2%64;var A=C%5,B=(2*y+3*C)%5;y=A,C=B}for(var y=0;y<5;y++)for(var C=0;C<5;C++)l[y+5*C]=C+(2*y+3*C)%5*5;for(var F=1,W=0;W<24;W++){for(var K=0,z=0,G=0;G<7;G++){if(F&1){var j=(1<>>24)&16711935|(F<<24|F>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360;var K=P[B];K.high^=W,K.low^=F}for(var z=0;z<24;z++){for(var G=0;G<5;G++){for(var j=0,H=0,I=0;I<5;I++){var K=P[G+5*I];j^=K.high,H^=K.low}var b=h[G];b.high=j,b.low=H}for(var G=0;G<5;G++)for(var k=h[(G+4)%5],S=h[(G+1)%5],w=S.high,R=S.low,j=k.high^(w<<1|R>>>31),H=k.low^(R<<1|w>>>31),I=0;I<5;I++){var K=P[G+5*I];K.high^=j,K.low^=H}for(var O=1;O<25;O++){var j,H,K=P[O],D=K.high,T=K.low,x=u[O];x<32?(j=D<>>32-x,H=T<>>32-x):(j=T<>>64-x,H=D<>>64-x);var N=h[l[O]];N.high=j,N.low=H}var U=h[0],M=P[0];U.high=M.high,U.low=M.low;for(var G=0;G<5;G++)for(var I=0;I<5;I++){var O=G+5*I,K=P[O],V=h[O],ee=h[(G+1)%5+5*I],$=h[(G+2)%5+5*I];K.high=V.high^~ee.high&$.high,K.low=V.low^~ee.low&$.low}var K=P[0],X=p[z];K.high^=X.high,K.low^=X.low}},_doFinalize:function(){var y=this._data,C=y.words,P=this._nDataBytes*8,A=y.sigBytes*8,B=this.blockSize*32;C[A>>>5]|=1<<24-A%32,C[(e.ceil((A+1)/B)*B>>>5)-1]|=128,y.sigBytes=C.length*4,this._process();for(var F=this._state,W=this.cfg.outputLength/8,K=W/8,z=[],G=0;G>>24)&16711935|(H<<24|H>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,z.push(I),z.push(H)}return new a.init(z,W)},clone:function(){for(var y=i.clone.call(this),C=y._state=this._state.slice(0),P=0;P<25;P++)C[P]=C[P].clone();return y}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),r.SHA3})});var sOt=E((H8e,iOt)=>{f();d();(function(r,e){typeof H8e=="object"?iOt.exports=H8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(H8e,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=a.create([0,1518500249,1859775393,2400959708,2840853838]),h=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(W,K){for(var z=0;z<16;z++){var G=K+z,j=W[G];W[G]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}var H=this._hash.words,I=p.words,b=h.words,k=o.words,S=c.words,w=u.words,R=l.words,O,D,T,x,N,U,M,V,ee,$;U=O=H[0],M=D=H[1],V=T=H[2],ee=x=H[3],$=N=H[4];for(var X,z=0;z<80;z+=1)X=O+W[K+k[z]]|0,z<16?X+=y(D,T,x)+I[0]:z<32?X+=C(D,T,x)+I[1]:z<48?X+=P(D,T,x)+I[2]:z<64?X+=A(D,T,x)+I[3]:X+=B(D,T,x)+I[4],X=X|0,X=F(X,w[z]),X=X+N|0,O=N,N=x,x=F(T,10),T=D,D=X,X=U+W[K+S[z]]|0,z<16?X+=B(M,V,ee)+b[0]:z<32?X+=A(M,V,ee)+b[1]:z<48?X+=P(M,V,ee)+b[2]:z<64?X+=C(M,V,ee)+b[3]:X+=y(M,V,ee)+b[4],X=X|0,X=F(X,R[z]),X=X+$|0,U=$,$=ee,ee=F(V,10),V=M,M=X;X=H[1]+T+ee|0,H[1]=H[2]+x+$|0,H[2]=H[3]+N+U|0,H[3]=H[4]+O+M|0,H[4]=H[0]+D+V|0,H[0]=X},_doFinalize:function(){var W=this._data,K=W.words,z=this._nDataBytes*8,G=W.sigBytes*8;K[G>>>5]|=128<<24-G%32,K[(G+64>>>9<<4)+14]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,W.sigBytes=(K.length+1)*4,this._process();for(var j=this._hash,H=j.words,I=0;I<5;I++){var b=H[I];H[I]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360}return j},clone:function(){var W=i.clone.call(this);return W._hash=this._hash.clone(),W}});function y(W,K,z){return W^K^z}function C(W,K,z){return W&K|~W&z}function P(W,K,z){return(W|~K)^z}function A(W,K,z){return W&z|K&~z}function B(W,K,z){return W^(K|~z)}function F(W,K){return W<>>32-K}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),r.RIPEMD160})});var z8e=E((j8e,oOt)=>{f();d();(function(r,e){typeof j8e=="object"?oOt.exports=j8e=e(Wn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(j8e,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,o=s.HMAC=n.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var l=c.blockSize,p=l*4;u.sigBytes>p&&(u=c.finalize(u)),u.clamp();for(var h=this._oKey=u.clone(),m=this._iKey=u.clone(),y=h.words,C=m.words,P=0;P{f();d();(function(r,e,t){typeof K8e=="object"?cOt.exports=K8e=e(Wn(),O8e(),z8e()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(K8e,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,o=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var p=this.cfg,h=o.create(p.hasher,u),m=a.create(),y=a.create([1]),C=m.words,P=y.words,A=p.keySize,B=p.iterations;C.length{f();d();(function(r,e,t){typeof G8e=="object"?lOt.exports=G8e=e(Wn(),O8e(),z8e()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(G8e,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var l,p=this.cfg,h=p.hasher.create(),m=a.create(),y=m.words,C=p.keySize,P=p.iterations;y.length{f();d();(function(r,e,t){typeof V8e=="object"?fOt.exports=V8e=e(Wn(),T6()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(V8e,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=o.Utf8,u=o.Base64,l=t.algo,p=l.EvpKDF,h=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(b,k){return this.create(this._ENC_XFORM_MODE,b,k)},createDecryptor:function(b,k){return this.create(this._DEC_XFORM_MODE,b,k)},init:function(b,k,S){this.cfg=this.cfg.extend(S),this._xformMode=b,this._key=k,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(b){return this._append(b),this._process()},finalize:function(b){b&&this._append(b);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function b(k){return typeof k=="string"?I:G}return function(k){return{encrypt:function(S,w,R){return b(w).encrypt(k,S,w,R)},decrypt:function(S,w,R){return b(w).decrypt(k,S,w,R)}}}}()}),m=n.StreamCipher=h.extend({_doFinalize:function(){var b=this._process(!0);return b},blockSize:1}),y=t.mode={},C=n.BlockCipherMode=a.extend({createEncryptor:function(b,k){return this.Encryptor.create(b,k)},createDecryptor:function(b,k){return this.Decryptor.create(b,k)},init:function(b,k){this._cipher=b,this._iv=k}}),P=y.CBC=function(){var b=C.extend();b.Encryptor=b.extend({processBlock:function(S,w){var R=this._cipher,O=R.blockSize;k.call(this,S,w,O),R.encryptBlock(S,w),this._prevBlock=S.slice(w,w+O)}}),b.Decryptor=b.extend({processBlock:function(S,w){var R=this._cipher,O=R.blockSize,D=S.slice(w,w+O);R.decryptBlock(S,w),k.call(this,S,w,O),this._prevBlock=D}});function k(S,w,R){var O,D=this._iv;D?(O=D,this._iv=e):O=this._prevBlock;for(var T=0;T>>2]&255;b.sigBytes-=k}},F=n.BlockCipher=h.extend({cfg:h.cfg.extend({mode:P,padding:B}),reset:function(){var b;h.reset.call(this);var k=this.cfg,S=k.iv,w=k.mode;this._xformMode==this._ENC_XFORM_MODE?b=w.createEncryptor:(b=w.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==b?this._mode.init(this,S&&S.words):(this._mode=b.call(w,this,S&&S.words),this._mode.__creator=b)},_doProcessBlock:function(b,k){this._mode.processBlock(b,k)},_doFinalize:function(){var b,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),b=this._process(!0)):(b=this._process(!0),k.unpad(b)),b},blockSize:128/32}),W=n.CipherParams=a.extend({init:function(b){this.mixIn(b)},toString:function(b){return(b||this.formatter).stringify(this)}}),K=t.format={},z=K.OpenSSL={stringify:function(b){var k,S=b.ciphertext,w=b.salt;return w?k=i.create([1398893684,1701076831]).concat(w).concat(S):k=S,k.toString(u)},parse:function(b){var k,S=u.parse(b),w=S.words;return w[0]==1398893684&&w[1]==1701076831&&(k=i.create(w.slice(2,4)),w.splice(0,4),S.sigBytes-=16),W.create({ciphertext:S,salt:k})}},G=n.SerializableCipher=a.extend({cfg:a.extend({format:z}),encrypt:function(b,k,S,w){w=this.cfg.extend(w);var R=b.createEncryptor(S,w),O=R.finalize(k),D=R.cfg;return W.create({ciphertext:O,key:S,iv:D.iv,algorithm:b,mode:D.mode,padding:D.padding,blockSize:b.blockSize,formatter:w.format})},decrypt:function(b,k,S,w){w=this.cfg.extend(w),k=this._parse(k,w.format);var R=b.createDecryptor(S,w).finalize(k.ciphertext);return R},_parse:function(b,k){return typeof b=="string"?k.parse(b,this):b}}),j=t.kdf={},H=j.OpenSSL={execute:function(b,k,S,w){w||(w=i.random(64/8));var R=p.create({keySize:k+S}).compute(b,w),O=i.create(R.words.slice(k),S*4);return R.sigBytes=k*4,W.create({key:R,iv:O,salt:w})}},I=n.PasswordBasedCipher=G.extend({cfg:G.cfg.extend({kdf:H}),encrypt:function(b,k,S,w){w=this.cfg.extend(w);var R=w.kdf.execute(S,b.keySize,b.ivSize);w.iv=R.iv;var O=G.encrypt.call(this,b,k,R.key,w);return O.mixIn(R),O},decrypt:function(b,k,S,w){w=this.cfg.extend(w),k=this._parse(k,w.format);var R=w.kdf.execute(S,b.keySize,b.ivSize,k.salt);w.iv=R.iv;var O=G.decrypt.call(this,b,k,R.key,w);return O}})}()})});var pOt=E(($8e,dOt)=>{f();d();(function(r,e,t){typeof $8e=="object"?dOt.exports=$8e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})($8e,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=o}});function t(n,a,i,s){var o,c=this._iv;c?(o=c.slice(0),this._iv=void 0):o=this._prevBlock,s.encryptBlock(o,0);for(var u=0;u{f();d();(function(r,e,t){typeof Y8e=="object"?hOt.exports=Y8e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Y8e,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._counter;o&&(c=this._counter=o.slice(0),this._iv=void 0);var u=c.slice(0);i.encryptBlock(u,0),c[s-1]=c[s-1]+1|0;for(var l=0;l{f();d();(function(r,e,t){typeof Q8e=="object"?yOt.exports=Q8e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Q8e,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,o=i>>8&255,c=i&255;s===255?(s=0,o===255?(o=0,c===255?c=0:++c):++o):++s,i=0,i+=s<<16,i+=o<<8,i+=c}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var o=this._cipher,c=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),n(l);var p=l.slice(0);o.encryptBlock(p,0);for(var h=0;h{f();d();(function(r,e,t){typeof J8e=="object"?gOt.exports=J8e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(J8e,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._keystream;o&&(c=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(c,0);for(var u=0;u{f();d();(function(r,e,t){typeof Z8e=="object"?wOt.exports=Z8e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(Z8e,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var TOt=E((X8e,_Ot)=>{f();d();(function(r,e,t){typeof X8e=="object"?_Ot.exports=X8e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(X8e,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var IOt=E((e4e,EOt)=>{f();d();(function(r,e,t){typeof e4e=="object"?EOt.exports=e4e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(e4e,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var AOt=E((t4e,COt)=>{f();d();(function(r,e,t){typeof t4e=="object"?COt.exports=t4e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(t4e,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var SOt=E((r4e,kOt)=>{f();d();(function(r,e,t){typeof r4e=="object"?kOt.exports=r4e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(r4e,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1,n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r.pad.ZeroPadding})});var ROt=E((n4e,POt)=>{f();d();(function(r,e,t){typeof n4e=="object"?POt.exports=n4e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(n4e,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var BOt=E((a4e,MOt)=>{f();d();(function(r,e,t){typeof a4e=="object"?MOt.exports=a4e=e(Wn(),P0()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(a4e,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,o=t.format,c=o.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var l=s.parse(u);return a.create({ciphertext:l})}}}(),r.format.Hex})});var NOt=E((i4e,DOt)=>{f();d();(function(r,e,t){typeof i4e=="object"?DOt.exports=i4e=e(Wn(),h8(),m8(),T6(),P0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(i4e,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],o=[],c=[],u=[],l=[],p=[],h=[],m=[],y=[];(function(){for(var A=[],B=0;B<256;B++)B<128?A[B]=B<<1:A[B]=B<<1^283;for(var F=0,W=0,B=0;B<256;B++){var K=W^W<<1^W<<2^W<<3^W<<4;K=K>>>8^K&255^99,i[F]=K,s[K]=F;var z=A[F],G=A[z],j=A[G],H=A[K]*257^K*16843008;o[F]=H<<24|H>>>8,c[F]=H<<16|H>>>16,u[F]=H<<8|H>>>24,l[F]=H;var H=j*16843009^G*65537^z*257^F*16843008;p[K]=H<<24|H>>>8,h[K]=H<<16|H>>>16,m[K]=H<<8|H>>>24,y[K]=H,F?(F=z^A[A[A[j^z]]],W^=A[A[W]]):F=W=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],P=a.AES=n.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var B=this._keyPriorReset=this._key,F=B.words,W=B.sigBytes/4,K=this._nRounds=W+6,z=(K+1)*4,G=this._keySchedule=[],j=0;j6&&j%W==4&&(A=i[A>>>24]<<24|i[A>>>16&255]<<16|i[A>>>8&255]<<8|i[A&255]):(A=A<<8|A>>>24,A=i[A>>>24]<<24|i[A>>>16&255]<<16|i[A>>>8&255]<<8|i[A&255],A^=C[j/W|0]<<24),G[j]=G[j-W]^A);for(var H=this._invKeySchedule=[],I=0;I>>24]]^h[i[A>>>16&255]]^m[i[A>>>8&255]]^y[i[A&255]]}}},encryptBlock:function(A,B){this._doCryptBlock(A,B,this._keySchedule,o,c,u,l,i)},decryptBlock:function(A,B){var F=A[B+1];A[B+1]=A[B+3],A[B+3]=F,this._doCryptBlock(A,B,this._invKeySchedule,p,h,m,y,s);var F=A[B+1];A[B+1]=A[B+3],A[B+3]=F},_doCryptBlock:function(A,B,F,W,K,z,G,j){for(var H=this._nRounds,I=A[B]^F[0],b=A[B+1]^F[1],k=A[B+2]^F[2],S=A[B+3]^F[3],w=4,R=1;R>>24]^K[b>>>16&255]^z[k>>>8&255]^G[S&255]^F[w++],D=W[b>>>24]^K[k>>>16&255]^z[S>>>8&255]^G[I&255]^F[w++],T=W[k>>>24]^K[S>>>16&255]^z[I>>>8&255]^G[b&255]^F[w++],x=W[S>>>24]^K[I>>>16&255]^z[b>>>8&255]^G[k&255]^F[w++];I=O,b=D,k=T,S=x}var O=(j[I>>>24]<<24|j[b>>>16&255]<<16|j[k>>>8&255]<<8|j[S&255])^F[w++],D=(j[b>>>24]<<24|j[k>>>16&255]<<16|j[S>>>8&255]<<8|j[I&255])^F[w++],T=(j[k>>>24]<<24|j[S>>>16&255]<<16|j[I>>>8&255]<<8|j[b&255])^F[w++],x=(j[S>>>24]<<24|j[I>>>16&255]<<16|j[b>>>8&255]<<8|j[k&255])^F[w++];A[B]=O,A[B+1]=D,A[B+2]=T,A[B+3]=x},keySize:256/32});e.AES=n._createHelper(P)}(),r.AES})});var FOt=E((s4e,OOt)=>{f();d();(function(r,e,t){typeof s4e=="object"?OOt.exports=s4e=e(Wn(),h8(),m8(),T6(),P0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(s4e,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=i.DES=a.extend({_doReset:function(){for(var C=this._key,P=C.words,A=[],B=0;B<56;B++){var F=s[B]-1;A[B]=P[F>>>5]>>>31-F%32&1}for(var W=this._subKeys=[],K=0;K<16;K++){for(var z=W[K]=[],G=c[K],B=0;B<24;B++)z[B/6|0]|=A[(o[B]-1+G)%28]<<31-B%6,z[4+(B/6|0)]|=A[28+(o[B+24]-1+G)%28]<<31-B%6;z[0]=z[0]<<1|z[0]>>>31;for(var B=1;B<7;B++)z[B]=z[B]>>>(B-1)*4+3;z[7]=z[7]<<5|z[7]>>>27}for(var j=this._invSubKeys=[],B=0;B<16;B++)j[B]=W[15-B]},encryptBlock:function(C,P){this._doCryptBlock(C,P,this._subKeys)},decryptBlock:function(C,P){this._doCryptBlock(C,P,this._invSubKeys)},_doCryptBlock:function(C,P,A){this._lBlock=C[P],this._rBlock=C[P+1],h.call(this,4,252645135),h.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),h.call(this,1,1431655765);for(var B=0;B<16;B++){for(var F=A[B],W=this._lBlock,K=this._rBlock,z=0,G=0;G<8;G++)z|=u[G][((K^F[G])&l[G])>>>0];this._lBlock=K,this._rBlock=W^z}var j=this._lBlock;this._lBlock=this._rBlock,this._rBlock=j,h.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),C[P]=this._lBlock,C[P+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(C,P){var A=(this._lBlock>>>C^this._rBlock)&P;this._rBlock^=A,this._lBlock^=A<>>C^this._lBlock)&P;this._lBlock^=A,this._rBlock^=A<192.");var A=P.slice(0,2),B=P.length<4?P.slice(0,2):P.slice(2,4),F=P.length<6?P.slice(0,2):P.slice(4,6);this._des1=p.createEncryptor(n.create(A)),this._des2=p.createEncryptor(n.create(B)),this._des3=p.createEncryptor(n.create(F))},encryptBlock:function(C,P){this._des1.encryptBlock(C,P),this._des2.decryptBlock(C,P),this._des3.encryptBlock(C,P)},decryptBlock:function(C,P){this._des3.decryptBlock(C,P),this._des2.encryptBlock(C,P),this._des1.decryptBlock(C,P)},keySize:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=a._createHelper(y)}(),r.TripleDES})});var qOt=E((o4e,LOt)=>{f();d();(function(r,e,t){typeof o4e=="object"?LOt.exports=o4e=e(Wn(),h8(),m8(),T6(),P0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(o4e,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var c=this._key,u=c.words,l=c.sigBytes,p=this._S=[],h=0;h<256;h++)p[h]=h;for(var h=0,m=0;h<256;h++){var y=h%l,C=u[y>>>2]>>>24-y%4*8&255;m=(m+p[h]+C)%256;var P=p[h];p[h]=p[m],p[m]=P}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,u=this._i,l=this._j,p=0,h=0;h<4;h++){u=(u+1)%256,l=(l+c[u])%256;var m=c[u];c[u]=c[l],c[l]=m,p|=c[(c[u]+c[l])%256]<<24-h*8}return this._i=u,this._j=l,p}e.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),r.RC4})});var UOt=E((c4e,WOt)=>{f();d();(function(r,e,t){typeof c4e=="object"?WOt.exports=c4e=e(Wn(),h8(),m8(),T6(),P0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(c4e,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.Rabbit=n.extend({_doReset:function(){for(var l=this._key.words,p=this.cfg.iv,h=0;h<4;h++)l[h]=(l[h]<<8|l[h]>>>24)&16711935|(l[h]<<24|l[h]>>>8)&4278255360;var m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],y=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var h=0;h<4;h++)u.call(this);for(var h=0;h<8;h++)y[h]^=m[h+4&7];if(p){var C=p.words,P=C[0],A=C[1],B=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,F=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,W=B>>>16|F&4294901760,K=F<<16|B&65535;y[0]^=B,y[1]^=W,y[2]^=F,y[3]^=K,y[4]^=B,y[5]^=W,y[6]^=F,y[7]^=K;for(var h=0;h<4;h++)u.call(this)}},_doProcessBlock:function(l,p){var h=this._X;u.call(this),i[0]=h[0]^h[5]>>>16^h[3]<<16,i[1]=h[2]^h[7]>>>16^h[5]<<16,i[2]=h[4]^h[1]>>>16^h[7]<<16,i[3]=h[6]^h[3]>>>16^h[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[p+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,p=this._C,h=0;h<8;h++)s[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var h=0;h<8;h++){var m=l[h]+p[h],y=m&65535,C=m>>>16,P=((y*y>>>17)+y*C>>>15)+C*C,A=((m&4294901760)*m|0)+((m&65535)*m|0);o[h]=P^A}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(c)}(),r.Rabbit})});var jOt=E((u4e,HOt)=>{f();d();(function(r,e,t){typeof u4e=="object"?HOt.exports=u4e=e(Wn(),h8(),m8(),T6(),P0()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(u4e,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.RabbitLegacy=n.extend({_doReset:function(){var l=this._key.words,p=this.cfg.iv,h=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],m=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var y=0;y<4;y++)u.call(this);for(var y=0;y<8;y++)m[y]^=h[y+4&7];if(p){var C=p.words,P=C[0],A=C[1],B=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,F=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,W=B>>>16|F&4294901760,K=F<<16|B&65535;m[0]^=B,m[1]^=W,m[2]^=F,m[3]^=K,m[4]^=B,m[5]^=W,m[6]^=F,m[7]^=K;for(var y=0;y<4;y++)u.call(this)}},_doProcessBlock:function(l,p){var h=this._X;u.call(this),i[0]=h[0]^h[5]>>>16^h[3]<<16,i[1]=h[2]^h[7]>>>16^h[5]<<16,i[2]=h[4]^h[1]>>>16^h[7]<<16,i[3]=h[6]^h[3]>>>16^h[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[p+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,p=this._C,h=0;h<8;h++)s[h]=p[h];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0>>0?1:0)|0,this._b=p[7]>>>0>>0?1:0;for(var h=0;h<8;h++){var m=l[h]+p[h],y=m&65535,C=m>>>16,P=((y*y>>>17)+y*C>>>15)+C*C,A=((m&4294901760)*m|0)+((m&65535)*m|0);o[h]=P^A}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(c)}(),r.RabbitLegacy})});var ile=E((l4e,zOt)=>{f();d();(function(r,e,t){typeof l4e=="object"?zOt.exports=l4e=e(Wn(),ale(),jNt(),KNt(),h8(),$Nt(),m8(),O8e(),vje(),XNt(),wje(),rOt(),aOt(),sOt(),z8e(),uOt(),T6(),P0(),pOt(),mOt(),bOt(),vOt(),xOt(),TOt(),IOt(),AOt(),SOt(),ROt(),BOt(),NOt(),FOt(),qOt(),UOt(),jOt()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./enc-base64url","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(l4e,function(r){return r})});var Ije=E(Eje=>{"use strict";f();d();Object.defineProperty(Eje,"__esModule",{value:!0});var f4e=Zu(),sle=bf(),cle=Oi(),KOt=Dp(),xje=Ct(),Ote=ke();ao();yf();Xe();function $Ot(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Tje="localWalletData",ole=new WeakMap,d4e=new WeakSet,y8=class extends KOt.AbstractClientWallet{get walletName(){return"Local Wallet"}constructor(e){super(y8.id,e),f4e._classPrivateMethodInitSpec(this,d4e),cle._defineProperty(this,"connector",void 0),cle._defineProperty(this,"options",void 0),cle._defineProperty(this,"ethersWallet",void 0),sle._classPrivateFieldInitSpec(this,ole,{writable:!0,value:void 0}),this.options=e||{},sle._classPrivateFieldSet(this,ole,e?.storage||e?.walletStorage||KOt.createAsyncLocalStorage("localWallet"))}async getConnector(){if(!this.connector){let{LocalWalletConnector:e}=await Promise.resolve().then(function(){return qNt()});if(!this.ethersWallet)throw new Error("wallet is not initialized");let t=this.options.chain?[...xje.defaultChains,this.options.chain]:xje.defaultChains;this.connector=new e({chain:this.options.chain||xje.Ethereum,ethersWallet:this.ethersWallet,chains:this.options.chains||t,thirdwebApiKey:this.options.thirdwebApiKey})}return this.connector}async loadOrCreate(e){await this.isSaved()?await this.load(e):(await this.generate(),await this.save(e))}async generate(){if(this.ethersWallet)throw new Error("wallet is already initialized");return this.ethersWallet=Ote.Wallet.createRandom(),this.ethersWallet.address}async import(e){if(this.ethersWallet)throw new Error("wallet is already initialized");if("encryptedJson"in e)return this.ethersWallet=await Ote.Wallet.fromEncryptedJson(e.encryptedJson,e.password),this.ethersWallet.address;if("privateKey"in e){if(!e.encryption&&!VOt(e.privateKey))throw new Error("invalid private key");let t=await GOt(e.encryption)(e.privateKey);if(e.encryption&&(t===""||!VOt(t)))throw new Error("invalid password");return this.ethersWallet=new Ote.Wallet(t),this.ethersWallet.address}if("mnemonic"in e){if(!e.encryption&&!Ote.utils.isValidMnemonic(e.mnemonic))throw new Error("invalid mnemonic");let t=await GOt(e.encryption)(e.mnemonic);if(e.encryption&&(t===""||!Ote.utils.isValidMnemonic(t)))throw new Error("invalid password");return this.ethersWallet=Ote.Wallet.fromMnemonic(t),this.ethersWallet.address}throw new Error("invalid import strategy")}async load(e){if(this.ethersWallet)throw new Error("wallet is already initialized");let t=await this.getSavedData(e.storage);if(!t)throw new Error("No Saved wallet found in storage");if(t.strategy!==e.strategy)throw new Error(`Saved wallet data is not ${e.strategy}, it is ${t.strategy}`);if(e.strategy==="encryptedJson")return this.import({encryptedJson:t.data,password:e.password});if(t.isEncrypted&&!e.encryption)throw new Error("Saved wallet data is encrypted, but no password is provided");if(!t.isEncrypted&&e.encryption)throw new Error("Saved wallet data is not encrypted, but encryption config is provided");if(e.strategy==="privateKey")return this.import({privateKey:t.data,encryption:e.encryption});if(e.strategy==="mnemonic")return this.import({mnemonic:t.data,encryption:e.encryption});throw new Error("invalid load strategy")}async save(e){let t=this.ethersWallet;if(!t)throw new Error("Wallet is not initialized");if(e.strategy==="encryptedJson"){let n=await t.encrypt(e.password,{scrypt:{N:1}});await f4e._classPrivateMethodGet(this,d4e,_je).call(this,{address:t.address,data:n,strategy:"encryptedJson",isEncrypted:!0},e.storage)}if(e.strategy==="privateKey"){let n=await p4e(e.encryption)(t.privateKey);await f4e._classPrivateMethodGet(this,d4e,_je).call(this,{address:t.address,data:n,strategy:"privateKey",isEncrypted:!!e.encryption},e.storage)}if(e.strategy==="mnemonic"){let n=await p4e(e.encryption)(t.mnemonic.phrase);await f4e._classPrivateMethodGet(this,d4e,_je).call(this,{address:t.address,data:n,strategy:"mnemonic",isEncrypted:!!e.encryption},e.storage)}}async isSaved(){try{return!!await this.getSavedData()}catch{return!1}}async deleteSaved(){await sle._classPrivateFieldGet(this,ole).removeItem(Tje)}async export(e){let t=this.ethersWallet;if(!t)throw new Error("Wallet is not initialized");if(e.strategy==="encryptedJson")return t.encrypt(e.password,{scrypt:{N:1<<32}});if(e.strategy==="privateKey")return p4e(e.encryption)(t.privateKey);if(e.strategy==="mnemonic"){if(!t.mnemonic)throw new Error("mnemonic can not be computed if wallet is created from a private key");return p4e(e.encryption)(t.mnemonic.phrase)}throw new Error("Invalid export strategy")}async getSavedData(e){let n=await(e||sle._classPrivateFieldGet(this,ole)).getItem(Tje);if(!n)return null;try{let a=JSON.parse(n);return a||null}catch{return null}}};async function _je(r,e){await(e||sle._classPrivateFieldGet(this,ole)).setItem(Tje,JSON.stringify(r))}cle._defineProperty(y8,"id","localWallet");cle._defineProperty(y8,"meta",{name:"Local Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});async function YBn(r,e){return(await Promise.resolve().then(function(){return $Ot(ile())})).default.AES.encrypt(r,e).toString()}async function QBn(r,e){let t=(await Promise.resolve().then(function(){return $Ot(ile())})).default;return t.AES.decrypt(r,e).toString(t.enc.Utf8)}function GOt(r){return r?t=>(r.decrypt||QBn)(t,r.password):async t=>t}function p4e(r){return r?t=>(r.encrypt||YBn)(t,r.password):async t=>t}function VOt(r){return r.match(/^(0x)?[0-9a-f]{64}$/i)}Eje.LocalWallet=y8});var Sje=E(kje=>{"use strict";f();d();Object.defineProperty(kje,"__esModule",{value:!0});var b8=bf(),E6=Oi(),JBn=Lce(),ule=ke(),ZBn=n6(),YOt=jb(),Kp=O3();ao();Ct();Xe();function XBn(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var Cje=new WeakMap,h4e=new WeakMap,Aje=class extends ZBn.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(JBn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum}},...e.options};super({chains:e.chains,options:n}),E6._defineProperty(this,"id",void 0),E6._defineProperty(this,"name",void 0),E6._defineProperty(this,"ready",void 0),b8._classPrivateFieldInitSpec(this,Cje,{writable:!0,value:void 0}),b8._classPrivateFieldInitSpec(this,h4e,{writable:!0,value:void 0}),E6._defineProperty(this,"connectorStorage",void 0),E6._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),E6._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:ule.utils.getAddress(i[0])})}),E6._defineProperty(this,"onChainChanged",i=>{let s=YOt.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),E6._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&b8._classPrivateFieldGet(this,h4e)){b8._classPrivateFieldSet(this,h4e,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=XBn(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new Kp.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=ule.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new Kp.UserRejectedRequestError(t):t.code===-32002?new Kp.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new Kp.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return ule.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new Kp.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(YOt.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&b8._classPrivateFieldSet(this,Cje,e),b8._classPrivateFieldGet(this,Cje)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new ule.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new Kp.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&b8._classPrivateFieldSet(this,h4e,!0);let t=await this.getProvider();if(!t)throw new Kp.ConnectorNotFoundError;let n=ule.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Kp.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new Kp.UserRejectedRequestError(a):new Kp.AddChainError}throw this.isUserRejectedRequestError(a)?new Kp.UserRejectedRequestError(a):new Kp.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};kje.InjectedConnector=Aje});var Rje=E(Pje=>{"use strict";f();d();Object.defineProperty(Pje,"__esModule",{value:!0});var QOt=Oi(),eDn=md(),tDn=Dp();Xe();Zu();ao();yf();ke();Ct();var Fte=class extends tDn.AbstractClientWallet{get walletName(){return"Injected Wallet"}constructor(e){super(Fte.id,e),QOt._defineProperty(this,"connector",void 0)}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return Sje()});this.connector=new eDn.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}}))}return this.connector}};QOt._defineProperty(Fte,"id","injected");Pje.InjectedWallet=Fte});var JOt=E(Nje=>{"use strict";f();d();Object.defineProperty(Nje,"__esModule",{value:!0});var Mje=bf(),rDn=Oi(),m4e=O3(),nDn=Lce(),aDn=Sje(),iDn=ke();ao();n6();Ct();Xe();jb();var Bje=new WeakMap,Dje=class extends aDn.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&nDn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),rDn._defineProperty(this,"id","metaMask"),Mje._classPrivateFieldInitSpec(this,Bje,{writable:!0,value:void 0}),Mje._classPrivateFieldSet(this,Bje,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new m4e.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(Mje._classPrivateFieldGet(this,Bje)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new m4e.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=iDn.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new m4e.UserRejectedRequestError(t):t.code===-32002?new m4e.ResourceUnavailableError(t):t}}async switchAccount(){await(await this.getProvider()).request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}};Nje.MetaMaskConnector=Dje});var ZOt=de(()=>{f();d()});var g8,Oje=de(()=>{f();d();g8=class{}});var y4e,lle,Lte,XOt=de(()=>{f();d();Oje();y4e=class extends g8{constructor(e){super()}},lle=class extends g8{constructor(){super()}},Lte=class extends lle{constructor(e){super()}}});var eFt=de(()=>{f();d()});var Fje={};Rr(Fje,{IBaseJsonRpcProvider:()=>lle,IEvents:()=>g8,IJsonRpcConnection:()=>y4e,IJsonRpcProvider:()=>Lte});var b4e=de(()=>{f();d();ZOt();Oje();XOt();eFt()});var tFt,rFt,nFt,aFt,g4e,fle,Lje,v4e,I6,dle,w4e=de(()=>{f();d();tFt="PARSE_ERROR",rFt="INVALID_REQUEST",nFt="METHOD_NOT_FOUND",aFt="INVALID_PARAMS",g4e="INTERNAL_ERROR",fle="SERVER_ERROR",Lje=[-32700,-32600,-32601,-32602,-32603],v4e=[-32e3,-32099],I6={[tFt]:{code:-32700,message:"Parse error"},[rFt]:{code:-32600,message:"Invalid Request"},[nFt]:{code:-32601,message:"Method not found"},[aFt]:{code:-32602,message:"Invalid params"},[g4e]:{code:-32603,message:"Internal error"},[fle]:{code:-32e3,message:"Server error"}},dle=fle});function sDn(r){return r<=v4e[0]&&r>=v4e[1]}function x4e(r){return Lje.includes(r)}function iFt(r){return typeof r=="number"}function _4e(r){return Object.keys(I6).includes(r)?I6[r]:I6[dle]}function T4e(r){let e=Object.values(I6).find(t=>t.code===r);return e||I6[dle]}function oDn(r){if(typeof r.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof r.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!iFt(r.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${r.error.code}`};if(x4e(r.error.code)){let e=T4e(r.error.code);if(e.message!==I6[dle].message&&r.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${r.error.code}`}}return{valid:!0}}function ple(r,e,t){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${e}`):r}var qje=de(()=>{f();d();w4e()});var _d=E((noi,I4e)=>{f();d();var sFt,oFt,cFt,uFt,lFt,fFt,dFt,pFt,hFt,E4e,Wje,mFt,yFt,qte,bFt,gFt,vFt,wFt,xFt,_Ft,TFt,EFt,IFt;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof I4e=="object"&&typeof I4e.exports=="object"?r(t(e,t(I4e.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])};sFt=function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)},oFt=Object.assign||function(t){for(var n,a=1,i=arguments.length;a=0;u--)(c=t[u])&&(o=(s<3?c(o):s>3?c(n,a,o):c(n,a))||o);return s>3&&o&&Object.defineProperty(n,a,o),o},lFt=function(t,n){return function(a,i){n(a,i,t)}},fFt=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)},dFt=function(t,n,a,i){function s(o){return o instanceof a?o:new a(function(c){c(o)})}return new(a||(a=Promise))(function(o,c){function u(h){try{p(i.next(h))}catch(m){c(m)}}function l(h){try{p(i.throw(h))}catch(m){c(m)}}function p(h){h.done?o(h.value):s(h.value).then(u,l)}p((i=i.apply(t,n||[])).next())})},pFt=function(t,n){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(h){return l([p,h])}}function l(p){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(o=p[0]&2?s.return:p[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,p[1])).done)return o;switch(s=0,o&&(p=[p[0]&2,o.value]),p[0]){case 0:case 1:o=p;break;case 4:return a.label++,{value:p[1],done:!1};case 5:a.label++,s=p[1],p=[0];continue;case 7:p=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(p[0]===6||p[0]===2)){a=0;continue}if(p[0]===3&&(!o||p[1]>o[0]&&p[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Wje=function(t,n){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}return o},mFt=function(){for(var t=[],n=0;n1||u(y,C)})})}function u(y,C){try{l(i[y](C))}catch(P){m(o[0][3],P)}}function l(y){y.value instanceof qte?Promise.resolve(y.value.v).then(p,h):m(o[0][2],y)}function p(y){u("next",y)}function h(y){u("throw",y)}function m(y,C){y(C),o.shift(),o.length&&u(o[0][0],o[0][1])}},gFt=function(t){var n,a;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,o){n[s]=t[s]?function(c){return(a=!a)?{value:qte(t[s](c)),done:s==="return"}:o?o(c):c}:o}},vFt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],a;return n?n.call(t):(t=typeof E4e=="function"?E4e(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(o){a[o]=t[o]&&function(c){return new Promise(function(u,l){c=t[o](c),s(u,l,c.done,c.value)})}}function s(o,c,u,l){Promise.resolve(l).then(function(p){o({value:p,done:u})},c)}},wFt=function(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t},xFt=function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a in t)Object.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n.default=t,n},_Ft=function(t){return t&&t.__esModule?t:{default:t}},TFt=function(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)},EFt=function(t,n,a){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,a),a},r("__extends",sFt),r("__assign",oFt),r("__rest",cFt),r("__decorate",uFt),r("__param",lFt),r("__metadata",fFt),r("__awaiter",dFt),r("__generator",pFt),r("__exportStar",hFt),r("__createBinding",IFt),r("__values",E4e),r("__read",Wje),r("__spread",mFt),r("__spreadArrays",yFt),r("__await",qte),r("__asyncGenerator",bFt),r("__asyncDelegator",gFt),r("__asyncValues",vFt),r("__makeTemplateObject",wFt),r("__importStar",xFt),r("__importDefault",_Ft),r("__classPrivateFieldGet",TFt),r("__classPrivateFieldSet",EFt)})});var AFt=E(C6=>{"use strict";f();d();Object.defineProperty(C6,"__esModule",{value:!0});C6.isBrowserCryptoAvailable=C6.getSubtleCrypto=C6.getBrowerCrypto=void 0;function Uje(){return(global===null||global===void 0?void 0:global.crypto)||(global===null||global===void 0?void 0:global.msCrypto)||{}}C6.getBrowerCrypto=Uje;function CFt(){let r=Uje();return r.subtle||r.webkitSubtle}C6.getSubtleCrypto=CFt;function cDn(){return!!Uje()&&!!CFt()}C6.isBrowserCryptoAvailable=cDn});var PFt=E(A6=>{"use strict";f();d();Object.defineProperty(A6,"__esModule",{value:!0});A6.isBrowser=A6.isNode=A6.isReactNative=void 0;function kFt(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}A6.isReactNative=kFt;function SFt(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}A6.isNode=SFt;function uDn(){return!kFt()&&!SFt()}A6.isBrowser=uDn});var Wte=E(C4e=>{"use strict";f();d();Object.defineProperty(C4e,"__esModule",{value:!0});var RFt=_d();RFt.__exportStar(AFt(),C4e);RFt.__exportStar(PFt(),C4e)});var Cc={};Rr(Cc,{isNodeJs:()=>BFt});var MFt,BFt,DFt=de(()=>{f();d();MFt=ea(Wte());Yr(Cc,ea(Wte()));BFt=MFt.isNode});function A4e(){let r=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return r+e}function Hje(r,e,t){return{id:t||A4e(),jsonrpc:"2.0",method:r,params:e}}function lDn(r,e){return{id:r,jsonrpc:"2.0",result:e}}function hle(r,e,t){return{id:r,jsonrpc:"2.0",error:NFt(e,t)}}function NFt(r,e){return typeof r>"u"?_4e(g4e):(typeof r=="string"&&(r=Object.assign(Object.assign({},_4e(fle)),{message:r})),typeof e<"u"&&(r.data=e),x4e(r.code)&&(r=T4e(r.code)),r)}var OFt=de(()=>{f();d();qje();w4e()});function fDn(r){return r.includes("*")?S4e(r):!/\W/g.test(r)}function k4e(r){return r==="*"}function S4e(r){return k4e(r)?!0:!(!r.includes("*")||r.split("*").length!==2||r.split("*").filter(e=>e.trim()==="").length!==1)}function dDn(r){return!k4e(r)&&S4e(r)&&!r.split("*")[0].trim()}function pDn(r){return!k4e(r)&&S4e(r)&&!r.split("*")[1].trim()}var FFt=de(()=>{f();d()});var LFt=de(()=>{f();d();b4e()});function yDn(r){let e=r.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function qFt(r,e){let t=yDn(r);return typeof t>"u"?!1:new RegExp(e).test(t)}function P4e(r){return qFt(r,hDn)}function R4e(r){return qFt(r,mDn)}function jje(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}var hDn,mDn,WFt=de(()=>{f();d();hDn="^https?:",mDn="^wss?:"});function zje(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function bDn(r){return zje(r)&&"method"in r}function Kje(r){return zje(r)&&(UFt(r)||M4e(r))}function UFt(r){return"result"in r}function M4e(r){return"error"in r}function gDn(r){return"error"in r&&r.valid===!1}var HFt=de(()=>{f();d()});var Ac={};Rr(Ac,{DEFAULT_ERROR:()=>dle,IBaseJsonRpcProvider:()=>lle,IEvents:()=>g8,IJsonRpcConnection:()=>y4e,IJsonRpcProvider:()=>Lte,INTERNAL_ERROR:()=>g4e,INVALID_PARAMS:()=>aFt,INVALID_REQUEST:()=>rFt,METHOD_NOT_FOUND:()=>nFt,PARSE_ERROR:()=>tFt,RESERVED_ERROR_CODES:()=>Lje,SERVER_ERROR:()=>fle,SERVER_ERROR_CODE_RANGE:()=>v4e,STANDARD_ERROR_MAP:()=>I6,formatErrorMessage:()=>NFt,formatJsonRpcError:()=>hle,formatJsonRpcRequest:()=>Hje,formatJsonRpcResult:()=>lDn,getError:()=>_4e,getErrorByCode:()=>T4e,isHttpUrl:()=>P4e,isJsonRpcError:()=>M4e,isJsonRpcPayload:()=>zje,isJsonRpcRequest:()=>bDn,isJsonRpcResponse:()=>Kje,isJsonRpcResult:()=>UFt,isJsonRpcValidationInvalid:()=>gDn,isLocalhostUrl:()=>jje,isNodeJs:()=>BFt,isReservedErrorCode:()=>x4e,isServerErrorCode:()=>sDn,isValidDefaultRoute:()=>k4e,isValidErrorCode:()=>iFt,isValidLeadingWildcardRoute:()=>dDn,isValidRoute:()=>fDn,isValidTrailingWildcardRoute:()=>pDn,isValidWildcardRoute:()=>S4e,isWsUrl:()=>R4e,parseConnectionError:()=>ple,payloadId:()=>A4e,validateJsonRpcError:()=>oDn});var $b=de(()=>{f();d();w4e();qje();DFt();Yr(Ac,Cc);OFt();FFt();LFt();WFt();HFt()});var jFt=de(()=>{f();d()});var mle,Yb,Gje,Vje,$je,Yje,Qje,Jje,Zje,B4e,Xje,eze,D4e,zFt=de(()=>{f();d();mle="Session currently connected",Yb="Session currently disconnected",Gje="Session Rejected",Vje="Missing JSON RPC response",$je='JSON-RPC success response must include "result" field',Yje='JSON-RPC error response must include "error" field',Qje='JSON RPC request must have valid "method" value',Jje='JSON RPC request must have valid "id" value',Zje="Missing one of the required parameters: bridge / uri / session",B4e="JSON RPC response format is invalid",Xje="URI format is invalid",eze="QRCode Modal not provided",D4e="User close QRCode Modal"});var N4e,vDn,KFt=de(()=>{f();d();N4e=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],vDn=N4e});var GFt,Ute,VFt,wDn,xDn,$Ft=de(()=>{f();d();GFt=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Ute=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...GFt],VFt=["eth_accounts","eth_chainId","net_version"],wDn=Ute,xDn=VFt});var v8,_Dn,YFt=de(()=>{f();d();v8="WALLETCONNECT_DEEPLINK_CHOICE",_Dn=v8});var O4e,TDn,QFt=de(()=>{f();d();O4e={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},TDn=O4e});var JFt=de(()=>{f();d();zFt();KFt();$Ft();YFt();QFt()});var ZFt=de(()=>{f();d()});var tze,XFt=de(()=>{f();d();tze=class{}});var eLt=de(()=>{f();d()});var tLt=de(()=>{f();d()});var rLt=de(()=>{f();d()});var nLt=de(()=>{f();d()});var aLt=de(()=>{f();d()});var iLt=de(()=>{f();d()});var sLt=de(()=>{f();d()});var rze={};Rr(rze,{ERROR_INVALID_RESPONSE:()=>B4e,ERROR_INVALID_URI:()=>Xje,ERROR_MISSING_ERROR:()=>Yje,ERROR_MISSING_ID:()=>Jje,ERROR_MISSING_JSON_RPC:()=>Vje,ERROR_MISSING_METHOD:()=>Qje,ERROR_MISSING_REQUIRED:()=>Zje,ERROR_MISSING_RESULT:()=>$je,ERROR_QRCODE_MODAL_NOT_PROVIDED:()=>eze,ERROR_QRCODE_MODAL_USER_CLOSED:()=>D4e,ERROR_SESSION_CONNECTED:()=>mle,ERROR_SESSION_DISCONNECTED:()=>Yb,ERROR_SESSION_REJECTED:()=>Gje,IEvents:()=>tze,INFURA_NETWORKS:()=>O4e,MOBILE_LINK_CHOICE_KEY:()=>v8,RESERVED_EVENTS:()=>N4e,SIGNING_METHODS:()=>Ute,STATE_METHODS:()=>VFt,WALLET_METHODS:()=>GFt,infuraNetworks:()=>TDn,mobileLinkChoiceKey:()=>_Dn,reservedEvents:()=>vDn,signingMethods:()=>wDn,stateMethods:()=>xDn});var w8=de(()=>{f();d();jFt();JFt();ZFt();XFt();eLt();tLt();rLt();nLt();aLt();iLt();sLt()});var aze=E((Yci,uLt)=>{f();d();uLt.exports=nze;nze.strict=oLt;nze.loose=cLt;var EDn=Object.prototype.toString,IDn={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function nze(r){return oLt(r)||cLt(r)}function oLt(r){return r instanceof Int8Array||r instanceof Int16Array||r instanceof Int32Array||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Uint16Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array}function cLt(r){return IDn[EDn.call(r)]}});var fLt=E((Zci,lLt)=>{f();d();var CDn=aze().strict;lLt.exports=function(e){if(CDn(e)){var t=v.Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}else return v.Buffer.from(e)}});function k6(r){return new Uint8Array(r)}function L4e(r,e=!1){let t=r.toString(ize);return e?Hte(t):t}function q4e(r){return r.toString(sze)}function oze(r){return r.readUIntBE(0,r.length)}function S6(r){return(0,pLt.default)(r)}function ny(r,e=!1){return L4e(S6(r),e)}function W4e(r){return q4e(S6(r))}function cze(r){return oze(S6(r))}function U4e(r){return v.Buffer.from(P6(r),ize)}function ay(r){return k6(U4e(r))}function hLt(r){return q4e(U4e(r))}function mLt(r){return cze(ay(r))}function H4e(r){return v.Buffer.from(r,sze)}function j4e(r){return k6(H4e(r))}function yLt(r,e=!1){return L4e(H4e(r),e)}function bLt(r){let e=parseInt(r,10);return WDn(qDn(e),"Number can only safely store up to 53 bits"),e}function gLt(r){return MDn(uze(r))}function vLt(r){return lze(uze(r))}function wLt(r,e){return BDn(uze(r),e)}function xLt(r){return`${r}`}function uze(r){let e=(r>>>0).toString(2);return hze(e)}function MDn(r){return S6(lze(r))}function lze(r){return new Uint8Array(ODn(r).map(e=>parseInt(e,2)))}function BDn(r,e){return ny(lze(r),e)}function DDn(r){return!(typeof r!="string"||!new RegExp(/^[01]+$/).test(r)||r.length%8!==0)}function fze(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function yle(r){return v.Buffer.isBuffer(r)}function z4e(r){return dLt.default.strict(r)&&!yle(r)}function dze(r){return!z4e(r)&&!yle(r)&&typeof r.byteLength<"u"}function _Lt(r){return yle(r)?kDn:z4e(r)?PDn:dze(r)?RDn:Array.isArray(r)?SDn:typeof r}function TLt(r){return DDn(r)?ADn:fze(r)?ize:sze}function ELt(...r){return v.Buffer.concat(r)}function pze(...r){let e=[];return r.forEach(t=>e=e.concat(Array.from(t))),new Uint8Array([...e])}function NDn(r,e=8){let t=r%e;return t?(r-t)/e*e+e:r}function ODn(r,e=8){let t=hze(r).match(new RegExp(`.{${e}}`,"gi"));return Array.from(t||[])}function hze(r,e=8,t=F4e){return FDn(r,NDn(r.length,e),t)}function FDn(r,e,t=F4e){return UDn(r,e,!0,t)}function P6(r){return r.replace(/^0x/,"")}function Hte(r){return r.startsWith("0x")?r:`0x${r}`}function ILt(r){return r=P6(r),r=hze(r,2),r&&(r=Hte(r)),r}function CLt(r){let e=r.startsWith("0x");return r=P6(r),r=r.startsWith(F4e)?r.substring(1):r,e?Hte(r):r}function LDn(r){return typeof r>"u"}function qDn(r){return!LDn(r)}function WDn(r,e){if(!r)throw new Error(e)}function UDn(r,e,t,n=F4e){let a=e-r.length,i=r;if(a>0){let s=n.repeat(a);i=t?s+r:r+s}return i}var dLt,pLt,ize,sze,ADn,kDn,SDn,PDn,RDn,F4e,ble=de(()=>{f();d();dLt=ea(aze()),pLt=ea(fLt()),ize="hex",sze="utf8",ADn="binary",kDn="buffer",SDn="array",PDn="typed-array",RDn="array-buffer",F4e="0"});function gle(r){return S6(new Uint8Array(r))}function HDn(r){return W4e(new Uint8Array(r))}function mze(r,e){return ny(new Uint8Array(r),!e)}function jDn(r){return cze(new Uint8Array(r))}function zDn(...r){return ay(r.map(e=>ny(new Uint8Array(e))).join("")).buffer}function yze(r){return k6(r).buffer}function KDn(r){return q4e(r)}function GDn(r,e){return L4e(r,!e)}function VDn(r){return oze(r)}function $Dn(...r){return ELt(...r)}function YDn(r){return j4e(r).buffer}function QDn(r){return H4e(r)}function JDn(r,e){return yLt(r,!e)}function ZDn(r){return bLt(r)}function XDn(r){return U4e(r)}function bze(r){return ay(r).buffer}function eNn(r){return hLt(r)}function tNn(r){return mLt(r)}function rNn(r){return gLt(r)}function nNn(r){return vLt(r).buffer}function aNn(r){return xLt(r)}function gze(r,e){return wLt(Number(r),!e)}var ALt=de(()=>{f();d();ble()});var wze=E(Hs=>{"use strict";f();d();var kLt=Hs&&Hs.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new NLt:typeof navigator<"u"?vze(navigator.userAgent):LLt()}Hs.detect=cNn;function OLt(r){return r!==""&&oNn.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function uNn(r){var e=OLt(r);return e?e[0]:null}Hs.browserName=uNn;function vze(r){var e=OLt(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new DLt;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length{"use strict";f();d();Object.defineProperty(cs,"__esModule",{value:!0});cs.getLocalStorage=cs.getLocalStorageOrThrow=cs.getCrypto=cs.getCryptoOrThrow=cs.getLocation=cs.getLocationOrThrow=cs.getNavigator=cs.getNavigatorOrThrow=cs.getDocument=cs.getDocumentOrThrow=cs.getFromWindowOrThrow=cs.getFromWindow=void 0;function x8(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}cs.getFromWindow=x8;function jte(r){let e=x8(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}cs.getFromWindowOrThrow=jte;function fNn(){return jte("document")}cs.getDocumentOrThrow=fNn;function dNn(){return x8("document")}cs.getDocument=dNn;function pNn(){return jte("navigator")}cs.getNavigatorOrThrow=pNn;function hNn(){return x8("navigator")}cs.getNavigator=hNn;function mNn(){return jte("location")}cs.getLocationOrThrow=mNn;function yNn(){return x8("location")}cs.getLocation=yNn;function bNn(){return jte("crypto")}cs.getCryptoOrThrow=bNn;function gNn(){return x8("crypto")}cs.getCrypto=gNn;function vNn(){return jte("localStorage")}cs.getLocalStorageOrThrow=vNn;function wNn(){return x8("localStorage")}cs.getLocalStorage=wNn});var js,xNn,_Nn,TNn,ENn,INn,xze,CNn,_ze,ANn,kNn,SNn,vle,V4e=de(()=>{f();d();js=ea(G4e()),xNn=js.getFromWindow,_Nn=js.getFromWindowOrThrow,TNn=js.getDocumentOrThrow,ENn=js.getDocument,INn=js.getNavigatorOrThrow,xze=js.getNavigator,CNn=js.getLocationOrThrow,_ze=js.getLocation,ANn=js.getCryptoOrThrow,kNn=js.getCrypto,SNn=js.getLocalStorageOrThrow,vle=js.getLocalStorage});function wle(r){return(0,qLt.detect)(r)}function $4e(){let r=wle();return r&&r.os?r.os:void 0}function WLt(){let r=$4e();return r?r.toLowerCase().includes("android"):!1}function ULt(){let r=$4e();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Tze(){return $4e()?WLt()||ULt():!1}function HLt(){let r=wle();return r&&r.name?r.name.toLowerCase()==="node":!1}function Eze(){return!HLt()&&!!xze()}var qLt,jLt=de(()=>{f();d();qLt=ea(wze());V4e()});var Ize={};Rr(Ize,{safeJsonParse:()=>Qb,safeJsonStringify:()=>iy});function Qb(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function iy(r){return typeof r=="string"?r:JSON.stringify(r)}var zte=de(()=>{f();d()});var Cze,Aze,kze=de(()=>{f();d();zte();Cze=Qb,Aze=iy});function xle(r,e){let t=Aze(e),n=vle();n&&n.setItem(r,t)}function _le(r){let e=null,t=null,n=vle();return n&&(t=n.getItem(r)),e=t&&Cze(t),e}function Tle(r){let e=vle();e&&e.removeItem(r)}var Sze=de(()=>{f();d();kze();V4e()});var Pze=E(Y4e=>{"use strict";f();d();Object.defineProperty(Y4e,"__esModule",{value:!0});Y4e.getWindowMetadata=void 0;var zLt=G4e();function PNn(){let r,e;try{r=zLt.getDocumentOrThrow(),e=zLt.getLocationOrThrow()}catch{return null}function t(){let p=r.getElementsByTagName("link"),h=[];for(let m=0;m-1){let P=y.getAttribute("href");if(P)if(P.toLowerCase().indexOf("https:")===-1&&P.toLowerCase().indexOf("http:")===-1&&P.indexOf("//")!==0){let A=e.protocol+"//"+e.host;if(P.indexOf("/")===0)A+=P;else{let B=e.pathname.split("/");B.pop();let F=B.join("/");A+=F+"/"+P}h.push(A)}else if(P.indexOf("//")===0){let A=e.protocol+P;h.push(A)}else h.push(P)}}return h}function n(...p){let h=r.getElementsByTagName("meta");for(let m=0;my.getAttribute(P)).filter(P=>P?p.includes(P):!1);if(C.length&&C){let P=y.getAttribute("content");if(P)return P}}return""}function a(){let p=n("name","og:site_name","og:title","twitter:title");return p||(p=r.title),p}function i(){return n("description","og:description","twitter:description","keywords")}let s=a(),o=i(),c=e.origin,u=t();return{description:o,url:c,icons:u,name:s}}Y4e.getWindowMetadata=PNn});function Q4e(){return KLt.getWindowMetadata()}var KLt,GLt=de(()=>{f();d();KLt=ea(Pze())});function RNn(r){return ILt(r)}function MNn(r){return Hte(r)}function BNn(r){return P6(r)}function DNn(r){return CLt(Hte(r))}function Ele(){return((e,t)=>{for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t})()}function NNn(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function VLt(r,e){let t,n=O4e[r];return n&&(t=`https://${n}.infura.io/v3/${e}`),t}function ONn(r,e){let t,n=VLt(r,e.infuraId);return e.custom&&e.custom[r]?t=e.custom[r]:n&&(t=n),t}var Rze,$Lt=de(()=>{f();d();ble();$b();w8();Rze=A4e});function FNn(r,e){let t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function LNn(r){let e=r.href.split("?")[0];xle(v8,Object.assign(Object.assign({},r),{href:e}))}function YLt(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function qNn(r,e){let t=r;return e&&(t=e.map(n=>YLt(r,n)).filter(Boolean)),t}var QLt=de(()=>{f();d();w8();Sze()});function WNn(r,e){return async(...n)=>new Promise((a,i)=>{let s=(o,c)=>{(o===null||typeof o>"u")&&i(o),a(c)};r.apply(e,[...n,s])})}function Mze(r){let e=r.message||"Failed or Rejected Request",t=-32e3;if(r&&!r.code)switch(e){case"Parse error":t=-32700;break;case"Invalid request":t=-32600;break;case"Method not found":t=-32601;break;case"Invalid params":t=-32602;break;case"Internal error":t=-32603;break;default:t=-32e3;break}let n={code:t,message:e};return r.data&&(n.data=r.data),n}var JLt=de(()=>{f();d()});function UNn(){return ZLt+"/api/v2/wallets"}function HNn(){return ZLt+"/api/v2/dapps"}function XLt(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function jNn(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>XLt(t,e))}var ZLt,eqt=de(()=>{f();d();ZLt="https://registry.walletconnect.com"});var Bze=E((Q0i,tqt)=>{"use strict";f();d();tqt.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var Nze=E((X0i,iqt)=>{"use strict";f();d();var aqt="%[a-f0-9]{2}",rqt=new RegExp("("+aqt+")|([^%]+?)","gi"),nqt=new RegExp("("+aqt+")+","gi");function Dze(r,e){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],Dze(t),Dze(n))}function zNn(r){try{return decodeURIComponent(r)}catch{for(var e=r.match(rqt)||[],t=1;t{"use strict";f();d();sqt.exports=(r,e)=>{if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[r];let t=r.indexOf(e);return t===-1?[r]:[r.slice(0,t),r.slice(t+e.length)]}});var Fze=E((iui,oqt)=>{"use strict";f();d();oqt.exports=function(r,e){for(var t={},n=Object.keys(r),a=Array.isArray(e),i=0;i{"use strict";f();d();var GNn=Bze(),VNn=Nze(),uqt=Oze(),$Nn=Fze(),YNn=r=>r==null;function QNn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[uu(e,r),"[",a,"]"].join("")]:[...t,[uu(e,r),"[",uu(a,r),"]=",uu(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[uu(e,r),"[]"].join("")]:[...t,[uu(e,r),"[]=",uu(n,r)].join("")];case"comma":case"separator":return e=>(t,n)=>n==null||n.length===0?t:t.length===0?[[uu(e,r),"=",uu(n,r)].join("")]:[[t,uu(n,r)].join(r.arrayFormatSeparator)];default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,uu(e,r)]:[...t,[uu(e,r),"=",uu(n,r)].join("")]}}function JNn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&_8(n,r).includes(r.arrayFormatSeparator);n=s?_8(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>_8(c,r)):n===null?n:_8(n,r);a[t]=o};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function lqt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function uu(r,e){return e.encode?e.strict?GNn(r):encodeURIComponent(r):r}function _8(r,e){return e.decode?VNn(r):r}function fqt(r){return Array.isArray(r)?r.sort():typeof r=="object"?fqt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function dqt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function ZNn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function pqt(r){r=dqt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function cqt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function hqt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),lqt(e.arrayFormatSeparator);let t=JNn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=uqt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator"].includes(e.arrayFormat)?s:_8(s,e),t(_8(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=cqt(i[s],e);else n[a]=cqt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=fqt(s):a[i]=s,a},Object.create(null))}Tf.extract=pqt;Tf.parse=hqt;Tf.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),lqt(e.arrayFormatSeparator);let t=s=>e.skipNull&&YNn(r[s])||e.skipEmptyString&&r[s]==="",n=QNn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?uu(s,e):Array.isArray(o)?o.reduce(n(s),[]).join("&"):uu(s,e)+"="+uu(o,e)}).filter(s=>s.length>0).join("&")};Tf.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=uqt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:hqt(pqt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:_8(n,e)}:{})};Tf.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0},e);let t=dqt(r.url).split("?")[0]||"",n=Tf.extract(r.url),a=Tf.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Tf.stringify(i,e);s&&(s=`?${s}`);let o=ZNn(r.url);return r.fragmentIdentifier&&(o=`#${uu(r.fragmentIdentifier,e)}`),`${t}${s}${o}`};Tf.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);let{url:n,query:a,fragmentIdentifier:i}=Tf.parseUrl(r,t);return Tf.stringifyUrl({url:n,query:$Nn(a,e),fragmentIdentifier:i},t)};Tf.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Tf.pick(r,n,t)}});function Lze(r){let e=r.indexOf("?")!==-1?r.indexOf("?"):void 0;return typeof e<"u"?r.substr(e):""}function qze(r,e){let t=Z4e(r);return t=Object.assign(Object.assign({},t),e),r=yqt(t),r}function Z4e(r){return J4e.parse(r)}function yqt(r){return J4e.stringify(r)}var J4e,Wze=de(()=>{f();d();J4e=ea(mqt())});function Uze(r){return typeof r.bridge<"u"}function Hze(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t);function i(p){let h="@",m=p.split(h);return{handshakeTopic:m[0],version:parseInt(m[1],10)}}let s=i(a),o=typeof t<"u"?r.substr(t):"";function c(p){let h=Z4e(p);return{key:h.key||"",bridge:h.bridge||""}}let u=c(o);return Object.assign(Object.assign({protocol:n},s),u)}var bqt=de(()=>{f();d();Wze()});function XNn(r){return r===""||typeof r=="string"&&r.trim()===""}function eOn(r){return!(r&&r.length)}function tOn(r){return yle(r)}function rOn(r){return z4e(r)}function nOn(r){return dze(r)}function aOn(r){return _Lt(r)}function iOn(r){return TLt(r)}function sOn(r,e){return fze(r,e)}function oOn(r){return typeof r.params=="object"}function jze(r){return typeof r.method<"u"}function R6(r){return typeof r.result<"u"}function T8(r){return typeof r.error<"u"}function X4e(r){return typeof r.event<"u"}function zze(r){return N4e.includes(r)||r.startsWith("wc_")}function Kze(r){return r.method.startsWith("wc_")?!0:!Ute.includes(r.method)}var gqt=de(()=>{f();d();ble();w8()});var exe={};Rr(exe,{addHexPrefix:()=>MNn,appendToQueryString:()=>qze,concatArrayBuffers:()=>zDn,concatBuffers:()=>$Dn,convertArrayBufferToBuffer:()=>gle,convertArrayBufferToHex:()=>mze,convertArrayBufferToNumber:()=>jDn,convertArrayBufferToUtf8:()=>HDn,convertBufferToArrayBuffer:()=>yze,convertBufferToHex:()=>GDn,convertBufferToNumber:()=>VDn,convertBufferToUtf8:()=>KDn,convertHexToArrayBuffer:()=>bze,convertHexToBuffer:()=>XDn,convertHexToNumber:()=>tNn,convertHexToUtf8:()=>eNn,convertNumberToArrayBuffer:()=>nNn,convertNumberToBuffer:()=>rNn,convertNumberToHex:()=>gze,convertNumberToUtf8:()=>aNn,convertUtf8ToArrayBuffer:()=>YDn,convertUtf8ToBuffer:()=>QDn,convertUtf8ToHex:()=>JDn,convertUtf8ToNumber:()=>ZDn,detectEnv:()=>wle,detectOS:()=>$4e,formatIOSMobile:()=>FNn,formatMobileRegistry:()=>jNn,formatMobileRegistryEntry:()=>XLt,formatQueryString:()=>yqt,formatRpcError:()=>Mze,getClientMeta:()=>Q4e,getCrypto:()=>kNn,getCryptoOrThrow:()=>ANn,getDappRegistryUrl:()=>HNn,getDocument:()=>ENn,getDocumentOrThrow:()=>TNn,getEncoding:()=>iOn,getFromWindow:()=>xNn,getFromWindowOrThrow:()=>_Nn,getInfuraRpcUrl:()=>VLt,getLocal:()=>_le,getLocalStorage:()=>vle,getLocalStorageOrThrow:()=>SNn,getLocation:()=>_ze,getLocationOrThrow:()=>CNn,getMobileLinkRegistry:()=>qNn,getMobileRegistryEntry:()=>YLt,getNavigator:()=>xze,getNavigatorOrThrow:()=>INn,getQueryString:()=>Lze,getRpcUrl:()=>ONn,getType:()=>aOn,getWalletRegistryUrl:()=>UNn,isAndroid:()=>WLt,isArrayBuffer:()=>nOn,isBrowser:()=>Eze,isBuffer:()=>tOn,isEmptyArray:()=>eOn,isEmptyString:()=>XNn,isHexString:()=>sOn,isIOS:()=>ULt,isInternalEvent:()=>X4e,isJsonRpcRequest:()=>jze,isJsonRpcResponseError:()=>T8,isJsonRpcResponseSuccess:()=>R6,isJsonRpcSubscription:()=>oOn,isMobile:()=>Tze,isNode:()=>HLt,isReservedEvent:()=>zze,isSilentPayload:()=>Kze,isTypedArray:()=>rOn,isWalletConnectSession:()=>Uze,logDeprecationWarning:()=>NNn,parseQueryString:()=>Z4e,parseWalletConnectUri:()=>Hze,payloadId:()=>Rze,promisify:()=>WNn,removeHexLeadingZeros:()=>DNn,removeHexPrefix:()=>BNn,removeLocal:()=>Tle,safeJsonParse:()=>Cze,safeJsonStringify:()=>Aze,sanitizeHex:()=>RNn,saveMobileLinkInfo:()=>LNn,setLocal:()=>xle,uuid:()=>Ele});var Jb=de(()=>{f();d();ALt();jLt();kze();Sze();GLt();$Lt();QLt();JLt();eqt();bqt();Wze();gqt();V4e()});var Gze,vqt,wqt=de(()=>{f();d();Gze=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(n=>n.event===e)),t.forEach(n=>{n.callback()})}},vqt=Gze});var _qt=E((Wui,xqt)=>{"use strict";f();d();xqt.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});function uOn(r,e,t){var n,a;let s=(r.startsWith("https")?r.replace("https","wss"):r.startsWith("http")?r.replace("http","ws"):r).split("?"),o=Eze()?{protocol:e,version:t,env:"browser",host:((n=_ze())===null||n===void 0?void 0:n.host)||""}:{protocol:e,version:t,env:((a=wle())===null||a===void 0?void 0:a.name)||""},c=qze(Lze(s[1]||""),o);return s[0]+"?"+c}var cOn,Vze,Tqt,Eqt=de(()=>{f();d();Jb();wqt();cOn=typeof global.WebSocket<"u"?global.WebSocket:_qt(),Vze=class{constructor(e){if(this.opts=e,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=e.protocol,this._version=e.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=e.subscriptions||[],this._netMonitor=e.netMonitor||new vqt,!e.url||typeof e.url!="string")throw new Error("Missing or invalid WebSocket url");this._url=e.url,this._netMonitor.on("online",()=>this._socketCreate())}set readyState(e){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(e){}get connecting(){return this.readyState===0}set connected(e){}get connected(){return this.readyState===1}set closing(e){}get closing(){return this.readyState===2}set closed(e){}get closed(){return this.readyState===3}open(){this._socketCreate()}close(){this._socketClose()}send(e,t,n){if(!t||typeof t!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;let e=uOn(this._url,this._protocol,this._version);if(this._nextSocket=new cOn(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),this._nextSocket.onclose=()=>{setTimeout(()=>{this._nextSocket=null,this._socketCreate()},1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(e){let t=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(a=>a.event==="message");n&&n.length&&n.forEach(a=>a.callback(t))}}_socketError(e){let t=this._events.filter(n=>n.event==="error");t&&t.length&&t.forEach(n=>n.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(t=>this._socketSend(t)),this._queue=[]}};Tqt=Vze});var $ze,Iqt,Cqt=de(()=>{f();d();Jb();$ze=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t=[],n;jze(e)?n=e.method:R6(e)||T8(e)?n=`response:${e.id}`:X4e(e)?n=e.event:n="",n&&(t=this._eventEmitters.filter(a=>a.event===n)),(!t||!t.length)&&!zze(n)&&!X4e(n)&&(t=this._eventEmitters.filter(a=>a.event==="call_request")),t.forEach(a=>{if(T8(e)){let i=new Error(e.error.message);a.callback(i,null)}else a.callback(null,e)})}},Iqt=$ze});var Yze,Aqt,kqt=de(()=>{f();d();Jb();Yze=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,t=_le(this.storageId);return t&&Uze(t)&&(e=t),e}setSession(e){return xle(this.storageId,e),e}removeSession(){Tle(this.storageId)}},Aqt=Yze});function dOn(r){let e=r.indexOf("//")>-1?r.split("/")[2]:r.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function pOn(r){return dOn(r).split(".").slice(-2).join(".")}function hOn(){return Math.floor(Math.random()*Sqt.length)}function mOn(){return Sqt[hOn()]}function yOn(r){return pOn(r)===lOn}function Pqt(r){return yOn(r)?mOn():r}var lOn,fOn,Sqt,Rqt=de(()=>{f();d();lOn="walletconnect.org",fOn="abcdefghijklmnopqrstuvwxyz0123456789",Sqt=fOn.split("").map(r=>`https://${r}.bridge.walletconnect.org`)});var Qze,Mqt,Bqt=de(()=>{f();d();w8();Jb();Eqt();Cqt();kqt();Rqt();Qze=class{constructor(e){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new Iqt,this._clientMeta=Q4e()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new Aqt(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...Ute,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(Zje);e.connectorOpts.bridge&&(this.bridge=Pqt(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new Tqt({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),e.connectorOpts.uri&&this._subscribeToSessionRequest(),e.pushServerOpts&&this._registerPushServer(e.pushServerOpts)}set bridge(e){!e||(this._bridge=e)}get bridge(){return this._bridge}set key(e){if(!e)return;let t=bze(e);this._key=t}get key(){return this._key?mze(this._key,!0):""}set clientId(e){!e||(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=Ele()),this._clientId}set peerId(e){!e||(this._peerId=e)}get peerId(){return this._peerId}set clientMeta(e){}get clientMeta(){let e=this._clientMeta;return e||(e=this._clientMeta=Q4e()),e}set peerMeta(e){this._peerMeta=e}get peerMeta(){return this._peerMeta}set handshakeTopic(e){!e||(this._handshakeTopic=e)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(e){!e||(this._handshakeId=e)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(e){if(!e)return;let{handshakeTopic:t,bridge:n,key:a}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=a}set chainId(e){this._chainId=e}get chainId(){return this._chainId}set networkId(e){this._networkId=e}get networkId(){return this._networkId}set accounts(e){this._accounts=e}get accounts(){return this._accounts}set rpcUrl(e){this._rpcUrl=e}get rpcUrl(){return this._rpcUrl}set connected(e){}get connected(){return this._connected}set pending(e){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(e){!e||(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}on(e,t){let n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=Ele(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(D4e)});let n=()=>{this.killSession()};try{let a=await this._sendCallRequest(t);return a&&n(),a}catch(a){throw n(),a}}async connect(e){if(!this._qrcodeModal)throw new Error(eze);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(t,n)=>{this.on("modal_closed",()=>n(new Error(D4e))),this.on("connect",(a,i)=>{if(a)return n(a);t(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(mle);if(this.pending)return;this._key=await this._generateKey();let t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=Ele(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(mle);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(e){if(this._connected)throw new Error(mle);let t=e&&e.message?e.message:Gje,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(Yb);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let t=e?e.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},a=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(a),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(Yb);let t=e,n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(Yb);let t=e,n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(Yb);let t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(Yb);let t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(Yb);let t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");let t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((n,a)=>{this._subscribeToResponse(e.id,(i,s)=>{if(i){a(i);return}if(!s)throw new Error(Vje);n(s)})})}async sendCustomRequest(e,t){if(!this._connected)throw new Error(Yb);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return gze(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break;default:break}let n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(R6(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error($je)}rejectRequest(e){if(T8(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(Yje)}transportClose(){this._transport.close()}async _sendRequest(e,t){let n=this._formatRequest(e),a=await this._encrypt(n),i=typeof t?.topic<"u"?t.topic:this.peerId,s=JSON.stringify(a),o=typeof t?.forcePushNotification<"u"?!t.forcePushNotification:Kze(n);this._transport.send(s,i,o)}async _sendResponse(e){let t=await this._encrypt(e),n=this.peerId,a=JSON.stringify(t),i=!0;this._transport.send(a,n,i)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(Qje);return{id:typeof e.id>"u"?Rze():e.id,jsonrpc:"2.0",method:e.method,params:typeof e.params>"u"?[]:e.params}}_formatResponse(e){if(typeof e.id>"u")throw new Error(Jje);let t={id:e.id,jsonrpc:"2.0"};if(T8(e)){let n=Mze(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}else if(R6(e))return Object.assign(Object.assign({},t),e);throw new Error(B4e)}_handleSessionDisconnect(e){let t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),Tle(v8)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t?t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e):this._handleSessionDisconnect(e)}async _handleIncomingMessages(e){if(![this.clientId,this.handshakeTopic].includes(e.topic))return;let n;try{n=JSON.parse(e.payload)}catch{return}let a=await this._decrypt(n);a&&this._eventManager.trigger(a)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(n,a)=>{if(n){this._handleSessionResponse(n.message);return}R6(a)?this._handleSessionResponse(t,a.result):a.error&&a.error.message?this._handleSessionResponse(a.error.message):this._handleSessionResponse(t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(a,i)=>{if(a){n(a);return}R6(i)?t(i.result):i.error&&i.error.message?n(i.error):n(new Error(B4e))})})}_subscribeToInternalEvents(){this.on("display_uri",()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,()=>{this._eventManager.trigger({event:"modal_closed",params:[]})},this._qrcodeModalOptions)}),this.on("connect",()=>{this._qrcodeModal&&this._qrcodeModal.close()}),this.on("call_request_sent",(e,t)=>{let{request:n}=t.params[0];if(Tze()&&this._signingMethods.includes(n.method)){let a=_le(v8);a&&(window.location.href=a.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;let n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.params[0])})}_initTransport(){this._transport.on("message",e=>this._handleIncomingMessages(e)),this._transport.on("open",()=>this._eventManager.trigger({event:"transport_open",params:[]})),this._transport.on("close",()=>this._eventManager.trigger({event:"transport_close",params:[]})),this._transport.on("error",()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})),this._transport.open()}_formatUri(){let e=this.protocol,t=this.handshakeTopic,n=this.version,a=encodeURIComponent(this.bridge),i=this.key;return`${e}:${t}@${n}?bridge=${a}&key=${i}`}_parseUri(e){let t=Hze(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");let a=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");let i=t.key;return{handshakeTopic:n,bridge:a,key:i}}else throw new Error(Xje)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):null}_getStorageSession(){let e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(e){if(!e.url||typeof e.url!="string")throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||typeof e.type!="string")throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||typeof e.token!="string")throw Error("Invalid or missing pushServerOpts.token parameter value");let t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,a)=>{if(n)throw n;if(e.peerMeta){let i=a.params[0].peerMeta.name;t.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}},Mqt=Qze});function Jze(r){return Dqt.getBrowerCrypto().getRandomValues(new Uint8Array(r))}var Dqt,Nqt=de(()=>{f();d();Dqt=ea(Wte())});var bOn,Zze,Xze,txe,gOn,vOn,rxe,eKe,wOn,tKe=de(()=>{f();d();bOn=0,Zze=1,Xze=16,txe=32,gOn=64,vOn=128,rxe=256,eKe=512,wOn=1024});var Ile,nxe,sy,rKe,E8,nKe,aKe,xOn,_On,TOn,EOn,IOn,COn,AOn,kOn,SOn,Oqt=de(()=>{f();d();tKe();Ile=256,nxe=256,sy="AES-CBC",rKe=`SHA-${Ile}`,E8="HMAC",nKe="SHA-256",aKe="SHA-512",xOn=`aes-${Ile}-cbc`,_On=`sha${nxe}`,TOn="sha256",EOn="sha512",IOn="ripemd160",COn=1,AOn=32,kOn=16,SOn=32});var POn,ROn,Fqt=de(()=>{f();d();POn="hex",ROn="utf8"});var MOn,Lqt=de(()=>{f();d();MOn="Bad MAC"});var iKe,sKe,oKe,cKe,qqt=de(()=>{f();d();iKe="encrypt",sKe="decrypt",oKe="sign",cKe="verify"});var uKe=de(()=>{f();d();Oqt();Fqt();Lqt();tKe();qqt()});function BOn(r){return r===sy?{length:Ile,name:sy}:{hash:{name:rKe},name:E8}}function DOn(r){return r===sy?[iKe,sKe]:[oKe,cKe]}async function axe(r,e=sy){return M6.getSubtleCrypto().importKey("raw",r,BOn(e),!0,DOn(e))}async function Wqt(r,e,t){let n=M6.getSubtleCrypto(),a=await axe(e,sy),i=await n.encrypt({iv:r,name:sy},a,t);return new Uint8Array(i)}async function Uqt(r,e,t){let n=M6.getSubtleCrypto(),a=await axe(e,sy),i=await n.decrypt({iv:r,name:sy},a,t);return new Uint8Array(i)}async function lKe(r,e){let t=M6.getSubtleCrypto(),n=await axe(r,E8),a=await t.sign({length:nxe,name:E8},n,e);return new Uint8Array(a)}async function fKe(r,e){let t=M6.getSubtleCrypto(),n=await axe(r,E8),a=await t.sign({length:512,name:E8},n,e);return new Uint8Array(a)}async function Hqt(r){let t=await M6.getSubtleCrypto().digest({name:nKe},r);return new Uint8Array(t)}async function jqt(r){let t=await M6.getSubtleCrypto().digest({name:aKe},r);return new Uint8Array(t)}var M6,ixe=de(()=>{f();d();M6=ea(Wte());uKe()});function dKe(r,e,t){return Wqt(r,e,t)}function pKe(r,e,t){return Uqt(r,e,t)}var zqt=de(()=>{f();d();ixe()});var Ef={};var Kqt=de(()=>{f();d();Yr(Ef,ea(Wte()))});var NOn,Gqt,Vqt=de(()=>{f();d();NOn=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],Gqt={pad(r){let e=NOn[r.byteLength%16||0],t=new Uint8Array(r.byteLength+e.length);return t.set(r),t.set(e,r.byteLength),t},unpad(r){return r.subarray(0,r.byteLength-r[r.byteLength-1])}}});var $qt=de(()=>{f();d()});function Yqt(r,e){if(!r)throw new Error(e||"Assertion failed")}function Cle(r,e){if(r.length!==e.length)return!1;let t=0;for(let n=0;n{f();d()});var $c={};Rr($c,{assert:()=>Yqt,isConstantTime:()=>Cle,pkcs7:()=>Gqt});var hKe=de(()=>{f();d();Kqt();Yr($c,Ef);Vqt();$qt();Qqt()});async function sxe(r,e){return await lKe(r,e)}async function OOn(r,e,t){let n=await lKe(r,e);return Cle(n,t)}async function FOn(r,e){return await fKe(r,e)}async function LOn(r,e,t){let n=await fKe(r,e);return Cle(n,t)}var Jqt=de(()=>{f();d();ixe();hKe()});async function qOn(r){return await Hqt(r)}async function WOn(r){return await jqt(r)}async function UOn(r){throw new Error("Not supported for Browser async methods, use sync instead!")}var Zqt=de(()=>{f();d();ixe()});var Gp={};Rr(Gp,{AES_BROWSER_ALGO:()=>sy,AES_LENGTH:()=>Ile,AES_NODE_ALGO:()=>xOn,DECRYPT_OP:()=>sKe,ENCRYPT_OP:()=>iKe,ERROR_BAD_MAC:()=>MOn,HEX_ENC:()=>POn,HMAC_BROWSER:()=>E8,HMAC_BROWSER_ALGO:()=>rKe,HMAC_LENGTH:()=>nxe,HMAC_NODE_ALGO:()=>_On,IV_LENGTH:()=>kOn,KEY_LENGTH:()=>AOn,LENGTH_0:()=>bOn,LENGTH_1:()=>Zze,LENGTH_1024:()=>wOn,LENGTH_128:()=>vOn,LENGTH_16:()=>Xze,LENGTH_256:()=>rxe,LENGTH_32:()=>txe,LENGTH_512:()=>eKe,LENGTH_64:()=>gOn,MAC_LENGTH:()=>SOn,PREFIX_LENGTH:()=>COn,RIPEMD160_NODE_ALGO:()=>IOn,SHA256_BROWSER_ALGO:()=>nKe,SHA256_NODE_ALGO:()=>TOn,SHA512_BROWSER_ALGO:()=>aKe,SHA512_NODE_ALGO:()=>EOn,SIGN_OP:()=>oKe,UTF8_ENC:()=>ROn,VERIFY_OP:()=>cKe,aesCbcDecrypt:()=>pKe,aesCbcEncrypt:()=>dKe,assert:()=>Yqt,hmacSha256Sign:()=>sxe,hmacSha256Verify:()=>OOn,hmacSha512Sign:()=>FOn,hmacSha512Verify:()=>LOn,isConstantTime:()=>Cle,pkcs7:()=>Gqt,randomBytes:()=>Jze,ripemd160:()=>UOn,sha256:()=>qOn,sha512:()=>WOn});var Xqt=de(()=>{f();d();Nqt();zqt();Jqt();Zqt();hKe();Yr(Gp,$c);uKe()});var mKe={};Rr(mKe,{decrypt:()=>jOn,encrypt:()=>HOn,generateKey:()=>eWt,verifyHmac:()=>tWt});async function eWt(r){let e=(r||256)/8,t=Jze(e);return yze(S6(t))}async function tWt(r,e){let t=ay(r.data),n=ay(r.iv),a=ay(r.hmac),i=ny(a,!1),s=pze(t,n),o=await sxe(e,s),c=ny(o,!1);return P6(i)===P6(c)}async function HOn(r,e,t){let n=k6(gle(e)),a=t||await eWt(128),i=k6(gle(a)),s=ny(i,!1),o=JSON.stringify(r),c=j4e(o),u=await dKe(i,n,c),l=ny(u,!1),p=pze(u,i),h=await sxe(n,p),m=ny(h,!1);return{data:l,hmac:m,iv:s}}async function jOn(r,e){let t=k6(gle(e));if(!t)throw new Error("Missing key: required for decryption");if(!await tWt(r,t))return null;let a=ay(r.data),i=ay(r.iv),s=await pKe(i,t,a),o=W4e(s),c;try{c=JSON.parse(o)}catch{return null}return c}var rWt=de(()=>{f();d();Xqt();ble();Jb()});var bKe={};Rr(bKe,{default:()=>zOn});var yKe,zOn,gKe=de(()=>{f();d();Bqt();rWt();yKe=class extends Mqt{constructor(e,t){super({cryptoLib:mKe,connectorOpts:e,pushServerOpts:t})}},zOn=yKe});var aWt=E((Nfi,nWt)=>{f();d();nWt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var B6=E(I8=>{f();d();var vKe,KOn=[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];I8.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};I8.getSymbolTotalCodewords=function(e){return KOn[e]};I8.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};I8.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');vKe=e};I8.isKanjiModeEnabled=function(){return typeof vKe<"u"};I8.toSJIS=function(e){return vKe(e)}});var oxe=E(Vp=>{f();d();Vp.L={bit:1};Vp.M={bit:0};Vp.Q={bit:3};Vp.H={bit:2};function GOn(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return Vp.L;case"m":case"medium":return Vp.M;case"q":case"quartile":return Vp.Q;case"h":case"high":return Vp.H;default:throw new Error("Unknown EC Level: "+r)}}Vp.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Vp.from=function(e,t){if(Vp.isValid(e))return e;try{return GOn(e)}catch{return t}}});var oWt=E((zfi,sWt)=>{f();d();function iWt(){this.buffer=[],this.length=0}iWt.prototype={get:function(r){let e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};sWt.exports=iWt});var uWt=E((Vfi,cWt)=>{f();d();function Ale(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}Ale.prototype.set=function(r,e,t,n){let a=r*this.size+e;this.data[a]=t,n&&(this.reservedBit[a]=!0)};Ale.prototype.get=function(r,e){return this.data[r*this.size+e]};Ale.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};Ale.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};cWt.exports=Ale});var lWt=E(cxe=>{f();d();var VOn=B6().getSymbolSize;cxe.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=VOn(e),a=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s{f();d();var $On=B6().getSymbolSize,fWt=7;dWt.getPositions=function(e){let t=$On(e);return[[0,0],[t-fWt,0],[0,t-fWt]]}});var hWt=E(us=>{f();d();us.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var C8={N1:3,N2:3,N3:40,N4:10};us.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};us.from=function(e){return us.isValid(e)?parseInt(e,10):void 0};us.getPenaltyN1=function(e){let t=e.size,n=0,a=0,i=0,s=null,o=null;for(let c=0;c=5&&(n+=C8.N1+(a-5)),s=l,a=1),l=e.get(u,c),l===o?i++:(i>=5&&(n+=C8.N1+(i-5)),o=l,i=1)}a>=5&&(n+=C8.N1+(a-5)),i>=5&&(n+=C8.N1+(i-5))}return n};us.getPenaltyN2=function(e){let t=e.size,n=0;for(let a=0;a=10&&(a===1488||a===93)&&n++,i=i<<1&2047|e.get(o,s),o>=10&&(i===1488||i===93)&&n++}return n*C8.N3};us.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let i=0;i{f();d();var D6=oxe(),uxe=[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],lxe=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];wKe.getBlocksCount=function(e,t){switch(t){case D6.L:return uxe[(e-1)*4+0];case D6.M:return uxe[(e-1)*4+1];case D6.Q:return uxe[(e-1)*4+2];case D6.H:return uxe[(e-1)*4+3];default:return}};wKe.getTotalCodewordsCount=function(e,t){switch(t){case D6.L:return lxe[(e-1)*4+0];case D6.M:return lxe[(e-1)*4+1];case D6.Q:return lxe[(e-1)*4+2];case D6.H:return lxe[(e-1)*4+3];default:return}}});var mWt=E(dxe=>{f();d();var kle=new Uint8Array(512),fxe=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)kle[t]=e,fxe[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)kle[t]=kle[t-255]})();dxe.log=function(e){if(e<1)throw new Error("log("+e+")");return fxe[e]};dxe.exp=function(e){return kle[e]};dxe.mul=function(e,t){return e===0||t===0?0:kle[fxe[e]+fxe[t]]}});var yWt=E(Sle=>{f();d();var _Ke=mWt();Sle.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a=0;){let a=n[0];for(let s=0;s{f();d();var bWt=yWt();function TKe(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}TKe.prototype.initialize=function(e){this.degree=e,this.genPoly=bWt.generateECPolynomial(this.degree)};TKe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=bWt.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let i=new Uint8Array(this.degree);return i.set(n,a),i}return n};gWt.exports=TKe});var EKe=E(wWt=>{f();d();wWt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var IKe=E(Zb=>{f();d();var xWt="[0-9]+",QOn="[A-Z $%*+\\-./:]+",Ple="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Ple=Ple.replace(/u/g,"\\u");var JOn="(?:(?![A-Z0-9 $%*+\\-./:]|"+Ple+`)(?:.|[\r +]))+`;Zb.KANJI=new RegExp(Ple,"g");Zb.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Zb.BYTE=new RegExp(JOn,"g");Zb.NUMERIC=new RegExp(xWt,"g");Zb.ALPHANUMERIC=new RegExp(QOn,"g");var ZOn=new RegExp("^"+Ple+"$"),XOn=new RegExp("^"+xWt+"$"),eFn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Zb.testKanji=function(e){return ZOn.test(e)};Zb.testNumeric=function(e){return XOn.test(e)};Zb.testAlphanumeric=function(e){return eFn.test(e)}});var N6=E(kc=>{f();d();var tFn=EKe(),CKe=IKe();kc.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};kc.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};kc.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};kc.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};kc.MIXED={bit:-1};kc.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!tFn.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};kc.getBestModeForData=function(e){return CKe.testNumeric(e)?kc.NUMERIC:CKe.testAlphanumeric(e)?kc.ALPHANUMERIC:CKe.testKanji(e)?kc.KANJI:kc.BYTE};kc.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};kc.isValid=function(e){return e&&e.bit&&e.ccBits};function rFn(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return kc.NUMERIC;case"alphanumeric":return kc.ALPHANUMERIC;case"kanji":return kc.KANJI;case"byte":return kc.BYTE;default:throw new Error("Unknown mode: "+r)}}kc.from=function(e,t){if(kc.isValid(e))return e;try{return rFn(e)}catch{return t}}});var CWt=E(A8=>{f();d();var pxe=B6(),nFn=xKe(),_Wt=oxe(),O6=N6(),AKe=EKe(),EWt=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,TWt=pxe.getBCHDigit(EWt);function aFn(r,e,t){for(let n=1;n<=40;n++)if(e<=A8.getCapacity(n,t,r))return n}function IWt(r,e){return O6.getCharCountIndicator(r,e)+4}function iFn(r,e){let t=0;return r.forEach(function(n){let a=IWt(n.mode,e);t+=a+n.getBitsLength()}),t}function sFn(r,e){for(let t=1;t<=40;t++)if(iFn(r,t)<=A8.getCapacity(t,e,O6.MIXED))return t}A8.from=function(e,t){return AKe.isValid(e)?parseInt(e,10):t};A8.getCapacity=function(e,t,n){if(!AKe.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=O6.BYTE);let a=pxe.getSymbolTotalCodewords(e),i=nFn.getTotalCodewordsCount(e,t),s=(a-i)*8;if(n===O6.MIXED)return s;let o=s-IWt(n,e);switch(n){case O6.NUMERIC:return Math.floor(o/10*3);case O6.ALPHANUMERIC:return Math.floor(o/11*2);case O6.KANJI:return Math.floor(o/13);case O6.BYTE:default:return Math.floor(o/8)}};A8.getBestVersionForData=function(e,t){let n,a=_Wt.from(t,_Wt.M);if(Array.isArray(e)){if(e.length>1)return sFn(e,a);if(e.length===0)return 1;n=e[0]}else n=e;return aFn(n.mode,n.getLength(),a)};A8.getEncodedBits=function(e){if(!AKe.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;pxe.getBCHDigit(t)-TWt>=0;)t^=EWt<{f();d();var kKe=B6(),kWt=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,oFn=1<<14|1<<12|1<<10|1<<4|1<<1,AWt=kKe.getBCHDigit(kWt);SWt.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;kKe.getBCHDigit(a)-AWt>=0;)a^=kWt<{f();d();var cFn=N6();function Kte(r){this.mode=cFn.NUMERIC,this.data=r.toString()}Kte.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};Kte.prototype.getLength=function(){return this.data.length};Kte.prototype.getBitsLength=function(){return Kte.getBitsLength(this.data.length)};Kte.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,i*3+1))};RWt.exports=Kte});var DWt=E((Ndi,BWt)=>{f();d();var uFn=N6(),SKe=["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 Gte(r){this.mode=uFn.ALPHANUMERIC,this.data=r}Gte.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Gte.prototype.getLength=function(){return this.data.length};Gte.prototype.getBitsLength=function(){return Gte.getBitsLength(this.data.length)};Gte.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=SKe.indexOf(this.data[t])*45;n+=SKe.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(SKe.indexOf(this.data[t]),6)};BWt.exports=Gte});var OWt=E((Ldi,NWt)=>{"use strict";f();d();NWt.exports=function(e){for(var t=[],n=e.length,a=0;a=55296&&i<=56319&&n>a+1){var s=e.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|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(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}});var LWt=E((Udi,FWt)=>{f();d();var lFn=OWt(),fFn=N6();function Vte(r){this.mode=fFn.BYTE,typeof r=="string"&&(r=lFn(r)),this.data=new Uint8Array(r)}Vte.getBitsLength=function(e){return e*8};Vte.prototype.getLength=function(){return this.data.length};Vte.prototype.getBitsLength=function(){return Vte.getBitsLength(this.data.length)};Vte.prototype.write=function(r){for(let e=0,t=this.data.length;e{f();d();var dFn=N6(),pFn=B6();function $te(r){this.mode=dFn.KANJI,this.data=r}$te.getBitsLength=function(e){return e*13};$te.prototype.getLength=function(){return this.data.length};$te.prototype.getBitsLength=function(){return $te.getBitsLength(this.data.length)};$te.prototype.write=function(r){let e;for(e=0;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};qWt.exports=$te});var UWt=E((Vdi,PKe)=>{"use strict";f();d();var Rle={single_source_shortest_paths:function(r,e,t){var n={},a={};a[e]=0;var i=Rle.PriorityQueue.make();i.push(e,0);for(var s,o,c,u,l,p,h,m,y;!i.empty();){s=i.pop(),o=s.value,u=s.cost,l=r[o]||{};for(c in l)l.hasOwnProperty(c)&&(p=l[c],h=u+p,m=a[c],y=typeof a[c]>"u",(y||m>h)&&(a[c]=h,i.push(c,h),n[c]=o))}if(typeof t<"u"&&typeof a[t]>"u"){var C=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(C)}return n},extract_shortest_path_from_predecessor_list:function(r,e){for(var t=[],n=e,a;n;)t.push(n),a=r[n],n=r[n];return t.reverse(),t},find_path:function(r,e,t){var n=Rle.single_source_shortest_paths(r,e,t);return Rle.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(r){var e=Rle.PriorityQueue,t={},n;r=r||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=r.sorter||e.default_sorter,t},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var t={value:r,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof PKe<"u"&&(PKe.exports=Rle)});var YWt=E(Yte=>{f();d();var Mi=N6(),zWt=MWt(),KWt=DWt(),GWt=LWt(),VWt=WWt(),Mle=IKe(),hxe=B6(),hFn=UWt();function HWt(r){return unescape(encodeURIComponent(r)).length}function Ble(r,e,t){let n=[],a;for(;(a=r.exec(t))!==null;)n.push({data:a[0],index:a.index,mode:e,length:a[0].length});return n}function $Wt(r){let e=Ble(Mle.NUMERIC,Mi.NUMERIC,r),t=Ble(Mle.ALPHANUMERIC,Mi.ALPHANUMERIC,r),n,a;return hxe.isKanjiModeEnabled()?(n=Ble(Mle.BYTE,Mi.BYTE,r),a=Ble(Mle.KANJI,Mi.KANJI,r)):(n=Ble(Mle.BYTE_KANJI,Mi.BYTE,r),a=[]),e.concat(t,n,a).sort(function(s,o){return s.index-o.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function RKe(r,e){switch(e){case Mi.NUMERIC:return zWt.getBitsLength(r);case Mi.ALPHANUMERIC:return KWt.getBitsLength(r);case Mi.KANJI:return VWt.getBitsLength(r);case Mi.BYTE:return GWt.getBitsLength(r)}}function mFn(r){return r.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function yFn(r){let e=[];for(let t=0;t{f();d();var yxe=B6(),MKe=oxe(),gFn=oWt(),vFn=uWt(),wFn=lWt(),xFn=pWt(),NKe=hWt(),OKe=xKe(),_Fn=vWt(),mxe=CWt(),TFn=PWt(),EFn=N6(),BKe=YWt();function IFn(r,e){let t=r.size,n=xFn.getPositions(e);for(let a=0;a=0&&o<=6&&(c===0||c===6)||c>=0&&c<=6&&(o===0||o===6)||o>=2&&o<=4&&c>=2&&c<=4?r.set(i+o,s+c,!0,!0):r.set(i+o,s+c,!1,!0))}}function CFn(r){let e=r.size;for(let t=8;t>o&1)===1,r.set(a,i,s,!0),r.set(i,a,s,!0)}function DKe(r,e,t){let n=r.size,a=TFn.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?r.set(i,8,s,!0):i<8?r.set(i+1,8,s,!0):r.set(n-15+i,8,s,!0),i<8?r.set(8,n-i-1,s,!0):i<9?r.set(8,15-i-1+1,s,!0):r.set(8,15-i-1,s,!0);r.set(n-8,8,1,!0)}function SFn(r,e){let t=r.size,n=-1,a=t-1,i=7,s=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let c=0;c<2;c++)if(!r.isReserved(a,o-c)){let u=!1;s>>i&1)===1),r.set(a,o-c,u),i--,i===-1&&(s++,i=7)}if(a+=n,a<0||t<=a){a-=n,n=-n;break}}}function PFn(r,e,t){let n=new gFn;t.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),EFn.getCharCountIndicator(c.mode,r)),c.write(n)});let a=yxe.getSymbolTotalCodewords(r),i=OKe.getTotalCodewordsCount(r,e),s=(a-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let o=(s-n.getLengthInBits())/8;for(let c=0;c=7&&chn(c,e),uhn(c,s),isNaN(n)&&(n=PMe.getBestMask(c,AMe.bind(null,c,t))),PMe.applyMask(n,c),AMe(c,t,n),{modules:c,version:e,errorCorrectionLevel:t,maskPattern:n,segments:a}}Z6t.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=CMe.M,a,i;return typeof t<"u"&&(n=CMe.from(t.errorCorrectionLevel,CMe.M),a=c1e.from(t.version),i=PMe.from(t.maskPattern),t.toSJISFunc&&u1e.setToSJISFunction(t.toSJISFunc)),phn(e,a,n,i)}});var RMe=_(Vw=>{d();p();function eIt(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let e=r.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+r);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}Vw.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:n,scale:n?4:a,margin:t,color:{dark:eIt(e.color.dark||"#000000ff"),light:eIt(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};Vw.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale};Vw.getImageWidth=function(e,t){let n=Vw.getScale(e,t);return Math.floor((e+t.margin*2)*n)};Vw.qrToImageData=function(e,t,n){let a=t.modules.size,i=t.modules.data,s=Vw.getScale(a,n),o=Math.floor((a+n.margin*2)*s),c=n.margin*s,u=[n.color.light,n.color.dark];for(let l=0;l=c&&h>=c&&l{d();p();var MMe=RMe();function hhn(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}function fhn(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}l1e.render=function(e,t,n){let a=n,i=t;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),t||(i=fhn()),a=MMe.getOptions(a);let s=MMe.getImageWidth(e.modules.size,a),o=i.getContext("2d"),c=o.createImageData(s,s);return MMe.qrToImageData(c.data,e,a),hhn(o,i,s),o.putImageData(c,0,0),i};l1e.renderToDataURL=function(e,t,n){let a=n;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),a||(a={});let i=l1e.render(e,t,a),s=a.type||"image/png",o=a.rendererOpts||{};return i.toDataURL(s,o.quality)}});var aIt=_(nIt=>{d();p();var mhn=RMe();function rIt(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function NMe(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function yhn(r,e,t){let n="",a=0,i=!1,s=0;for(let o=0;o0&&c>0&&r[o-1]||(n+=i?NMe("M",c+t,.5+u+t):NMe("m",a,0),a=0,i=!1),c+1':"",u="',l='viewBox="0 0 '+o+" "+o+'"',f=''+c+u+` -`;return typeof n=="function"&&n(null,f),f}});var LMe=_(rae=>{d();p();var ghn=s6t(),BMe=X6t(),iIt=tIt(),bhn=aIt();function DMe(r,e,t,n,a){let i=[].slice.call(arguments,1),s=i.length,o=typeof i[s-1]=="function";if(!o&&!ghn())throw new Error("Callback required as last argument");if(o){if(s<2)throw new Error("Too few arguments provided");s===2?(a=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof a>"u"?(a=n,n=void 0):(a=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,u){try{let l=BMe.create(t,n);c(r(l,e,n))}catch(l){u(l)}})}try{let c=BMe.create(t,n);a(null,r(c,e,n))}catch(c){a(c)}}rae.create=BMe.create;rae.toCanvas=DMe.bind(null,iIt.render);rae.toDataURL=DMe.bind(null,iIt.renderToDataURL);rae.toString=DMe.bind(null,function(r,e,t){return bhn.render(r,t)})});var oIt=_((g5a,sIt)=>{d();p();sIt.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n{"use strict";d();p();var vhn=oIt(),cIt={"text/plain":"Text","text/html":"Url",default:"Text"},whn="Copy to clipboard: #{key}, Enter";function xhn(r){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function _hn(r,e){var t,n,a,i,s,o,c=!1;e||(e={}),t=e.debug||!1;try{a=vhn(),i=document.createRange(),s=document.getSelection(),o=document.createElement("span"),o.textContent=r,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(l){if(l.stopPropagation(),e.format)if(l.preventDefault(),typeof l.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=cIt[e.format]||cIt.default;window.clipboardData.setData(h,r)}else l.clipboardData.clearData(),l.clipboardData.setData(e.format,r);e.onCopy&&(l.preventDefault(),e.onCopy(l.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(l){t&&console.error("unable to copy using execCommand: ",l),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),n=xhn("message"in e?e.message:whn),window.prompt(n,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),o&&document.body.removeChild(o),a()}return c}uIt.exports=_hn});var zIt={};cr(zIt,{Children:()=>TIt,Component:()=>Bl,Fragment:()=>Np,PureComponent:()=>d1e,StrictMode:()=>FIt,Suspense:()=>nae,SuspenseList:()=>$$,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>MIt,cloneElement:()=>BIt,createContext:()=>Ate,createElement:()=>pd,createFactory:()=>NIt,createPortal:()=>AIt,createRef:()=>kte,default:()=>Lhn,findDOMNode:()=>LIt,flushSync:()=>qIt,forwardRef:()=>_It,hydrate:()=>RIt,isValidElement:()=>WMe,lazy:()=>kIt,memo:()=>xIt,render:()=>SIt,startTransition:()=>UMe,unmountComponentAtNode:()=>DIt,unstable_batchedUpdates:()=>OIt,useCallback:()=>dye,useContext:()=>pye,useDebugValue:()=>hye,useDeferredValue:()=>WIt,useEffect:()=>hre,useErrorBoundary:()=>Avt,useId:()=>fye,useImperativeHandle:()=>lye,useInsertionEffect:()=>HIt,useLayoutEffect:()=>pw,useMemo:()=>a$,useReducer:()=>pre,useRef:()=>uye,useState:()=>n$,useSyncExternalStore:()=>jIt,useTransition:()=>UIt,version:()=>Dhn});function wIt(r,e){for(var t in e)r[t]=e[t];return r}function qMe(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function OMe(r,e){return r===e&&(r!==0||1/r==1/e)||r!=r&&e!=e}function d1e(r){this.props=r}function xIt(r,e){function t(a){var i=this.props.ref,s=i==a.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,a)||!s:qMe(this.props,a)}function n(a){return this.shouldComponentUpdate=t,pd(r,a)}return n.displayName="Memo("+(r.displayName||r.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function _It(r){function e(t){var n=wIt({},t);return delete n.ref,r(n,t.ref||null)}return e.$$typeof=Thn,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(r.displayName||r.name)+")",e}function IIt(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=wIt({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return IIt(n,e,t)})),r}function EIt(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return EIt(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function nae(){this.__u=0,this.t=null,this.__b=null}function CIt(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function kIt(r){var e,t,n;function a(i){if(e||(e=r()).then(function(s){t=s.default||s},function(s){n=s}),n)throw n;if(!t)throw e;return pd(t,i)}return a.displayName="Lazy",a.__f=!0,a}function $$(){this.u=null,this.o=null}function Ehn(r){return this.getChildContext=function(){return r.context},r.children}function Chn(r){var e=this,t=r.i;e.componentWillUnmount=function(){aw(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),aw(pd(Ehn,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function AIt(r,e){var t=pd(Chn,{__v:r,i:e});return t.containerInfo=e,t}function SIt(r,e,t){return e.__k==null&&(e.textContent=""),aw(r,e),typeof t=="function"&&t(),r?r.__c:null}function RIt(r,e,t){return N0e(r,e),typeof t=="function"&&t(),r?r.__c:null}function Mhn(){}function Nhn(){return this.cancelBubble}function Bhn(){return this.defaultPrevented}function NIt(r){return pd.bind(null,r)}function WMe(r){return!!r&&r.$$typeof===PIt}function BIt(r){return WMe(r)?Wke.apply(null,arguments):r}function DIt(r){return!!r.__k&&(aw(null,r),!0)}function LIt(r){return r&&(r.base||r.nodeType===1&&r)||null}function UMe(r){r()}function WIt(r){return r}function UIt(){return[!1,UMe]}function jIt(r,e){var t=e(),n=n$({h:{__:t,v:e}}),a=n[0].h,i=n[1];return pw(function(){a.__=t,a.v=e,OMe(a.__,e())||i({h:a})},[r,t,e]),hre(function(){return OMe(a.__,a.v())||i({h:a}),r(function(){OMe(a.__,a.v())||i({h:a})})},[r]),t}var dIt,Thn,pIt,TIt,Ihn,hIt,fIt,PIt,khn,Ahn,Phn,Shn,Rhn,mIt,FMe,yIt,gIt,bIt,vIt,MIt,Dhn,OIt,qIt,FIt,HIt,Lhn,KIt=ce(()=>{d();p();Pc();Pc();s1();s1();(d1e.prototype=new Bl).isPureReactComponent=!0,d1e.prototype.shouldComponentUpdate=function(r,e){return qMe(this.props,r)||qMe(this.state,e)};dIt=at.__b;at.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),dIt&&dIt(r)};Thn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;pIt=function(r,e){return r==null?null:Yh(Yh(r).map(e))},TIt={map:pIt,forEach:pIt,count:function(r){return r?Yh(r).length:0},only:function(r){var e=Yh(r);if(e.length!==1)throw"Children.only";return e[0]},toArray:Yh},Ihn=at.__e;at.__e=function(r,e,t,n){if(r.then){for(var a,i=e;i=i.__;)if((a=i.__c)&&a.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),a.__c(r,e)}Ihn(r,e,t,n)};hIt=at.unmount;at.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),hIt&&hIt(r)},(nae.prototype=new Bl).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var a=CIt(n.__v),i=!1,s=function(){i||(i=!0,t.__R=null,a?a(o):o())};t.__R=s;var o=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=EIt(u,u.__c.__P,u.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}},c=e.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(s,s)},nae.prototype.componentWillUnmount=function(){this.t=[]},nae.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=IIt(this.__b,t,n.__O=n.__P)}this.__b=null}var a=e.__a&&pd(Np,null,r.fallback);return a&&(a.__h=null),[pd(Np,null,e.__a?null:r.children),a]};fIt=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]{d();p();function YIt(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var Xu=(cy(),nt(Vge)),$It=YIt(LMe()),Ohn=YIt(lIt()),ze=(KIt(),nt(zIt));function qhn(r){$It.toString(r,{type:"terminal"}).then(console.log)}var Fhn=`:root { +`);let s=PFn(e,t,a),o=yxe.getSymbolSize(e),c=new vFn(o);return IFn(c,e),CFn(c),AFn(c,e),DKe(c,t,0),e>=7&&kFn(c,e),SFn(c,s),isNaN(n)&&(n=NKe.getBestMask(c,DKe.bind(null,c,t))),NKe.applyMask(n,c),DKe(c,t,n),{modules:c,version:e,errorCorrectionLevel:t,maskPattern:n,segments:a}}QWt.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=MKe.M,a,i;return typeof t<"u"&&(n=MKe.from(t.errorCorrectionLevel,MKe.M),a=mxe.from(t.version),i=NKe.from(t.maskPattern),t.toSJISFunc&&yxe.setToSJISFunction(t.toSJISFunc)),MFn(e,a,n,i)}});var FKe=E(k8=>{f();d();function ZWt(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let e=r.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+r);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}k8.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:n,scale:n?4:a,margin:t,color:{dark:ZWt(e.color.dark||"#000000ff"),light:ZWt(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};k8.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale};k8.getImageWidth=function(e,t){let n=k8.getScale(e,t);return Math.floor((e+t.margin*2)*n)};k8.qrToImageData=function(e,t,n){let a=t.modules.size,i=t.modules.data,s=k8.getScale(a,n),o=Math.floor((a+n.margin*2)*s),c=n.margin*s,u=[n.color.light,n.color.dark];for(let l=0;l=c&&p>=c&&l{f();d();var LKe=FKe();function BFn(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}function DFn(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}bxe.render=function(e,t,n){let a=n,i=t;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),t||(i=DFn()),a=LKe.getOptions(a);let s=LKe.getImageWidth(e.modules.size,a),o=i.getContext("2d"),c=o.createImageData(s,s);return LKe.qrToImageData(c.data,e,a),BFn(o,i,s),o.putImageData(c,0,0),i};bxe.renderToDataURL=function(e,t,n){let a=n;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),a||(a={});let i=bxe.render(e,t,a),s=a.type||"image/png",o=a.rendererOpts||{};return i.toDataURL(s,o.quality)}});var rUt=E(tUt=>{f();d();var NFn=FKe();function eUt(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function qKe(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function OFn(r,e,t){let n="",a=0,i=!1,s=0;for(let o=0;o0&&c>0&&r[o-1]||(n+=i?qKe("M",c+t,.5+u+t):qKe("m",a,0),a=0,i=!1),c+1':"",u="',l='viewBox="0 0 '+o+" "+o+'"',h=''+c+u+` +`;return typeof n=="function"&&n(null,h),h}});var HKe=E(Dle=>{f();d();var FFn=aWt(),WKe=JWt(),nUt=XWt(),LFn=rUt();function UKe(r,e,t,n,a){let i=[].slice.call(arguments,1),s=i.length,o=typeof i[s-1]=="function";if(!o&&!FFn())throw new Error("Callback required as last argument");if(o){if(s<2)throw new Error("Too few arguments provided");s===2?(a=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof a>"u"?(a=n,n=void 0):(a=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,u){try{let l=WKe.create(t,n);c(r(l,e,n))}catch(l){u(l)}})}try{let c=WKe.create(t,n);a(null,r(c,e,n))}catch(c){a(c)}}Dle.create=WKe.create;Dle.toCanvas=UKe.bind(null,nUt.render);Dle.toDataURL=UKe.bind(null,nUt.renderToDataURL);Dle.toString=UKe.bind(null,function(r,e,t){return LFn.render(r,t)})});var iUt=E((hpi,aUt)=>{f();d();aUt.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n{"use strict";f();d();var qFn=iUt(),sUt={"text/plain":"Text","text/html":"Url",default:"Text"},WFn="Copy to clipboard: #{key}, Enter";function UFn(r){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function HFn(r,e){var t,n,a,i,s,o,c=!1;e||(e={}),t=e.debug||!1;try{a=qFn(),i=document.createRange(),s=document.getSelection(),o=document.createElement("span"),o.textContent=r,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(l){if(l.stopPropagation(),e.format)if(l.preventDefault(),typeof l.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=sUt[e.format]||sUt.default;window.clipboardData.setData(p,r)}else l.clipboardData.clearData(),l.clipboardData.setData(e.format,r);e.onCopy&&(l.preventDefault(),e.onCopy(l.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(l){t&&console.error("unable to copy using execCommand: ",l),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(p){t&&console.error("unable to copy using clipboardData: ",p),t&&console.error("falling back to prompt"),n=UFn("message"in e?e.message:WFn),window.prompt(n,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),o&&document.body.removeChild(o),a()}return c}oUt.exports=HFn});var HUt={};Rr(HUt,{Children:()=>xUt,Component:()=>wf,Fragment:()=>Wp,PureComponent:()=>gxe,StrictMode:()=>FUt,Suspense:()=>Nle,SuspenseList:()=>Qte,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>PUt,cloneElement:()=>MUt,createContext:()=>l0e,createElement:()=>yd,createFactory:()=>RUt,createPortal:()=>CUt,createRef:()=>u0e,default:()=>rLn,findDOMNode:()=>DUt,flushSync:()=>OUt,forwardRef:()=>wUt,hydrate:()=>SUt,isValidElement:()=>GKe,lazy:()=>IUt,memo:()=>vUt,render:()=>kUt,startTransition:()=>VKe,unmountComponentAtNode:()=>BUt,unstable_batchedUpdates:()=>NUt,useCallback:()=>G3e,useContext:()=>V3e,useDebugValue:()=>$3e,useDeferredValue:()=>LUt,useEffect:()=>Y0e,useErrorBoundary:()=>QRt,useId:()=>Y3e,useImperativeHandle:()=>K3e,useInsertionEffect:()=>WUt,useLayoutEffect:()=>e8,useMemo:()=>dte,useReducer:()=>$0e,useRef:()=>z3e,useState:()=>fte,useSyncExternalStore:()=>UUt,useTransition:()=>qUt,version:()=>tLn});function gUt(r,e){for(var t in e)r[t]=e[t];return r}function zKe(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function jKe(r,e){return r===e&&(r!==0||1/r==1/e)||r!=r&&e!=e}function gxe(r){this.props=r}function vUt(r,e){function t(a){var i=this.props.ref,s=i==a.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,a)||!s:zKe(this.props,a)}function n(a){return this.shouldComponentUpdate=t,yd(r,a)}return n.displayName="Memo("+(r.displayName||r.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function wUt(r){function e(t){var n=gUt({},t);return delete n.ref,r(n,t.ref||null)}return e.$$typeof=jFn,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(r.displayName||r.name)+")",e}function _Ut(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=gUt({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return _Ut(n,e,t)})),r}function TUt(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return TUt(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function Nle(){this.__u=0,this.t=null,this.__b=null}function EUt(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function IUt(r){var e,t,n;function a(i){if(e||(e=r()).then(function(s){t=s.default||s},function(s){n=s}),n)throw n;if(!t)throw e;return yd(t,i)}return a.displayName="Lazy",a.__f=!0,a}function Qte(){this.u=null,this.o=null}function KFn(r){return this.getChildContext=function(){return r.context},r.children}function GFn(r){var e=this,t=r.i;e.componentWillUnmount=function(){G3(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),G3(yd(KFn,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function CUt(r,e){var t=yd(GFn,{__v:r,i:e});return t.containerInfo=e,t}function kUt(r,e,t){return e.__k==null&&(e.textContent=""),G3(r,e),typeof t=="function"&&t(),r?r.__c:null}function SUt(r,e,t){return h3e(r,e),typeof t=="function"&&t(),r?r.__c:null}function ZFn(){}function XFn(){return this.cancelBubble}function eLn(){return this.defaultPrevented}function RUt(r){return yd.bind(null,r)}function GKe(r){return!!r&&r.$$typeof===AUt}function MUt(r){return GKe(r)?Rqe.apply(null,arguments):r}function BUt(r){return!!r.__k&&(G3(null,r),!0)}function DUt(r){return r&&(r.base||r.nodeType===1&&r)||null}function VKe(r){r()}function LUt(r){return r}function qUt(){return[!1,VKe]}function UUt(r,e){var t=e(),n=fte({h:{__:t,v:e}}),a=n[0].h,i=n[1];return e8(function(){a.__=t,a.v=e,jKe(a.__,e())||i({h:a})},[r,t,e]),Y0e(function(){return jKe(a.__,a.v())||i({h:a}),r(function(){jKe(a.__,a.v())||i({h:a})})},[r]),t}var uUt,jFn,lUt,xUt,zFn,fUt,dUt,AUt,VFn,$Fn,YFn,QFn,JFn,pUt,KKe,hUt,mUt,yUt,bUt,PUt,tLn,NUt,OUt,FUt,WUt,rLn,jUt=de(()=>{f();d();cu();cu();b6();b6();(gxe.prototype=new wf).isPureReactComponent=!0,gxe.prototype.shouldComponentUpdate=function(r,e){return zKe(this.props,r)||zKe(this.state,e)};uUt=zt.__b;zt.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),uUt&&uUt(r)};jFn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;lUt=function(r,e){return r==null?null:fm(fm(r).map(e))},xUt={map:lUt,forEach:lUt,count:function(r){return r?fm(r).length:0},only:function(r){var e=fm(r);if(e.length!==1)throw"Children.only";return e[0]},toArray:fm},zFn=zt.__e;zt.__e=function(r,e,t,n){if(r.then){for(var a,i=e;i=i.__;)if((a=i.__c)&&a.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),a.__c(r,e)}zFn(r,e,t,n)};fUt=zt.unmount;zt.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),fUt&&fUt(r)},(Nle.prototype=new wf).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var a=EUt(n.__v),i=!1,s=function(){i||(i=!0,t.__R=null,a?a(o):o())};t.__R=s;var o=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=TUt(u,u.__c.__P,u.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}},c=e.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(s,s)},Nle.prototype.componentWillUnmount=function(){this.t=[]},Nle.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=_Ut(this.__b,t,n.__O=n.__P)}this.__b=null}var a=e.__a&&yd(Wp,null,r.fallback);return a&&(a.__h=null),[yd(Wp,null,e.__a?null:r.children),a]};dUt=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]{f();d();function GUt(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var Pl=(Jb(),Ht(exe)),VUt=GUt(HKe()),nLn=GUt(cUt()),Et=(jUt(),Ht(HUt));function aLn(r){VUt.toString(r,{type:"terminal"}).then(console.log)}var iLn=`:root { --animation-duration: 300ms; } @@ -795,20 +795,85 @@ Minimum version required to store current data is: `+i+`. margin: 0; margin-bottom: 8px; } -`,P5a=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",S5a=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";function Whn(r,e){try{var t=r()}catch(n){return e(n)}return t&&t.then?t.then(void 0,e):t}var Uhn="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",Hhn="WalletConnect",jhn=300,zhn="rgb(64, 153, 255)",QIt="walletconnect-wrapper",GIt="walletconnect-style-sheet",JIt="walletconnect-qrcode-modal",Khn="walletconnect-qrcode-close",ZIt="walletconnect-qrcode-text",Ghn="walletconnect-connect-button";function Vhn(r){return ze.createElement("div",{className:"walletconnect-modal__header"},ze.createElement("img",{src:Uhn,className:"walletconnect-modal__headerLogo"}),ze.createElement("p",null,Hhn),ze.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:r.onClose},ze.createElement("div",{id:Khn,className:"walletconnect-modal__close__icon"},ze.createElement("div",{className:"walletconnect-modal__close__line1"}),ze.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Yhn(r){return ze.createElement("a",{className:"walletconnect-connect__button",href:r.href,id:Ghn+"-"+r.name,onClick:r.onClick,rel:"noopener noreferrer",style:{backgroundColor:r.color},target:"_blank"},r.name)}var $hn="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function Qhn(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick;return ze.createElement("a",{className:"walletconnect-modal__base__row",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),ze.createElement("div",{className:"walletconnect-modal__base__row__right"},ze.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("img",{src:$hn,className:"walletconnect-modal__base__row__right__caret"})))}function Jhn(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick,s=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return ze.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},n))}var Zhn=5,HMe=12;function Xhn(r){var e=Xu.isAndroid(),t=ze.useState(""),n=t[0],a=t[1],i=ze.useState(""),s=i[0],o=i[1],c=ze.useState(1),u=c[0],l=c[1],h=s?r.links.filter(function(W){return W.name.toLowerCase().includes(s.toLowerCase())}):r.links,f=r.errorMessage,m=s||h.length>Zhn,y=Math.ceil(h.length/HMe),I=[(u-1)*HMe+1,u*HMe],C=h.length?h.filter(function(W,V){return V+1>=I[0]&&V+1<=I[1]}):[],R=!e&&y>1,L=void 0;function F(W){a(W.target.value),clearTimeout(L),W.target.value?L=setTimeout(function(){o(W.target.value),l(1)},1e3):(a(""),o(""),l(1))}return ze.createElement("div",null,ze.createElement("p",{id:ZIt,className:"walletconnect-qrcode__text"},e?r.text.connect_mobile_wallet:r.text.choose_preferred_wallet),!e&&ze.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:F}),ze.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":m&&h.length?"__wrap":"")},e?ze.createElement(Yhn,{name:r.text.connect,color:zhn,href:r.uri,onClick:ze.useCallback(function(){Xu.saveMobileLinkInfo({name:"Unknown",href:r.uri})},[])}):C.length?C.map(function(W){var V=W.color,K=W.name,H=W.shortName,G=W.logo,Q=Xu.formatIOSMobile(r.uri,W),q=ze.useCallback(function(){Xu.saveMobileLinkInfo({name:K,href:Q})},[C]);return m?ze.createElement(Jhn,{color:V,href:Q,name:H||K,logo:G,onClick:q}):ze.createElement(Qhn,{color:V,href:Q,name:K,logo:G,onClick:q})}):ze.createElement(ze.Fragment,null,ze.createElement("p",null,f.length?r.errorMessage:!!r.links.length&&!h.length?r.text.no_wallets_found:r.text.loading))),R&&ze.createElement("div",{className:"walletconnect-modal__footer"},Array(y).fill(0).map(function(W,V){var K=V+1,H=u===K;return ze.createElement("a",{style:{margin:"auto 10px",fontWeight:H?"bold":"normal"},onClick:function(){return l(K)}},K)})))}function efn(r){var e=!!r.message.trim();return ze.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},r.message)}var tfn=function(r){try{var e="";return Promise.resolve($It.toString(r,{margin:0,type:"svg"})).then(function(t){return typeof t=="string"&&(e=t.replace("0||ze.useEffect(function(){var M=function(){try{if(e)return Promise.resolve();s(!0);var A=Whn(function(){var v=r.qrcodeModalOptions&&r.qrcodeModalOptions.registryUrl?r.qrcodeModalOptions.registryUrl:Xu.getWalletRegistryUrl();return Promise.resolve(fetch(v)).then(function(k){return Promise.resolve(k.json()).then(function(O){var D=O.listings,B=t?"mobile":"desktop",x=Xu.getMobileLinkRegistry(Xu.formatMobileRegistry(D,B),n);s(!1),u(!0),Q(x.length?"":r.text.no_supported_wallets),K(x);var N=x.length===1;N&&(C(Xu.formatIOSMobile(r.uri,x[0])),f(!0)),F(N)})})},function(v){s(!1),u(!0),Q(r.text.something_went_wrong),console.error(v)});return Promise.resolve(A&&A.then?A.then(function(){}):void 0)}catch(v){return Promise.reject(v)}};M()})};q();var T=t?h:!h;return ze.createElement("div",{id:JIt,className:"walletconnect-qrcode__base animated fadeIn"},ze.createElement("div",{className:"walletconnect-modal__base"},ze.createElement(Vhn,{onClose:r.onClose}),L&&h?ze.createElement("div",{className:"walletconnect-modal__single_wallet"},ze.createElement("a",{onClick:function(){return Xu.saveMobileLinkInfo({name:V[0].name,href:I})},href:I,rel:"noopener noreferrer",target:"_blank"},r.text.connect_with+" "+(L?V[0].name:"")+" \u203A")):e||i||!i&&V.length?ze.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(T?" right__selected":"")},ze.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),t?ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!1),q()}},r.text.mobile),ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode)):ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode),ze.createElement("a",{onClick:function(){return f(!1),q()}},r.text.desktop))):null,ze.createElement("div",null,h||!e&&!i&&!V.length?ze.createElement(rfn,Object.assign({},m)):ze.createElement(Xhn,Object.assign({},m,{links:V,errorMessage:G})))))}var afn={choose_preferred_wallet:"W\xE4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xFCtzten Wallet",no_wallets_found:"keine Wallet gefunden"},ifn={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},sfn={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xF3vil",scan_qrcode_with_wallet:"Escanea el c\xF3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xF3 mal",no_supported_wallets:"Todav\xEDa no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},ofn={choose_preferred_wallet:"Choisissez votre portefeuille pr\xE9f\xE9r\xE9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xE9!",connect_with:"Connectez-vous \xE0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xE9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xE9"},cfn={choose_preferred_wallet:"\uC6D0\uD558\uB294 \uC9C0\uAC11\uC744 \uC120\uD0DD\uD558\uC138\uC694",connect_mobile_wallet:"\uBAA8\uBC14\uC77C \uC9C0\uAC11\uACFC \uC5F0\uACB0",scan_qrcode_with_wallet:"WalletConnect \uC9C0\uC6D0 \uC9C0\uAC11\uC5D0\uC11C QR\uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694",connect:"\uC5F0\uACB0",qrcode:"QR \uCF54\uB4DC",mobile:"\uBAA8\uBC14\uC77C",desktop:"\uB370\uC2A4\uD06C\uD0D1",copy_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",copied_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",connect_with:"\uC640 \uC5F0\uACB0\uD558\uB2E4",loading:"\uB85C\uB4DC \uC911...",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",no_supported_wallets:"\uC544\uC9C1 \uC9C0\uC6D0\uB418\uB294 \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",no_wallets_found:"\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"},ufn={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xE0 carteira m\xF3vel",scan_qrcode_with_wallet:"Ler o c\xF3digo QR com uma carteira compat\xEDvel com WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xE3o h\xE1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},lfn={choose_preferred_wallet:"\u9009\u62E9\u4F60\u7684\u94B1\u5305",connect_mobile_wallet:"\u8FDE\u63A5\u81F3\u79FB\u52A8\u7AEF\u94B1\u5305",scan_qrcode_with_wallet:"\u4F7F\u7528\u517C\u5BB9 WalletConnect \u7684\u94B1\u5305\u626B\u63CF\u4E8C\u7EF4\u7801",connect:"\u8FDE\u63A5",qrcode:"\u4E8C\u7EF4\u7801",mobile:"\u79FB\u52A8",desktop:"\u684C\u9762",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",copied_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F\u6210\u529F\uFF01",connect_with:"\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u8FDE\u63A5",loading:"\u6B63\u5728\u52A0\u8F7D...",something_went_wrong:"\u51FA\u4E86\u95EE\u9898",no_supported_wallets:"\u76EE\u524D\u8FD8\u6CA1\u6709\u652F\u6301\u7684\u94B1\u5305",no_wallets_found:"\u6CA1\u6709\u627E\u5230\u94B1\u5305"},dfn={choose_preferred_wallet:"\u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",connect_mobile_wallet:"\u0628\u0647 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0648\u0635\u0644 \u0634\u0648\u06CC\u062F",scan_qrcode_with_wallet:"\u06A9\u062F QR \u0631\u0627 \u0628\u0627 \u06CC\u06A9 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0633\u0627\u0632\u06AF\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06A9\u0646 \u06A9\u0646\u06CC\u062F",connect:"\u0627\u062A\u0635\u0627\u0644",qrcode:"\u06A9\u062F QR",mobile:"\u0633\u06CC\u0627\u0631",desktop:"\u062F\u0633\u06A9\u062A\u0627\u067E",copy_to_clipboard:"\u06A9\u067E\u06CC \u0628\u0647 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F",copied_to_clipboard:"\u062F\u0631 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F \u06A9\u067E\u06CC \u0634\u062F!",connect_with:"\u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",something_went_wrong:"\u0645\u0634\u06A9\u0644\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0634\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",no_wallets_found:"\u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644\u06CC \u067E\u06CC\u062F\u0627 \u0646\u0634\u062F"},VIt={de:afn,en:ifn,es:sfn,fr:ofn,ko:cfn,pt:ufn,zh:lfn,fa:dfn};function pfn(){var r=Xu.getDocumentOrThrow(),e=r.getElementById(GIt);e&&r.head.removeChild(e);var t=r.createElement("style");t.setAttribute("id",GIt),t.innerText=Fhn,r.head.appendChild(t)}function hfn(){var r=Xu.getDocumentOrThrow(),e=r.createElement("div");return e.setAttribute("id",QIt),r.body.appendChild(e),e}function XIt(){var r=Xu.getDocumentOrThrow(),e=r.getElementById(JIt);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=r.getElementById(QIt);t&&r.body.removeChild(t)},jhn))}function ffn(r){return function(){XIt(),r&&r()}}function mfn(){var r=Xu.getNavigatorOrThrow().language.split("-")[0]||"en";return VIt[r]||VIt.en}function yfn(r,e,t){pfn();var n=hfn();ze.render(ze.createElement(nfn,{text:mfn(),uri:r,onClose:ffn(e),qrcodeModalOptions:t}),n)}function gfn(){XIt()}var eEt=function(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"};function bfn(r,e,t){console.log(r),eEt()?qhn(r):yfn(r,e,t)}function vfn(){eEt()||gfn()}var wfn={open:bfn,close:vfn};tEt.exports=wfn});var aEt,zMe,xfn,_fn,rEt,nEt,p1e,iEt,KMe=ce(()=>{d();p();aEt=un(Lu()),zMe=un(tn());j$();iy();xfn={Accept:"application/json","Content-Type":"application/json"},_fn="POST",rEt={headers:xfn,method:_fn},nEt=10,p1e=class{constructor(e){if(this.url=e,this.events=new aEt.EventEmitter,this.isAvailable=!1,this.registering=!1,!Tge(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}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 new Error("Connection already closed");this.onClose()}async send(e,t){this.isAvailable||await this.register();try{let n=Sm(e),i=await(await(0,zMe.default)(this.url,Object.assign(Object.assign({},rEt),{body:n}))).json();this.onPayload({data:i})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!Tge(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return a(new Error("HTTP connection is missing or invalid"));n()})})}this.url=e,this.registering=!0;try{let t=Sm({id:1,jsonrpc:"2.0",method:"test",params:[]});await(0,zMe.default)(e,Object.assign(Object.assign({},rEt),{body:t})),this.onOpen()}catch(t){let n=this.parseError(t);throw this.events.emit("register_error",n),this.onClose(),n}}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=typeof e.data=="string"?oy(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=Lne(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return Dne(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>nEt&&this.events.setMaxListeners(nEt)}},iEt=p1e});var h1e={};cr(h1e,{HttpConnection:()=>p1e,default:()=>Tfn});var Tfn,f1e=ce(()=>{d();p();KMe();KMe();Tfn=iEt});var sEt,m1e,oEt,GMe=ce(()=>{d();p();sEt=un(Lu());iy();m1e=class extends O${constructor(e){super(e),this.events=new sEt.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(LRe(e.method,e.params||[]),t)}async requestStrict(e,t){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(i){a(i)}this.events.on(`${e.id}`,i=>{Ege(i)?a(i.error):n(i.result)});try{await this.connection.send(e,t)}catch(i){a(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),FRe(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new 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(),typeof e=="string"&&(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.hasRegisteredEventListeners=!0)}},oEt=m1e});var aae={};cr(aae,{JsonRpcProvider:()=>m1e,default:()=>Ifn});var Ifn,iae=ce(()=>{d();p();GMe();GMe();Ifn=oEt});var pEt=_(dEt=>{"use strict";d();p();var wd=ec(),Efn=(lge(),nt(RRe)),cEt=(iy(),nt(to)),Cfn=(pMe(),nt(dMe)),kfn=jMe(),Afn=Je(),Pfn=(f1e(),nt(h1e)),uEt=(iae(),nt(aae)),Sfn=(Fw(),nt(QRe)),Rfn=(cy(),nt(Vge));function $Me(r){return r&&r.__esModule?r:{default:r}}var Mfn=$Me(Cfn),Nfn=$Me(kfn),lEt=$Me(Afn),VMe=class extends Efn.IJsonRpcConnection{constructor(e){super(),wd._defineProperty(this,"events",new lEt.default),wd._defineProperty(this,"accounts",[]),wd._defineProperty(this,"chainId",1),wd._defineProperty(this,"pending",!1),wd._defineProperty(this,"wc",void 0),wd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),wd._defineProperty(this,"qrcode",!0),wd._defineProperty(this,"qrcodeModalOptions",void 0),wd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=e?.chainId||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}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){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",cEt.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?Nfn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new Mfn.default(t),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.chainId||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?cEt.formatJsonRpcError(e.id,e.error.message):e}},Bfn=VMe,YMe=class{constructor(e){wd._defineProperty(this,"events",new lEt.default),wd._defineProperty(this,"rpc",void 0),wd._defineProperty(this,"signer",void 0),wd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new uEt.JsonRpcProvider(new Bfn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){return(this.http?.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(Sfn.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.connector.on("display_uri",(e,t)=>{this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=Rfn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new uEt.JsonRpcProvider(new Pfn.HttpConnection(t))}};dEt.default=YMe});var yEt=_(XMe=>{"use strict";d();p();Object.defineProperty(XMe,"__esModule",{value:!0});var y1e=ym(),La=gm(),tf=ec(),Q$=je(),sae=_Y(),hEt=TY();Vu();vt();Je();var QMe="last-used-chain-id",JMe="last-session",Ms=new WeakMap,k1=new WeakMap,fEt=new WeakSet,mEt=new WeakSet,ZMe=class extends sae.Connector{constructor(e){super(e),y1e._classPrivateMethodInitSpec(this,mEt),y1e._classPrivateMethodInitSpec(this,fEt),tf._defineProperty(this,"id","walletConnectV1"),tf._defineProperty(this,"name","WalletConnectV1"),tf._defineProperty(this,"ready",!0),La._classPrivateFieldInitSpec(this,Ms,{writable:!0,value:void 0}),La._classPrivateFieldInitSpec(this,k1,{writable:!0,value:void 0}),tf._defineProperty(this,"walletName",void 0),tf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),tf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),tf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),tf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),tf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Q$.utils.getAddress(t[0])})}),tf._defineProperty(this,"onChainChanged",t=>{let n=hEt.normalizeChainId(t),a=this.isChainUnsupported(n);La._classPrivateFieldGet(this,k1).setItem(QMe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),tf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,La._classPrivateFieldGet(this,k1).removeItem(QMe),La._classPrivateFieldGet(this,k1).removeItem(JMe),y1e._classPrivateMethodGet(this,mEt,Lfn).call(this),this.emit("disconnect")}),La._classPrivateFieldSet(this,k1,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await La._classPrivateFieldGet(this,k1).getItem(QMe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=Q$.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return y1e._classPrivateMethodGet(this,fEt,Dfn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new Q$.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new sae.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return Q$.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return hEt.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!La._classPrivateFieldGet(this,Ms)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return pEt()})).default,i=await La._classPrivateFieldGet(this,k1).getItem(JMe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,La._classPrivateFieldSet(this,Ms,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return La._classPrivateFieldGet(this,Ms)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Q$.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Q$.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new sae.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new sae.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new sae.SwitchChainError(a)}}async setupListeners(){!La._classPrivateFieldGet(this,Ms)||(La._classPrivateFieldGet(this,Ms).on("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ms).on("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ms).on("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ms).on("message",this.onMessage),La._classPrivateFieldGet(this,Ms).on("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ms).on("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ms).on("call_request_sent",this.onRequestSent))}};async function Dfn(){let r=La._classPrivateFieldGet(this,Ms)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);La._classPrivateFieldGet(this,k1).setItem(JMe,e)}function Lfn(){!La._classPrivateFieldGet(this,Ms)||(La._classPrivateFieldGet(this,Ms).removeListener("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ms).removeListener("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ms).removeListener("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ms).removeListener("message",this.onMessage),La._classPrivateFieldGet(this,Ms).removeListener("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ms).removeListener("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ms).removeListener("call_request_sent",this.onRequestSent))}XMe.WalletConnectV1Connector=ZMe});var vEt=_(eNe=>{"use strict";d();p();Object.defineProperty(eNe,"__esModule",{value:!0});var J$=ec(),gEt=xY(),bEt=vY(),Ofn=age();ym();Vu();Yg();je();Je();vt();var Yw=class extends gEt.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(Yw.id,e),J$._defineProperty(this,"connector",void 0),J$._defineProperty(this,"connectorStorage",void 0),J$._defineProperty(this,"walletConnectConnector",void 0),J$._defineProperty(this,"isInjected",void 0),this.connectorStorage=e.connectorStorage||gEt.createAsyncLocalStorage("connector"),Ofn.assertWindowEthereum(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isMetaMask:this.isInjected=!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return X3t()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new bEt.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return yEt()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.dappMetadata.name,description:this.dappMetadata.description||"",url:this.dappMetadata.url,icons:[this.dappMetadata.logoUrl||""]},qrcode:this.options?.qrcode}});this.walletConnectConnector=t,this.connector=new bEt.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};J$._defineProperty(Yw,"meta",{name:"MetaMask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});J$._defineProperty(Yw,"id","metamask");eNe.MetaMaskWallet=Yw});var wEt=_(aNe=>{"use strict";d();p();Object.defineProperty(aNe,"__esModule",{value:!0});var tNe=km(),qfn=ac(),g1e=P$(),Ffn=sge(),Wfn=_Re(),Ufn=je();Zu();vt();Je();S$();var rNe=new WeakMap,nNe=class extends Wfn.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&Ffn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),qfn._defineProperty(this,"id","metaMask"),tNe._classPrivateFieldInitSpec(this,rNe,{writable:!0,value:void 0}),tNe._classPrivateFieldSet(this,rNe,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new g1e.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(tNe._classPrivateFieldGet(this,rNe)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new g1e.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=Ufn.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new g1e.UserRejectedRequestError(t):t.code===-32002?new g1e.ResourceUnavailableError(t):t}}};aNe.MetaMaskConnector=nNe});var EEt=_(IEt=>{"use strict";d();p();var xd=ac(),Hfn=(lge(),nt(RRe)),xEt=(iy(),nt(to)),jfn=(pMe(),nt(dMe)),zfn=jMe(),Kfn=Je(),Gfn=(f1e(),nt(h1e)),_Et=(iae(),nt(aae)),Vfn=(Fw(),nt(QRe)),Yfn=(cy(),nt(Vge));function oNe(r){return r&&r.__esModule?r:{default:r}}var $fn=oNe(jfn),Qfn=oNe(zfn),TEt=oNe(Kfn),iNe=class extends Hfn.IJsonRpcConnection{constructor(e){super(),xd._defineProperty(this,"events",new TEt.default),xd._defineProperty(this,"accounts",[]),xd._defineProperty(this,"chainId",1),xd._defineProperty(this,"pending",!1),xd._defineProperty(this,"wc",void 0),xd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),xd._defineProperty(this,"qrcode",!0),xd._defineProperty(this,"qrcodeModalOptions",void 0),xd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=e?.chainId||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}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){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",xEt.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?Qfn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new $fn.default(t),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.chainId||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?xEt.formatJsonRpcError(e.id,e.error.message):e}},Jfn=iNe,sNe=class{constructor(e){xd._defineProperty(this,"events",new TEt.default),xd._defineProperty(this,"rpc",void 0),xd._defineProperty(this,"signer",void 0),xd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new _Et.JsonRpcProvider(new Jfn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){return(this.http?.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(Vfn.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.connector.on("display_uri",(e,t)=>{this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=Yfn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new _Et.JsonRpcProvider(new Gfn.HttpConnection(t))}};IEt.default=sNe});var PEt=_(dNe=>{"use strict";d();p();Object.defineProperty(dNe,"__esModule",{value:!0});var b1e=Cm(),Oa=km(),rf=ac(),Z$=je(),oae=P$(),CEt=S$();Zu();vt();Je();var cNe="last-used-chain-id",uNe="last-session",Ns=new WeakMap,A1=new WeakMap,kEt=new WeakSet,AEt=new WeakSet,lNe=class extends oae.Connector{constructor(e){super(e),b1e._classPrivateMethodInitSpec(this,AEt),b1e._classPrivateMethodInitSpec(this,kEt),rf._defineProperty(this,"id","walletConnectV1"),rf._defineProperty(this,"name","WalletConnectV1"),rf._defineProperty(this,"ready",!0),Oa._classPrivateFieldInitSpec(this,Ns,{writable:!0,value:void 0}),Oa._classPrivateFieldInitSpec(this,A1,{writable:!0,value:void 0}),rf._defineProperty(this,"walletName",void 0),rf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),rf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),rf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),rf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),rf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Z$.utils.getAddress(t[0])})}),rf._defineProperty(this,"onChainChanged",t=>{let n=CEt.normalizeChainId(t),a=this.isChainUnsupported(n);Oa._classPrivateFieldGet(this,A1).setItem(cNe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),rf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,Oa._classPrivateFieldGet(this,A1).removeItem(cNe),Oa._classPrivateFieldGet(this,A1).removeItem(uNe),b1e._classPrivateMethodGet(this,AEt,Xfn).call(this),this.emit("disconnect")}),Oa._classPrivateFieldSet(this,A1,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await Oa._classPrivateFieldGet(this,A1).getItem(cNe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=Z$.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return b1e._classPrivateMethodGet(this,kEt,Zfn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new Z$.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new oae.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return Z$.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return CEt.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Oa._classPrivateFieldGet(this,Ns)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return EEt()})).default,i=await Oa._classPrivateFieldGet(this,A1).getItem(uNe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,Oa._classPrivateFieldSet(this,Ns,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return Oa._classPrivateFieldGet(this,Ns)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Z$.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Z$.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new oae.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new oae.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new oae.SwitchChainError(a)}}async setupListeners(){!Oa._classPrivateFieldGet(this,Ns)||(Oa._classPrivateFieldGet(this,Ns).on("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Ns).on("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Ns).on("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Ns).on("message",this.onMessage),Oa._classPrivateFieldGet(this,Ns).on("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Ns).on("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Ns).on("call_request_sent",this.onRequestSent))}};async function Zfn(){let r=Oa._classPrivateFieldGet(this,Ns)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);Oa._classPrivateFieldGet(this,A1).setItem(uNe,e)}function Xfn(){!Oa._classPrivateFieldGet(this,Ns)||(Oa._classPrivateFieldGet(this,Ns).removeListener("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Ns).removeListener("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Ns).removeListener("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Ns).removeListener("message",this.onMessage),Oa._classPrivateFieldGet(this,Ns).removeListener("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Ns).removeListener("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Ns).removeListener("call_request_sent",this.onRequestSent))}dNe.WalletConnectV1Connector=lNe});var MEt=_(pNe=>{"use strict";d();p();Object.defineProperty(pNe,"__esModule",{value:!0});var X$=ac(),SEt=A$(),REt=C$(),emn=sge();Cm();Zu();p1();je();Je();vt();var $w=class extends SEt.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super($w.id,e),X$._defineProperty(this,"connector",void 0),X$._defineProperty(this,"connectorStorage",void 0),X$._defineProperty(this,"walletConnectConnector",void 0),X$._defineProperty(this,"isInjected",void 0),this.connectorStorage=e.connectorStorage||SEt.createAsyncLocalStorage("connector"),emn.assertWindowEthereum(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isMetaMask:this.isInjected=!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return wEt()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new REt.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return PEt()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.dappMetadata.name,description:this.dappMetadata.description||"",url:this.dappMetadata.url,icons:[this.dappMetadata.logoUrl||""]},qrcode:this.options?.qrcode}});this.walletConnectConnector=t,this.connector=new REt.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};X$._defineProperty($w,"meta",{name:"MetaMask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});X$._defineProperty($w,"id","metamask");pNe.MetaMaskWallet=$w});var NEt=_((b3a,hNe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?hNe.exports=vEt():hNe.exports=MEt()});var BEt=_(_d=>{"use strict";d();p();Object.defineProperty(_d,"__esModule",{value:!0});function tmn(r,e){var t=r>>>16&65535,n=r&65535,a=e>>>16&65535,i=e&65535;return n*i+(t*i+n*a<<16>>>0)|0}_d.mul=Math.imul||tmn;function rmn(r,e){return r+e|0}_d.add=rmn;function nmn(r,e){return r-e|0}_d.sub=nmn;function amn(r,e){return r<>>32-e}_d.rotl=amn;function imn(r,e){return r<<32-e|r>>>e}_d.rotr=imn;function smn(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r}_d.isInteger=Number.isInteger||smn;_d.MAX_SAFE_INTEGER=9007199254740991;_d.isSafeInteger=function(r){return _d.isInteger(r)&&r>=-_d.MAX_SAFE_INTEGER&&r<=_d.MAX_SAFE_INTEGER}});var eQ=_(Nr=>{"use strict";d();p();Object.defineProperty(Nr,"__esModule",{value:!0});var DEt=BEt();function omn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])<<16>>16}Nr.readInt16BE=omn;function cmn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])>>>0}Nr.readUint16BE=cmn;function umn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])<<16>>16}Nr.readInt16LE=umn;function lmn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])>>>0}Nr.readUint16LE=lmn;function LEt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>8,e[t+1]=r>>>0,e}Nr.writeUint16BE=LEt;Nr.writeInt16BE=LEt;function OEt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e}Nr.writeUint16LE=OEt;Nr.writeInt16LE=OEt;function fNe(r,e){return e===void 0&&(e=0),r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]}Nr.readInt32BE=fNe;function mNe(r,e){return e===void 0&&(e=0),(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}Nr.readUint32BE=mNe;function yNe(r,e){return e===void 0&&(e=0),r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e]}Nr.readInt32LE=yNe;function gNe(r,e){return e===void 0&&(e=0),(r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e])>>>0}Nr.readUint32LE=gNe;function v1e(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>24,e[t+1]=r>>>16,e[t+2]=r>>>8,e[t+3]=r>>>0,e}Nr.writeUint32BE=v1e;Nr.writeInt32BE=v1e;function w1e(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e[t+2]=r>>>16,e[t+3]=r>>>24,e}Nr.writeUint32LE=w1e;Nr.writeInt32LE=w1e;function dmn(r,e){e===void 0&&(e=0);var t=fNe(r,e),n=fNe(r,e+4);return t*4294967296+n-(n>>31)*4294967296}Nr.readInt64BE=dmn;function pmn(r,e){e===void 0&&(e=0);var t=mNe(r,e),n=mNe(r,e+4);return t*4294967296+n}Nr.readUint64BE=pmn;function hmn(r,e){e===void 0&&(e=0);var t=yNe(r,e),n=yNe(r,e+4);return n*4294967296+t-(t>>31)*4294967296}Nr.readInt64LE=hmn;function fmn(r,e){e===void 0&&(e=0);var t=gNe(r,e),n=gNe(r,e+4);return n*4294967296+t}Nr.readUint64LE=fmn;function qEt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),v1e(r/4294967296>>>0,e,t),v1e(r>>>0,e,t+4),e}Nr.writeUint64BE=qEt;Nr.writeInt64BE=qEt;function FEt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),w1e(r>>>0,e,t),w1e(r/4294967296>>>0,e,t+4),e}Nr.writeUint64LE=FEt;Nr.writeInt64LE=FEt;function mmn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,a=1,i=r/8+t-1;i>=t;i--)n+=e[i]*a,a*=256;return n}Nr.readUintBE=mmn;function ymn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,a=1,i=t;i=n;i--)t[i]=e/a&255,a*=256;return t}Nr.writeUintBE=gmn;function bmn(r,e,t,n){if(t===void 0&&(t=new Uint8Array(r/8)),n===void 0&&(n=0),r%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!DEt.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var a=1,i=n;i{"use strict";d();p();Object.defineProperty(bNe,"__esModule",{value:!0});function kmn(r){for(var e=0;e{"use strict";d();p();Object.defineProperty(x1e,"__esModule",{value:!0});var Ru=eQ(),vNe=Wp(),Amn=20;function Pmn(r,e,t){for(var n=1634760805,a=857760878,i=2036477234,s=1797285236,o=t[3]<<24|t[2]<<16|t[1]<<8|t[0],c=t[7]<<24|t[6]<<16|t[5]<<8|t[4],u=t[11]<<24|t[10]<<16|t[9]<<8|t[8],l=t[15]<<24|t[14]<<16|t[13]<<8|t[12],h=t[19]<<24|t[18]<<16|t[17]<<8|t[16],f=t[23]<<24|t[22]<<16|t[21]<<8|t[20],m=t[27]<<24|t[26]<<16|t[25]<<8|t[24],y=t[31]<<24|t[30]<<16|t[29]<<8|t[28],I=e[3]<<24|e[2]<<16|e[1]<<8|e[0],C=e[7]<<24|e[6]<<16|e[5]<<8|e[4],R=e[11]<<24|e[10]<<16|e[9]<<8|e[8],L=e[15]<<24|e[14]<<16|e[13]<<8|e[12],F=n,W=a,V=i,K=s,H=o,G=c,Q=u,q=l,T=h,M=f,A=m,v=y,k=I,O=C,D=R,B=L,x=0;x>>32-16|k<<16,T=T+k|0,H^=T,H=H>>>32-12|H<<12,W=W+G|0,O^=W,O=O>>>32-16|O<<16,M=M+O|0,G^=M,G=G>>>32-12|G<<12,V=V+Q|0,D^=V,D=D>>>32-16|D<<16,A=A+D|0,Q^=A,Q=Q>>>32-12|Q<<12,K=K+q|0,B^=K,B=B>>>32-16|B<<16,v=v+B|0,q^=v,q=q>>>32-12|q<<12,V=V+Q|0,D^=V,D=D>>>32-8|D<<8,A=A+D|0,Q^=A,Q=Q>>>32-7|Q<<7,K=K+q|0,B^=K,B=B>>>32-8|B<<8,v=v+B|0,q^=v,q=q>>>32-7|q<<7,W=W+G|0,O^=W,O=O>>>32-8|O<<8,M=M+O|0,G^=M,G=G>>>32-7|G<<7,F=F+H|0,k^=F,k=k>>>32-8|k<<8,T=T+k|0,H^=T,H=H>>>32-7|H<<7,F=F+G|0,B^=F,B=B>>>32-16|B<<16,A=A+B|0,G^=A,G=G>>>32-12|G<<12,W=W+Q|0,k^=W,k=k>>>32-16|k<<16,v=v+k|0,Q^=v,Q=Q>>>32-12|Q<<12,V=V+q|0,O^=V,O=O>>>32-16|O<<16,T=T+O|0,q^=T,q=q>>>32-12|q<<12,K=K+H|0,D^=K,D=D>>>32-16|D<<16,M=M+D|0,H^=M,H=H>>>32-12|H<<12,V=V+q|0,O^=V,O=O>>>32-8|O<<8,T=T+O|0,q^=T,q=q>>>32-7|q<<7,K=K+H|0,D^=K,D=D>>>32-8|D<<8,M=M+D|0,H^=M,H=H>>>32-7|H<<7,W=W+Q|0,k^=W,k=k>>>32-8|k<<8,v=v+k|0,Q^=v,Q=Q>>>32-7|Q<<7,F=F+G|0,B^=F,B=B>>>32-8|B<<8,A=A+B|0,G^=A,G=G>>>32-7|G<<7;Ru.writeUint32LE(F+n|0,r,0),Ru.writeUint32LE(W+a|0,r,4),Ru.writeUint32LE(V+i|0,r,8),Ru.writeUint32LE(K+s|0,r,12),Ru.writeUint32LE(H+o|0,r,16),Ru.writeUint32LE(G+c|0,r,20),Ru.writeUint32LE(Q+u|0,r,24),Ru.writeUint32LE(q+l|0,r,28),Ru.writeUint32LE(T+h|0,r,32),Ru.writeUint32LE(M+f|0,r,36),Ru.writeUint32LE(A+m|0,r,40),Ru.writeUint32LE(v+y|0,r,44),Ru.writeUint32LE(k+I|0,r,48),Ru.writeUint32LE(O+C|0,r,52),Ru.writeUint32LE(D+R|0,r,56),Ru.writeUint32LE(B+L|0,r,60)}function WEt(r,e,t,n,a){if(a===void 0&&(a=0),r.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}});var _1e=_(tQ=>{"use strict";d();p();Object.defineProperty(tQ,"__esModule",{value:!0});function Mmn(r,e,t){return~(r-1)&e|r-1&t}tQ.select=Mmn;function Nmn(r,e){return(r|0)-(e|0)-1>>>31&1}tQ.lessOrEqual=Nmn;function HEt(r,e){if(r.length!==e.length)return 0;for(var t=0,n=0;n>>8}tQ.compare=HEt;function Bmn(r,e){return r.length===0||e.length===0?!1:HEt(r,e)!==0}tQ.equal=Bmn});var zEt=_(ly=>{"use strict";d();p();Object.defineProperty(ly,"__esModule",{value:!0});var Dmn=_1e(),T1e=Wp();ly.DIGEST_LENGTH=16;var jEt=function(){function r(e){this.digestLength=ly.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 t=e[0]|e[1]<<8;this._r[0]=t&8191;var n=e[2]|e[3]<<8;this._r[1]=(t>>>13|n<<3)&8191;var a=e[4]|e[5]<<8;this._r[2]=(n>>>10|a<<6)&7939;var i=e[6]|e[7]<<8;this._r[3]=(a>>>7|i<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(i>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=(s>>>14|o<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(o>>>11|c<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(c>>>8|u<<8)&8191,this._r[9]=u>>>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 r.prototype._blocks=function(e,t,n){for(var a=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],c=this._h[3],u=this._h[4],l=this._h[5],h=this._h[6],f=this._h[7],m=this._h[8],y=this._h[9],I=this._r[0],C=this._r[1],R=this._r[2],L=this._r[3],F=this._r[4],W=this._r[5],V=this._r[6],K=this._r[7],H=this._r[8],G=this._r[9];n>=16;){var Q=e[t+0]|e[t+1]<<8;i+=Q&8191;var q=e[t+2]|e[t+3]<<8;s+=(Q>>>13|q<<3)&8191;var T=e[t+4]|e[t+5]<<8;o+=(q>>>10|T<<6)&8191;var M=e[t+6]|e[t+7]<<8;c+=(T>>>7|M<<9)&8191;var A=e[t+8]|e[t+9]<<8;u+=(M>>>4|A<<12)&8191,l+=A>>>1&8191;var v=e[t+10]|e[t+11]<<8;h+=(A>>>14|v<<2)&8191;var k=e[t+12]|e[t+13]<<8;f+=(v>>>11|k<<5)&8191;var O=e[t+14]|e[t+15]<<8;m+=(k>>>8|O<<8)&8191,y+=O>>>5|a;var D=0,B=D;B+=i*I,B+=s*(5*G),B+=o*(5*H),B+=c*(5*K),B+=u*(5*V),D=B>>>13,B&=8191,B+=l*(5*W),B+=h*(5*F),B+=f*(5*L),B+=m*(5*R),B+=y*(5*C),D+=B>>>13,B&=8191;var x=D;x+=i*C,x+=s*I,x+=o*(5*G),x+=c*(5*H),x+=u*(5*K),D=x>>>13,x&=8191,x+=l*(5*V),x+=h*(5*W),x+=f*(5*F),x+=m*(5*L),x+=y*(5*R),D+=x>>>13,x&=8191;var N=D;N+=i*R,N+=s*C,N+=o*I,N+=c*(5*G),N+=u*(5*H),D=N>>>13,N&=8191,N+=l*(5*K),N+=h*(5*V),N+=f*(5*W),N+=m*(5*F),N+=y*(5*L),D+=N>>>13,N&=8191;var U=D;U+=i*L,U+=s*R,U+=o*C,U+=c*I,U+=u*(5*G),D=U>>>13,U&=8191,U+=l*(5*H),U+=h*(5*K),U+=f*(5*V),U+=m*(5*W),U+=y*(5*F),D+=U>>>13,U&=8191;var E=D;E+=i*F,E+=s*L,E+=o*R,E+=c*C,E+=u*I,D=E>>>13,E&=8191,E+=l*(5*G),E+=h*(5*H),E+=f*(5*K),E+=m*(5*V),E+=y*(5*W),D+=E>>>13,E&=8191;var z=D;z+=i*W,z+=s*F,z+=o*L,z+=c*R,z+=u*C,D=z>>>13,z&=8191,z+=l*I,z+=h*(5*G),z+=f*(5*H),z+=m*(5*K),z+=y*(5*V),D+=z>>>13,z&=8191;var ee=D;ee+=i*V,ee+=s*W,ee+=o*F,ee+=c*L,ee+=u*R,D=ee>>>13,ee&=8191,ee+=l*C,ee+=h*I,ee+=f*(5*G),ee+=m*(5*H),ee+=y*(5*K),D+=ee>>>13,ee&=8191;var j=D;j+=i*K,j+=s*V,j+=o*W,j+=c*F,j+=u*L,D=j>>>13,j&=8191,j+=l*R,j+=h*C,j+=f*I,j+=m*(5*G),j+=y*(5*H),D+=j>>>13,j&=8191;var X=D;X+=i*H,X+=s*K,X+=o*V,X+=c*W,X+=u*F,D=X>>>13,X&=8191,X+=l*L,X+=h*R,X+=f*C,X+=m*I,X+=y*(5*G),D+=X>>>13,X&=8191;var ie=D;ie+=i*G,ie+=s*H,ie+=o*K,ie+=c*V,ie+=u*W,D=ie>>>13,ie&=8191,ie+=l*F,ie+=h*L,ie+=f*R,ie+=m*C,ie+=y*I,D+=ie>>>13,ie&=8191,D=(D<<2)+D|0,D=D+B|0,B=D&8191,D=D>>>13,x+=D,i=B,s=x,o=N,c=U,u=E,l=z,h=ee,f=j,m=X,y=ie,t+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=c,this._h[4]=u,this._h[5]=l,this._h[6]=h,this._h[7]=f,this._h[8]=m,this._h[9]=y},r.prototype.finish=function(e,t){t===void 0&&(t=0);var n=new Uint16Array(10),a,i,s,o;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(a=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=a,a=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=a*5,a=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=a,a=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=a,n[0]=this._h[0]+5,a=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this._h[o]+a,a=n[o]>>>13,n[o]&=8191;for(n[9]-=1<<13,i=(a^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this._h[o]=this._h[o]&i|n[o];for(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,s=this._h[0]+this._pad[0],this._h[0]=s&65535,o=1;o<8;o++)s=(this._h[o]+this._pad[o]|0)+(s>>>16)|0,this._h[o]=s&65535;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},r.prototype.update=function(e){var t=0,n=e.length,a;if(this._leftover){a=16-this._leftover,a>n&&(a=n);for(var i=0;i=16&&(a=n-n%16,this._blocks(e,t,a),t+=a,n-=a),n){for(var i=0;i{"use strict";d();p();Object.defineProperty(dy,"__esModule",{value:!0});var I1e=UEt(),qmn=zEt(),cae=Wp(),KEt=eQ(),Fmn=_1e();dy.KEY_LENGTH=32;dy.NONCE_LENGTH=12;dy.TAG_LENGTH=16;var GEt=new Uint8Array(16),Wmn=function(){function r(e){if(this.nonceLength=dy.NONCE_LENGTH,this.tagLength=dy.TAG_LENGTH,e.length!==dy.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return r.prototype.seal=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var i=new Uint8Array(16);i.set(e,i.length-e.length);var s=new Uint8Array(32);I1e.stream(this._key,i,s,4);var o=t.length+this.tagLength,c;if(a){if(a.length!==o)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(o);return I1e.streamXOR(this._key,i,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),cae.wipe(i),c},r.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&i.update(GEt.subarray(a.length%16))),i.update(n),n.length%16>0&&i.update(GEt.subarray(n.length%16));var s=new Uint8Array(8);a&&KEt.writeUint64LE(a.length,s),i.update(s),KEt.writeUint64LE(n.length,s),i.update(s);for(var o=i.digest(),c=0;c{"use strict";d();p();Object.defineProperty(wNe,"__esModule",{value:!0});function Umn(r){return typeof r.saveState<"u"&&typeof r.restoreState<"u"&&typeof r.cleanSavedState<"u"}wNe.isSerializableHash=Umn});var QEt=_(uae=>{"use strict";d();p();Object.defineProperty(uae,"__esModule",{value:!0});var Mm=YEt(),Hmn=_1e(),jmn=Wp(),$Et=function(){function r(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var a=0;a{"use strict";d();p();Object.defineProperty(xNe,"__esModule",{value:!0});var JEt=QEt(),ZEt=Wp(),Kmn=function(){function r(e,t,n,a){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var i=JEt.hmac(this._hash,n,t);this._hmac=new JEt.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return r.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new 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},r.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();Object.defineProperty(E1e,"__esModule",{value:!0});E1e.BrowserRandomSource=void 0;var eCt=65536,_Ne=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==void 0&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let n=0;n{"use strict";d();p();Object.defineProperty(C1e,"__esModule",{value:!0});C1e.NodeRandomSource=void 0;var Gmn=Wp(),TNe=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof tqe<"u"){let e=l3e();e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(e);for(let a=0;a{"use strict";d();p();Object.defineProperty(k1e,"__esModule",{value:!0});k1e.SystemRandomSource=void 0;var Vmn=tCt(),Ymn=rCt(),INe=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new Vmn.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new Ymn.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}};k1e.SystemRandomSource=INe});var lae=_(Mu=>{"use strict";d();p();Object.defineProperty(Mu,"__esModule",{value:!0});Mu.randomStringForEntropy=Mu.randomString=Mu.randomUint32=Mu.randomBytes=Mu.defaultRandomSource=void 0;var $mn=nCt(),Qmn=eQ(),aCt=Wp();Mu.defaultRandomSource=new $mn.SystemRandomSource;function ENe(r,e=Mu.defaultRandomSource){return e.randomBytes(r)}Mu.randomBytes=ENe;function Jmn(r=Mu.defaultRandomSource){let e=ENe(4,r),t=(0,Qmn.readUint32LE)(e);return(0,aCt.wipe)(e),t}Mu.randomUint32=Jmn;var iCt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function sCt(r,e=iCt,t=Mu.defaultRandomSource){if(e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");let n="",a=e.length,i=256-256%a;for(;r>0;){let s=ENe(Math.ceil(r*256/i),t);for(let o=0;o0;o++){let c=s[o];c{"use strict";d();p();Object.defineProperty(P1,"__esModule",{value:!0});var P1e=eQ(),A1e=Wp();P1.DIGEST_LENGTH=32;P1.BLOCK_SIZE=64;var oCt=function(){function r(){this.digestLength=P1.DIGEST_LENGTH,this.blockSize=P1.BLOCK_SIZE,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 r.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},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){A1e.wipe(this._buffer),A1e.wipe(this._temp),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(CNe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=CNe(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%64<56?64:128;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.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},r.prototype.cleanSavedState=function(e){A1e.wipe(e.state),e.buffer&&A1e.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();P1.SHA256=oCt;var Xmn=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 CNe(r,e,t,n,a){for(;a>=64;){for(var i=e[0],s=e[1],o=e[2],c=e[3],u=e[4],l=e[5],h=e[6],f=e[7],m=0;m<16;m++){var y=n+m*4;r[m]=P1e.readUint32BE(t,y)}for(var m=16;m<64;m++){var I=r[m-2],C=(I>>>17|I<<32-17)^(I>>>19|I<<32-19)^I>>>10;I=r[m-15];var R=(I>>>7|I<<32-7)^(I>>>18|I<<32-18)^I>>>3;r[m]=(C+r[m-7]|0)+(R+r[m-16]|0)}for(var m=0;m<64;m++){var C=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&h)|0)+(f+(Xmn[m]+r[m]|0)|0)|0,R=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&o^s&o)|0;f=h,h=l,l=u,u=c+C|0,c=o,o=s,s=i,i=C+R|0}e[0]+=i,e[1]+=s,e[2]+=o,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=h,e[7]+=f,n+=64,a-=64}return n}function e0n(r){var e=new oCt;e.update(r);var t=e.digest();return e.clean(),t}P1.hash=e0n});var pCt=_(ms=>{"use strict";d();p();Object.defineProperty(ms,"__esModule",{value:!0});ms.sharedKey=ms.generateKeyPair=ms.generateKeyPairFromSeed=ms.scalarMultBase=ms.scalarMult=ms.SHARED_KEY_LENGTH=ms.SECRET_KEY_LENGTH=ms.PUBLIC_KEY_LENGTH=void 0;var t0n=lae(),r0n=Wp();ms.PUBLIC_KEY_LENGTH=32;ms.SECRET_KEY_LENGTH=32;ms.SHARED_KEY_LENGTH=32;function Nm(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,dae(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function i0n(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function S1e(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function R1e(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function py(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,I=0,C=0,R=0,L=0,F=0,W=0,V=0,K=0,H=0,G=0,Q=0,q=0,T=0,M=0,A=0,v=0,k=0,O=0,D=0,B=0,x=0,N=t[0],U=t[1],E=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*E,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,I+=n*ke,C+=n*ge,R+=n*me,L+=n*Ke,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*E,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,I+=n*he,C+=n*ke,R+=n*ge,L+=n*me,F+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*E,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,I+=n*ue,C+=n*he,R+=n*ke,L+=n*ge,F+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*E,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,I+=n*ie,C+=n*ue,R+=n*he,L+=n*ke,F+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*E,f+=n*z,m+=n*ee,y+=n*j,I+=n*X,C+=n*ie,R+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*E,m+=n*z,y+=n*ee,I+=n*j,C+=n*X,R+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,Q+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*E,y+=n*z,I+=n*ee,C+=n*j,R+=n*X,L+=n*ie,F+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,Q+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*E,I+=n*z,C+=n*ee,R+=n*j,L+=n*X,F+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,Q+=n*Ke,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,I+=n*E,C+=n*z,R+=n*ee,L+=n*j,F+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,Q+=n*me,q+=n*Ke,T+=n*ve,M+=n*Ae,n=e[9],y+=n*N,I+=n*U,C+=n*E,R+=n*z,L+=n*ee,F+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,Q+=n*ge,q+=n*me,T+=n*Ke,M+=n*ve,A+=n*Ae,n=e[10],I+=n*N,C+=n*U,R+=n*E,L+=n*z,F+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,Q+=n*ke,q+=n*ge,T+=n*me,M+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],C+=n*N,R+=n*U,L+=n*E,F+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,Q+=n*he,q+=n*ke,T+=n*ge,M+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],R+=n*N,L+=n*U,F+=n*E,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,Q+=n*ue,q+=n*he,T+=n*ke,M+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*E,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,Q+=n*ie,q+=n*ue,T+=n*he,M+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,V+=n*E,K+=n*z,H+=n*ee,G+=n*j,Q+=n*X,q+=n*ie,T+=n*ue,M+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*E,H+=n*z,G+=n*ee,Q+=n*j,q+=n*X,T+=n*ie,M+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,x+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*Q,l+=38*q,h+=38*T,f+=38*M,m+=38*A,y+=38*v,I+=38*k,C+=38*O,R+=38*D,L+=38*B,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=I,r[11]=C,r[12]=R,r[13]=L,r[14]=F,r[15]=W}function pae(r,e){py(r,e,e)}function s0n(r,e){let t=Nm();for(let n=0;n<16;n++)t[n]=e[n];for(let n=253;n>=0;n--)pae(t,t),n!==2&&n!==4&&py(t,t,e);for(let n=0;n<16;n++)r[n]=t[n]}function ANe(r,e){let t=new Uint8Array(32),n=new Float64Array(80),a=Nm(),i=Nm(),s=Nm(),o=Nm(),c=Nm(),u=Nm();for(let m=0;m<31;m++)t[m]=r[m];t[31]=r[31]&127|64,t[0]&=248,i0n(n,e);for(let m=0;m<16;m++)i[m]=n[m];a[0]=o[0]=1;for(let m=254;m>=0;--m){let y=t[m>>>3]>>>(m&7)&1;dae(a,i,y),dae(s,o,y),S1e(c,a,s),R1e(a,a,s),S1e(s,i,o),R1e(i,i,o),pae(o,c),pae(u,a),py(a,s,a),py(s,i,c),S1e(c,a,s),R1e(a,a,s),pae(i,a),R1e(s,o,u),py(a,s,n0n),S1e(a,a,o),py(s,s,a),py(a,o,u),py(o,i,n),pae(i,c),dae(a,i,y),dae(s,o,y)}for(let m=0;m<16;m++)n[m+16]=a[m],n[m+32]=s[m],n[m+48]=i[m],n[m+64]=o[m];let l=n.subarray(32),h=n.subarray(16);s0n(l,l),py(h,h,l);let f=new Uint8Array(32);return a0n(f,h),f}ms.scalarMult=ANe;function lCt(r){return ANe(r,uCt)}ms.scalarMultBase=lCt;function dCt(r){if(r.length!==ms.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${ms.SECRET_KEY_LENGTH} bytes`);let e=new Uint8Array(r);return{publicKey:lCt(e),secretKey:e}}ms.generateKeyPairFromSeed=dCt;function o0n(r){let e=(0,t0n.randomBytes)(32,r),t=dCt(e);return(0,r0n.wipe)(e),t}ms.generateKeyPair=o0n;function c0n(r,e,t=!1){if(r.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=ANe(r,e);if(t){let a=0;for(let i=0;ie[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{d();p()});function mCt(r,e){if(r.length!==e.length)throw new Error("Inputs should have the same length");let t=FG(r.length);for(let n=0;n{d();p();Tle();rX()});var gCt={};cr(gCt,{compare:()=>hCt,concat:()=>aX,equals:()=>vTe,fromString:()=>_h,toString:()=>Xf,xor:()=>mCt});var bCt=ce(()=>{d();p();fCt();Zv();Nle();Jv();WG();yCt()});var vCt=_(M1e=>{"use strict";d();p();Object.defineProperty(M1e,"__esModule",{value:!0});M1e.delay=void 0;function u0n(r){return new Promise(e=>{setTimeout(()=>{e(!0)},r)})}M1e.delay=u0n});var wCt=_(rQ=>{"use strict";d();p();Object.defineProperty(rQ,"__esModule",{value:!0});rQ.ONE_THOUSAND=rQ.ONE_HUNDRED=void 0;rQ.ONE_HUNDRED=100;rQ.ONE_THOUSAND=1e3});var xCt=_(He=>{"use strict";d();p();Object.defineProperty(He,"__esModule",{value:!0});He.ONE_YEAR=He.FOUR_WEEKS=He.THREE_WEEKS=He.TWO_WEEKS=He.ONE_WEEK=He.THIRTY_DAYS=He.SEVEN_DAYS=He.FIVE_DAYS=He.THREE_DAYS=He.ONE_DAY=He.TWENTY_FOUR_HOURS=He.TWELVE_HOURS=He.SIX_HOURS=He.THREE_HOURS=He.ONE_HOUR=He.SIXTY_MINUTES=He.THIRTY_MINUTES=He.TEN_MINUTES=He.FIVE_MINUTES=He.ONE_MINUTE=He.SIXTY_SECONDS=He.THIRTY_SECONDS=He.TEN_SECONDS=He.FIVE_SECONDS=He.ONE_SECOND=void 0;He.ONE_SECOND=1;He.FIVE_SECONDS=5;He.TEN_SECONDS=10;He.THIRTY_SECONDS=30;He.SIXTY_SECONDS=60;He.ONE_MINUTE=He.SIXTY_SECONDS;He.FIVE_MINUTES=He.ONE_MINUTE*5;He.TEN_MINUTES=He.ONE_MINUTE*10;He.THIRTY_MINUTES=He.ONE_MINUTE*30;He.SIXTY_MINUTES=He.ONE_MINUTE*60;He.ONE_HOUR=He.SIXTY_MINUTES;He.THREE_HOURS=He.ONE_HOUR*3;He.SIX_HOURS=He.ONE_HOUR*6;He.TWELVE_HOURS=He.ONE_HOUR*12;He.TWENTY_FOUR_HOURS=He.ONE_HOUR*24;He.ONE_DAY=He.TWENTY_FOUR_HOURS;He.THREE_DAYS=He.ONE_DAY*3;He.FIVE_DAYS=He.ONE_DAY*5;He.SEVEN_DAYS=He.ONE_DAY*7;He.THIRTY_DAYS=He.ONE_DAY*30;He.ONE_WEEK=He.SEVEN_DAYS;He.TWO_WEEKS=He.ONE_WEEK*2;He.THREE_WEEKS=He.ONE_WEEK*3;He.FOUR_WEEKS=He.ONE_WEEK*4;He.ONE_YEAR=He.ONE_DAY*365});var PNe=_(N1e=>{"use strict";d();p();Object.defineProperty(N1e,"__esModule",{value:!0});var _Ct=vd();_Ct.__exportStar(wCt(),N1e);_Ct.__exportStar(xCt(),N1e)});var ICt=_(nQ=>{"use strict";d();p();Object.defineProperty(nQ,"__esModule",{value:!0});nQ.fromMiliseconds=nQ.toMiliseconds=void 0;var TCt=PNe();function l0n(r){return r*TCt.ONE_THOUSAND}nQ.toMiliseconds=l0n;function d0n(r){return Math.floor(r/TCt.ONE_THOUSAND)}nQ.fromMiliseconds=d0n});var CCt=_(B1e=>{"use strict";d();p();Object.defineProperty(B1e,"__esModule",{value:!0});var ECt=vd();ECt.__exportStar(vCt(),B1e);ECt.__exportStar(ICt(),B1e)});var kCt=_(hae=>{"use strict";d();p();Object.defineProperty(hae,"__esModule",{value:!0});hae.Watch=void 0;var D1e=class{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(typeof t.elapsed<"u")throw new Error(`Watch already stopped for label: ${e}`);let n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){let t=this.timestamps.get(e);if(typeof t>"u")throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}};hae.Watch=D1e;hae.default=D1e});var ACt=_(L1e=>{"use strict";d();p();Object.defineProperty(L1e,"__esModule",{value:!0});L1e.IWatch=void 0;var SNe=class{};L1e.IWatch=SNe});var PCt=_(RNe=>{"use strict";d();p();Object.defineProperty(RNe,"__esModule",{value:!0});var p0n=vd();p0n.__exportStar(ACt(),RNe)});var Qw=_(aQ=>{"use strict";d();p();Object.defineProperty(aQ,"__esModule",{value:!0});var O1e=vd();O1e.__exportStar(CCt(),aQ);O1e.__exportStar(kCt(),aQ);O1e.__exportStar(PCt(),aQ);O1e.__exportStar(PNe(),aQ)});var OCt=_(Fl=>{"use strict";d();p();var h0n=k9e(),f0n=P9e(),RCt=S9e(),m0n=R9e(),y0n=r=>r==null,MNe=Symbol("encodeFragmentIdentifier");function g0n(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),"[",a,"]"].join("")]:[...t,[Bs(e,r),"[",Bs(a,r),"]=",Bs(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),"[]"].join("")]:[...t,[Bs(e,r),"[]=",Bs(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),":list="].join("")]:[...t,[Bs(e,r),":list=",Bs(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{let e=r.arrayFormat==="bracket-separator"?"[]=":"=";return t=>(n,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?n:(a=a===null?"":a,n.length===0?[[Bs(t,r),e,Bs(a,r)].join("")]:[[n,Bs(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Bs(e,r)]:[...t,[Bs(e,r),"=",Bs(n,r)].join("")]}}function b0n(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"colon-list-separator":return(t,n,a)=>{if(e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&hy(n,r).includes(r.arrayFormatSeparator);n=s?hy(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>hy(c,r)):n===null?n:hy(n,r);a[t]=o};case"bracket-separator":return(t,n,a)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){a[t]=n&&hy(n,r);return}let s=n===null?[]:n.split(r.arrayFormatSeparator).map(o=>hy(o,r));if(a[t]===void 0){a[t]=s;return}a[t]=[].concat(a[t],s)};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function MCt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Bs(r,e){return e.encode?e.strict?h0n(r):encodeURIComponent(r):r}function hy(r,e){return e.decode?f0n(r):r}function NCt(r){return Array.isArray(r)?r.sort():typeof r=="object"?NCt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function BCt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function v0n(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function DCt(r){r=BCt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function SCt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function LCt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),MCt(e.arrayFormatSeparator);let t=b0n(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=RCt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:hy(s,e),t(hy(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=SCt(i[s],e);else n[a]=SCt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=NCt(s):a[i]=s,a},Object.create(null))}Fl.extract=DCt;Fl.parse=LCt;Fl.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),MCt(e.arrayFormatSeparator);let t=s=>e.skipNull&&y0n(r[s])||e.skipEmptyString&&r[s]==="",n=g0n(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Bs(s,e):Array.isArray(o)?o.length===0&&e.arrayFormat==="bracket-separator"?Bs(s,e)+"[]":o.reduce(n(s),[]).join("&"):Bs(s,e)+"="+Bs(o,e)}).filter(s=>s.length>0).join("&")};Fl.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=RCt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:LCt(DCt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:hy(n,e)}:{})};Fl.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0,[MNe]:!0},e);let t=BCt(r.url).split("?")[0]||"",n=Fl.extract(r.url),a=Fl.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Fl.stringify(i,e);s&&(s=`?${s}`);let o=v0n(r.url);return r.fragmentIdentifier&&(o=`#${e[MNe]?Bs(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${t}${s}${o}`};Fl.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0,[MNe]:!1},t);let{url:n,query:a,fragmentIdentifier:i}=Fl.parseUrl(r,t);return Fl.stringifyUrl({url:n,query:m0n(a,e),fragmentIdentifier:i},t)};Fl.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Fl.pick(r,n,t)}});var qCt=ce(()=>{d();p()});function S1(r,e,t="string"){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function w0n(r,e){let t=!0;return e.forEach(n=>{n in r||(t=!1)}),t}function x0n(r,e){return Array.isArray(r)?r.length===e:Object.keys(r).length===e}function _0n(r,e){return Array.isArray(r)?r.length>=e:Object.keys(r).length>=e}function fae(r,e,t){return(!t.length?x0n(r,e.length):_0n(r,e.length))?w0n(r,e):!1}function mae(r,e,t="_"){let n=r.split(t);return n[n.length-1].trim().toLowerCase()===e.trim().toLowerCase()}var NNe=ce(()=>{d();p()});function T0n(r){return q1e(r.method)&&F1e(r.params)}function q1e(r){return mae(r,"subscribe")}function F1e(r){return fae(r,["topic"],[])}function I0n(r){return W1e(r.method)&&U1e(r.params)}function W1e(r){return mae(r,"publish")}function U1e(r){return fae(r,["message","topic","ttl"],["prompt","tag"])}function E0n(r){return H1e(r.method)&&j1e(r.params)}function H1e(r){return mae(r,"unsubscribe")}function j1e(r){return fae(r,["id","topic"],[])}function C0n(r){return z1e(r.method)&&K1e(r.params)}function z1e(r){return mae(r,"subscription")}function K1e(r){return fae(r,["id","data"],[])}var BNe=ce(()=>{d();p();NNe()});function k0n(r){if(!q1e(r.method))throw new Error("JSON-RPC Request has invalid subscribe method");if(!F1e(r.params))throw new Error("JSON-RPC Request has invalid subscribe params");let e=r.params;return S1(e,"topic"),e}function A0n(r){if(!W1e(r.method))throw new Error("JSON-RPC Request has invalid publish method");if(!U1e(r.params))throw new Error("JSON-RPC Request has invalid publish params");let e=r.params;return S1(e,"topic"),S1(e,"message"),S1(e,"ttl","number"),e}function P0n(r){if(!H1e(r.method))throw new Error("JSON-RPC Request has invalid unsubscribe method");if(!j1e(r.params))throw new Error("JSON-RPC Request has invalid unsubscribe params");let e=r.params;return S1(e,"id"),e}function S0n(r){if(!z1e(r.method))throw new Error("JSON-RPC Request has invalid subscription method");if(!K1e(r.params))throw new Error("JSON-RPC Request has invalid subscription params");let e=r.params;return S1(e,"id"),S1(e,"data"),e}var FCt=ce(()=>{d();p();NNe();BNe()});var R0n,WCt=ce(()=>{d();p();R0n={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}});var UCt={};cr(UCt,{RELAY_JSONRPC:()=>R0n,isPublishMethod:()=>W1e,isPublishParams:()=>U1e,isPublishRequest:()=>I0n,isSubscribeMethod:()=>q1e,isSubscribeParams:()=>F1e,isSubscribeRequest:()=>T0n,isSubscriptionMethod:()=>z1e,isSubscriptionParams:()=>K1e,isSubscriptionRequest:()=>C0n,isUnsubscribeMethod:()=>H1e,isUnsubscribeParams:()=>j1e,isUnsubscribeRequest:()=>E0n,parsePublishRequest:()=>A0n,parseSubscribeRequest:()=>k0n,parseSubscriptionRequest:()=>S0n,parseUnsubscribeRequest:()=>P0n});var HCt=ce(()=>{d();p();qCt();FCt();WCt();BNe()});var vae=_(we=>{"use strict";d();p();Object.defineProperty(we,"__esModule",{value:!0});var QCt=VEt(),M0n=XEt(),JCt=lae(),ONe=cCt(),N0n=pCt(),Li=(bCt(),nt(gCt)),B0n=f9e(),sQ=Qw(),yae=Fge(),D0n=I9e(),L0n=OCt(),O0n=(HCt(),nt(UCt));function ZCt(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var XCt=ZCt(N0n),G1e=ZCt(L0n),$1e=":";function e8t(r){let[e,t]=r.split($1e);return{namespace:e,reference:t}}function t8t(r){let{namespace:e,reference:t}=r;return[e,t].join($1e)}function qNe(r){let[e,t,n]=r.split($1e);return{namespace:e,reference:t,address:n}}function r8t(r){let{namespace:e,reference:t,address:n}=r;return[e,t,n].join($1e)}function FNe(r,e){let t=[];return r.forEach(n=>{let a=e(n);t.includes(a)||t.push(a)}),t}function n8t(r){let{address:e}=qNe(r);return e}function a8t(r){let{namespace:e,reference:t}=qNe(r);return t8t({namespace:e,reference:t})}function q0n(r,e){let{namespace:t,reference:n}=e8t(e);return r8t({namespace:t,reference:n,address:r})}function F0n(r){return FNe(r,n8t)}function i8t(r){return FNe(r,a8t)}function W0n(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...a.accounts)}),t}function U0n(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...i8t(a.accounts))}),t}function H0n(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...Q1e(n,a))}),t}function Q1e(r,e){return r.includes(":")?[r]:e.chains||[]}var J1e=r=>r?.split(":"),s8t=r=>{let e=r&&J1e(r);if(e)return e[3]},j0n=r=>{let e=r&&J1e(r);if(e)return e[2]+":"+e[3]},o8t=r=>{let e=r&&J1e(r);if(e)return e.pop()},z0n=(r,e)=>{let t=`${r.domain} wants you to sign in with your Ethereum account:`,n=o8t(e),a=r.statement,i=`URI: ${r.aud}`,s=`Version: ${r.version}`,o=`Chain ID: ${s8t(e)}`,c=`Nonce: ${r.nonce}`,u=`Issued At: ${r.iat}`,l=r.resources&&r.resources.length>0?`Resources: -${r.resources.map(h=>`- ${h}`).join(` -`)}`:void 0;return[t,n,"",a,"",i,s,o,c,u,l].filter(h=>h!=null).join(` -`)},WNe="base10",el="base16",V1e="base64pad",Z1e="utf8",UNe=0,oQ=1,K0n=0,jCt=1,DNe=12,HNe=32;function G0n(){let r=XCt.generateKeyPair();return{privateKey:Li.toString(r.secretKey,el),publicKey:Li.toString(r.publicKey,el)}}function V0n(){let r=JCt.randomBytes(HNe);return Li.toString(r,el)}function Y0n(r,e){let t=XCt.sharedKey(Li.fromString(r,el),Li.fromString(e,el)),n=new M0n.HKDF(ONe.SHA256,t).expand(HNe);return Li.toString(n,el)}function $0n(r){let e=ONe.hash(Li.fromString(r,el));return Li.toString(e,el)}function Q0n(r){let e=ONe.hash(Li.fromString(r,Z1e));return Li.toString(e,el)}function c8t(r){return Li.fromString(`${r}`,WNe)}function gae(r){return Number(Li.toString(r,WNe))}function J0n(r){let e=c8t(typeof r.type<"u"?r.type:UNe);if(gae(e)===oQ&&typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let t=typeof r.senderPublicKey<"u"?Li.fromString(r.senderPublicKey,el):void 0,n=typeof r.iv<"u"?Li.fromString(r.iv,el):JCt.randomBytes(DNe),a=new QCt.ChaCha20Poly1305(Li.fromString(r.symKey,el)).seal(n,Li.fromString(r.message,Z1e));return u8t({type:e,sealed:a,iv:n,senderPublicKey:t})}function Z0n(r){let e=new QCt.ChaCha20Poly1305(Li.fromString(r.symKey,el)),{sealed:t,iv:n}=jNe(r.encoded),a=e.open(n,t);if(a===null)throw new Error("Failed to decrypt");return Li.toString(a,Z1e)}function u8t(r){if(gae(r.type)===oQ){if(typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Li.toString(Li.concat([r.type,r.senderPublicKey,r.iv,r.sealed]),V1e)}return Li.toString(Li.concat([r.type,r.iv,r.sealed]),V1e)}function jNe(r){let e=Li.fromString(r,V1e),t=e.slice(K0n,jCt),n=jCt;if(gae(t)===oQ){let o=n+HNe,c=o+DNe,u=e.slice(n,o),l=e.slice(o,c),h=e.slice(c);return{type:t,sealed:h,iv:l,senderPublicKey:u}}let a=n+DNe,i=e.slice(n,a),s=e.slice(a);return{type:t,sealed:s,iv:i}}function X0n(r,e){let t=jNe(r);return l8t({type:gae(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?Li.toString(t.senderPublicKey,el):void 0,receiverPublicKey:e?.receiverPublicKey})}function l8t(r){let e=r?.type||UNe;if(e===oQ){if(typeof r?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof r?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:r?.senderPublicKey,receiverPublicKey:r?.receiverPublicKey}}function eyn(r){return r.type===oQ&&typeof r.senderPublicKey=="string"&&typeof r.receiverPublicKey=="string"}var tyn=Object.defineProperty,zCt=Object.getOwnPropertySymbols,ryn=Object.prototype.hasOwnProperty,nyn=Object.prototype.propertyIsEnumerable,KCt=(r,e,t)=>e in r?tyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,GCt=(r,e)=>{for(var t in e||(e={}))ryn.call(e,t)&&KCt(r,t,e[t]);if(zCt)for(var t of zCt(e))nyn.call(e,t)&&KCt(r,t,e[t]);return r},d8t="ReactNative",iQ={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},Y1e=" ",ayn=":",p8t="/",zNe=2,iyn=1e3,h8t="js";function KNe(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}function f8t(){return!yae.getDocument()&&!!yae.getNavigator()&&navigator.product===d8t}function m8t(){return!KNe()&&!!yae.getNavigator()}function GNe(){return f8t()?iQ.reactNative:KNe()?iQ.node:m8t()?iQ.browser:iQ.unknown}function y8t(r,e){let t=G1e.parse(r);return t=GCt(GCt({},t),e),r=G1e.stringify(t),r}function syn(){return D0n.getWindowMetadata()||{name:"",description:"",url:"",icons:[""]}}function oyn(r,e){var t;let n=GNe(),a={protocol:r,version:e,env:n};return n==="browser"&&(a.host=((t=yae.getLocation())==null?void 0:t.host)||"unknown"),a}function g8t(){let r=B0n.detect();if(r===null)return"unknown";let e=r.os?r.os.replace(" ","").toLowerCase():"unknown";return r.type==="browser"?[e,r.name,r.version].join("-"):[e,r.version].join("-")}function b8t(){var r;let e=GNe();return e===iQ.browser?[e,((r=yae.getLocation())==null?void 0:r.host)||"unknown"].join(":"):e}function v8t(r,e,t){let n=g8t(),a=b8t();return[[r,e].join("-"),[h8t,t].join("-"),n,a].join("/")}function cyn({protocol:r,version:e,relayUrl:t,sdkVersion:n,auth:a,projectId:i,useOnCloseEvent:s}){let o=t.split("?"),c=v8t(r,e,n),u={auth:a,ua:c,projectId:i,useOnCloseEvent:s||void 0},l=y8t(o[1]||"",u);return o[0]+"?"+l}function uyn(r){let e=(r.match(/^[^:]+(?=:\/\/)/gi)||[])[0],t=typeof e<"u"?r.split("://")[1]:r;return e=e==="wss"?"https":"http",[e,t].join("://")}function lyn(r,e,t){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function w8t(r,e=zNe){return x8t(r.split(p8t),e)}function dyn(r){return w8t(r).join(Y1e)}function R1(r,e){return r.filter(t=>e.includes(t)).length===r.length}function x8t(r,e=zNe){return r.slice(Math.max(r.length-e,0))}function pyn(r){return Object.fromEntries(r.entries())}function hyn(r){return new Map(Object.entries(r))}function fyn(r,e){let t={};return Object.keys(r).forEach(n=>{t[n]=e(r[n])}),t}var myn=r=>r;function _8t(r){return r.trim().replace(/^\w/,e=>e.toUpperCase())}function yyn(r){return r.split(Y1e).map(e=>_8t(e)).join(Y1e)}function gyn(r=sQ.FIVE_MINUTES,e){let t=sQ.toMiliseconds(r||sQ.FIVE_MINUTES),n,a,i;return{resolve:s=>{i&&n&&(clearTimeout(i),n(s))},reject:s=>{i&&a&&(clearTimeout(i),a(s))},done:()=>new Promise((s,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=s,a=o})}}function byn(r,e){return new Promise(async(t,n)=>{let a=setTimeout(()=>n(),e),i=await r;clearTimeout(a),t(i)})}function VNe(r,e){if(typeof e=="string"&&e.startsWith(`${r}:`))return e;if(r.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(r.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${r}`)}function vyn(r){return VNe("topic",r)}function wyn(r){return VNe("id",r)}function xyn(r){let[e,t]=r.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function _yn(r,e){return sQ.fromMiliseconds((e||Date.now())+sQ.toMiliseconds(r))}function Tyn(r){return Date.now()>=sQ.toMiliseconds(r)}function Iyn(r,e){return`${r}${e?`:${e}`:""}`}var T8t="irn";function Eyn(r){return r?.relay||{protocol:T8t}}function Cyn(r){let e=O0n.RELAY_JSONRPC[r];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${r}`);return e}var kyn=Object.defineProperty,VCt=Object.getOwnPropertySymbols,Ayn=Object.prototype.hasOwnProperty,Pyn=Object.prototype.propertyIsEnumerable,YCt=(r,e,t)=>e in r?kyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Syn=(r,e)=>{for(var t in e||(e={}))Ayn.call(e,t)&&YCt(r,t,e[t]);if(VCt)for(var t of VCt(e))Pyn.call(e,t)&&YCt(r,t,e[t]);return r};function I8t(r,e="-"){let t={},n="relay"+e;return Object.keys(r).forEach(a=>{if(a.startsWith(n)){let i=a.replace(n,""),s=r[a];t[i]=s}}),t}function Ryn(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t).split("@"),i=typeof t<"u"?r.substring(t):"",s=G1e.parse(i);return{protocol:n,topic:a[0],version:parseInt(a[1],10),symKey:s.symKey,relay:I8t(s)}}function E8t(r,e="-"){let t="relay",n={};return Object.keys(r).forEach(a=>{let i=t+e+a;r[a]&&(n[i]=r[a])}),n}function Myn(r){return`${r.protocol}:${r.topic}@${r.version}?`+G1e.stringify(Syn({symKey:r.symKey},E8t(r.relay)))}function Zw(r){let e=[];return r.forEach(t=>{let[n,a]=t.split(":");e.push(`${n}:${a}`)}),e}function C8t(r){let e=[];return Object.values(r).forEach(t=>{e.push(...Zw(t.accounts))}),e}function k8t(r,e){let t=[];return Object.values(r).forEach(n=>{Zw(n.accounts).includes(e)&&t.push(...n.methods)}),t}function A8t(r,e){let t=[];return Object.values(r).forEach(n=>{Zw(n.accounts).includes(e)&&t.push(...n.events)}),t}function Nyn(r,e){let t=D8t(r,e);if(t)throw new Error(t.message);let n={};for(let[a,i]of Object.entries(r))n[a]={methods:i.methods,events:i.events,chains:i.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var Byn={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},Dyn={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function fy(r,e){let{message:t,code:n}=Dyn[r];return{message:e?`${t} ${e}`:t,code:n}}function Jw(r,e){let{message:t,code:n}=Byn[r];return{message:e?`${t} ${e}`:t,code:n}}function bae(r,e){return Array.isArray(r)?typeof e<"u"&&r.length?r.every(e):!0:!1}function YNe(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.keys(r).length}function M1(r){return typeof r>"u"}function Td(r,e){return e&&M1(r)?!0:typeof r=="string"&&Boolean(r.trim().length)}function X1e(r,e){return e&&M1(r)?!0:typeof r=="number"&&!isNaN(r)}function Lyn(r,e){let{requiredNamespaces:t}=e,n=Object.keys(r.namespaces),a=Object.keys(t),i=!0;return R1(a,n)?(n.forEach(s=>{let{accounts:o,methods:c,events:u}=r.namespaces[s],l=Zw(o),h=t[s];(!R1(Q1e(s,h),l)||!R1(h.methods,c)||!R1(h.events,u))&&(i=!1)}),i):!1}function ebe(r){return Td(r,!1)&&r.includes(":")?r.split(":").length===2:!1}function P8t(r){if(Td(r,!1)&&r.includes(":")){let e=r.split(":");if(e.length===3){let t=e[0]+":"+e[1];return!!e[2]&&ebe(t)}}return!1}function Oyn(r){if(Td(r,!1))try{return typeof new URL(r)<"u"}catch{return!1}return!1}function qyn(r){var e;return(e=r?.proposer)==null?void 0:e.publicKey}function Fyn(r){return r?.topic}function Wyn(r,e){let t=null;return Td(r?.publicKey,!1)||(t=fy("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function LNe(r){let e=!0;return bae(r)?r.length&&(e=r.every(t=>Td(t,!1))):e=!1,e}function S8t(r,e,t){let n=null;return bae(e)?e.forEach(a=>{n||(!ebe(a)||!a.includes(r))&&(n=Jw("UNSUPPORTED_CHAINS",`${t}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):n=Jw("UNSUPPORTED_CHAINS",`${t}, chains ${e} should be an array of strings conforming to "namespace:chainId" format`),n}function R8t(r,e){let t=null;return Object.entries(r).forEach(([n,a])=>{if(t)return;let i=S8t(n,Q1e(n,a),`${e} requiredNamespace`);i&&(t=i)}),t}function M8t(r,e){let t=null;return bae(r)?r.forEach(n=>{t||P8t(n)||(t=Jw("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=Jw("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function N8t(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=M8t(n?.accounts,`${e} namespace`);a&&(t=a)}),t}function B8t(r,e){let t=null;return LNe(r?.methods)?LNe(r?.events)||(t=Jw("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=Jw("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function $Ne(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=B8t(n,`${e}, namespace`);a&&(t=a)}),t}function Uyn(r,e,t){let n=null;if(r&&YNe(r)){let a=$Ne(r,e);a&&(n=a);let i=R8t(r,e);i&&(n=i)}else n=fy("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function D8t(r,e){let t=null;if(r&&YNe(r)){let n=$Ne(r,e);n&&(t=n);let a=N8t(r,e);a&&(t=a)}else t=fy("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function L8t(r){return Td(r.protocol,!0)}function Hyn(r,e){let t=!1;return e&&!r?t=!0:r&&bae(r)&&r.length&&r.forEach(n=>{t=L8t(n)}),t}function jyn(r){return typeof r=="number"}function zyn(r){return typeof r<"u"&&typeof r!==null}function Kyn(r){return!(!r||typeof r!="object"||!r.code||!X1e(r.code,!1)||!r.message||!Td(r.message,!1))}function Gyn(r){return!(M1(r)||!Td(r.method,!1))}function Vyn(r){return!(M1(r)||M1(r.result)&&M1(r.error)||!X1e(r.id,!1)||!Td(r.jsonrpc,!1))}function Yyn(r){return!(M1(r)||!Td(r.name,!1))}function $yn(r,e){return!(!ebe(e)||!C8t(r).includes(e))}function Qyn(r,e,t){return Td(t,!1)?k8t(r,e).includes(t):!1}function Jyn(r,e,t){return Td(t,!1)?A8t(r,e).includes(t):!1}function Zyn(r,e,t){let n=null,a=Xyn(r),i=egn(e),s=Object.keys(a),o=Object.keys(i),c=$Ct(Object.keys(r)),u=$Ct(Object.keys(e)),l=c.filter(h=>!u.includes(h));return l.length&&(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. +`,Cpi=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",Api=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";function sLn(r,e){try{var t=r()}catch(n){return e(n)}return t&&t.then?t.then(void 0,e):t}var oLn="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",cLn="WalletConnect",uLn=300,lLn="rgb(64, 153, 255)",$Ut="walletconnect-wrapper",zUt="walletconnect-style-sheet",YUt="walletconnect-qrcode-modal",fLn="walletconnect-qrcode-close",QUt="walletconnect-qrcode-text",dLn="walletconnect-connect-button";function pLn(r){return Et.createElement("div",{className:"walletconnect-modal__header"},Et.createElement("img",{src:oLn,className:"walletconnect-modal__headerLogo"}),Et.createElement("p",null,cLn),Et.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:r.onClose},Et.createElement("div",{id:fLn,className:"walletconnect-modal__close__icon"},Et.createElement("div",{className:"walletconnect-modal__close__line1"}),Et.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function hLn(r){return Et.createElement("a",{className:"walletconnect-connect__button",href:r.href,id:dLn+"-"+r.name,onClick:r.onClick,rel:"noopener noreferrer",style:{backgroundColor:r.color},target:"_blank"},r.name)}var mLn="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function yLn(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick;return Et.createElement("a",{className:"walletconnect-modal__base__row",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},Et.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),Et.createElement("div",{className:"walletconnect-modal__base__row__right"},Et.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),Et.createElement("img",{src:mLn,className:"walletconnect-modal__base__row__right__caret"})))}function bLn(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick,s=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return Et.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},Et.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),Et.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},n))}var gLn=5,$Ke=12;function vLn(r){var e=Pl.isAndroid(),t=Et.useState(""),n=t[0],a=t[1],i=Et.useState(""),s=i[0],o=i[1],c=Et.useState(1),u=c[0],l=c[1],p=s?r.links.filter(function(W){return W.name.toLowerCase().includes(s.toLowerCase())}):r.links,h=r.errorMessage,m=s||p.length>gLn,y=Math.ceil(p.length/$Ke),C=[(u-1)*$Ke+1,u*$Ke],P=p.length?p.filter(function(W,K){return K+1>=C[0]&&K+1<=C[1]}):[],A=!e&&y>1,B=void 0;function F(W){a(W.target.value),clearTimeout(B),W.target.value?B=setTimeout(function(){o(W.target.value),l(1)},1e3):(a(""),o(""),l(1))}return Et.createElement("div",null,Et.createElement("p",{id:QUt,className:"walletconnect-qrcode__text"},e?r.text.connect_mobile_wallet:r.text.choose_preferred_wallet),!e&&Et.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:F}),Et.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":m&&p.length?"__wrap":"")},e?Et.createElement(hLn,{name:r.text.connect,color:lLn,href:r.uri,onClick:Et.useCallback(function(){Pl.saveMobileLinkInfo({name:"Unknown",href:r.uri})},[])}):P.length?P.map(function(W){var K=W.color,z=W.name,G=W.shortName,j=W.logo,H=Pl.formatIOSMobile(r.uri,W),I=Et.useCallback(function(){Pl.saveMobileLinkInfo({name:z,href:H})},[P]);return m?Et.createElement(bLn,{color:K,href:H,name:G||z,logo:j,onClick:I}):Et.createElement(yLn,{color:K,href:H,name:z,logo:j,onClick:I})}):Et.createElement(Et.Fragment,null,Et.createElement("p",null,h.length?r.errorMessage:!!r.links.length&&!p.length?r.text.no_wallets_found:r.text.loading))),A&&Et.createElement("div",{className:"walletconnect-modal__footer"},Array(y).fill(0).map(function(W,K){var z=K+1,G=u===z;return Et.createElement("a",{style:{margin:"auto 10px",fontWeight:G?"bold":"normal"},onClick:function(){return l(z)}},z)})))}function wLn(r){var e=!!r.message.trim();return Et.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},r.message)}var xLn=function(r){try{var e="";return Promise.resolve(VUt.toString(r,{margin:0,type:"svg"})).then(function(t){return typeof t=="string"&&(e=t.replace("0||Et.useEffect(function(){var k=function(){try{if(e)return Promise.resolve();s(!0);var S=sLn(function(){var w=r.qrcodeModalOptions&&r.qrcodeModalOptions.registryUrl?r.qrcodeModalOptions.registryUrl:Pl.getWalletRegistryUrl();return Promise.resolve(fetch(w)).then(function(R){return Promise.resolve(R.json()).then(function(O){var D=O.listings,T=t?"mobile":"desktop",x=Pl.getMobileLinkRegistry(Pl.formatMobileRegistry(D,T),n);s(!1),u(!0),H(x.length?"":r.text.no_supported_wallets),z(x);var N=x.length===1;N&&(P(Pl.formatIOSMobile(r.uri,x[0])),h(!0)),F(N)})})},function(w){s(!1),u(!0),H(r.text.something_went_wrong),console.error(w)});return Promise.resolve(S&&S.then?S.then(function(){}):void 0)}catch(w){return Promise.reject(w)}};k()})};I();var b=t?p:!p;return Et.createElement("div",{id:YUt,className:"walletconnect-qrcode__base animated fadeIn"},Et.createElement("div",{className:"walletconnect-modal__base"},Et.createElement(pLn,{onClose:r.onClose}),B&&p?Et.createElement("div",{className:"walletconnect-modal__single_wallet"},Et.createElement("a",{onClick:function(){return Pl.saveMobileLinkInfo({name:K[0].name,href:C})},href:C,rel:"noopener noreferrer",target:"_blank"},r.text.connect_with+" "+(B?K[0].name:"")+" \u203A")):e||i||!i&&K.length?Et.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(b?" right__selected":"")},Et.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),t?Et.createElement(Et.Fragment,null,Et.createElement("a",{onClick:function(){return h(!1),I()}},r.text.mobile),Et.createElement("a",{onClick:function(){return h(!0)}},r.text.qrcode)):Et.createElement(Et.Fragment,null,Et.createElement("a",{onClick:function(){return h(!0)}},r.text.qrcode),Et.createElement("a",{onClick:function(){return h(!1),I()}},r.text.desktop))):null,Et.createElement("div",null,p||!e&&!i&&!K.length?Et.createElement(_Ln,Object.assign({},m)):Et.createElement(vLn,Object.assign({},m,{links:K,errorMessage:j})))))}var ELn={choose_preferred_wallet:"W\xE4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xFCtzten Wallet",no_wallets_found:"keine Wallet gefunden"},ILn={choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},CLn={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xF3vil",scan_qrcode_with_wallet:"Escanea el c\xF3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xF3 mal",no_supported_wallets:"Todav\xEDa no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},ALn={choose_preferred_wallet:"Choisissez votre portefeuille pr\xE9f\xE9r\xE9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xE9!",connect_with:"Connectez-vous \xE0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xE9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xE9"},kLn={choose_preferred_wallet:"\uC6D0\uD558\uB294 \uC9C0\uAC11\uC744 \uC120\uD0DD\uD558\uC138\uC694",connect_mobile_wallet:"\uBAA8\uBC14\uC77C \uC9C0\uAC11\uACFC \uC5F0\uACB0",scan_qrcode_with_wallet:"WalletConnect \uC9C0\uC6D0 \uC9C0\uAC11\uC5D0\uC11C QR\uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694",connect:"\uC5F0\uACB0",qrcode:"QR \uCF54\uB4DC",mobile:"\uBAA8\uBC14\uC77C",desktop:"\uB370\uC2A4\uD06C\uD0D1",copy_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",copied_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",connect_with:"\uC640 \uC5F0\uACB0\uD558\uB2E4",loading:"\uB85C\uB4DC \uC911...",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",no_supported_wallets:"\uC544\uC9C1 \uC9C0\uC6D0\uB418\uB294 \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",no_wallets_found:"\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"},SLn={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xE0 carteira m\xF3vel",scan_qrcode_with_wallet:"Ler o c\xF3digo QR com uma carteira compat\xEDvel com WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xE3o h\xE1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},PLn={choose_preferred_wallet:"\u9009\u62E9\u4F60\u7684\u94B1\u5305",connect_mobile_wallet:"\u8FDE\u63A5\u81F3\u79FB\u52A8\u7AEF\u94B1\u5305",scan_qrcode_with_wallet:"\u4F7F\u7528\u517C\u5BB9 WalletConnect \u7684\u94B1\u5305\u626B\u63CF\u4E8C\u7EF4\u7801",connect:"\u8FDE\u63A5",qrcode:"\u4E8C\u7EF4\u7801",mobile:"\u79FB\u52A8",desktop:"\u684C\u9762",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",copied_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F\u6210\u529F\uFF01",connect_with:"\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u8FDE\u63A5",loading:"\u6B63\u5728\u52A0\u8F7D...",something_went_wrong:"\u51FA\u4E86\u95EE\u9898",no_supported_wallets:"\u76EE\u524D\u8FD8\u6CA1\u6709\u652F\u6301\u7684\u94B1\u5305",no_wallets_found:"\u6CA1\u6709\u627E\u5230\u94B1\u5305"},RLn={choose_preferred_wallet:"\u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",connect_mobile_wallet:"\u0628\u0647 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0648\u0635\u0644 \u0634\u0648\u06CC\u062F",scan_qrcode_with_wallet:"\u06A9\u062F QR \u0631\u0627 \u0628\u0627 \u06CC\u06A9 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0633\u0627\u0632\u06AF\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06A9\u0646 \u06A9\u0646\u06CC\u062F",connect:"\u0627\u062A\u0635\u0627\u0644",qrcode:"\u06A9\u062F QR",mobile:"\u0633\u06CC\u0627\u0631",desktop:"\u062F\u0633\u06A9\u062A\u0627\u067E",copy_to_clipboard:"\u06A9\u067E\u06CC \u0628\u0647 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F",copied_to_clipboard:"\u062F\u0631 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F \u06A9\u067E\u06CC \u0634\u062F!",connect_with:"\u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",something_went_wrong:"\u0645\u0634\u06A9\u0644\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0634\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",no_wallets_found:"\u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644\u06CC \u067E\u06CC\u062F\u0627 \u0646\u0634\u062F"},KUt={de:ELn,en:ILn,es:CLn,fr:ALn,ko:kLn,pt:SLn,zh:PLn,fa:RLn};function MLn(){var r=Pl.getDocumentOrThrow(),e=r.getElementById(zUt);e&&r.head.removeChild(e);var t=r.createElement("style");t.setAttribute("id",zUt),t.innerText=iLn,r.head.appendChild(t)}function BLn(){var r=Pl.getDocumentOrThrow(),e=r.createElement("div");return e.setAttribute("id",$Ut),r.body.appendChild(e),e}function JUt(){var r=Pl.getDocumentOrThrow(),e=r.getElementById(YUt);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=r.getElementById($Ut);t&&r.body.removeChild(t)},uLn))}function DLn(r){return function(){JUt(),r&&r()}}function NLn(){var r=Pl.getNavigatorOrThrow().language.split("-")[0]||"en";return KUt[r]||KUt.en}function OLn(r,e,t){MLn();var n=BLn();Et.render(Et.createElement(TLn,{text:NLn(),uri:r,onClose:DLn(e),qrcodeModalOptions:t}),n)}function FLn(){JUt()}var ZUt=function(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"};function LLn(r,e,t){console.log(r),ZUt()?aLn(r):OLn(r,e,t)}function qLn(){ZUt()||FLn()}var WLn={open:LLn,close:qLn};XUt.exports=WLn});var rHt,QKe,ULn,HLn,eHt,tHt,vxe,nHt,JKe=de(()=>{f();d();rHt=ea(ml()),QKe=ea(Pn());zte();$b();ULn={Accept:"application/json","Content-Type":"application/json"},HLn="POST",eHt={headers:ULn,method:HLn},tHt=10,vxe=class{constructor(e){if(this.url=e,this.events=new rHt.EventEmitter,this.isAvailable=!1,this.registering=!1,!P4e(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}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 new Error("Connection already closed");this.onClose()}async send(e,t){this.isAvailable||await this.register();try{let n=iy(e),i=await(await(0,QKe.default)(this.url,Object.assign(Object.assign({},eHt),{body:n}))).json();this.onPayload({data:i})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!P4e(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return a(new Error("HTTP connection is missing or invalid"));n()})})}this.url=e,this.registering=!0;try{let t=iy({id:1,jsonrpc:"2.0",method:"test",params:[]});await(0,QKe.default)(e,Object.assign(Object.assign({},eHt),{body:t})),this.onOpen()}catch(t){let n=this.parseError(t);throw this.events.emit("register_error",n),this.onClose(),n}}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=typeof e.data=="string"?Qb(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=hle(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return ple(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>tHt&&this.events.setMaxListeners(tHt)}},nHt=vxe});var wxe={};Rr(wxe,{HttpConnection:()=>vxe,default:()=>jLn});var jLn,xxe=de(()=>{f();d();JKe();JKe();jLn=nHt});var aHt,_xe,iHt,ZKe=de(()=>{f();d();aHt=ea(ml());$b();_xe=class extends Lte{constructor(e){super(e),this.events=new aHt.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(Hje(e.method,e.params||[]),t)}async requestStrict(e,t){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(i){a(i)}this.events.on(`${e.id}`,i=>{M4e(i)?a(i.error):n(i.result)});try{await this.connection.send(e,t)}catch(i){a(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),Kje(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}onClose(e){e&&e.code===3e3&&this.events.emit("error",new 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(),typeof e=="string"&&(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.hasRegisteredEventListeners=!0)}},iHt=_xe});var Ole={};Rr(Ole,{JsonRpcProvider:()=>_xe,default:()=>zLn});var zLn,Fle=de(()=>{f();d();ZKe();ZKe();zLn=iHt});var lHt=E(uHt=>{"use strict";f();d();var Td=Oi(),KLn=(b4e(),Ht(Fje)),sHt=($b(),Ht(Ac)),GLn=(gKe(),Ht(bKe)),VLn=YKe(),$Ln=Xe(),YLn=(xxe(),Ht(wxe)),oHt=(Fle(),Ht(Ole)),QLn=(w8(),Ht(rze)),JLn=(Jb(),Ht(exe));function tGe(r){return r&&r.__esModule?r:{default:r}}var ZLn=tGe(GLn),XLn=tGe(VLn),cHt=tGe($Ln),XKe=class extends KLn.IJsonRpcConnection{constructor(e){super(),Td._defineProperty(this,"events",new cHt.default),Td._defineProperty(this,"accounts",[]),Td._defineProperty(this,"chainId",1),Td._defineProperty(this,"pending",!1),Td._defineProperty(this,"wc",void 0),Td._defineProperty(this,"bridge","https://bridge.walletconnect.org"),Td._defineProperty(this,"qrcode",!0),Td._defineProperty(this,"qrcodeModalOptions",void 0),Td._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=e?.chainId||this.chainId,this.wc=this.register(e)}get connected(){return typeof this.wc<"u"&&this.wc.connected}get connecting(){return this.pending}get connector(){return this.wc=this.register(this.opts),this.wc}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){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),this.create(e)})}async close(){typeof this.wc>"u"||(this.wc.connected&&this.wc.killSession(),this.onClose())}async send(e){this.wc=this.register(this.opts),this.connected||await this.open(),this.sendPayload(e).then(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",sHt.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?XLn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new ZLn.default(t),typeof this.wc>"u")throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}onOpen(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}onClose(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}onError(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}create(e){this.wc=this.register(this.opts),this.chainId=e||this.chainId,!(this.connected||this.pending)&&(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then(()=>this.events.emit("created")).catch(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.chainId||this.chainId,this.onOpen()}),this.wc.on("disconnect",e=>{if(e){this.events.emit("error",e);return}this.onClose()}),this.wc.on("modal_closed",()=>{this.events.emit("error",new Error("User closed modal"))}),this.wc.on("session_update",(e,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?sHt.formatJsonRpcError(e.id,e.error.message):e}},eqn=XKe,eGe=class{constructor(e){Td._defineProperty(this,"events",new cHt.default),Td._defineProperty(this,"rpc",void 0),Td._defineProperty(this,"signer",void 0),Td._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new oHt.JsonRpcProvider(new eqn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),this.registerEventListeners()}get connected(){return this.signer.connection.connected}get connector(){return this.signer.connection.connector}get accounts(){return this.signer.connection.accounts}get chainId(){return this.signer.connection.chainId}get rpcUrl(){return(this.http?.connection).url||""}async request(e){switch(e.method){case"eth_requestAccounts":return await this.connect(),this.signer.connection.accounts;case"eth_accounts":return this.signer.connection.accounts;case"eth_chainId":return this.signer.connection.chainId}if(QLn.SIGNING_METHODS.includes(e.method))return this.signer.request(e);if(typeof this.http>"u")throw new Error(`Cannot request JSON-RPC method (${e.method}) without provided rpc url`);return this.http.request(e)}async enable(){return await this.request({method:"eth_requestAccounts"})}async connect(){this.signer.connection.connected||await this.signer.connect()}async disconnect(){this.signer.connection.connected&&await this.signer.disconnect()}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}registerEventListeners(){this.signer.connection.on("accountsChanged",e=>{this.events.emit("accountsChanged",e)}),this.signer.connection.on("chainChanged",e=>{this.http=this.setHttpProvider(e),this.events.emit("chainChanged",e)}),this.connector.on("display_uri",(e,t)=>{this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=JLn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new oHt.JsonRpcProvider(new YLn.HttpConnection(t))}};uHt.default=eGe});var sGe=E(iGe=>{"use strict";f();d();Object.defineProperty(iGe,"__esModule",{value:!0});var Txe=Zu(),Fi=bf(),bm=Oi(),Jte=ke(),tqn=n6(),fHt=jb(),Exe=O3();ao();Ct();Xe();var rGe="last-used-chain-id",nGe="last-session",tc=new WeakMap,F6=new WeakMap,dHt=new WeakSet,pHt=new WeakSet,aGe=class extends tqn.Connector{constructor(e){super(e),Txe._classPrivateMethodInitSpec(this,pHt),Txe._classPrivateMethodInitSpec(this,dHt),bm._defineProperty(this,"id","walletConnectV1"),bm._defineProperty(this,"name","WalletConnectV1"),bm._defineProperty(this,"ready",!0),Fi._classPrivateFieldInitSpec(this,tc,{writable:!0,value:void 0}),Fi._classPrivateFieldInitSpec(this,F6,{writable:!0,value:void 0}),bm._defineProperty(this,"walletName",void 0),bm._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),bm._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),bm._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),bm._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),bm._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Jte.utils.getAddress(t[0])})}),bm._defineProperty(this,"onChainChanged",t=>{let n=fHt.normalizeChainId(t),a=this.isChainUnsupported(n);Fi._classPrivateFieldGet(this,F6).setItem(rGe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),bm._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,Fi._classPrivateFieldGet(this,F6).removeItem(rGe),Fi._classPrivateFieldGet(this,F6).removeItem(nGe),Txe._classPrivateMethodGet(this,pHt,nqn).call(this),this.emit("disconnect")}),Fi._classPrivateFieldSet(this,F6,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await Fi._classPrivateFieldGet(this,F6).getItem(rGe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=Jte.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return Txe._classPrivateMethodGet(this,dHt,rqn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new Jte.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new Exe.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return Jte.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return fHt.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Fi._classPrivateFieldGet(this,tc)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return lHt()})).default,i=await Fi._classPrivateFieldGet(this,F6).getItem(nGe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,Fi._classPrivateFieldSet(this,tc,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return Fi._classPrivateFieldGet(this,tc)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Jte.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=Jte.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new Exe.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new Exe.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new Exe.SwitchChainError(a)}}async setupListeners(){!Fi._classPrivateFieldGet(this,tc)||(Fi._classPrivateFieldGet(this,tc).on("accountsChanged",this.onAccountsChanged),Fi._classPrivateFieldGet(this,tc).on("chainChanged",this.onChainChanged),Fi._classPrivateFieldGet(this,tc).on("disconnect",this.onDisconnect),Fi._classPrivateFieldGet(this,tc).on("message",this.onMessage),Fi._classPrivateFieldGet(this,tc).on("switchChain",this.onSwitchChain),Fi._classPrivateFieldGet(this,tc).on("display_uri",this.onDisplayUri),Fi._classPrivateFieldGet(this,tc).on("call_request_sent",this.onRequestSent))}};async function rqn(){let r=Fi._classPrivateFieldGet(this,tc)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);Fi._classPrivateFieldGet(this,F6).setItem(nGe,e)}function nqn(){!Fi._classPrivateFieldGet(this,tc)||(Fi._classPrivateFieldGet(this,tc).removeListener("accountsChanged",this.onAccountsChanged),Fi._classPrivateFieldGet(this,tc).removeListener("chainChanged",this.onChainChanged),Fi._classPrivateFieldGet(this,tc).removeListener("disconnect",this.onDisconnect),Fi._classPrivateFieldGet(this,tc).removeListener("message",this.onMessage),Fi._classPrivateFieldGet(this,tc).removeListener("switchChain",this.onSwitchChain),Fi._classPrivateFieldGet(this,tc).removeListener("display_uri",this.onDisplayUri),Fi._classPrivateFieldGet(this,tc).removeListener("call_request_sent",this.onRequestSent))}iGe.WalletConnectV1Connector=aGe});var cGe=E(oGe=>{"use strict";f();d();Object.defineProperty(oGe,"__esModule",{value:!0});var Zte=Oi(),hHt=md(),aqn=Lce(),iqn=Dp();Xe();Zu();ao();yf();ke();Ct();var S8=class extends iqn.AbstractClientWallet{get walletName(){return"MetaMask"}constructor(e){super(S8.id,e),Zte._defineProperty(this,"connector",void 0),Zte._defineProperty(this,"walletConnectConnector",void 0),Zte._defineProperty(this,"metamaskConnector",void 0),Zte._defineProperty(this,"isInjected",void 0),aqn.assertWindowEthereum(globalThis.window)?this.isInjected=!!globalThis.window.ethereum?.isMetaMask:this.isInjected=!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return JOt()}),t=new e({chains:this.chains,connectorStorage:this.walletStorage,options:{shimDisconnect:!0}});this.metamaskConnector=t,this.connector=new hHt.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return sGe()}),t=new e({chains:this.chains,storage:this.walletStorage,options:{clientMeta:{name:this.dappMetadata.name,description:this.dappMetadata.description||"",url:this.dappMetadata.url,icons:[this.dappMetadata.logoUrl||""]},qrcode:this.options?.qrcode}});this.walletConnectConnector=t,this.connector=new hHt.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}async switchAccount(){if(!this.metamaskConnector)throw new Error("Can not switch Account");await this.metamaskConnector.switchAccount()}};Zte._defineProperty(S8,"meta",{name:"MetaMask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg",urls:{chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask-blockchain-wallet/id1438144202"}});Zte._defineProperty(S8,"id","metamask");oGe.MetaMaskWallet=S8});var mHt=E(Ed=>{"use strict";f();d();Object.defineProperty(Ed,"__esModule",{value:!0});function sqn(r,e){var t=r>>>16&65535,n=r&65535,a=e>>>16&65535,i=e&65535;return n*i+(t*i+n*a<<16>>>0)|0}Ed.mul=Math.imul||sqn;function oqn(r,e){return r+e|0}Ed.add=oqn;function cqn(r,e){return r-e|0}Ed.sub=cqn;function uqn(r,e){return r<>>32-e}Ed.rotl=uqn;function lqn(r,e){return r<<32-e|r>>>e}Ed.rotr=lqn;function fqn(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r}Ed.isInteger=Number.isInteger||fqn;Ed.MAX_SAFE_INTEGER=9007199254740991;Ed.isSafeInteger=function(r){return Ed.isInteger(r)&&r>=-Ed.MAX_SAFE_INTEGER&&r<=Ed.MAX_SAFE_INTEGER}});var Xte=E(bn=>{"use strict";f();d();Object.defineProperty(bn,"__esModule",{value:!0});var yHt=mHt();function dqn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])<<16>>16}bn.readInt16BE=dqn;function pqn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])>>>0}bn.readUint16BE=pqn;function hqn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])<<16>>16}bn.readInt16LE=hqn;function mqn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])>>>0}bn.readUint16LE=mqn;function bHt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>8,e[t+1]=r>>>0,e}bn.writeUint16BE=bHt;bn.writeInt16BE=bHt;function gHt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e}bn.writeUint16LE=gHt;bn.writeInt16LE=gHt;function uGe(r,e){return e===void 0&&(e=0),r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]}bn.readInt32BE=uGe;function lGe(r,e){return e===void 0&&(e=0),(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}bn.readUint32BE=lGe;function fGe(r,e){return e===void 0&&(e=0),r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e]}bn.readInt32LE=fGe;function dGe(r,e){return e===void 0&&(e=0),(r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e])>>>0}bn.readUint32LE=dGe;function Ixe(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>24,e[t+1]=r>>>16,e[t+2]=r>>>8,e[t+3]=r>>>0,e}bn.writeUint32BE=Ixe;bn.writeInt32BE=Ixe;function Cxe(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e[t+2]=r>>>16,e[t+3]=r>>>24,e}bn.writeUint32LE=Cxe;bn.writeInt32LE=Cxe;function yqn(r,e){e===void 0&&(e=0);var t=uGe(r,e),n=uGe(r,e+4);return t*4294967296+n-(n>>31)*4294967296}bn.readInt64BE=yqn;function bqn(r,e){e===void 0&&(e=0);var t=lGe(r,e),n=lGe(r,e+4);return t*4294967296+n}bn.readUint64BE=bqn;function gqn(r,e){e===void 0&&(e=0);var t=fGe(r,e),n=fGe(r,e+4);return n*4294967296+t-(t>>31)*4294967296}bn.readInt64LE=gqn;function vqn(r,e){e===void 0&&(e=0);var t=dGe(r,e),n=dGe(r,e+4);return n*4294967296+t}bn.readUint64LE=vqn;function vHt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),Ixe(r/4294967296>>>0,e,t),Ixe(r>>>0,e,t+4),e}bn.writeUint64BE=vHt;bn.writeInt64BE=vHt;function wHt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),Cxe(r>>>0,e,t),Cxe(r/4294967296>>>0,e,t+4),e}bn.writeUint64LE=wHt;bn.writeInt64LE=wHt;function wqn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,a=1,i=r/8+t-1;i>=t;i--)n+=e[i]*a,a*=256;return n}bn.readUintBE=wqn;function xqn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,a=1,i=t;i=n;i--)t[i]=e/a&255,a*=256;return t}bn.writeUintBE=_qn;function Tqn(r,e,t,n){if(t===void 0&&(t=new Uint8Array(r/8)),n===void 0&&(n=0),r%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!yHt.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var a=1,i=n;i{"use strict";f();d();Object.defineProperty(pGe,"__esModule",{value:!0});function Mqn(r){for(var e=0;e{"use strict";f();d();Object.defineProperty(Axe,"__esModule",{value:!0});var sl=Xte(),hGe=$p(),Bqn=20;function Dqn(r,e,t){for(var n=1634760805,a=857760878,i=2036477234,s=1797285236,o=t[3]<<24|t[2]<<16|t[1]<<8|t[0],c=t[7]<<24|t[6]<<16|t[5]<<8|t[4],u=t[11]<<24|t[10]<<16|t[9]<<8|t[8],l=t[15]<<24|t[14]<<16|t[13]<<8|t[12],p=t[19]<<24|t[18]<<16|t[17]<<8|t[16],h=t[23]<<24|t[22]<<16|t[21]<<8|t[20],m=t[27]<<24|t[26]<<16|t[25]<<8|t[24],y=t[31]<<24|t[30]<<16|t[29]<<8|t[28],C=e[3]<<24|e[2]<<16|e[1]<<8|e[0],P=e[7]<<24|e[6]<<16|e[5]<<8|e[4],A=e[11]<<24|e[10]<<16|e[9]<<8|e[8],B=e[15]<<24|e[14]<<16|e[13]<<8|e[12],F=n,W=a,K=i,z=s,G=o,j=c,H=u,I=l,b=p,k=h,S=m,w=y,R=C,O=P,D=A,T=B,x=0;x>>32-16|R<<16,b=b+R|0,G^=b,G=G>>>32-12|G<<12,W=W+j|0,O^=W,O=O>>>32-16|O<<16,k=k+O|0,j^=k,j=j>>>32-12|j<<12,K=K+H|0,D^=K,D=D>>>32-16|D<<16,S=S+D|0,H^=S,H=H>>>32-12|H<<12,z=z+I|0,T^=z,T=T>>>32-16|T<<16,w=w+T|0,I^=w,I=I>>>32-12|I<<12,K=K+H|0,D^=K,D=D>>>32-8|D<<8,S=S+D|0,H^=S,H=H>>>32-7|H<<7,z=z+I|0,T^=z,T=T>>>32-8|T<<8,w=w+T|0,I^=w,I=I>>>32-7|I<<7,W=W+j|0,O^=W,O=O>>>32-8|O<<8,k=k+O|0,j^=k,j=j>>>32-7|j<<7,F=F+G|0,R^=F,R=R>>>32-8|R<<8,b=b+R|0,G^=b,G=G>>>32-7|G<<7,F=F+j|0,T^=F,T=T>>>32-16|T<<16,S=S+T|0,j^=S,j=j>>>32-12|j<<12,W=W+H|0,R^=W,R=R>>>32-16|R<<16,w=w+R|0,H^=w,H=H>>>32-12|H<<12,K=K+I|0,O^=K,O=O>>>32-16|O<<16,b=b+O|0,I^=b,I=I>>>32-12|I<<12,z=z+G|0,D^=z,D=D>>>32-16|D<<16,k=k+D|0,G^=k,G=G>>>32-12|G<<12,K=K+I|0,O^=K,O=O>>>32-8|O<<8,b=b+O|0,I^=b,I=I>>>32-7|I<<7,z=z+G|0,D^=z,D=D>>>32-8|D<<8,k=k+D|0,G^=k,G=G>>>32-7|G<<7,W=W+H|0,R^=W,R=R>>>32-8|R<<8,w=w+R|0,H^=w,H=H>>>32-7|H<<7,F=F+j|0,T^=F,T=T>>>32-8|T<<8,S=S+T|0,j^=S,j=j>>>32-7|j<<7;sl.writeUint32LE(F+n|0,r,0),sl.writeUint32LE(W+a|0,r,4),sl.writeUint32LE(K+i|0,r,8),sl.writeUint32LE(z+s|0,r,12),sl.writeUint32LE(G+o|0,r,16),sl.writeUint32LE(j+c|0,r,20),sl.writeUint32LE(H+u|0,r,24),sl.writeUint32LE(I+l|0,r,28),sl.writeUint32LE(b+p|0,r,32),sl.writeUint32LE(k+h|0,r,36),sl.writeUint32LE(S+m|0,r,40),sl.writeUint32LE(w+y|0,r,44),sl.writeUint32LE(R+C|0,r,48),sl.writeUint32LE(O+P|0,r,52),sl.writeUint32LE(D+A|0,r,56),sl.writeUint32LE(T+B|0,r,60)}function xHt(r,e,t,n,a){if(a===void 0&&(a=0),r.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}});var kxe=E(ere=>{"use strict";f();d();Object.defineProperty(ere,"__esModule",{value:!0});function Fqn(r,e,t){return~(r-1)&e|r-1&t}ere.select=Fqn;function Lqn(r,e){return(r|0)-(e|0)-1>>>31&1}ere.lessOrEqual=Lqn;function THt(r,e){if(r.length!==e.length)return 0;for(var t=0,n=0;n>>8}ere.compare=THt;function qqn(r,e){return r.length===0||e.length===0?!1:THt(r,e)!==0}ere.equal=qqn});var IHt=E(Xb=>{"use strict";f();d();Object.defineProperty(Xb,"__esModule",{value:!0});var Wqn=kxe(),Sxe=$p();Xb.DIGEST_LENGTH=16;var EHt=function(){function r(e){this.digestLength=Xb.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 t=e[0]|e[1]<<8;this._r[0]=t&8191;var n=e[2]|e[3]<<8;this._r[1]=(t>>>13|n<<3)&8191;var a=e[4]|e[5]<<8;this._r[2]=(n>>>10|a<<6)&7939;var i=e[6]|e[7]<<8;this._r[3]=(a>>>7|i<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(i>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=(s>>>14|o<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(o>>>11|c<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(c>>>8|u<<8)&8191,this._r[9]=u>>>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 r.prototype._blocks=function(e,t,n){for(var a=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],c=this._h[3],u=this._h[4],l=this._h[5],p=this._h[6],h=this._h[7],m=this._h[8],y=this._h[9],C=this._r[0],P=this._r[1],A=this._r[2],B=this._r[3],F=this._r[4],W=this._r[5],K=this._r[6],z=this._r[7],G=this._r[8],j=this._r[9];n>=16;){var H=e[t+0]|e[t+1]<<8;i+=H&8191;var I=e[t+2]|e[t+3]<<8;s+=(H>>>13|I<<3)&8191;var b=e[t+4]|e[t+5]<<8;o+=(I>>>10|b<<6)&8191;var k=e[t+6]|e[t+7]<<8;c+=(b>>>7|k<<9)&8191;var S=e[t+8]|e[t+9]<<8;u+=(k>>>4|S<<12)&8191,l+=S>>>1&8191;var w=e[t+10]|e[t+11]<<8;p+=(S>>>14|w<<2)&8191;var R=e[t+12]|e[t+13]<<8;h+=(w>>>11|R<<5)&8191;var O=e[t+14]|e[t+15]<<8;m+=(R>>>8|O<<8)&8191,y+=O>>>5|a;var D=0,T=D;T+=i*C,T+=s*(5*j),T+=o*(5*G),T+=c*(5*z),T+=u*(5*K),D=T>>>13,T&=8191,T+=l*(5*W),T+=p*(5*F),T+=h*(5*B),T+=m*(5*A),T+=y*(5*P),D+=T>>>13,T&=8191;var x=D;x+=i*P,x+=s*C,x+=o*(5*j),x+=c*(5*G),x+=u*(5*z),D=x>>>13,x&=8191,x+=l*(5*K),x+=p*(5*W),x+=h*(5*F),x+=m*(5*B),x+=y*(5*A),D+=x>>>13,x&=8191;var N=D;N+=i*A,N+=s*P,N+=o*C,N+=c*(5*j),N+=u*(5*G),D=N>>>13,N&=8191,N+=l*(5*z),N+=p*(5*K),N+=h*(5*W),N+=m*(5*F),N+=y*(5*B),D+=N>>>13,N&=8191;var U=D;U+=i*B,U+=s*A,U+=o*P,U+=c*C,U+=u*(5*j),D=U>>>13,U&=8191,U+=l*(5*G),U+=p*(5*z),U+=h*(5*K),U+=m*(5*W),U+=y*(5*F),D+=U>>>13,U&=8191;var M=D;M+=i*F,M+=s*B,M+=o*A,M+=c*P,M+=u*C,D=M>>>13,M&=8191,M+=l*(5*j),M+=p*(5*G),M+=h*(5*z),M+=m*(5*K),M+=y*(5*W),D+=M>>>13,M&=8191;var V=D;V+=i*W,V+=s*F,V+=o*B,V+=c*A,V+=u*P,D=V>>>13,V&=8191,V+=l*C,V+=p*(5*j),V+=h*(5*G),V+=m*(5*z),V+=y*(5*K),D+=V>>>13,V&=8191;var ee=D;ee+=i*K,ee+=s*W,ee+=o*F,ee+=c*B,ee+=u*A,D=ee>>>13,ee&=8191,ee+=l*P,ee+=p*C,ee+=h*(5*j),ee+=m*(5*G),ee+=y*(5*z),D+=ee>>>13,ee&=8191;var $=D;$+=i*z,$+=s*K,$+=o*W,$+=c*F,$+=u*B,D=$>>>13,$&=8191,$+=l*A,$+=p*P,$+=h*C,$+=m*(5*j),$+=y*(5*G),D+=$>>>13,$&=8191;var X=D;X+=i*G,X+=s*z,X+=o*K,X+=c*W,X+=u*F,D=X>>>13,X&=8191,X+=l*B,X+=p*A,X+=h*P,X+=m*C,X+=y*(5*j),D+=X>>>13,X&=8191;var se=D;se+=i*j,se+=s*G,se+=o*z,se+=c*K,se+=u*W,D=se>>>13,se&=8191,se+=l*F,se+=p*B,se+=h*A,se+=m*P,se+=y*C,D+=se>>>13,se&=8191,D=(D<<2)+D|0,D=D+T|0,T=D&8191,D=D>>>13,x+=D,i=T,s=x,o=N,c=U,u=M,l=V,p=ee,h=$,m=X,y=se,t+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=c,this._h[4]=u,this._h[5]=l,this._h[6]=p,this._h[7]=h,this._h[8]=m,this._h[9]=y},r.prototype.finish=function(e,t){t===void 0&&(t=0);var n=new Uint16Array(10),a,i,s,o;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(a=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=a,a=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=a*5,a=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=a,a=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=a,n[0]=this._h[0]+5,a=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this._h[o]+a,a=n[o]>>>13,n[o]&=8191;for(n[9]-=1<<13,i=(a^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this._h[o]=this._h[o]&i|n[o];for(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,s=this._h[0]+this._pad[0],this._h[0]=s&65535,o=1;o<8;o++)s=(this._h[o]+this._pad[o]|0)+(s>>>16)|0,this._h[o]=s&65535;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},r.prototype.update=function(e){var t=0,n=e.length,a;if(this._leftover){a=16-this._leftover,a>n&&(a=n);for(var i=0;i=16&&(a=n-n%16,this._blocks(e,t,a),t+=a,n-=a),n){for(var i=0;i{"use strict";f();d();Object.defineProperty(e2,"__esModule",{value:!0});var Pxe=_Ht(),jqn=IHt(),Lle=$p(),CHt=Xte(),zqn=kxe();e2.KEY_LENGTH=32;e2.NONCE_LENGTH=12;e2.TAG_LENGTH=16;var AHt=new Uint8Array(16),Kqn=function(){function r(e){if(this.nonceLength=e2.NONCE_LENGTH,this.tagLength=e2.TAG_LENGTH,e.length!==e2.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return r.prototype.seal=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var i=new Uint8Array(16);i.set(e,i.length-e.length);var s=new Uint8Array(32);Pxe.stream(this._key,i,s,4);var o=t.length+this.tagLength,c;if(a){if(a.length!==o)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(o);return Pxe.streamXOR(this._key,i,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),Lle.wipe(i),c},r.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&i.update(AHt.subarray(a.length%16))),i.update(n),n.length%16>0&&i.update(AHt.subarray(n.length%16));var s=new Uint8Array(8);a&&CHt.writeUint64LE(a.length,s),i.update(s),CHt.writeUint64LE(n.length,s),i.update(s);for(var o=i.digest(),c=0;c{"use strict";f();d();Object.defineProperty(mGe,"__esModule",{value:!0});function Gqn(r){return typeof r.saveState<"u"&&typeof r.restoreState<"u"&&typeof r.cleanSavedState<"u"}mGe.isSerializableHash=Gqn});var RHt=E(qle=>{"use strict";f();d();Object.defineProperty(qle,"__esModule",{value:!0});var oy=SHt(),Vqn=kxe(),$qn=$p(),PHt=function(){function r(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var a=0;a{"use strict";f();d();Object.defineProperty(yGe,"__esModule",{value:!0});var MHt=RHt(),BHt=$p(),Qqn=function(){function r(e,t,n,a){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var i=MHt.hmac(this._hash,n,t);this._hmac=new MHt.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return r.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new 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},r.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";f();d();Object.defineProperty(Rxe,"__esModule",{value:!0});Rxe.BrowserRandomSource=void 0;var NHt=65536,bGe=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==void 0&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let n=0;n{"use strict";f();d();Object.defineProperty(Mxe,"__esModule",{value:!0});Mxe.NodeRandomSource=void 0;var Jqn=$p(),gGe=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof My<"u"){let e=N1e();e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(e);for(let a=0;a{"use strict";f();d();Object.defineProperty(Bxe,"__esModule",{value:!0});Bxe.SystemRandomSource=void 0;var Zqn=OHt(),Xqn=FHt(),vGe=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new Zqn.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new Xqn.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}};Bxe.SystemRandomSource=vGe});var Wle=E(ol=>{"use strict";f();d();Object.defineProperty(ol,"__esModule",{value:!0});ol.randomStringForEntropy=ol.randomString=ol.randomUint32=ol.randomBytes=ol.defaultRandomSource=void 0;var eWn=LHt(),tWn=Xte(),qHt=$p();ol.defaultRandomSource=new eWn.SystemRandomSource;function wGe(r,e=ol.defaultRandomSource){return e.randomBytes(r)}ol.randomBytes=wGe;function rWn(r=ol.defaultRandomSource){let e=wGe(4,r),t=(0,tWn.readUint32LE)(e);return(0,qHt.wipe)(e),t}ol.randomUint32=rWn;var WHt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function UHt(r,e=WHt,t=ol.defaultRandomSource){if(e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");let n="",a=e.length,i=256-256%a;for(;r>0;){let s=wGe(Math.ceil(r*256/i),t);for(let o=0;o0;o++){let c=s[o];c{"use strict";f();d();Object.defineProperty(L6,"__esModule",{value:!0});var Nxe=Xte(),Dxe=$p();L6.DIGEST_LENGTH=32;L6.BLOCK_SIZE=64;var HHt=function(){function r(){this.digestLength=L6.DIGEST_LENGTH,this.blockSize=L6.BLOCK_SIZE,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 r.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},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){Dxe.wipe(this._buffer),Dxe.wipe(this._temp),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(xGe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=xGe(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%64<56?64:128;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.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},r.prototype.cleanSavedState=function(e){Dxe.wipe(e.state),e.buffer&&Dxe.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();L6.SHA256=HHt;var aWn=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 xGe(r,e,t,n,a){for(;a>=64;){for(var i=e[0],s=e[1],o=e[2],c=e[3],u=e[4],l=e[5],p=e[6],h=e[7],m=0;m<16;m++){var y=n+m*4;r[m]=Nxe.readUint32BE(t,y)}for(var m=16;m<64;m++){var C=r[m-2],P=(C>>>17|C<<32-17)^(C>>>19|C<<32-19)^C>>>10;C=r[m-15];var A=(C>>>7|C<<32-7)^(C>>>18|C<<32-18)^C>>>3;r[m]=(P+r[m-7]|0)+(A+r[m-16]|0)}for(var m=0;m<64;m++){var P=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&p)|0)+(h+(aWn[m]+r[m]|0)|0)|0,A=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&o^s&o)|0;h=p,p=l,l=u,u=c+P|0,c=o,o=s,s=i,i=P+A|0}e[0]+=i,e[1]+=s,e[2]+=o,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=p,e[7]+=h,n+=64,a-=64}return n}function iWn(r){var e=new HHt;e.update(r);var t=e.digest();return e.clean(),t}L6.hash=iWn});var VHt=E(No=>{"use strict";f();d();Object.defineProperty(No,"__esModule",{value:!0});No.sharedKey=No.generateKeyPair=No.generateKeyPairFromSeed=No.scalarMultBase=No.scalarMult=No.SHARED_KEY_LENGTH=No.SECRET_KEY_LENGTH=No.PUBLIC_KEY_LENGTH=void 0;var sWn=Wle(),oWn=$p();No.PUBLIC_KEY_LENGTH=32;No.SECRET_KEY_LENGTH=32;No.SHARED_KEY_LENGTH=32;function cy(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,Ule(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function lWn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function Oxe(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function Fxe(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function t2(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,p=0,h=0,m=0,y=0,C=0,P=0,A=0,B=0,F=0,W=0,K=0,z=0,G=0,j=0,H=0,I=0,b=0,k=0,S=0,w=0,R=0,O=0,D=0,T=0,x=0,N=t[0],U=t[1],M=t[2],V=t[3],ee=t[4],$=t[5],X=t[6],se=t[7],ue=t[8],ye=t[9],Ie=t[10],ge=t[11],xe=t[12],Ue=t[13],Te=t[14],Be=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*M,c+=n*V,u+=n*ee,l+=n*$,p+=n*X,h+=n*se,m+=n*ue,y+=n*ye,C+=n*Ie,P+=n*ge,A+=n*xe,B+=n*Ue,F+=n*Te,W+=n*Be,n=e[1],s+=n*N,o+=n*U,c+=n*M,u+=n*V,l+=n*ee,p+=n*$,h+=n*X,m+=n*se,y+=n*ue,C+=n*ye,P+=n*Ie,A+=n*ge,B+=n*xe,F+=n*Ue,W+=n*Te,K+=n*Be,n=e[2],o+=n*N,c+=n*U,u+=n*M,l+=n*V,p+=n*ee,h+=n*$,m+=n*X,y+=n*se,C+=n*ue,P+=n*ye,A+=n*Ie,B+=n*ge,F+=n*xe,W+=n*Ue,K+=n*Te,z+=n*Be,n=e[3],c+=n*N,u+=n*U,l+=n*M,p+=n*V,h+=n*ee,m+=n*$,y+=n*X,C+=n*se,P+=n*ue,A+=n*ye,B+=n*Ie,F+=n*ge,W+=n*xe,K+=n*Ue,z+=n*Te,G+=n*Be,n=e[4],u+=n*N,l+=n*U,p+=n*M,h+=n*V,m+=n*ee,y+=n*$,C+=n*X,P+=n*se,A+=n*ue,B+=n*ye,F+=n*Ie,W+=n*ge,K+=n*xe,z+=n*Ue,G+=n*Te,j+=n*Be,n=e[5],l+=n*N,p+=n*U,h+=n*M,m+=n*V,y+=n*ee,C+=n*$,P+=n*X,A+=n*se,B+=n*ue,F+=n*ye,W+=n*Ie,K+=n*ge,z+=n*xe,G+=n*Ue,j+=n*Te,H+=n*Be,n=e[6],p+=n*N,h+=n*U,m+=n*M,y+=n*V,C+=n*ee,P+=n*$,A+=n*X,B+=n*se,F+=n*ue,W+=n*ye,K+=n*Ie,z+=n*ge,G+=n*xe,j+=n*Ue,H+=n*Te,I+=n*Be,n=e[7],h+=n*N,m+=n*U,y+=n*M,C+=n*V,P+=n*ee,A+=n*$,B+=n*X,F+=n*se,W+=n*ue,K+=n*ye,z+=n*Ie,G+=n*ge,j+=n*xe,H+=n*Ue,I+=n*Te,b+=n*Be,n=e[8],m+=n*N,y+=n*U,C+=n*M,P+=n*V,A+=n*ee,B+=n*$,F+=n*X,W+=n*se,K+=n*ue,z+=n*ye,G+=n*Ie,j+=n*ge,H+=n*xe,I+=n*Ue,b+=n*Te,k+=n*Be,n=e[9],y+=n*N,C+=n*U,P+=n*M,A+=n*V,B+=n*ee,F+=n*$,W+=n*X,K+=n*se,z+=n*ue,G+=n*ye,j+=n*Ie,H+=n*ge,I+=n*xe,b+=n*Ue,k+=n*Te,S+=n*Be,n=e[10],C+=n*N,P+=n*U,A+=n*M,B+=n*V,F+=n*ee,W+=n*$,K+=n*X,z+=n*se,G+=n*ue,j+=n*ye,H+=n*Ie,I+=n*ge,b+=n*xe,k+=n*Ue,S+=n*Te,w+=n*Be,n=e[11],P+=n*N,A+=n*U,B+=n*M,F+=n*V,W+=n*ee,K+=n*$,z+=n*X,G+=n*se,j+=n*ue,H+=n*ye,I+=n*Ie,b+=n*ge,k+=n*xe,S+=n*Ue,w+=n*Te,R+=n*Be,n=e[12],A+=n*N,B+=n*U,F+=n*M,W+=n*V,K+=n*ee,z+=n*$,G+=n*X,j+=n*se,H+=n*ue,I+=n*ye,b+=n*Ie,k+=n*ge,S+=n*xe,w+=n*Ue,R+=n*Te,O+=n*Be,n=e[13],B+=n*N,F+=n*U,W+=n*M,K+=n*V,z+=n*ee,G+=n*$,j+=n*X,H+=n*se,I+=n*ue,b+=n*ye,k+=n*Ie,S+=n*ge,w+=n*xe,R+=n*Ue,O+=n*Te,D+=n*Be,n=e[14],F+=n*N,W+=n*U,K+=n*M,z+=n*V,G+=n*ee,j+=n*$,H+=n*X,I+=n*se,b+=n*ue,k+=n*ye,S+=n*Ie,w+=n*ge,R+=n*xe,O+=n*Ue,D+=n*Te,T+=n*Be,n=e[15],W+=n*N,K+=n*U,z+=n*M,G+=n*V,j+=n*ee,H+=n*$,I+=n*X,b+=n*se,k+=n*ue,S+=n*ye,w+=n*Ie,R+=n*ge,O+=n*xe,D+=n*Ue,T+=n*Te,x+=n*Be,i+=38*K,s+=38*z,o+=38*G,c+=38*j,u+=38*H,l+=38*I,p+=38*b,h+=38*k,m+=38*S,y+=38*w,C+=38*R,P+=38*O,A+=38*D,B+=38*T,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=p+a+65535,a=Math.floor(n/65536),p=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=P+a+65535,a=Math.floor(n/65536),P=n-a*65536,n=A+a+65535,a=Math.floor(n/65536),A=n-a*65536,n=B+a+65535,a=Math.floor(n/65536),B=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=p+a+65535,a=Math.floor(n/65536),p=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=P+a+65535,a=Math.floor(n/65536),P=n-a*65536,n=A+a+65535,a=Math.floor(n/65536),A=n-a*65536,n=B+a+65535,a=Math.floor(n/65536),B=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=p,r[7]=h,r[8]=m,r[9]=y,r[10]=C,r[11]=P,r[12]=A,r[13]=B,r[14]=F,r[15]=W}function Hle(r,e){t2(r,e,e)}function fWn(r,e){let t=cy();for(let n=0;n<16;n++)t[n]=e[n];for(let n=253;n>=0;n--)Hle(t,t),n!==2&&n!==4&&t2(t,t,e);for(let n=0;n<16;n++)r[n]=t[n]}function TGe(r,e){let t=new Uint8Array(32),n=new Float64Array(80),a=cy(),i=cy(),s=cy(),o=cy(),c=cy(),u=cy();for(let m=0;m<31;m++)t[m]=r[m];t[31]=r[31]&127|64,t[0]&=248,lWn(n,e);for(let m=0;m<16;m++)i[m]=n[m];a[0]=o[0]=1;for(let m=254;m>=0;--m){let y=t[m>>>3]>>>(m&7)&1;Ule(a,i,y),Ule(s,o,y),Oxe(c,a,s),Fxe(a,a,s),Oxe(s,i,o),Fxe(i,i,o),Hle(o,c),Hle(u,a),t2(a,s,a),t2(s,i,c),Oxe(c,a,s),Fxe(a,a,s),Hle(i,a),Fxe(s,o,u),t2(a,s,cWn),Oxe(a,a,o),t2(s,s,a),t2(a,o,u),t2(o,i,n),Hle(i,c),Ule(a,i,y),Ule(s,o,y)}for(let m=0;m<16;m++)n[m+16]=a[m],n[m+32]=s[m],n[m+48]=i[m],n[m+64]=o[m];let l=n.subarray(32),p=n.subarray(16);fWn(l,l),t2(p,p,l);let h=new Uint8Array(32);return uWn(h,p),h}No.scalarMult=TGe;function KHt(r){return TGe(r,zHt)}No.scalarMultBase=KHt;function GHt(r){if(r.length!==No.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${No.SECRET_KEY_LENGTH} bytes`);let e=new Uint8Array(r);return{publicKey:KHt(e),secretKey:e}}No.generateKeyPairFromSeed=GHt;function dWn(r){let e=(0,sWn.randomBytes)(32,r),t=GHt(e);return(0,oWn.wipe)(e),t}No.generateKeyPair=dWn;function pWn(r,e,t=!1){if(r.length!==No.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==No.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=TGe(r,e);if(t){let a=0;for(let i=0;ie[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{f();d()});function QHt(r,e){if(r.length!==e.length)throw new Error("Inputs should have the same length");let t=zZ(r.length);for(let n=0;n{f();d();$be();Tse()});var ZHt={};Rr(ZHt,{compare:()=>$Ht,concat:()=>Ise,equals:()=>MRe,fromString:()=>Mh,toString:()=>C1,xor:()=>QHt});var XHt=de(()=>{f();d();YHt();Lw();a2e();Fw();KZ();JHt()});var ejt=E(Lxe=>{"use strict";f();d();Object.defineProperty(Lxe,"__esModule",{value:!0});Lxe.delay=void 0;function hWn(r){return new Promise(e=>{setTimeout(()=>{e(!0)},r)})}Lxe.delay=hWn});var tjt=E(tre=>{"use strict";f();d();Object.defineProperty(tre,"__esModule",{value:!0});tre.ONE_THOUSAND=tre.ONE_HUNDRED=void 0;tre.ONE_HUNDRED=100;tre.ONE_THOUSAND=1e3});var rjt=E(Tt=>{"use strict";f();d();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.ONE_YEAR=Tt.FOUR_WEEKS=Tt.THREE_WEEKS=Tt.TWO_WEEKS=Tt.ONE_WEEK=Tt.THIRTY_DAYS=Tt.SEVEN_DAYS=Tt.FIVE_DAYS=Tt.THREE_DAYS=Tt.ONE_DAY=Tt.TWENTY_FOUR_HOURS=Tt.TWELVE_HOURS=Tt.SIX_HOURS=Tt.THREE_HOURS=Tt.ONE_HOUR=Tt.SIXTY_MINUTES=Tt.THIRTY_MINUTES=Tt.TEN_MINUTES=Tt.FIVE_MINUTES=Tt.ONE_MINUTE=Tt.SIXTY_SECONDS=Tt.THIRTY_SECONDS=Tt.TEN_SECONDS=Tt.FIVE_SECONDS=Tt.ONE_SECOND=void 0;Tt.ONE_SECOND=1;Tt.FIVE_SECONDS=5;Tt.TEN_SECONDS=10;Tt.THIRTY_SECONDS=30;Tt.SIXTY_SECONDS=60;Tt.ONE_MINUTE=Tt.SIXTY_SECONDS;Tt.FIVE_MINUTES=Tt.ONE_MINUTE*5;Tt.TEN_MINUTES=Tt.ONE_MINUTE*10;Tt.THIRTY_MINUTES=Tt.ONE_MINUTE*30;Tt.SIXTY_MINUTES=Tt.ONE_MINUTE*60;Tt.ONE_HOUR=Tt.SIXTY_MINUTES;Tt.THREE_HOURS=Tt.ONE_HOUR*3;Tt.SIX_HOURS=Tt.ONE_HOUR*6;Tt.TWELVE_HOURS=Tt.ONE_HOUR*12;Tt.TWENTY_FOUR_HOURS=Tt.ONE_HOUR*24;Tt.ONE_DAY=Tt.TWENTY_FOUR_HOURS;Tt.THREE_DAYS=Tt.ONE_DAY*3;Tt.FIVE_DAYS=Tt.ONE_DAY*5;Tt.SEVEN_DAYS=Tt.ONE_DAY*7;Tt.THIRTY_DAYS=Tt.ONE_DAY*30;Tt.ONE_WEEK=Tt.SEVEN_DAYS;Tt.TWO_WEEKS=Tt.ONE_WEEK*2;Tt.THREE_WEEKS=Tt.ONE_WEEK*3;Tt.FOUR_WEEKS=Tt.ONE_WEEK*4;Tt.ONE_YEAR=Tt.ONE_DAY*365});var EGe=E(qxe=>{"use strict";f();d();Object.defineProperty(qxe,"__esModule",{value:!0});var njt=_d();njt.__exportStar(tjt(),qxe);njt.__exportStar(rjt(),qxe)});var ijt=E(rre=>{"use strict";f();d();Object.defineProperty(rre,"__esModule",{value:!0});rre.fromMiliseconds=rre.toMiliseconds=void 0;var ajt=EGe();function mWn(r){return r*ajt.ONE_THOUSAND}rre.toMiliseconds=mWn;function yWn(r){return Math.floor(r/ajt.ONE_THOUSAND)}rre.fromMiliseconds=yWn});var ojt=E(Wxe=>{"use strict";f();d();Object.defineProperty(Wxe,"__esModule",{value:!0});var sjt=_d();sjt.__exportStar(ejt(),Wxe);sjt.__exportStar(ijt(),Wxe)});var cjt=E(jle=>{"use strict";f();d();Object.defineProperty(jle,"__esModule",{value:!0});jle.Watch=void 0;var Uxe=class{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(typeof t.elapsed<"u")throw new Error(`Watch already stopped for label: ${e}`);let n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){let t=this.timestamps.get(e);if(typeof t>"u")throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}};jle.Watch=Uxe;jle.default=Uxe});var ujt=E(Hxe=>{"use strict";f();d();Object.defineProperty(Hxe,"__esModule",{value:!0});Hxe.IWatch=void 0;var IGe=class{};Hxe.IWatch=IGe});var ljt=E(CGe=>{"use strict";f();d();Object.defineProperty(CGe,"__esModule",{value:!0});var bWn=_d();bWn.__exportStar(ujt(),CGe)});var P8=E(nre=>{"use strict";f();d();Object.defineProperty(nre,"__esModule",{value:!0});var jxe=_d();jxe.__exportStar(ojt(),nre);jxe.__exportStar(cjt(),nre);jxe.__exportStar(ljt(),nre);jxe.__exportStar(EGe(),nre)});var gjt=E(If=>{"use strict";f();d();var gWn=Bze(),vWn=Nze(),djt=Oze(),wWn=Fze(),xWn=r=>r==null,AGe=Symbol("encodeFragmentIdentifier");function _Wn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[rc(e,r),"[",a,"]"].join("")]:[...t,[rc(e,r),"[",rc(a,r),"]=",rc(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[rc(e,r),"[]"].join("")]:[...t,[rc(e,r),"[]=",rc(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[rc(e,r),":list="].join("")]:[...t,[rc(e,r),":list=",rc(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{let e=r.arrayFormat==="bracket-separator"?"[]=":"=";return t=>(n,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?n:(a=a===null?"":a,n.length===0?[[rc(t,r),e,rc(a,r)].join("")]:[[n,rc(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,rc(e,r)]:[...t,[rc(e,r),"=",rc(n,r)].join("")]}}function TWn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"colon-list-separator":return(t,n,a)=>{if(e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&r2(n,r).includes(r.arrayFormatSeparator);n=s?r2(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>r2(c,r)):n===null?n:r2(n,r);a[t]=o};case"bracket-separator":return(t,n,a)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){a[t]=n&&r2(n,r);return}let s=n===null?[]:n.split(r.arrayFormatSeparator).map(o=>r2(o,r));if(a[t]===void 0){a[t]=s;return}a[t]=[].concat(a[t],s)};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function pjt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function rc(r,e){return e.encode?e.strict?gWn(r):encodeURIComponent(r):r}function r2(r,e){return e.decode?vWn(r):r}function hjt(r){return Array.isArray(r)?r.sort():typeof r=="object"?hjt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function mjt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function EWn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function yjt(r){r=mjt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function fjt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function bjt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),pjt(e.arrayFormatSeparator);let t=TWn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=djt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:r2(s,e),t(r2(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=fjt(i[s],e);else n[a]=fjt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=hjt(s):a[i]=s,a},Object.create(null))}If.extract=yjt;If.parse=bjt;If.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),pjt(e.arrayFormatSeparator);let t=s=>e.skipNull&&xWn(r[s])||e.skipEmptyString&&r[s]==="",n=_Wn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?rc(s,e):Array.isArray(o)?o.length===0&&e.arrayFormat==="bracket-separator"?rc(s,e)+"[]":o.reduce(n(s),[]).join("&"):rc(s,e)+"="+rc(o,e)}).filter(s=>s.length>0).join("&")};If.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=djt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:bjt(yjt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:r2(n,e)}:{})};If.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0,[AGe]:!0},e);let t=mjt(r.url).split("?")[0]||"",n=If.extract(r.url),a=If.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=If.stringify(i,e);s&&(s=`?${s}`);let o=EWn(r.url);return r.fragmentIdentifier&&(o=`#${e[AGe]?rc(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${t}${s}${o}`};If.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0,[AGe]:!1},t);let{url:n,query:a,fragmentIdentifier:i}=If.parseUrl(r,t);return If.stringifyUrl({url:n,query:wWn(a,e),fragmentIdentifier:i},t)};If.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return If.pick(r,n,t)}});var vjt=de(()=>{f();d()});function q6(r,e,t="string"){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function IWn(r,e){let t=!0;return e.forEach(n=>{n in r||(t=!1)}),t}function CWn(r,e){return Array.isArray(r)?r.length===e:Object.keys(r).length===e}function AWn(r,e){return Array.isArray(r)?r.length>=e:Object.keys(r).length>=e}function zle(r,e,t){return(!t.length?CWn(r,e.length):AWn(r,e.length))?IWn(r,e):!1}function Kle(r,e,t="_"){let n=r.split(t);return n[n.length-1].trim().toLowerCase()===e.trim().toLowerCase()}var kGe=de(()=>{f();d()});function kWn(r){return zxe(r.method)&&Kxe(r.params)}function zxe(r){return Kle(r,"subscribe")}function Kxe(r){return zle(r,["topic"],[])}function SWn(r){return Gxe(r.method)&&Vxe(r.params)}function Gxe(r){return Kle(r,"publish")}function Vxe(r){return zle(r,["message","topic","ttl"],["prompt","tag"])}function PWn(r){return $xe(r.method)&&Yxe(r.params)}function $xe(r){return Kle(r,"unsubscribe")}function Yxe(r){return zle(r,["id","topic"],[])}function RWn(r){return Qxe(r.method)&&Jxe(r.params)}function Qxe(r){return Kle(r,"subscription")}function Jxe(r){return zle(r,["id","data"],[])}var SGe=de(()=>{f();d();kGe()});function MWn(r){if(!zxe(r.method))throw new Error("JSON-RPC Request has invalid subscribe method");if(!Kxe(r.params))throw new Error("JSON-RPC Request has invalid subscribe params");let e=r.params;return q6(e,"topic"),e}function BWn(r){if(!Gxe(r.method))throw new Error("JSON-RPC Request has invalid publish method");if(!Vxe(r.params))throw new Error("JSON-RPC Request has invalid publish params");let e=r.params;return q6(e,"topic"),q6(e,"message"),q6(e,"ttl","number"),e}function DWn(r){if(!$xe(r.method))throw new Error("JSON-RPC Request has invalid unsubscribe method");if(!Yxe(r.params))throw new Error("JSON-RPC Request has invalid unsubscribe params");let e=r.params;return q6(e,"id"),e}function NWn(r){if(!Qxe(r.method))throw new Error("JSON-RPC Request has invalid subscription method");if(!Jxe(r.params))throw new Error("JSON-RPC Request has invalid subscription params");let e=r.params;return q6(e,"id"),q6(e,"data"),e}var wjt=de(()=>{f();d();kGe();SGe()});var OWn,xjt=de(()=>{f();d();OWn={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}});var _jt={};Rr(_jt,{RELAY_JSONRPC:()=>OWn,isPublishMethod:()=>Gxe,isPublishParams:()=>Vxe,isPublishRequest:()=>SWn,isSubscribeMethod:()=>zxe,isSubscribeParams:()=>Kxe,isSubscribeRequest:()=>kWn,isSubscriptionMethod:()=>Qxe,isSubscriptionParams:()=>Jxe,isSubscriptionRequest:()=>RWn,isUnsubscribeMethod:()=>$xe,isUnsubscribeParams:()=>Yxe,isUnsubscribeRequest:()=>PWn,parsePublishRequest:()=>BWn,parseSubscribeRequest:()=>MWn,parseSubscriptionRequest:()=>NWn,parseUnsubscribeRequest:()=>DWn});var Tjt=de(()=>{f();d();vjt();wjt();xjt();SGe()});var Yle=E(Ae=>{"use strict";f();d();Object.defineProperty(Ae,"__esModule",{value:!0});var Rjt=kHt(),FWn=DHt(),Mjt=Wle(),MGe=jHt(),LWn=VHt(),zs=(XHt(),Ht(ZHt)),qWn=wze(),ire=P8(),Gle=G4e(),WWn=Pze(),UWn=gjt(),HWn=(Tjt(),Ht(_jt));function Bjt(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Djt=Bjt(LWn),Zxe=Bjt(UWn),t_e=":";function Njt(r){let[e,t]=r.split(t_e);return{namespace:e,reference:t}}function Ojt(r){let{namespace:e,reference:t}=r;return[e,t].join(t_e)}function BGe(r){let[e,t,n]=r.split(t_e);return{namespace:e,reference:t,address:n}}function Fjt(r){let{namespace:e,reference:t,address:n}=r;return[e,t,n].join(t_e)}function DGe(r,e){let t=[];return r.forEach(n=>{let a=e(n);t.includes(a)||t.push(a)}),t}function Ljt(r){let{address:e}=BGe(r);return e}function qjt(r){let{namespace:e,reference:t}=BGe(r);return Ojt({namespace:e,reference:t})}function jWn(r,e){let{namespace:t,reference:n}=Njt(e);return Fjt({namespace:t,reference:n,address:r})}function zWn(r){return DGe(r,Ljt)}function Wjt(r){return DGe(r,qjt)}function KWn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...a.accounts)}),t}function GWn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...Wjt(a.accounts))}),t}function VWn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...r_e(n,a))}),t}function r_e(r,e){return r.includes(":")?[r]:e.chains||[]}var n_e=r=>r?.split(":"),Ujt=r=>{let e=r&&n_e(r);if(e)return e[3]},$Wn=r=>{let e=r&&n_e(r);if(e)return e[2]+":"+e[3]},Hjt=r=>{let e=r&&n_e(r);if(e)return e.pop()},YWn=(r,e)=>{let t=`${r.domain} wants you to sign in with your Ethereum account:`,n=Hjt(e),a=r.statement,i=`URI: ${r.aud}`,s=`Version: ${r.version}`,o=`Chain ID: ${Ujt(e)}`,c=`Nonce: ${r.nonce}`,u=`Issued At: ${r.iat}`,l=r.resources&&r.resources.length>0?`Resources: +${r.resources.map(p=>`- ${p}`).join(` +`)}`:void 0;return[t,n,"",a,"",i,s,o,c,u,l].filter(p=>p!=null).join(` +`)},NGe="base10",Rl="base16",Xxe="base64pad",a_e="utf8",OGe=0,sre=1,QWn=0,Ejt=1,PGe=12,FGe=32;function JWn(){let r=Djt.generateKeyPair();return{privateKey:zs.toString(r.secretKey,Rl),publicKey:zs.toString(r.publicKey,Rl)}}function ZWn(){let r=Mjt.randomBytes(FGe);return zs.toString(r,Rl)}function XWn(r,e){let t=Djt.sharedKey(zs.fromString(r,Rl),zs.fromString(e,Rl)),n=new FWn.HKDF(MGe.SHA256,t).expand(FGe);return zs.toString(n,Rl)}function eUn(r){let e=MGe.hash(zs.fromString(r,Rl));return zs.toString(e,Rl)}function tUn(r){let e=MGe.hash(zs.fromString(r,a_e));return zs.toString(e,Rl)}function jjt(r){return zs.fromString(`${r}`,NGe)}function Vle(r){return Number(zs.toString(r,NGe))}function rUn(r){let e=jjt(typeof r.type<"u"?r.type:OGe);if(Vle(e)===sre&&typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let t=typeof r.senderPublicKey<"u"?zs.fromString(r.senderPublicKey,Rl):void 0,n=typeof r.iv<"u"?zs.fromString(r.iv,Rl):Mjt.randomBytes(PGe),a=new Rjt.ChaCha20Poly1305(zs.fromString(r.symKey,Rl)).seal(n,zs.fromString(r.message,a_e));return zjt({type:e,sealed:a,iv:n,senderPublicKey:t})}function nUn(r){let e=new Rjt.ChaCha20Poly1305(zs.fromString(r.symKey,Rl)),{sealed:t,iv:n}=LGe(r.encoded),a=e.open(n,t);if(a===null)throw new Error("Failed to decrypt");return zs.toString(a,a_e)}function zjt(r){if(Vle(r.type)===sre){if(typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return zs.toString(zs.concat([r.type,r.senderPublicKey,r.iv,r.sealed]),Xxe)}return zs.toString(zs.concat([r.type,r.iv,r.sealed]),Xxe)}function LGe(r){let e=zs.fromString(r,Xxe),t=e.slice(QWn,Ejt),n=Ejt;if(Vle(t)===sre){let o=n+FGe,c=o+PGe,u=e.slice(n,o),l=e.slice(o,c),p=e.slice(c);return{type:t,sealed:p,iv:l,senderPublicKey:u}}let a=n+PGe,i=e.slice(n,a),s=e.slice(a);return{type:t,sealed:s,iv:i}}function aUn(r,e){let t=LGe(r);return Kjt({type:Vle(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?zs.toString(t.senderPublicKey,Rl):void 0,receiverPublicKey:e?.receiverPublicKey})}function Kjt(r){let e=r?.type||OGe;if(e===sre){if(typeof r?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof r?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:r?.senderPublicKey,receiverPublicKey:r?.receiverPublicKey}}function iUn(r){return r.type===sre&&typeof r.senderPublicKey=="string"&&typeof r.receiverPublicKey=="string"}var sUn=Object.defineProperty,Ijt=Object.getOwnPropertySymbols,oUn=Object.prototype.hasOwnProperty,cUn=Object.prototype.propertyIsEnumerable,Cjt=(r,e,t)=>e in r?sUn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Ajt=(r,e)=>{for(var t in e||(e={}))oUn.call(e,t)&&Cjt(r,t,e[t]);if(Ijt)for(var t of Ijt(e))cUn.call(e,t)&&Cjt(r,t,e[t]);return r},Gjt="ReactNative",are={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},e_e=" ",uUn=":",Vjt="/",qGe=2,lUn=1e3,$jt="js";function WGe(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}function Yjt(){return!Gle.getDocument()&&!!Gle.getNavigator()&&navigator.product===Gjt}function Qjt(){return!WGe()&&!!Gle.getNavigator()}function UGe(){return Yjt()?are.reactNative:WGe()?are.node:Qjt()?are.browser:are.unknown}function Jjt(r,e){let t=Zxe.parse(r);return t=Ajt(Ajt({},t),e),r=Zxe.stringify(t),r}function fUn(){return WWn.getWindowMetadata()||{name:"",description:"",url:"",icons:[""]}}function dUn(r,e){var t;let n=UGe(),a={protocol:r,version:e,env:n};return n==="browser"&&(a.host=((t=Gle.getLocation())==null?void 0:t.host)||"unknown"),a}function Zjt(){let r=qWn.detect();if(r===null)return"unknown";let e=r.os?r.os.replace(" ","").toLowerCase():"unknown";return r.type==="browser"?[e,r.name,r.version].join("-"):[e,r.version].join("-")}function Xjt(){var r;let e=UGe();return e===are.browser?[e,((r=Gle.getLocation())==null?void 0:r.host)||"unknown"].join(":"):e}function ezt(r,e,t){let n=Zjt(),a=Xjt();return[[r,e].join("-"),[$jt,t].join("-"),n,a].join("/")}function pUn({protocol:r,version:e,relayUrl:t,sdkVersion:n,auth:a,projectId:i,useOnCloseEvent:s}){let o=t.split("?"),c=ezt(r,e,n),u={auth:a,ua:c,projectId:i,useOnCloseEvent:s||void 0},l=Jjt(o[1]||"",u);return o[0]+"?"+l}function hUn(r){let e=(r.match(/^[^:]+(?=:\/\/)/gi)||[])[0],t=typeof e<"u"?r.split("://")[1]:r;return e=e==="wss"?"https":"http",[e,t].join("://")}function mUn(r,e,t){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function tzt(r,e=qGe){return rzt(r.split(Vjt),e)}function yUn(r){return tzt(r).join(e_e)}function W6(r,e){return r.filter(t=>e.includes(t)).length===r.length}function rzt(r,e=qGe){return r.slice(Math.max(r.length-e,0))}function bUn(r){return Object.fromEntries(r.entries())}function gUn(r){return new Map(Object.entries(r))}function vUn(r,e){let t={};return Object.keys(r).forEach(n=>{t[n]=e(r[n])}),t}var wUn=r=>r;function nzt(r){return r.trim().replace(/^\w/,e=>e.toUpperCase())}function xUn(r){return r.split(e_e).map(e=>nzt(e)).join(e_e)}function _Un(r=ire.FIVE_MINUTES,e){let t=ire.toMiliseconds(r||ire.FIVE_MINUTES),n,a,i;return{resolve:s=>{i&&n&&(clearTimeout(i),n(s))},reject:s=>{i&&a&&(clearTimeout(i),a(s))},done:()=>new Promise((s,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=s,a=o})}}function TUn(r,e){return new Promise(async(t,n)=>{let a=setTimeout(()=>n(),e),i=await r;clearTimeout(a),t(i)})}function HGe(r,e){if(typeof e=="string"&&e.startsWith(`${r}:`))return e;if(r.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(r.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${r}`)}function EUn(r){return HGe("topic",r)}function IUn(r){return HGe("id",r)}function CUn(r){let[e,t]=r.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function AUn(r,e){return ire.fromMiliseconds((e||Date.now())+ire.toMiliseconds(r))}function kUn(r){return Date.now()>=ire.toMiliseconds(r)}function SUn(r,e){return`${r}${e?`:${e}`:""}`}var azt="irn";function PUn(r){return r?.relay||{protocol:azt}}function RUn(r){let e=HWn.RELAY_JSONRPC[r];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${r}`);return e}var MUn=Object.defineProperty,kjt=Object.getOwnPropertySymbols,BUn=Object.prototype.hasOwnProperty,DUn=Object.prototype.propertyIsEnumerable,Sjt=(r,e,t)=>e in r?MUn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,NUn=(r,e)=>{for(var t in e||(e={}))BUn.call(e,t)&&Sjt(r,t,e[t]);if(kjt)for(var t of kjt(e))DUn.call(e,t)&&Sjt(r,t,e[t]);return r};function izt(r,e="-"){let t={},n="relay"+e;return Object.keys(r).forEach(a=>{if(a.startsWith(n)){let i=a.replace(n,""),s=r[a];t[i]=s}}),t}function OUn(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t).split("@"),i=typeof t<"u"?r.substring(t):"",s=Zxe.parse(i);return{protocol:n,topic:a[0],version:parseInt(a[1],10),symKey:s.symKey,relay:izt(s)}}function szt(r,e="-"){let t="relay",n={};return Object.keys(r).forEach(a=>{let i=t+e+a;r[a]&&(n[i]=r[a])}),n}function FUn(r){return`${r.protocol}:${r.topic}@${r.version}?`+Zxe.stringify(NUn({symKey:r.symKey},szt(r.relay)))}function M8(r){let e=[];return r.forEach(t=>{let[n,a]=t.split(":");e.push(`${n}:${a}`)}),e}function ozt(r){let e=[];return Object.values(r).forEach(t=>{e.push(...M8(t.accounts))}),e}function czt(r,e){let t=[];return Object.values(r).forEach(n=>{M8(n.accounts).includes(e)&&t.push(...n.methods)}),t}function uzt(r,e){let t=[];return Object.values(r).forEach(n=>{M8(n.accounts).includes(e)&&t.push(...n.events)}),t}function LUn(r,e){let t=yzt(r,e);if(t)throw new Error(t.message);let n={};for(let[a,i]of Object.entries(r))n[a]={methods:i.methods,events:i.events,chains:i.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var qUn={INVALID_METHOD:{message:"Invalid method.",code:1001},INVALID_EVENT:{message:"Invalid event.",code:1002},INVALID_UPDATE_REQUEST:{message:"Invalid update request.",code:1003},INVALID_EXTEND_REQUEST:{message:"Invalid extend request.",code:1004},INVALID_SESSION_SETTLE_REQUEST:{message:"Invalid session settle request.",code:1005},UNAUTHORIZED_METHOD:{message:"Unauthorized method.",code:3001},UNAUTHORIZED_EVENT:{message:"Unauthorized event.",code:3002},UNAUTHORIZED_UPDATE_REQUEST:{message:"Unauthorized update request.",code:3003},UNAUTHORIZED_EXTEND_REQUEST:{message:"Unauthorized extend request.",code:3004},USER_REJECTED:{message:"User rejected.",code:5e3},USER_REJECTED_CHAINS:{message:"User rejected chains.",code:5001},USER_REJECTED_METHODS:{message:"User rejected methods.",code:5002},USER_REJECTED_EVENTS:{message:"User rejected events.",code:5003},UNSUPPORTED_CHAINS:{message:"Unsupported chains.",code:5100},UNSUPPORTED_METHODS:{message:"Unsupported methods.",code:5101},UNSUPPORTED_EVENTS:{message:"Unsupported events.",code:5102},UNSUPPORTED_ACCOUNTS:{message:"Unsupported accounts.",code:5103},UNSUPPORTED_NAMESPACE_KEY:{message:"Unsupported namespace key.",code:5104},USER_DISCONNECTED:{message:"User disconnected.",code:6e3},SESSION_SETTLEMENT_FAILED:{message:"Session settlement failed.",code:7e3},WC_METHOD_UNSUPPORTED:{message:"Unsupported wc_ method.",code:10001}},WUn={NOT_INITIALIZED:{message:"Not initialized.",code:1},NO_MATCHING_KEY:{message:"No matching key.",code:2},RESTORE_WILL_OVERRIDE:{message:"Restore will override.",code:3},RESUBSCRIBED:{message:"Resubscribed.",code:4},MISSING_OR_INVALID:{message:"Missing or invalid.",code:5},EXPIRED:{message:"Expired.",code:6},UNKNOWN_TYPE:{message:"Unknown type.",code:7},MISMATCHED_TOPIC:{message:"Mismatched topic.",code:8},NON_CONFORMING_NAMESPACES:{message:"Non conforming namespaces.",code:9}};function n2(r,e){let{message:t,code:n}=WUn[r];return{message:e?`${t} ${e}`:t,code:n}}function R8(r,e){let{message:t,code:n}=qUn[r];return{message:e?`${t} ${e}`:t,code:n}}function $le(r,e){return Array.isArray(r)?typeof e<"u"&&r.length?r.every(e):!0:!1}function jGe(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.keys(r).length}function U6(r){return typeof r>"u"}function Id(r,e){return e&&U6(r)?!0:typeof r=="string"&&Boolean(r.trim().length)}function i_e(r,e){return e&&U6(r)?!0:typeof r=="number"&&!isNaN(r)}function UUn(r,e){let{requiredNamespaces:t}=e,n=Object.keys(r.namespaces),a=Object.keys(t),i=!0;return W6(a,n)?(n.forEach(s=>{let{accounts:o,methods:c,events:u}=r.namespaces[s],l=M8(o),p=t[s];(!W6(r_e(s,p),l)||!W6(p.methods,c)||!W6(p.events,u))&&(i=!1)}),i):!1}function s_e(r){return Id(r,!1)&&r.includes(":")?r.split(":").length===2:!1}function lzt(r){if(Id(r,!1)&&r.includes(":")){let e=r.split(":");if(e.length===3){let t=e[0]+":"+e[1];return!!e[2]&&s_e(t)}}return!1}function HUn(r){if(Id(r,!1))try{return typeof new URL(r)<"u"}catch{return!1}return!1}function jUn(r){var e;return(e=r?.proposer)==null?void 0:e.publicKey}function zUn(r){return r?.topic}function KUn(r,e){let t=null;return Id(r?.publicKey,!1)||(t=n2("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function RGe(r){let e=!0;return $le(r)?r.length&&(e=r.every(t=>Id(t,!1))):e=!1,e}function fzt(r,e,t){let n=null;return $le(e)?e.forEach(a=>{n||(!s_e(a)||!a.includes(r))&&(n=R8("UNSUPPORTED_CHAINS",`${t}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):n=R8("UNSUPPORTED_CHAINS",`${t}, chains ${e} should be an array of strings conforming to "namespace:chainId" format`),n}function dzt(r,e){let t=null;return Object.entries(r).forEach(([n,a])=>{if(t)return;let i=fzt(n,r_e(n,a),`${e} requiredNamespace`);i&&(t=i)}),t}function pzt(r,e){let t=null;return $le(r)?r.forEach(n=>{t||lzt(n)||(t=R8("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=R8("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function hzt(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=pzt(n?.accounts,`${e} namespace`);a&&(t=a)}),t}function mzt(r,e){let t=null;return RGe(r?.methods)?RGe(r?.events)||(t=R8("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=R8("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function zGe(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=mzt(n,`${e}, namespace`);a&&(t=a)}),t}function GUn(r,e,t){let n=null;if(r&&jGe(r)){let a=zGe(r,e);a&&(n=a);let i=dzt(r,e);i&&(n=i)}else n=n2("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function yzt(r,e){let t=null;if(r&&jGe(r)){let n=zGe(r,e);n&&(t=n);let a=hzt(r,e);a&&(t=a)}else t=n2("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function bzt(r){return Id(r.protocol,!0)}function VUn(r,e){let t=!1;return e&&!r?t=!0:r&&$le(r)&&r.length&&r.forEach(n=>{t=bzt(n)}),t}function $Un(r){return typeof r=="number"}function YUn(r){return typeof r<"u"&&typeof r!==null}function QUn(r){return!(!r||typeof r!="object"||!r.code||!i_e(r.code,!1)||!r.message||!Id(r.message,!1))}function JUn(r){return!(U6(r)||!Id(r.method,!1))}function ZUn(r){return!(U6(r)||U6(r.result)&&U6(r.error)||!i_e(r.id,!1)||!Id(r.jsonrpc,!1))}function XUn(r){return!(U6(r)||!Id(r.name,!1))}function eHn(r,e){return!(!s_e(e)||!ozt(r).includes(e))}function tHn(r,e,t){return Id(t,!1)?czt(r,e).includes(t):!1}function rHn(r,e,t){return Id(t,!1)?uzt(r,e).includes(t):!1}function nHn(r,e,t){let n=null,a=aHn(r),i=iHn(e),s=Object.keys(a),o=Object.keys(i),c=Pjt(Object.keys(r)),u=Pjt(Object.keys(e)),l=c.filter(p=>!u.includes(p));return l.length&&(n=n2("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. Required: ${l.toString()} - Received: ${Object.keys(e).toString()}`)),R1(s,o)||(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. + Received: ${Object.keys(e).toString()}`)),W6(s,o)||(n=n2("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. Required: ${s.toString()} - Approved: ${o.toString()}`)),Object.keys(e).forEach(h=>{if(!h.includes(":")||n)return;let f=Zw(e[h].accounts);f.includes(h)||(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${h} - Required: ${h} - Approved: ${f.toString()}`))}),s.forEach(h=>{n||(R1(a[h].methods,i[h].methods)?R1(a[h].events,i[h].events)||(n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${h}`)):n=fy("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${h}`))}),n}function Xyn(r){let e={};return Object.keys(r).forEach(t=>{var n;t.includes(":")?e[t]=r[t]:(n=r[t].chains)==null||n.forEach(a=>{e[a]={methods:r[t].methods,events:r[t].events}})}),e}function $Ct(r){return[...new Set(r.map(e=>e.includes(":")?e.split(":")[0]:e))]}function egn(r){let e={};return Object.keys(r).forEach(t=>{t.includes(":")?e[t]=r[t]:Zw(r[t].accounts)?.forEach(a=>{e[a]={accounts:r[t].accounts.filter(i=>i.includes(`${a}:`)),methods:r[t].methods,events:r[t].events}})}),e}function tgn(r,e){return X1e(r,!1)&&r<=e.max&&r>=e.min}we.BASE10=WNe,we.BASE16=el,we.BASE64=V1e,we.COLON=ayn,we.DEFAULT_DEPTH=zNe,we.EMPTY_SPACE=Y1e,we.ENV_MAP=iQ,we.ONE_THOUSAND=iyn,we.REACT_NATIVE_PRODUCT=d8t,we.RELAYER_DEFAULT_PROTOCOL=T8t,we.SDK_TYPE=h8t,we.SLASH=p8t,we.TYPE_0=UNe,we.TYPE_1=oQ,we.UTF8=Z1e,we.appendToQueryString=y8t,we.assertType=lyn,we.calcExpiry=_yn,we.capitalize=yyn,we.capitalizeWord=_8t,we.createDelayedPromise=gyn,we.createExpiringPromise=byn,we.decodeTypeByte=gae,we.decrypt=Z0n,we.deriveSymKey=Y0n,we.deserialize=jNe,we.encodeTypeByte=c8t,we.encrypt=J0n,we.engineEvent=Iyn,we.enumify=myn,we.formatAccountId=r8t,we.formatAccountWithChain=q0n,we.formatChainId=t8t,we.formatExpirerTarget=VNe,we.formatIdTarget=wyn,we.formatMessage=z0n,we.formatMessageContext=dyn,we.formatRelayParams=E8t,we.formatRelayRpcUrl=cyn,we.formatTopicTarget=vyn,we.formatUA=v8t,we.formatUri=Myn,we.generateKeyPair=G0n,we.generateRandomBytes32=V0n,we.getAccountsChains=Zw,we.getAccountsFromNamespaces=W0n,we.getAddressFromAccount=n8t,we.getAddressesFromAccounts=F0n,we.getAppMetadata=syn,we.getChainFromAccount=a8t,we.getChainsFromAccounts=i8t,we.getChainsFromNamespace=Q1e,we.getChainsFromNamespaces=U0n,we.getChainsFromRequiredNamespaces=H0n,we.getDidAddress=o8t,we.getDidAddressSegments=J1e,we.getDidChainId=s8t,we.getEnvironment=GNe,we.getHttpUrl=uyn,we.getInternalError=fy,we.getJavascriptID=b8t,we.getJavascriptOS=g8t,we.getLastItems=x8t,we.getNamespacedDidChainId=j0n,we.getNamespacesChains=C8t,we.getNamespacesEventsForChainId=A8t,we.getNamespacesMethodsForChainId=k8t,we.getRelayClientMetadata=oyn,we.getRelayProtocolApi=Cyn,we.getRelayProtocolName=Eyn,we.getRequiredNamespacesFromNamespaces=Nyn,we.getSdkError=Jw,we.getUniqueValues=FNe,we.hasOverlap=R1,we.hashKey=$0n,we.hashMessage=Q0n,we.isBrowser=m8t,we.isConformingNamespaces=Zyn,we.isExpired=Tyn,we.isNode=KNe,we.isProposalStruct=qyn,we.isReactNative=f8t,we.isSessionCompatible=Lyn,we.isSessionStruct=Fyn,we.isTypeOneEnvelope=eyn,we.isUndefined=M1,we.isValidAccountId=P8t,we.isValidAccounts=M8t,we.isValidActions=B8t,we.isValidArray=bae,we.isValidChainId=ebe,we.isValidChains=S8t,we.isValidController=Wyn,we.isValidErrorReason=Kyn,we.isValidEvent=Yyn,we.isValidId=jyn,we.isValidNamespaceAccounts=N8t,we.isValidNamespaceActions=$Ne,we.isValidNamespaceChains=R8t,we.isValidNamespaceMethodsOrEvents=LNe,we.isValidNamespaces=D8t,we.isValidNamespacesChainId=$yn,we.isValidNamespacesEvent=Jyn,we.isValidNamespacesRequest=Qyn,we.isValidNumber=X1e,we.isValidObject=YNe,we.isValidParams=zyn,we.isValidRelay=L8t,we.isValidRelays=Hyn,we.isValidRequest=Gyn,we.isValidRequestExpiry=tgn,we.isValidRequiredNamespaces=Uyn,we.isValidResponse=Vyn,we.isValidString=Td,we.isValidUrl=Oyn,we.mapEntries=fyn,we.mapToObj=pyn,we.objToMap=hyn,we.parseAccountId=qNe,we.parseChainId=e8t,we.parseContextNames=w8t,we.parseExpirerTarget=xyn,we.parseRelayParams=I8t,we.parseUri=Ryn,we.serialize=u8t,we.validateDecoding=X0n,we.validateEncoding=l8t});var q8t=_((O_a,O8t)=>{"use strict";d();p();function rgn(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}O8t.exports=ngn;function ngn(r,e,t){var n=t&&t.stringify||rgn,a=1;if(typeof r=="object"&&r!==null){var i=e.length+a;if(i===1)return r;var s=new Array(i);s[0]=n(r);for(var o=1;o-1?h:0,r.charCodeAt(m+1)){case 100:case 102:if(l>=c||e[l]==null)break;h=c||e[l]==null)break;h=c||e[l]===void 0)break;h",h=m+2,m++;break}u+=n(e[l]),h=m+2,m++;break;case 115:if(l>=c)break;h{"use strict";d();p();var F8t=q8t();H8t.exports=Bm;var wae=hgn().console||{},agn={mapHttpRequest:tbe,mapHttpResponse:tbe,wrapRequestSerializer:QNe,wrapResponseSerializer:QNe,wrapErrorSerializer:QNe,req:tbe,res:tbe,err:ugn};function ign(r,e){return Array.isArray(r)?r.filter(function(n){return n!=="!stdSerializers.err"}):r===!0?Object.keys(e):!1}function Bm(r){r=r||{},r.browser=r.browser||{};let e=r.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let t=r.browser.write||wae;r.browser.write&&(r.browser.asObject=!0);let n=r.serializers||{},a=ign(r.browser.serialize,n),i=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=["error","fatal","warn","info","debug","trace"];typeof t=="function"&&(t.error=t.fatal=t.warn=t.info=t.debug=t.trace=t),r.enabled===!1&&(r.level="silent");let o=r.level||"info",c=Object.create(t);c.log||(c.log=xae),Object.defineProperty(c,"levelVal",{get:l}),Object.defineProperty(c,"level",{get:h,set:f});let u={transmit:e,serialize:a,asObject:r.browser.asObject,levels:s,timestamp:lgn(r)};c.levels=Bm.levels,c.level=o,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=xae,c.serializers=n,c._serialize=a,c._stdErrSerialize=i,c.child=m,e&&(c._logEvent=JNe());function l(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function f(y){if(y!=="silent"&&!this.levels.values[y])throw Error("unknown level "+y);this._level=y,cQ(u,c,"error","log"),cQ(u,c,"fatal","error"),cQ(u,c,"warn","error"),cQ(u,c,"info","log"),cQ(u,c,"debug","log"),cQ(u,c,"trace","log")}function m(y,I){if(!y)throw new Error("missing bindings for child Pino");I=I||{},a&&y.serializers&&(I.serializers=y.serializers);let C=I.serializers;if(a&&C){var R=Object.assign({},n,C),L=r.browser.serialize===!0?Object.keys(R):a;delete y.serializers,rbe([y],L,R,this._stdErrSerialize)}function F(W){this._childLevel=(W._childLevel|0)+1,this.error=uQ(W,y,"error"),this.fatal=uQ(W,y,"fatal"),this.warn=uQ(W,y,"warn"),this.info=uQ(W,y,"info"),this.debug=uQ(W,y,"debug"),this.trace=uQ(W,y,"trace"),R&&(this.serializers=R,this._serialize=L),e&&(this._logEvent=JNe([].concat(W._logEvent.bindings,y)))}return F.prototype=this,new F(this)}return c}Bm.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"}};Bm.stdSerializers=agn;Bm.stdTimeFunctions=Object.assign({},{nullTime:W8t,epochTime:U8t,unixTime:dgn,isoTime:pgn});function cQ(r,e,t,n){let a=Object.getPrototypeOf(e);e[t]=e.levelVal>e.levels.values[t]?xae:a[t]?a[t]:wae[t]||wae[n]||xae,sgn(r,e,t)}function sgn(r,e,t){!r.transmit&&e[t]===xae||(e[t]=function(n){return function(){let i=r.timestamp(),s=new Array(arguments.length),o=Object.getPrototypeOf&&Object.getPrototypeOf(this)===wae?wae:this;for(var c=0;c-1&&i in t&&(r[a][i]=t[i](r[a][i]))}function uQ(r,e,t){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var a=1;a{"use strict";d();p();Object.defineProperty(nbe,"__esModule",{value:!0});function fgn(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}nbe.safeJsonParse=fgn;function mgn(r){return typeof r=="string"?r:JSON.stringify(r,(e,t)=>typeof t>"u"?null:t)}nbe.safeJsonStringify=mgn});var j8t=_((G_a,abe)=>{"use strict";d();p();(function(){"use strict";let r;function e(){}r=e,r.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},r.prototype.setItem=function(t,n){this[t]=String(n)},r.prototype.removeItem=function(t){delete this[t]},r.prototype.clear=function(){let t=this;Object.keys(t).forEach(function(n){t[n]=void 0,delete t[n]})},r.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},r.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof global<"u"&&global.localStorage?abe.exports=global.localStorage:typeof window<"u"&&window.localStorage?abe.exports=window.localStorage:abe.exports=new e})()});var z8t=_(ibe=>{"use strict";d();p();Object.defineProperty(ibe,"__esModule",{value:!0});ibe.IKeyValueStorage=void 0;var XNe=class{};ibe.IKeyValueStorage=XNe});var K8t=_(sbe=>{"use strict";d();p();Object.defineProperty(sbe,"__esModule",{value:!0});sbe.parseEntry=void 0;var ygn=ZNe();function ggn(r){var e;return[r[0],ygn.safeJsonParse((e=r[1])!==null&&e!==void 0?e:"")]}sbe.parseEntry=ggn});var V8t=_(obe=>{"use strict";d();p();Object.defineProperty(obe,"__esModule",{value:!0});var G8t=vd();G8t.__exportStar(z8t(),obe);G8t.__exportStar(K8t(),obe)});var $8t=_(Tae=>{"use strict";d();p();Object.defineProperty(Tae,"__esModule",{value:!0});Tae.KeyValueStorage=void 0;var lQ=vd(),Y8t=ZNe(),bgn=lQ.__importDefault(j8t()),vgn=V8t(),cbe=class{constructor(){this.localStorage=bgn.default}getKeys(){return lQ.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return lQ.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(vgn.parseEntry)})}getItem(e){return lQ.__awaiter(this,void 0,void 0,function*(){let t=this.localStorage.getItem(e);if(t!==null)return Y8t.safeJsonParse(t)})}setItem(e,t){return lQ.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(e,Y8t.safeJsonStringify(t))})}removeItem(e){return lQ.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}};Tae.KeyValueStorage=cbe;Tae.default=cbe});var eBe,Q8t=ce(()=>{d();p();eBe=class{}});var tBe={};cr(tBe,{IEvents:()=>eBe});var rBe=ce(()=>{d();p();Q8t()});var J8t=_(ube=>{"use strict";d();p();Object.defineProperty(ube,"__esModule",{value:!0});ube.IHeartBeat=void 0;var wgn=(rBe(),nt(tBe)),nBe=class extends wgn.IEvents{constructor(e){super()}};ube.IHeartBeat=nBe});var iBe=_(aBe=>{"use strict";d();p();Object.defineProperty(aBe,"__esModule",{value:!0});var xgn=vd();xgn.__exportStar(J8t(),aBe)});var Z8t=_(dQ=>{"use strict";d();p();Object.defineProperty(dQ,"__esModule",{value:!0});dQ.HEARTBEAT_EVENTS=dQ.HEARTBEAT_INTERVAL=void 0;var _gn=Qw();dQ.HEARTBEAT_INTERVAL=_gn.FIVE_SECONDS;dQ.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var oBe=_(sBe=>{"use strict";d();p();Object.defineProperty(sBe,"__esModule",{value:!0});var Tgn=vd();Tgn.__exportStar(Z8t(),sBe)});var X8t=_(lbe=>{"use strict";d();p();Object.defineProperty(lbe,"__esModule",{value:!0});lbe.HeartBeat=void 0;var cBe=vd(),Ign=Lu(),Egn=Qw(),Cgn=iBe(),uBe=oBe(),Iae=class extends Cgn.IHeartBeat{constructor(e){super(e),this.events=new Ign.EventEmitter,this.interval=uBe.HEARTBEAT_INTERVAL,this.interval=e?.interval||uBe.HEARTBEAT_INTERVAL}static init(e){return cBe.__awaiter(this,void 0,void 0,function*(){let t=new Iae(e);return yield t.init(),t})}init(){return cBe.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}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)}initialize(){return cBe.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),Egn.toMiliseconds(this.interval))})}pulse(){this.events.emit(uBe.HEARTBEAT_EVENTS.pulse)}};lbe.HeartBeat=Iae});var e4t=_(Eae=>{"use strict";d();p();Object.defineProperty(Eae,"__esModule",{value:!0});var lBe=vd();lBe.__exportStar(X8t(),Eae);lBe.__exportStar(iBe(),Eae);lBe.__exportStar(oBe(),Eae)});var dBe=_(pQ=>{"use strict";d();p();Object.defineProperty(pQ,"__esModule",{value:!0});pQ.PINO_CUSTOM_CONTEXT_KEY=pQ.PINO_LOGGER_DEFAULTS=void 0;pQ.PINO_LOGGER_DEFAULTS={level:"info"};pQ.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var i4t=_(Wl=>{"use strict";d();p();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.generateChildLogger=Wl.formatChildLoggerContext=Wl.getLoggerContext=Wl.setBrowserLoggerContext=Wl.getBrowserLoggerContext=Wl.getDefaultLoggerOptions=void 0;var hQ=dBe();function kgn(r){return Object.assign(Object.assign({},r),{level:r?.level||hQ.PINO_LOGGER_DEFAULTS.level})}Wl.getDefaultLoggerOptions=kgn;function t4t(r,e=hQ.PINO_CUSTOM_CONTEXT_KEY){return r[e]||""}Wl.getBrowserLoggerContext=t4t;function r4t(r,e,t=hQ.PINO_CUSTOM_CONTEXT_KEY){return r[t]=e,r}Wl.setBrowserLoggerContext=r4t;function n4t(r,e=hQ.PINO_CUSTOM_CONTEXT_KEY){let t="";return typeof r.bindings>"u"?t=t4t(r,e):t=r.bindings().context||"",t}Wl.getLoggerContext=n4t;function a4t(r,e,t=hQ.PINO_CUSTOM_CONTEXT_KEY){let n=n4t(r,t);return n.trim()?`${n}/${e}`:e}Wl.formatChildLoggerContext=a4t;function Agn(r,e,t=hQ.PINO_CUSTOM_CONTEXT_KEY){let n=a4t(r,e,t),a=r.child({context:n});return r4t(a,n,t)}Wl.generateChildLogger=Agn});var dbe=_(fQ=>{"use strict";d();p();Object.defineProperty(fQ,"__esModule",{value:!0});fQ.pino=void 0;var pBe=vd(),Pgn=pBe.__importDefault(_ae());Object.defineProperty(fQ,"pino",{enumerable:!0,get:function(){return Pgn.default}});pBe.__exportStar(dBe(),fQ);pBe.__exportStar(i4t(),fQ)});var PBe=_(ic=>{"use strict";d();p();Object.defineProperty(ic,"__esModule",{value:!0});var mQ=(rBe(),nt(tBe)),s4t=Lu();function Sgn(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var Rgn=Sgn(s4t),hBe=class extends mQ.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}},fBe=class{constructor(e,t,n){this.core=e,this.logger=t}},mBe=class extends mQ.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}},yBe=class{constructor(e,t){this.logger=e,this.core=t}},gBe=class extends mQ.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},bBe=class extends mQ.IEvents{constructor(e){super()}},vBe=class{constructor(e,t,n,a){this.core=e,this.logger=t,this.name=n}},wBe=class{constructor(){this.map=new Map}},xBe=class extends mQ.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},_Be=class{constructor(e,t){this.core=e,this.logger=t}},TBe=class extends mQ.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}},IBe=class{constructor(e,t){this.logger=e,this.core=t}},EBe=class extends Rgn.default{constructor(){super()}},CBe=class{constructor(e){this.opts=e,this.protocol="wc",this.version=2}},kBe=class extends s4t.EventEmitter{constructor(){super()}},ABe=class{constructor(e){this.client=e}};ic.ICore=hBe,ic.ICrypto=fBe,ic.IEngine=ABe,ic.IEngineEvents=kBe,ic.IExpirer=TBe,ic.IJsonRpcHistory=mBe,ic.IKeyChain=_Be,ic.IMessageTracker=yBe,ic.IPairing=IBe,ic.IPublisher=gBe,ic.IRelayer=bBe,ic.ISignClient=CBe,ic.ISignClientEvents=EBe,ic.IStore=vBe,ic.ISubscriber=xBe,ic.ISubscriberTopicMap=wBe});var u4t=_(my=>{"use strict";d();p();Object.defineProperty(my,"__esModule",{value:!0});var gQ=eQ(),yQ=Wp();my.DIGEST_LENGTH=64;my.BLOCK_SIZE=128;var c4t=function(){function r(){this.digestLength=my.DIGEST_LENGTH,this.blockSize=my.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){yQ.wipe(this._buffer),yQ.wipe(this._tempHi),yQ.wipe(this._tempLo),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(SBe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=SBe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%128<112?128:256;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){yQ.wipe(e.stateHi),yQ.wipe(e.stateLo),e.buffer&&yQ.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();my.SHA512=c4t;var o4t=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function SBe(r,e,t,n,a,i,s){for(var o=t[0],c=t[1],u=t[2],l=t[3],h=t[4],f=t[5],m=t[6],y=t[7],I=n[0],C=n[1],R=n[2],L=n[3],F=n[4],W=n[5],V=n[6],K=n[7],H,G,Q,q,T,M,A,v;s>=128;){for(var k=0;k<16;k++){var O=8*k+i;r[k]=gQ.readUint32BE(a,O),e[k]=gQ.readUint32BE(a,O+4)}for(var k=0;k<80;k++){var D=o,B=c,x=u,N=l,U=h,E=f,z=m,ee=y,j=I,X=C,ie=R,ue=L,he=F,ke=W,ge=V,me=K;if(H=y,G=K,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=(h>>>14|F<<32-14)^(h>>>18|F<<32-18)^(F>>>41-32|h<<32-(41-32)),G=(F>>>14|h<<32-14)^(F>>>18|h<<32-18)^(h>>>41-32|F<<32-(41-32)),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=h&f^~h&m,G=F&W^~F&V,T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=o4t[k*2],G=o4t[k*2+1],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=r[k%16],G=e[k%16],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,Q=A&65535|v<<16,q=T&65535|M<<16,H=Q,G=q,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=(o>>>28|I<<32-28)^(I>>>34-32|o<<32-(34-32))^(I>>>39-32|o<<32-(39-32)),G=(I>>>28|o<<32-28)^(o>>>34-32|I<<32-(34-32))^(o>>>39-32|I<<32-(39-32)),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,H=o&c^o&u^c&u,G=I&C^I&R^C&R,T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,ee=A&65535|v<<16,me=T&65535|M<<16,H=N,G=ue,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=Q,G=q,T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,N=A&65535|v<<16,ue=T&65535|M<<16,c=D,u=B,l=x,h=N,f=U,m=E,y=z,o=ee,C=j,R=X,L=ie,F=ue,W=he,V=ke,K=ge,I=me,k%16===15)for(var O=0;O<16;O++)H=r[O],G=e[O],T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=r[(O+9)%16],G=e[(O+9)%16],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,Q=r[(O+1)%16],q=e[(O+1)%16],H=(Q>>>1|q<<32-1)^(Q>>>8|q<<32-8)^Q>>>7,G=(q>>>1|Q<<32-1)^(q>>>8|Q<<32-8)^(q>>>7|Q<<32-7),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,Q=r[(O+14)%16],q=e[(O+14)%16],H=(Q>>>19|q<<32-19)^(q>>>61-32|Q<<32-(61-32))^Q>>>6,G=(q>>>19|Q<<32-19)^(Q>>>61-32|q<<32-(61-32))^(q>>>6|Q<<32-6),T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,r[O]=A&65535|v<<16,e[O]=T&65535|M<<16}H=o,G=I,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[0],G=n[0],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[0]=o=A&65535|v<<16,n[0]=I=T&65535|M<<16,H=c,G=C,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[1],G=n[1],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[1]=c=A&65535|v<<16,n[1]=C=T&65535|M<<16,H=u,G=R,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[2],G=n[2],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[2]=u=A&65535|v<<16,n[2]=R=T&65535|M<<16,H=l,G=L,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[3],G=n[3],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[3]=l=A&65535|v<<16,n[3]=L=T&65535|M<<16,H=h,G=F,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[4],G=n[4],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[4]=h=A&65535|v<<16,n[4]=F=T&65535|M<<16,H=f,G=W,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[5],G=n[5],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[5]=f=A&65535|v<<16,n[5]=W=T&65535|M<<16,H=m,G=V,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[6],G=n[6],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[6]=m=A&65535|v<<16,n[6]=V=T&65535|M<<16,H=y,G=K,T=G&65535,M=G>>>16,A=H&65535,v=H>>>16,H=t[7],G=n[7],T+=G&65535,M+=G>>>16,A+=H&65535,v+=H>>>16,M+=T>>>16,A+=M>>>16,v+=A>>>16,t[7]=y=A&65535|v<<16,n[7]=K=T&65535|M<<16,i+=128,s-=128}return i}function Mgn(r){var e=new c4t;e.update(r);var t=e.digest();return e.clean(),t}my.hash=Mgn});var T4t=_(Da=>{"use strict";d();p();Object.defineProperty(Da,"__esModule",{value:!0});Da.convertSecretKeyToX25519=Da.convertPublicKeyToX25519=Da.verify=Da.sign=Da.extractPublicKeyFromSecretKey=Da.generateKeyPair=Da.generateKeyPairFromSeed=Da.SEED_LENGTH=Da.SECRET_KEY_LENGTH=Da.PUBLIC_KEY_LENGTH=Da.SIGNATURE_LENGTH=void 0;var Ngn=lae(),Cae=u4t(),f4t=Wp();Da.SIGNATURE_LENGTH=64;Da.PUBLIC_KEY_LENGTH=32;Da.SECRET_KEY_LENGTH=64;Da.SEED_LENGTH=32;function mt(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,m4t(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function y4t(r,e){let t=0;for(let n=0;n<32;n++)t|=r[n]^e[n];return(1&t-1>>>8)-1}function p4t(r,e){let t=new Uint8Array(32),n=new Uint8Array(32);return kae(t,r),kae(n,e),y4t(t,n)}function g4t(r){let e=new Uint8Array(32);return kae(e,r),e[0]&1}function qgn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function Xw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function t5(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function ja(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,I=0,C=0,R=0,L=0,F=0,W=0,V=0,K=0,H=0,G=0,Q=0,q=0,T=0,M=0,A=0,v=0,k=0,O=0,D=0,B=0,x=0,N=t[0],U=t[1],E=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*E,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,I+=n*ke,C+=n*ge,R+=n*me,L+=n*Ke,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*E,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,I+=n*he,C+=n*ke,R+=n*ge,L+=n*me,F+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*E,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,I+=n*ue,C+=n*he,R+=n*ke,L+=n*ge,F+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*E,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,I+=n*ie,C+=n*ue,R+=n*he,L+=n*ke,F+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*E,f+=n*z,m+=n*ee,y+=n*j,I+=n*X,C+=n*ie,R+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*E,m+=n*z,y+=n*ee,I+=n*j,C+=n*X,R+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,Q+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*E,y+=n*z,I+=n*ee,C+=n*j,R+=n*X,L+=n*ie,F+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,Q+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*E,I+=n*z,C+=n*ee,R+=n*j,L+=n*X,F+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,Q+=n*Ke,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,I+=n*E,C+=n*z,R+=n*ee,L+=n*j,F+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,Q+=n*me,q+=n*Ke,T+=n*ve,M+=n*Ae,n=e[9],y+=n*N,I+=n*U,C+=n*E,R+=n*z,L+=n*ee,F+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,Q+=n*ge,q+=n*me,T+=n*Ke,M+=n*ve,A+=n*Ae,n=e[10],I+=n*N,C+=n*U,R+=n*E,L+=n*z,F+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,Q+=n*ke,q+=n*ge,T+=n*me,M+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],C+=n*N,R+=n*U,L+=n*E,F+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,Q+=n*he,q+=n*ke,T+=n*ge,M+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],R+=n*N,L+=n*U,F+=n*E,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,Q+=n*ue,q+=n*he,T+=n*ke,M+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*E,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,Q+=n*ie,q+=n*ue,T+=n*he,M+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,V+=n*E,K+=n*z,H+=n*ee,G+=n*j,Q+=n*X,q+=n*ie,T+=n*ue,M+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*E,H+=n*z,G+=n*ee,Q+=n*j,q+=n*X,T+=n*ie,M+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,x+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*Q,l+=38*q,h+=38*T,f+=38*M,m+=38*A,y+=38*v,I+=38*k,C+=38*O,R+=38*D,L+=38*B,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=R+a+65535,a=Math.floor(n/65536),R=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=I,r[11]=C,r[12]=R,r[13]=L,r[14]=F,r[15]=W}function e5(r,e){ja(r,e,e)}function b4t(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=253;n>=0;n--)e5(t,t),n!==2&&n!==4&&ja(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function Fgn(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=250;n>=0;n--)e5(t,t),n!==1&&ja(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function BBe(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt(),u=mt(),l=mt();t5(t,r[1],r[0]),t5(l,e[1],e[0]),ja(t,t,l),Xw(n,r[0],r[1]),Xw(l,e[0],e[1]),ja(n,n,l),ja(a,r[3],e[3]),ja(a,a,Lgn),ja(i,r[2],e[2]),Xw(i,i,i),t5(s,n,t),t5(o,i,a),Xw(c,i,a),Xw(u,n,t),ja(r[0],s,o),ja(r[1],u,c),ja(r[2],c,o),ja(r[3],s,u)}function h4t(r,e,t){for(let n=0;n<4;n++)m4t(r[n],e[n],t)}function LBe(r,e){let t=mt(),n=mt(),a=mt();b4t(a,e[2]),ja(t,e[0],a),ja(n,e[1],a),kae(r,n),r[31]^=g4t(t)<<7}function v4t(r,e,t){N1(r[0],NBe),N1(r[1],bQ),N1(r[2],bQ),N1(r[3],NBe);for(let n=255;n>=0;--n){let a=t[n/8|0]>>(n&7)&1;h4t(r,e,a),BBe(e,r),BBe(r,r),h4t(r,e,a)}}function OBe(r,e){let t=[mt(),mt(),mt(),mt()];N1(t[0],l4t),N1(t[1],d4t),N1(t[2],bQ),ja(t[3],l4t,d4t),v4t(r,t,e)}function w4t(r){if(r.length!==Da.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Da.SEED_LENGTH} bytes`);let e=(0,Cae.hash)(r);e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(32),n=[mt(),mt(),mt(),mt()];OBe(n,e),LBe(t,n);let a=new Uint8Array(64);return a.set(r),a.set(t,32),{publicKey:t,secretKey:a}}Da.generateKeyPairFromSeed=w4t;function Wgn(r){let e=(0,Ngn.randomBytes)(32,r),t=w4t(e);return(0,f4t.wipe)(e),t}Da.generateKeyPair=Wgn;function Ugn(r){if(r.length!==Da.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Da.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(r.subarray(32))}Da.extractPublicKeyFromSecretKey=Ugn;var MBe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function x4t(r,e){let t,n,a,i;for(n=63;n>=32;--n){for(t=0,a=n-32,i=n-12;a>4)*MBe[a],t=e[a]>>8,e[a]&=255;for(a=0;a<32;a++)e[a]-=t*MBe[a];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,r[n]=e[n]&255}function DBe(r){let e=new Float64Array(64);for(let t=0;t<64;t++)e[t]=r[t];for(let t=0;t<64;t++)r[t]=0;x4t(r,e)}function Hgn(r,e){let t=new Float64Array(64),n=[mt(),mt(),mt(),mt()],a=(0,Cae.hash)(r.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let i=new Uint8Array(64);i.set(a.subarray(32),32);let s=new Cae.SHA512;s.update(i.subarray(32)),s.update(e);let o=s.digest();s.clean(),DBe(o),OBe(n,o),LBe(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(r.subarray(32)),s.update(e);let c=s.digest();DBe(c);for(let u=0;u<32;u++)t[u]=o[u];for(let u=0;u<32;u++)for(let l=0;l<32;l++)t[u+l]+=c[u]*a[l];return x4t(i.subarray(32),t),i}Da.sign=Hgn;function _4t(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt();return N1(r[2],bQ),qgn(r[1],e),e5(a,r[1]),ja(i,a,Dgn),t5(a,a,r[2]),Xw(i,r[2],i),e5(s,i),e5(o,s),ja(c,o,s),ja(t,c,a),ja(t,t,i),Fgn(t,t),ja(t,t,a),ja(t,t,i),ja(t,t,i),ja(r[0],t,i),e5(n,r[0]),ja(n,n,i),p4t(n,a)&&ja(r[0],r[0],Ogn),e5(n,r[0]),ja(n,n,i),p4t(n,a)?-1:(g4t(r[0])===e[31]>>7&&t5(r[0],NBe,r[0]),ja(r[3],r[0],r[1]),0)}function jgn(r,e,t){let n=new Uint8Array(32),a=[mt(),mt(),mt(),mt()],i=[mt(),mt(),mt(),mt()];if(t.length!==Da.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Da.SIGNATURE_LENGTH} bytes`);if(_4t(i,r))return!1;let s=new Cae.SHA512;s.update(t.subarray(0,32)),s.update(r),s.update(e);let o=s.digest();return DBe(o),v4t(a,i,o),OBe(i,t.subarray(32)),BBe(a,i),LBe(n,a),!y4t(t,n)}Da.verify=jgn;function zgn(r){let e=[mt(),mt(),mt(),mt()];if(_4t(e,r))throw new Error("Ed25519: invalid public key");let t=mt(),n=mt(),a=e[1];Xw(t,bQ,a),t5(n,bQ,a),b4t(n,n),ja(t,t,n);let i=new Uint8Array(32);return kae(i,t),i}Da.convertPublicKeyToX25519=zgn;function Kgn(r){let e=(0,Cae.hash)(r.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(e.subarray(0,32));return(0,f4t.wipe)(e),t}Da.convertSecretKeyToX25519=Kgn});var pbe,hbe,r5,vQ,fbe,Aae,mbe,ybe,gbe,wQ,bbe,vbe,I4t,E4t,wbe=ce(()=>{d();p();pbe="EdDSA",hbe="JWT",r5=".",vQ="base64url",fbe="utf8",Aae="utf8",mbe=":",ybe="did",gbe="key",wQ="base58btc",bbe="z",vbe="K36",I4t=32,E4t=32});function Pae(r){return oy(Xf(_h(r,vQ),fbe))}function Sae(r){return Xf(_h(Sm(r),fbe),vQ)}function qBe(r){let e=_h(vbe,wQ),t=bbe+Xf(aX([e,r]),wQ);return[ybe,gbe,t].join(mbe)}function FBe(r){let[e,t,n]=r.split(mbe);if(e!==ybe||t!==gbe)throw new Error('Issuer must be a DID with method "key"');if(n.slice(0,1)!==bbe)throw new Error("Issuer must be a key in mulicodec format");let i=_h(n.slice(1),wQ);if(Xf(i.slice(0,2),wQ)!==vbe)throw new Error('Issuer must be a public key with type "Ed25519"');let o=i.slice(2);if(o.length!==32)throw new Error("Issuer must be a public key with length 32 bytes");return o}function C4t(r){return Xf(r,vQ)}function k4t(r){return _h(r,vQ)}function WBe(r){return _h([Sae(r.header),Sae(r.payload)].join(r5),Aae)}function Ggn(r){let e=Xf(r,Aae).split(r5),t=Pae(e[0]),n=Pae(e[1]);return{header:t,payload:n}}function UBe(r){return[Sae(r.header),Sae(r.payload),C4t(r.signature)].join(r5)}function HBe(r){let e=r.split(r5),t=Pae(e[0]),n=Pae(e[1]),a=k4t(e[2]),i=_h(e.slice(0,2).join(r5),Aae);return{header:t,payload:n,signature:a,data:i}}var jBe=ce(()=>{d();p();Zv();WG();Jv();j$();wbe()});function Vgn(r=(0,A4t.randomBytes)(32)){return xQ.generateKeyPairFromSeed(r)}async function Ygn(r,e,t,n,a=(0,P4t.fromMiliseconds)(Date.now())){let i={alg:pbe,typ:hbe},s=qBe(n.publicKey),o=a+t,c={iss:s,sub:r,aud:e,iat:a,exp:o},u=WBe({header:i,payload:c}),l=xQ.sign(n.secretKey,u);return UBe({header:i,payload:c,signature:l})}async function $gn(r){let{header:e,payload:t,data:n,signature:a}=HBe(r);if(e.alg!==pbe||e.typ!==hbe)throw new Error("JWT must use EdDSA algorithm");let i=FBe(t.iss);return xQ.verify(i,n,a)}var xQ,A4t,P4t,S4t=ce(()=>{d();p();xQ=un(T4t()),A4t=un(lae()),P4t=un(Qw());wbe();jBe()});var R4t=ce(()=>{d();p()});var M4t={};cr(M4t,{DATA_ENCODING:()=>Aae,DID_DELIMITER:()=>mbe,DID_METHOD:()=>gbe,DID_PREFIX:()=>ybe,JSON_ENCODING:()=>fbe,JWT_DELIMITER:()=>r5,JWT_ENCODING:()=>vQ,JWT_IRIDIUM_ALG:()=>pbe,JWT_IRIDIUM_TYP:()=>hbe,KEY_PAIR_SEED_LENGTH:()=>E4t,MULTICODEC_ED25519_BASE:()=>bbe,MULTICODEC_ED25519_ENCODING:()=>wQ,MULTICODEC_ED25519_HEADER:()=>vbe,MULTICODEC_ED25519_LENGTH:()=>I4t,decodeData:()=>Ggn,decodeIss:()=>FBe,decodeJSON:()=>Pae,decodeJWT:()=>HBe,decodeSig:()=>k4t,encodeData:()=>WBe,encodeIss:()=>qBe,encodeJSON:()=>Sae,encodeJWT:()=>UBe,encodeSig:()=>C4t,generateKeyPair:()=>Vgn,signJWT:()=>Ygn,verifyJWT:()=>$gn});var N4t=ce(()=>{d();p();S4t();wbe();R4t();jBe()});var D4t=_((v6a,B4t)=>{"use strict";d();p();B4t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var O4t,L4t,Qgn,Jgn,Zgn,xbe,q4t,zBe=ce(()=>{d();p();O4t=un(Lu());j$();iy();L4t=10,Qgn=()=>typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:D4t(),Jgn=()=>typeof window<"u",Zgn=Qgn(),xbe=class{constructor(e){if(this.url=e,this.events=new O4t.EventEmitter,this.registering=!1,!Ige(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}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(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e,t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Sm(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!Ige(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{let a=(0,to.isReactNative)()?void 0:{rejectUnauthorized:!ORe(e)},i=new Zgn(e,[],a);Jgn()?i.onerror=s=>{let o=s;n(this.emitError(o.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),t(i)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?oy(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=Lne(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return Dne(e,t,"WS")}resetMaxListeners(){this.events.getMaxListeners()>L4t&&this.events.setMaxListeners(L4t)}emitError(e){let t=this.parseError(new Error(e?.message||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",t),t}},q4t=xbe});var F4t={};cr(F4t,{WsConnection:()=>xbe,default:()=>Xgn});var Xgn,W4t=ce(()=>{d();p();zBe();zBe();Xgn=q4t});var xkt=_((Rae,TQ)=>{d();p();var e1n=200,tDe="__lodash_hash_undefined__",Pbe=1,Z4t=2,X4t=9007199254740991,_be="[object Arguments]",YBe="[object Array]",t1n="[object AsyncFunction]",ekt="[object Boolean]",tkt="[object Date]",rkt="[object Error]",nkt="[object Function]",r1n="[object GeneratorFunction]",Tbe="[object Map]",akt="[object Number]",n1n="[object Null]",_Q="[object Object]",U4t="[object Promise]",a1n="[object Proxy]",ikt="[object RegExp]",Ibe="[object Set]",skt="[object String]",i1n="[object Symbol]",s1n="[object Undefined]",$Be="[object WeakMap]",okt="[object ArrayBuffer]",Ebe="[object DataView]",o1n="[object Float32Array]",c1n="[object Float64Array]",u1n="[object Int8Array]",l1n="[object Int16Array]",d1n="[object Int32Array]",p1n="[object Uint8Array]",h1n="[object Uint8ClampedArray]",f1n="[object Uint16Array]",m1n="[object Uint32Array]",y1n=/[\\^$.*+?()[\]{}|]/g,g1n=/^\[object .+?Constructor\]$/,b1n=/^(?:0|[1-9]\d*)$/,hi={};hi[o1n]=hi[c1n]=hi[u1n]=hi[l1n]=hi[d1n]=hi[p1n]=hi[h1n]=hi[f1n]=hi[m1n]=!0;hi[_be]=hi[YBe]=hi[okt]=hi[ekt]=hi[Ebe]=hi[tkt]=hi[rkt]=hi[nkt]=hi[Tbe]=hi[akt]=hi[_Q]=hi[ikt]=hi[Ibe]=hi[skt]=hi[$Be]=!1;var ckt=typeof global=="object"&&global&&global.Object===Object&&global,v1n=typeof self=="object"&&self&&self.Object===Object&&self,yy=ckt||v1n||Function("return this")(),ukt=typeof Rae=="object"&&Rae&&!Rae.nodeType&&Rae,H4t=ukt&&typeof TQ=="object"&&TQ&&!TQ.nodeType&&TQ,lkt=H4t&&H4t.exports===ukt,KBe=lkt&&ckt.process,j4t=function(){try{return KBe&&KBe.binding&&KBe.binding("util")}catch{}}(),z4t=j4t&&j4t.isTypedArray;function w1n(r,e){for(var t=-1,n=r==null?0:r.length,a=0,i=[];++t-1}function Q1n(r,e){var t=this.__data__,n=Rbe(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}gy.prototype.clear=G1n;gy.prototype.delete=V1n;gy.prototype.get=Y1n;gy.prototype.has=$1n;gy.prototype.set=Q1n;function i5(r){var e=-1,t=r==null?0:r.length;for(this.clear();++eo))return!1;var u=i.get(r);if(u&&i.get(e))return u==e;var l=-1,h=!0,f=t&Z4t?new kbe:void 0;for(i.set(r,e),i.set(e,r);++l-1&&r%1==0&&r-1&&r%1==0&&r<=X4t}function vkt(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function Bae(r){return r!=null&&typeof r=="object"}var wkt=z4t?I1n(z4t):hbn;function kbn(r){return Ebn(r)?ubn(r):fbn(r)}function Abn(){return[]}function Pbn(){return!1}TQ.exports=Cbn});var _At=_(wt=>{"use strict";d();p();Object.defineProperty(wt,"__esModule",{value:!0});var o5=Lu(),Sbn=_ae(),Rbn=$8t(),jbe=e4t(),Oi=dbe(),L1=PBe(),_kt=(j$(),nt(v9e)),Mbn=(N4t(),nt(M4t)),Me=vae(),Eo=Qw(),Nbn=(iae(),nt(aae)),sf=(iy(),nt(to)),Bbn=(W4t(),nt(F4t)),Dbn=xkt();function qae(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function Lbn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Obn=qae(o5),Fkt=qae(Sbn),qbn=qae(Rbn),Nbe=Lbn(Mbn),Fbn=qae(Bbn),Wbn=qae(Dbn);function Ubn(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);R!==L;){for(var V=y[R],K=0,H=F-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");C=K,R++}for(var G=F-C;G!==F&&W[G]===0;)G++;for(var Q=c.repeat(I);G>>0,F=new Uint8Array(L);y[I];){var W=t[y.charCodeAt(I)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");R=V,I++}if(y[I]!==" "){for(var H=L-R;H!==L&&F[H]===0;)H++;for(var G=new Uint8Array(C+(L-H)),Q=C;H!==L;)G[Q++]=F[H++];return G}}}function m(y){var I=f(y);if(I)return I;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var Hbn=Ubn,jbn=Hbn,Wkt=r=>{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},zbn=r=>new TextEncoder().encode(r),Kbn=r=>new TextDecoder().decode(r),aDe=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},iDe=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){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))}else throw Error("Can only multibase decode strings")}or(e){return Ukt(this,e)}},sDe=class{constructor(e){this.decoders=e}or(e){return Ukt(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},Ukt=(r,e)=>new sDe({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),oDe=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new aDe(e,t,n),this.decoder=new iDe(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},zbe=({name:r,prefix:e,encode:t,decode:n})=>new oDe(r,e,t,n),Fae=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=jbn(t,e);return zbe({prefix:r,name:e,encode:n,decode:i=>Wkt(a(i))})},Gbn=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},Vbn=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<zbe({prefix:e,name:r,encode(a){return Vbn(a,n,t)},decode(a){return Gbn(a,n,t,r)}}),Ybn=zbe({prefix:"\0",name:"identity",encode:r=>Kbn(r),decode:r=>zbn(r)}),$bn=Object.freeze({__proto__:null,identity:Ybn}),Qbn=Mc({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Jbn=Object.freeze({__proto__:null,base2:Qbn}),Zbn=Mc({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Xbn=Object.freeze({__proto__:null,base8:Zbn}),evn=Fae({prefix:"9",name:"base10",alphabet:"0123456789"}),tvn=Object.freeze({__proto__:null,base10:evn}),rvn=Mc({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),nvn=Mc({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),avn=Object.freeze({__proto__:null,base16:rvn,base16upper:nvn}),ivn=Mc({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),svn=Mc({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),ovn=Mc({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),cvn=Mc({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),uvn=Mc({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),lvn=Mc({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),dvn=Mc({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),pvn=Mc({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),hvn=Mc({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),fvn=Object.freeze({__proto__:null,base32:ivn,base32upper:svn,base32pad:ovn,base32padupper:cvn,base32hex:uvn,base32hexupper:lvn,base32hexpad:dvn,base32hexpadupper:pvn,base32z:hvn}),mvn=Fae({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),yvn=Fae({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),gvn=Object.freeze({__proto__:null,base36:mvn,base36upper:yvn}),bvn=Fae({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),vvn=Fae({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),wvn=Object.freeze({__proto__:null,base58btc:bvn,base58flickr:vvn}),xvn=Mc({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),_vn=Mc({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Tvn=Mc({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Ivn=Mc({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Evn=Object.freeze({__proto__:null,base64:xvn,base64pad:_vn,base64url:Tvn,base64urlpad:Ivn}),Hkt=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),Cvn=Hkt.reduce((r,e,t)=>(r[t]=e,r),[]),kvn=Hkt.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function Avn(r){return r.reduce((e,t)=>(e+=Cvn[t],e),"")}function Pvn(r){let e=[];for(let t of r){let n=kvn[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var Svn=zbe({prefix:"\u{1F680}",name:"base256emoji",encode:Avn,decode:Pvn}),Rvn=Object.freeze({__proto__:null,base256emoji:Svn}),Mvn=jkt,Tkt=128,Nvn=127,Bvn=~Nvn,Dvn=Math.pow(2,31);function jkt(r,e,t){e=e||[],t=t||0;for(var n=t;r>=Dvn;)e[t++]=r&255|Tkt,r/=128;for(;r&Bvn;)e[t++]=r&255|Tkt,r>>>=7;return e[t]=r|0,jkt.bytes=t-n+1,e}var Lvn=cDe,Ovn=128,Ikt=127;function cDe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw cDe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&Ikt)<=Ovn);return cDe.bytes=i-n,t}var qvn=Math.pow(2,7),Fvn=Math.pow(2,14),Wvn=Math.pow(2,21),Uvn=Math.pow(2,28),Hvn=Math.pow(2,35),jvn=Math.pow(2,42),zvn=Math.pow(2,49),Kvn=Math.pow(2,56),Gvn=Math.pow(2,63),Vvn=function(r){return r(zkt.encode(r,e,t),e),Ckt=r=>zkt.encodingLength(r),uDe=(r,e)=>{let t=e.byteLength,n=Ckt(r),a=n+Ckt(t),i=new Uint8Array(a+t);return Ekt(r,i,0),Ekt(t,i,n),i.set(e,a),new lDe(r,t,e,i)},lDe=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}},Kkt=({name:r,code:e,encode:t})=>new dDe(r,e,t),dDe=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?uDe(this.code,t):t.then(n=>uDe(this.code,n))}else throw Error("Unknown type, must be binary type")}},Gkt=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),$vn=Kkt({name:"sha2-256",code:18,encode:Gkt("SHA-256")}),Qvn=Kkt({name:"sha2-512",code:19,encode:Gkt("SHA-512")}),Jvn=Object.freeze({__proto__:null,sha256:$vn,sha512:Qvn}),Vkt=0,Zvn="identity",Ykt=Wkt,Xvn=r=>uDe(Vkt,Ykt(r)),e2n={code:Vkt,name:Zvn,encode:Ykt,digest:Xvn},t2n=Object.freeze({__proto__:null,identity:e2n});new TextEncoder,new TextDecoder;var kkt={...$bn,...Jbn,...Xbn,...tvn,...avn,...fvn,...gvn,...wvn,...Evn,...Rvn};({...Jvn,...t2n});function r2n(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function $kt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var Akt=$kt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),rDe=$kt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=r2n(r.length);for(let t=0;t{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();let a=this.keychain.get(n);if(typeof a>"u"){let{message:i}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(i)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=e,this.logger=Oi.generateChildLogger(t,this.name)}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Dbe=class{constructor(e,t,n){this.core=e,this.logger=t,this.name=Xkt,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();let a=await this.getClientSeed(),i=Nbe.generateKeyPair(a);return Nbe.encodeIss(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let a=Me.generateKeyPair();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();let i=await this.getClientSeed(),s=Nbe.generateKeyPair(i),o=Me.generateRandomBytes32(),c=eAt;return await Nbe.signJWT(o,a,c,s)},this.generateSharedKey=(a,i,s)=>{this.isInitialized();let o=this.getPrivateKey(a),c=Me.deriveSymKey(o,i);return this.setSymKey(c,s)},this.setSymKey=async(a,i)=>{this.isInitialized();let s=i||Me.hashKey(a);return await this.keychain.set(s,a),s},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,i,s)=>{this.isInitialized();let o=Me.validateEncoding(s),c=_kt.safeJsonStringify(i);if(Me.isTypeOneEnvelope(o)){let f=o.senderPublicKey,m=o.receiverPublicKey;a=await this.generateSharedKey(f,m)}let u=this.getSymKey(a),{type:l,senderPublicKey:h}=o;return Me.encrypt({type:l,symKey:u,message:c,senderPublicKey:h})},this.decode=async(a,i,s)=>{this.isInitialized();let o=Me.validateDecoding(i,s);if(Me.isTypeOneEnvelope(o)){let l=o.receiverPublicKey,h=o.senderPublicKey;a=await this.generateSharedKey(l,h)}let c=this.getSymKey(a),u=Me.decrypt({symKey:c,encoded:i});return _kt.safeJsonParse(u)},this.core=e,this.logger=Oi.generateChildLogger(t,this.name),this.keychain=n||new Bbe(this.core,this.logger)}get context(){return Oi.getLoggerContext(this.logger)}getPayloadType(e){let t=Me.deserialize(e);return Me.decodeTypeByte(t.type)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(pDe)}catch{e=Me.generateRandomBytes32(),await this.keychain.set(pDe,e)}return a2n(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Lbe=class extends L1.IMessageTracker{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=nAt,this.version=aAt,this.initialized=!1,this.storagePrefix=by,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();let i=Me.hashMessage(a),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[i]<"u"||(s[i]=a,this.messages.set(n,s),await this.persist()),i},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();let i=this.get(n),s=Me.hashMessage(a);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Oi.generateChildLogger(e,this.name),this.core=t}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},fDe=class extends L1.IPublisher{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new o5.EventEmitter,this.name=sAt,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,a,i)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}});try{let s=i?.ttl||iAt,o=Me.getRelayProtocolName(i),c=i?.prompt||!1,u=i?.tag||0,l={topic:n,message:a,opts:{ttl:s,relay:o,prompt:c,tag:u}},h=Me.hashMessage(a);this.queue.set(h,l);try{await await Me.createExpiringPromise(this.rpcPublish(n,a,s,o,c,u),this.publishTimeout),this.relayer.events.emit(Rc.publish,l)}catch{this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(Rc.connection_stalled);return}this.onPublish(h,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=e,this.logger=Oi.generateChildLogger(t,this.name),this.registerEventListeners()}get context(){return Oi.getLoggerContext(this.logger)}rpcPublish(e,t,n,a,i,s){var o,c,u,l;let h={method:Me.getRelayProtocolApi(a.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:s}};return Me.isUndefined((o=h.params)==null?void 0:o.prompt)&&((c=h.params)==null||delete c.prompt),Me.isUndefined((u=h.params)==null?void 0:u.tag)&&((l=h.params)==null||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(e,t){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:n,opts:a}=e;await this.publish(t,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(jbe.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},mDe=class{constructor(){this.map=new Map,this.set=(e,t)=>{let n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,t))return;let a=n.filter(i=>i!==t);if(!a.length){this.map.delete(e);return}this.map.set(e,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},u2n=Object.defineProperty,l2n=Object.defineProperties,d2n=Object.getOwnPropertyDescriptors,Pkt=Object.getOwnPropertySymbols,p2n=Object.prototype.hasOwnProperty,h2n=Object.prototype.propertyIsEnumerable,Skt=(r,e,t)=>e in r?u2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Lae=(r,e)=>{for(var t in e||(e={}))p2n.call(e,t)&&Skt(r,t,e[t]);if(Pkt)for(var t of Pkt(e))h2n.call(e,t)&&Skt(r,t,e[t]);return r},nDe=(r,e)=>l2n(r,d2n(e)),Obe=class extends L1.ISubscriber{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new mDe,this.events=new o5.EventEmitter,this.name=hAt,this.version=fAt,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=by,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{let i=Me.getRelayProtocolName(a),s={topic:n,relay:i};this.pending.set(n,s);let o=await this.rpcSubscribe(n,i);return this.onSubscribe(o,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),o}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof a?.id<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,i)=>{let s=new Eo.Watch;s.start(this.pendingSubscriptionWatchLabel);let o=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),a(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=mAt&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pollingInterval)}),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=Oi.generateChildLogger(t,this.name),this.clientId=""}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let n=this.topicMap.get(e);await Promise.all(n.map(async a=>await this.unsubscribeById(e,a,t)))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{let a=Me.getRelayProtocolName(n);await this.rpcUnsubscribe(e,t,a);let i=Me.getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(e,t){let n={method:Me.getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Rc.connection_stalled)}return Me.hashMessage(e+this.clientId)}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,n={method:Me.getRelayProtocolApi(t.protocol).batchSubscribe,params:{topics:e.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Rc.connection_stalled)}}rpcUnsubscribe(e,t,n){let a={method:Me.getRelayProtocolApi(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.provider.request(a)}onSubscribe(e,t){this.setSubscription(e,nDe(Lae({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,Lae({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,Lae({},t)),this.topicMap.set(t.topic,e),this.events.emit(af.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(af.deleted,nDe(Lae({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(af.sync)}async reset(){if(!this.cached.length)return;let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);this.onBatchSubscribe(t.map((n,a)=>nDe(Lae({},e[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e)}registerEventListeners(){this.relayer.core.heartbeat.on(jbe.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Rc.connect,async()=>{await this.onConnect()}),this.relayer.on(Rc.disconnect,()=>{this.onDisconnect()}),this.events.on(af.created,async e=>{let t=af.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(af.deleted,async e=>{let t=af.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}},f2n=Object.defineProperty,Rkt=Object.getOwnPropertySymbols,m2n=Object.prototype.hasOwnProperty,y2n=Object.prototype.propertyIsEnumerable,Mkt=(r,e,t)=>e in r?f2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,g2n=(r,e)=>{for(var t in e||(e={}))m2n.call(e,t)&&Mkt(r,t,e[t]);if(Rkt)for(var t of Rkt(e))y2n.call(e,t)&&Mkt(r,t,e[t]);return r},qbe=class extends L1.IRelayer{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new o5.EventEmitter,this.name=uAt,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?Oi.generateChildLogger(e.logger,this.name):Fkt.default(Oi.getDefaultLoggerOptions({level:e.logger||cAt})),this.messages=new Lbe(this.logger,e.core),this.subscriber=new Obe(this,this.logger),this.publisher=new fDe(this,this.logger),this.relayUrl=e?.relayUrl||gDe,this.projectId=e.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return Oi.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){this.isInitialized();let n="";return await Promise.all([new Promise(a=>{this.subscriber.once(af.created,i=>{i.topic===e&&a()})}),new Promise(async a=>{n=await this.subscriber.subscribe(e,t),a()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}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 transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(Rc.transport_closed))}async transportOpen(e){if(!this.reconnecting){this.relayUrl=e||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(t=>{this.initialized||t(),this.subscriber.once(af.resubscribed,()=>{t()})}),await Promise.race([new Promise(async t=>{await this.provider.connect(),this.removeListener(Rc.transport_closed,this.rejectTransportOpen),t()}),new Promise(t=>this.once(Rc.transport_closed,this.rejectTransportOpen))])])}catch(t){let n=t;if(!/socket hang up/i.test(n.message))throw t;this.logger.error(t),this.events.emit(Rc.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(e){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(t=>setTimeout(t,hDe)),await this.transportOpen(e))}rejectTransportOpen(){throw new Error("closeTransport called before connection was established")}async createProvider(){let e=await this.core.crypto.signJWT(this.relayUrl);return new Nbn.JsonRpcProvider(new Fbn.default(Me.formatRelayRpcUrl({sdkVersion:dAt,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0})))}async recordMessageEvent(e){let{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){let{topic:t,message:n}=e;return await this.subscriber.isSubscribed(t)?this.messages.has(t,n):!0}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),sf.isJsonRpcRequest(e)){if(!e.method.endsWith(lAt))return;let t=e.params,{topic:n,message:a,publishedAt:i}=t.data,s={topic:n,message:a,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(g2n({type:"event",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(Rc.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=sf.formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}registerEventListeners(){this.provider.on(Oae.payload,e=>this.onProviderPayload(e)),this.provider.on(Oae.connect,()=>{this.events.emit(Rc.connect)}),this.provider.on(Oae.disconnect,()=>{this.events.emit(Rc.disconnect),this.attemptToReconnect()}),this.provider.on(Oae.error,e=>{this.logger.error(e),this.events.emit(Rc.error,e)}),this.events.on(Rc.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},Eo.toMiliseconds(hDe))}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},b2n=Object.defineProperty,Nkt=Object.getOwnPropertySymbols,v2n=Object.prototype.hasOwnProperty,w2n=Object.prototype.propertyIsEnumerable,Bkt=(r,e,t)=>e in r?b2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Dkt=(r,e)=>{for(var t in e||(e={}))v2n.call(e,t)&&Bkt(r,t,e[t]);if(Nkt)for(var t of Nkt(e))w2n.call(e,t)&&Bkt(r,t,e[t]);return r},Fbe=class extends L1.IStore{constructor(e,t,n,a=by,i=void 0){super(e,t,n,a),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version=pAt,this.cached=[],this.initialized=!1,this.storagePrefix=by,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{Me.isProposalStruct(s)?this.map.set(s.id,s):Me.isSessionStruct(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Me.isUndefined(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,o)=>{this.isInitialized(),this.map.has(s)?await this.update(s,o):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:o}),this.map.set(s,o),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(o=>Object.keys(s).every(c=>Wbn.default(o[c],s[c]))):this.values),this.update=async(s,o)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:o});let c=Dkt(Dkt({},this.getData(s)),o);this.map.set(s,c),await this.persist()},this.delete=async(s,o)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:o}),this.map.delete(s),await this.persist())},this.logger=Oi.generateChildLogger(t,this.name),this.storagePrefix=a,this.getKey=i}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Wbe=class{constructor(e,t){this.core=e,this.logger=t,this.name=yAt,this.version=gAt,this.events=new Obn.default,this.initialized=!1,this.storagePrefix=by,this.ignoredPayloadTypes=[Me.TYPE_1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=Me.generateRandomBytes32(),a=await this.core.crypto.setSymKey(n),i=Me.calcExpiry(Eo.FIVE_MINUTES),s={protocol:oAt},o={topic:a,expiry:i,relay:s,active:!1},c=Me.formatUri({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:s});return await this.pairings.set(a,o),await this.core.relayer.subscribe(a),this.core.expirer.set(a,i),{topic:a,uri:c}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:a,symKey:i,relay:s}=Me.parseUri(n.uri);if(this.pairings.keys.includes(a))throw new Error(`Pairing already exists: ${a}`);if(this.core.crypto.hasKeys(a))throw new Error(`Keychain already exists: ${a}`);let o=Me.calcExpiry(Eo.FIVE_MINUTES),c={topic:a,relay:s,expiry:o,active:!1};return await this.pairings.set(a,c),await this.core.crypto.setSymKey(i,a),await this.core.relayer.subscribe(a,{relay:s}),this.core.expirer.set(a,o),n.activatePairing&&await this.activate({topic:a}),c},this.activate=async({topic:n})=>{this.isInitialized();let a=Me.calcExpiry(Eo.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:a}=n;if(this.pairings.keys.includes(a)){let i=await this.sendRequest(a,"wc_pairingPing",{}),{done:s,resolve:o,reject:c}=Me.createDelayedPromise();this.events.once(Me.engineEvent("pairing_ping",i),({error:u})=>{u?c(u):o()}),await s()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",Me.getSdkError("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,i)=>{let s=sf.formatJsonRpcRequest(a,i),o=await this.core.crypto.encode(n,s),c=EQ[a].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,o,c),s.id},this.sendResult=async(n,a,i)=>{let s=sf.formatJsonRpcResult(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=EQ[c.request.method].res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.sendError=async(n,a,i)=>{let s=sf.formatJsonRpcError(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=EQ[c.request.method]?EQ[c.request.method].res:EQ.unregistered_method.res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Me.getSdkError("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(a=>Me.isExpired(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{let{topic:a,payload:i}=n,s=i.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(a,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,i);default:return this.onUnknownRpcMethodRequest(a,i)}},this.onRelayEventResponse=async n=>{let{topic:a,payload:i}=n,s=(await this.core.history.get(a,i.id)).request.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(a,i);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,a)=>{let{id:i}=a;try{this.isValidPing({topic:n}),await this.sendResult(i,n,!0),this.events.emit("pairing_ping",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,a)=>{let{id:i}=a;setTimeout(()=>{sf.isJsonRpcResult(a)?this.events.emit(Me.engineEvent("pairing_ping",i),{}):sf.isJsonRpcError(a)&&this.events.emit(Me.engineEvent("pairing_ping",i),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{let{id:i}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit("pairing_delete",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,a)=>{let{id:i,method:s}=a;try{if(this.registeredMethods.includes(s))return;let o=Me.getSdkError("WC_METHOD_UNSUPPORTED",s);await this.sendError(i,n,o),this.logger.error(o)}catch(o){await this.sendError(i,n,o),this.logger.error(o)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Me.getSdkError("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Me.isValidParams(n)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!Me.isValidUrl(n.uri)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!Me.isValidString(n,!1)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){let{message:a}=Me.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(Me.isExpired(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:a}=Me.getInternalError("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=e,this.logger=Oi.generateChildLogger(t,this.name),this.pairings=new Fbe(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Oi.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Rc.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let a=await this.core.crypto.decode(t,n);sf.isJsonRpcRequest(a)?(this.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):sf.isJsonRpcResponse(a)&&(await this.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.core.expirer.on(Up.expired,async e=>{let{topic:t}=Me.parseExpirerTarget(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))})}},Ube=class extends L1.IJsonRpcHistory{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new o5.EventEmitter,this.name=bAt,this.version=vAt,this.cached=[],this.initialized=!1,this.storagePrefix=by,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:i}),this.records.has(a.id))return;let s={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:i};this.records.set(s.id,s),this.events.emit(nf.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=sf.isJsonRpcError(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(nf.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(i=>{if(i.topic===n){if(typeof a<"u"&&i.id!==a)return;this.records.delete(i.id),this.events.emit(nf.deleted,i)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oi.generateChildLogger(t,this.name)}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;let n={topic:t.topic,request:sf.formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(nf.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(nf.created,e=>{let t=nf.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(nf.updated,e=>{let t=nf.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(nf.deleted,e=>{let t=nf.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Hbe=class extends L1.IExpirer{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new o5.EventEmitter,this.name=wAt,this.version=xAt,this.cached=[],this.initialized=!1,this.storagePrefix=by,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();let i=this.formatTarget(n),s={target:i,expiry:a};this.expirations.set(i,s),this.checkExpiry(i,s),this.events.emit(Up.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){let a=this.formatTarget(n),i=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Up.deleted,{target:a,expiration:i})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Oi.generateChildLogger(t,this.name)}get context(){return Oi.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return Me.formatTopicTarget(e);if(typeof e=="number")return Me.formatIdTarget(e);let{message:t}=Me.getInternalError("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Up.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}checkExpiry(e,t){let{expiry:n}=t;Eo.toMiliseconds(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(Up.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(jbe.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Up.created,e=>{let t=Up.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Up.expired,e=>{let t=Up.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Up.deleted,e=>{let t=Up.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},x2n=Object.defineProperty,Lkt=Object.getOwnPropertySymbols,_2n=Object.prototype.hasOwnProperty,T2n=Object.prototype.propertyIsEnumerable,Okt=(r,e,t)=>e in r?x2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,qkt=(r,e)=>{for(var t in e||(e={}))_2n.call(e,t)&&Okt(r,t,e[t]);if(Lkt)for(var t of Lkt(e))T2n.call(e,t)&&Okt(r,t,e[t]);return r},CQ=class extends L1.ICore{constructor(e){super(e),this.protocol=yDe,this.version=Qkt,this.name=Kbe,this.events=new o5.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||gDe;let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:Fkt.default(Oi.getDefaultLoggerOptions({level:e?.logger||Jkt.logger}));this.logger=Oi.generateChildLogger(t,this.name),this.heartbeat=new jbe.HeartBeat,this.crypto=new Dbe(this,this.logger,e?.keychain),this.history=new Ube(this,this.logger),this.expirer=new Hbe(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new qbn.default(qkt(qkt({},Zkt),e?.storageOptions)),this.relayer=new qbe({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Wbe(this,this.logger)}static async init(e){let t=new CQ(e);return await t.initialize(),t}get context(){return Oi.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}},I2n=CQ;wt.CORE_CONTEXT=Kbe,wt.CORE_DEFAULT=Jkt,wt.CORE_PROTOCOL=yDe,wt.CORE_STORAGE_OPTIONS=Zkt,wt.CORE_STORAGE_PREFIX=by,wt.CORE_VERSION=Qkt,wt.CRYPTO_CLIENT_SEED=pDe,wt.CRYPTO_CONTEXT=Xkt,wt.CRYPTO_JWT_TTL=eAt,wt.Core=I2n,wt.Crypto=Dbe,wt.EXPIRER_CONTEXT=wAt,wt.EXPIRER_DEFAULT_TTL=c2n,wt.EXPIRER_EVENTS=Up,wt.EXPIRER_STORAGE_VERSION=xAt,wt.Expirer=Hbe,wt.HISTORY_CONTEXT=bAt,wt.HISTORY_EVENTS=nf,wt.HISTORY_STORAGE_VERSION=vAt,wt.JsonRpcHistory=Ube,wt.KEYCHAIN_CONTEXT=tAt,wt.KEYCHAIN_STORAGE_VERSION=rAt,wt.KeyChain=Bbe,wt.MESSAGES_CONTEXT=nAt,wt.MESSAGES_STORAGE_VERSION=aAt,wt.MessageTracker=Lbe,wt.PAIRING_CONTEXT=yAt,wt.PAIRING_DEFAULT_TTL=o2n,wt.PAIRING_RPC_OPTS=EQ,wt.PAIRING_STORAGE_VERSION=gAt,wt.PENDING_SUB_RESOLUTION_TIMEOUT=mAt,wt.PUBLISHER_CONTEXT=sAt,wt.PUBLISHER_DEFAULT_TTL=iAt,wt.Pairing=Wbe,wt.RELAYER_CONTEXT=uAt,wt.RELAYER_DEFAULT_LOGGER=cAt,wt.RELAYER_DEFAULT_PROTOCOL=oAt,wt.RELAYER_DEFAULT_RELAY_URL=gDe,wt.RELAYER_EVENTS=Rc,wt.RELAYER_PROVIDER_EVENTS=Oae,wt.RELAYER_RECONNECT_TIMEOUT=hDe,wt.RELAYER_SDK_VERSION=dAt,wt.RELAYER_STORAGE_OPTIONS=i2n,wt.RELAYER_SUBSCRIBER_SUFFIX=lAt,wt.Relayer=qbe,wt.STORE_STORAGE_VERSION=pAt,wt.SUBSCRIBER_CONTEXT=hAt,wt.SUBSCRIBER_DEFAULT_TTL=s2n,wt.SUBSCRIBER_EVENTS=af,wt.SUBSCRIBER_STORAGE_VERSION=fAt,wt.Store=Fbe,wt.Subscriber=Obe,wt.default=CQ});var NAt=_(Xi=>{"use strict";d();p();Object.defineProperty(Xi,"__esModule",{value:!0});var E2n=_ae(),O1=_At(),bDe=dbe(),EAt=PBe(),be=vae(),CAt=Lu(),es=Qw(),Co=(iy(),nt(to));function kAt(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var C2n=kAt(E2n),k2n=kAt(CAt),IDe="wc",EDe=2,CDe="client",Ybe=`${IDe}@${EDe}:${CDe}:`,Gbe={name:CDe,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},A2n={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire"},P2n={database:":memory:"},S2n={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},R2n="history",M2n="0.3",AAt="proposal",N2n=es.THIRTY_DAYS,PAt="Proposal expired",SAt="session",Wae=es.SEVEN_DAYS,RAt="engine",kQ={wc_sessionPropose:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1104},res:{ttl:es.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1106},res:{ttl:es.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1112},res:{ttl:es.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1115}}},Vbe={min:es.FIVE_MINUTES,max:es.SEVEN_DAYS},MAt="request",B2n=Object.defineProperty,D2n=Object.defineProperties,L2n=Object.getOwnPropertyDescriptors,TAt=Object.getOwnPropertySymbols,O2n=Object.prototype.hasOwnProperty,q2n=Object.prototype.propertyIsEnumerable,IAt=(r,e,t)=>e in r?B2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Hp=(r,e)=>{for(var t in e||(e={}))O2n.call(e,t)&&IAt(r,t,e[t]);if(TAt)for(var t of TAt(e))q2n.call(e,t)&&IAt(r,t,e[t]);return r},vDe=(r,e)=>D2n(r,L2n(e)),wDe=class extends EAt.IEngine{constructor(e){super(e),this.name=RAt,this.events=new k2n.default,this.initialized=!1,this.ignoredPayloadTypes=[be.TYPE_1],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(kQ)}),this.initialized=!0)},this.connect=async t=>{this.isInitialized();let n=vDe(Hp({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:a,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,relays:c}=n,u=a,l,h=!1;if(u&&(h=this.client.core.pairing.pairings.get(u).active),!u||!h){let{topic:F,uri:W}=await this.client.core.pairing.create();u=F,l=W}let f=await this.client.core.crypto.generateKeyPair(),m=Hp({requiredNamespaces:i,optionalNamespaces:s,relays:c??[{protocol:O1.RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:f,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:y,resolve:I,done:C}=be.createDelayedPromise(es.FIVE_MINUTES,PAt);if(this.events.once(be.engineEvent("session_connect"),async({error:F,session:W})=>{if(F)y(F);else if(W){W.self.publicKey=f;let V=vDe(Hp({},W),{requiredNamespaces:W.requiredNamespaces,optionalNamespaces:W.optionalNamespaces});await this.client.session.set(W.topic,V),await this.setExpiry(W.topic,W.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:W.peer.metadata}),I(V)}}),!u){let{message:F}=be.getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(F)}let R=await this.sendRequest(u,"wc_sessionPropose",m),L=be.calcExpiry(es.FIVE_MINUTES);return await this.setProposal(R,Hp({id:R,expiry:L},m)),{uri:l,approval:C}},this.pair=async t=>(this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{this.isInitialized(),await this.isValidApprove(t);let{id:n,relayProtocol:a,namespaces:i,sessionProperties:s}=t,o=this.client.proposal.get(n),{pairingTopic:c,proposer:u,requiredNamespaces:l,optionalNamespaces:h}=o;be.isValidObject(l)||(l=be.getRequiredNamespacesFromNamespaces(i,"approve()"));let f=await this.client.core.crypto.generateKeyPair(),m=u.publicKey,y=await this.client.core.crypto.generateSharedKey(f,m);c&&n&&(await this.client.core.pairing.updateMetadata({topic:c,metadata:u.metadata}),await this.sendResult(n,c,{relay:{protocol:a??"irn"},responderPublicKey:f}),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:c}));let I=Hp({relay:{protocol:a??"irn"},namespaces:i,requiredNamespaces:l,optionalNamespaces:h,controller:{publicKey:f,metadata:this.client.metadata},expiry:be.calcExpiry(Wae)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(y);let C=await this.sendRequest(y,"wc_sessionSettle",I),{done:R,resolve:L,reject:F}=be.createDelayedPromise();this.events.once(be.engineEvent("session_approve",C),({error:V})=>{V?F(V):L(this.client.session.get(y))});let W=vDe(Hp({},I),{topic:y,acknowledged:!1,self:I.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:f});return await this.client.session.set(y,W),await this.setExpiry(y,be.calcExpiry(Wae)),{topic:y,acknowledged:R}},this.reject=async t=>{this.isInitialized(),await this.isValidReject(t);let{id:n,reason:a}=t,{pairingTopic:i}=this.client.proposal.get(n);i&&(await this.sendError(n,i,a),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")))},this.update=async t=>{this.isInitialized(),await this.isValidUpdate(t);let{topic:n,namespaces:a}=t,i=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:a}),{done:s,resolve:o,reject:c}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_update",i),({error:u})=>{u?c(u):o()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:s}},this.extend=async t=>{this.isInitialized(),await this.isValidExtend(t);let{topic:n}=t,a=await this.sendRequest(n,"wc_sessionExtend",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_extend",a),({error:c})=>{c?o(c):s()}),await this.setExpiry(n,be.calcExpiry(Wae)),{acknowledged:i}},this.request=async t=>{this.isInitialized(),await this.isValidRequest(t);let{chainId:n,request:a,topic:i,expiry:s}=t,o=await this.sendRequest(i,"wc_sessionRequest",{request:a,chainId:n},s),{done:c,resolve:u,reject:l}=be.createDelayedPromise(s);return this.events.once(be.engineEvent("session_request",o),({error:h,result:f})=>{h?l(h):u(f)}),this.client.events.emit("session_request_sent",{topic:i,request:a,chainId:n}),await c()},this.respond=async t=>{this.isInitialized(),await this.isValidRespond(t);let{topic:n,response:a}=t,{id:i}=a;Co.isJsonRpcResult(a)?await this.sendResult(i,n,a.result):Co.isJsonRpcError(a)&&await this.sendError(i,n,a.error),this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0})},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);let{topic:n}=t;if(this.client.session.keys.includes(n)){let a=await this.sendRequest(n,"wc_sessionPing",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();this.events.once(be.engineEvent("session_ping",a),({error:c})=>{c?o(c):s()}),await i()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async t=>{this.isInitialized(),await this.isValidEmit(t);let{topic:n,event:a,chainId:i}=t;await this.sendRequest(n,"wc_sessionEvent",{event:a,chainId:i})},this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);let{topic:n}=t;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",be.getSdkError("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter(n=>be.isSessionCompatible(n,t))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(t,n)=>{let{self:a}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await Promise.all([this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.deleteSymKey(t),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deleteProposal=async(t,n)=>{await Promise.all([this.client.proposal.delete(t,be.getSdkError("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,n),a?Promise.resolve():this.client.core.expirer.del(t)])},this.setExpiry=async(t,n)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:n}),this.client.core.expirer.set(t,n)},this.setProposal=async(t,n)=>{await this.client.proposal.set(t,n),this.client.core.expirer.set(t,n.expiry)},this.setPendingSessionRequest=async t=>{let n=kQ.wc_sessionRequest.req.ttl,{id:a,topic:i,params:s}=t;await this.client.pendingRequest.set(a,{id:a,topic:i,params:s}),n&&this.client.core.expirer.set(a,be.calcExpiry(n))},this.sendRequest=async(t,n,a,i)=>{let s=Co.formatJsonRpcRequest(n,a),o=await this.client.core.crypto.encode(t,s),c=kQ[n].req;return i&&(c.ttl=i),this.client.core.history.set(t,s),this.client.core.relayer.publish(t,o,c),s.id},this.sendResult=async(t,n,a)=>{let i=Co.formatJsonRpcResult(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=kQ[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.sendError=async(t,n,a)=>{let i=Co.formatJsonRpcError(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=kQ[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let t=[],n=[];this.client.session.getAll().forEach(a=>{be.isExpired(a.expiry)&&t.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{be.isExpired(a.expiry)&&n.push(a.id)}),await Promise.all([...t.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=t=>{let{topic:n,payload:a}=t,i=a.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${i}`)}},this.onRelayEventResponse=async t=>{let{topic:n,payload:a}=t,i=(await this.client.core.history.get(n,a.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onSessionProposeRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidConnect(Hp({},n.params));let s=be.calcExpiry(es.FIVE_MINUTES),o=Hp({id:i,pairingTopic:t,expiry:s},a);await this.setProposal(i,o),this.client.events.emit("session_proposal",{id:i,params:o})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(t,n)=>{let{id:a}=n;if(Co.isJsonRpcResult(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let s=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let c=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});let u=await this.client.core.crypto.generateSharedKey(o,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});let l=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:t})}else Co.isJsonRpcError(n)&&(await this.client.proposal.delete(a,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:s,controller:o,expiry:c,namespaces:u,requiredNamespaces:l,optionalNamespaces:h,sessionProperties:f}=n.params,m=Hp({topic:t,relay:s,expiry:c,namespaces:u,acknowledged:!0,requiredNamespaces:l,optionalNamespaces:h,controller:o.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:o.publicKey,metadata:o.metadata}},f&&{sessionProperties:f});await this.sendResult(n.id,t,!0),this.events.emit(be.engineEvent("session_connect"),{session:m})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(be.engineEvent("session_approve",a),{})):Co.isJsonRpcError(n)&&(await this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidUpdate(Hp({topic:t},a)),await this.client.session.update(t,{namespaces:a.namespaces}),await this.sendResult(i,t,!0),this.client.events.emit("session_update",{id:i,topic:t,params:a})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_update",a),{}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(t,n)=>{let{id:a}=n;try{this.isValidExtend({topic:t}),await this.setExpiry(t,be.calcExpiry(Wae)),await this.sendResult(a,t,!0),this.client.events.emit("session_extend",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionExtendResponse=(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_extend",a),{}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(t,n)=>{let{id:a}=n;try{this.isValidPing({topic:t}),await this.sendResult(a,t,!0),this.client.events.emit("session_ping",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionPingResponse=(t,n)=>{let{id:a}=n;setTimeout(()=>{Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_ping",a),{}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(t,n)=>{let{id:a}=n;try{this.isValidDisconnect({topic:t,reason:n.params}),this.client.core.relayer.once(O1.RELAYER_EVENTS.publish,async()=>{await this.deleteSession(t)}),await this.sendResult(a,t,!0),this.client.events.emit("session_delete",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidRequest(Hp({topic:t},i)),await this.setPendingSessionRequest({id:a,topic:t,params:i}),this.client.events.emit("session_request",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(t,n)=>{let{id:a}=n;Co.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_request",a),{result:n.result}):Co.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_request",a),{error:n.error})},this.onSessionEventRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidEmit(Hp({topic:t},i)),this.client.events.emit("session_event",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.isValidConnect=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(c)}let{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:i,sessionProperties:s,relays:o}=t;if(be.isUndefined(n)||await this.isValidPairingTopic(n),!be.isValidRelays(o,!0)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(c)}!be.isUndefined(a)&&be.isValidObject(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!be.isUndefined(i)&&be.isValidObject(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(t,n)=>{let a=be.isValidRequiredNamespaces(t,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async t=>{if(!be.isValidParams(t))throw new Error(be.getInternalError("MISSING_OR_INVALID",`approve() params: ${t}`).message);let{id:n,namespaces:a,relayProtocol:i,sessionProperties:s}=t;await this.isValidProposalId(n);let o=this.client.proposal.get(n),c=be.isValidNamespaces(a,"approve()");if(c)throw new Error(c.message);let u=be.isConformingNamespaces(o.requiredNamespaces,a,"approve()");if(u)throw new Error(u.message);if(!be.isValidString(i,!0)){let{message:l}=be.getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(l)}be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(i)}let{id:n,reason:a}=t;if(await this.isValidProposalId(n),!be.isValidErrorReason(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidSessionSettleRequest=t=>{if(!be.isValidParams(t)){let{message:u}=be.getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(u)}let{relay:n,controller:a,namespaces:i,expiry:s}=t;if(!be.isValidRelay(n)){let{message:u}=be.getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let o=be.isValidController(a,"onSessionSettleRequest()");if(o)throw new Error(o.message);let c=be.isValidNamespaces(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(be.isExpired(s)){let{message:u}=be.getInternalError("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(c)}let{topic:n,namespaces:a}=t;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=be.isValidNamespaces(a,"update()");if(s)throw new Error(s.message);let o=be.isConformingNamespaces(i.requiredNamespaces,a,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionTopic(n)},this.isValidRequest=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(c)}let{topic:n,request:a,chainId:i,expiry:s}=t;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!be.isValidNamespacesChainId(o,i)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(c)}if(!be.isValidRequest(a)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(c)}if(!be.isValidNamespacesRequest(o,i,a.method)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(c)}if(s&&!be.isValidRequestExpiry(s,Vbe)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${Vbe.min} and ${Vbe.max}`);throw new Error(c)}},this.isValidRespond=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(i)}let{topic:n,response:a}=t;if(await this.isValidSessionTopic(n),!be.isValidResponse(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidPing=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async t=>{if(!be.isValidParams(t)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(o)}let{topic:n,event:a,chainId:i}=t;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!be.isValidNamespacesChainId(s,i)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(o)}if(!be.isValidEvent(a)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}if(!be.isValidNamespacesEvent(s,i,a.name)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}},this.isValidDisconnect=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(t,n)=>{Object.values(t).forEach(a=>{if(!be.isValidString(a,!1)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(i)}})}}isInitialized(){if(!this.initialized){let{message:e}=be.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(O1.RELAYER_EVENTS.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let a=await this.client.core.crypto.decode(t,n);Co.isJsonRpcRequest(a)?(this.client.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):Co.isJsonRpcResponse(a)&&(await this.client.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.client.core.expirer.on(O1.EXPIRER_EVENTS.expired,async e=>{let{topic:t,id:n}=be.parseExpirerTarget(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,be.getInternalError("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(await this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=be.getInternalError("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(!this.client.session.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.session.get(e).expiry)){await this.deleteSession(e);let{message:t}=be.getInternalError("EXPIRED",`session topic: ${e}`);throw new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(be.isValidString(e,!1)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}else{let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}async isValidProposalId(e){if(!be.isValidId(e)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);let{message:t}=be.getInternalError("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}},xDe=class extends O1.Store{constructor(e,t){super(e,t,AAt,Ybe),this.core=e,this.logger=t}},_De=class extends O1.Store{constructor(e,t){super(e,t,SAt,Ybe),this.core=e,this.logger=t}},TDe=class extends O1.Store{constructor(e,t){super(e,t,MAt,Ybe),this.core=e,this.logger=t}},AQ=class extends EAt.ISignClient{constructor(e){super(e),this.protocol=IDe,this.version=EDe,this.name=Gbe.name,this.events=new CAt.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=e?.name||Gbe.name,this.metadata=e?.metadata||be.getAppMetadata();let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:C2n.default(bDe.getDefaultLoggerOptions({level:e?.logger||Gbe.logger}));this.core=e?.core||new O1.Core(e),this.logger=bDe.generateChildLogger(t,this.name),this.session=new _De(this.core,this.logger),this.proposal=new xDe(this.core,this.logger),this.pendingRequest=new TDe(this.core,this.logger),this.engine=new wDe(this)}static async init(e){let t=new AQ(e);return await t.initialize(),t}get context(){return bDe.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}},F2n=AQ;Xi.ENGINE_CONTEXT=RAt,Xi.ENGINE_RPC_OPTS=kQ,Xi.HISTORY_CONTEXT=R2n,Xi.HISTORY_EVENTS=S2n,Xi.HISTORY_STORAGE_VERSION=M2n,Xi.PROPOSAL_CONTEXT=AAt,Xi.PROPOSAL_EXPIRY=N2n,Xi.PROPOSAL_EXPIRY_MESSAGE=PAt,Xi.REQUEST_CONTEXT=MAt,Xi.SESSION_CONTEXT=SAt,Xi.SESSION_EXPIRY=Wae,Xi.SESSION_REQUEST_EXPIRY_BOUNDARIES=Vbe,Xi.SIGN_CLIENT_CONTEXT=CDe,Xi.SIGN_CLIENT_DEFAULT=Gbe,Xi.SIGN_CLIENT_EVENTS=A2n,Xi.SIGN_CLIENT_PROTOCOL=IDe,Xi.SIGN_CLIENT_STORAGE_OPTIONS=P2n,Xi.SIGN_CLIENT_STORAGE_PREFIX=Ybe,Xi.SIGN_CLIENT_VERSION=EDe,Xi.SignClient=F2n,Xi.default=AQ});var WAt=_(Qbe=>{"use strict";d();p();Object.defineProperty(Qbe,"__esModule",{value:!0});var W2n=_ae(),qAt=NAt(),kDe=vae(),U2n=dbe(),Jbe=(iae(),nt(aae)),FAt=(f1e(),nt(h1e)),H2n=Lu();function Zbe(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var j2n=Zbe(W2n),z2n=Zbe(qAt),BDe=Zbe(FAt),K2n=Zbe(H2n),BAt="error",G2n="wss://relay.walletconnect.com",V2n="wc",Y2n="universal_provider",DAt=`${V2n}@${2}:${Y2n}:`,$2n="https://rpc.walletconnect.com/v1",Uae={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function PQ(r,e,t){let n,a=PDe(r);return e.rpcMap&&(n=e.rpcMap[a]),n||(n=`${$2n}?chainId=eip155:${a}&projectId=${t}`),n}function PDe(r){return r.includes("eip155")?Number(r.split(":")[1]):Number(r)}function Q2n(r,e){if(!e.includes(r))throw new Error(`Chain '${r}' not approved. Please use one of the following: ${e.toString()}`)}function J2n(r){return r.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}var Xbe=(r,e)=>{let t=n=>{n.request!==e.request||n.topic!==e.topic||(r.events.removeListener("session_request_sent",t),Z2n())};r.on("session_request_sent",t)};function Z2n(){if(typeof window<"u")try{let r=window.localStorage.getItem("WALLETCONNECT_DEEPLINK_CHOICE");if(r){let e=JSON.parse(r);window.open(e.href,"_self","noreferrer noopener")}}catch(r){console.error(r)}}var SDe=class{constructor(e){this.name="eip155",this.namespace=e.namespace,this.client=e.client,this.events=e.events,this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){var t;switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return this.handleSwitchChain(e.request.params?(t=e.request.params[0])==null?void 0:t.chainId:"0x0"),null;case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),await this.client.request(e)):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){let n=PDe(e);if(!this.httpProviders[n]){let a=t||PQ(`${this.name}:${n}`,this.namespace,this.client.core.projectId);if(!a)throw new Error(`No RPC url provided for chainId: ${n}`);this.setHttpProvider(n,a)}this.chainId=n,this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${n}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let n=t||PQ(`${this.name}:${e}`,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new FAt.HttpConnection(n))}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=PDe(t);e[n]=this.createHttpProvider(n)}),e}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}handleSwitchChain(e){let t=parseInt(e,16),n=`${this.name}:${t}`;Q2n(n,this.namespace.chains),this.setDefaultChain(`${t}`)}},RDe=class{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let n=t||PQ(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||PQ(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new BDe.default(n))}},MDe=class{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||PQ(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||PQ(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new BDe.default(n))}},NDe=class{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(Xbe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(Uae.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=this.getCardanoRPCUrl(t);e[t]=this.createHttpProvider(t,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||this.getCardanoRPCUrl(e);return typeof n>"u"?void 0:new Jbe.JsonRpcProvider(new BDe.default(n))}},X2n=Object.defineProperty,ewn=Object.defineProperties,twn=Object.getOwnPropertyDescriptors,LAt=Object.getOwnPropertySymbols,rwn=Object.prototype.hasOwnProperty,nwn=Object.prototype.propertyIsEnumerable,OAt=(r,e,t)=>e in r?X2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,$be=(r,e)=>{for(var t in e||(e={}))rwn.call(e,t)&&OAt(r,t,e[t]);if(LAt)for(var t of LAt(e))nwn.call(e,t)&&OAt(r,t,e[t]);return r},ADe=(r,e)=>ewn(r,twn(e)),SQ=class{constructor(e){this.events=new K2n.default,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:j2n.default(U2n.getDefaultLoggerOptions({level:e?.logger||BAt}))}static async init(e){let t=new SQ(e);return await t.initialize(),t}async request(e,t){let[n,a]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:$be({},e),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(e,t,n){this.request(e,n).then(a=>t(null,a)).catch(a=>t(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:kDe.getSdkError("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");let{uri:n,approval:a}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(i=>{this.session=i}).catch(i=>{if(i.message!==qAt.PROPOSAL_EXPIRY_MESSAGE)throw i;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{let[n,a]=this.validateChain(e);this.getProvider(n).setDefaultChain(a,t)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if(kDe.isValidArray(t)){for(let n of t)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await z2n.default.init({logger:this.providerOpts.logger||BAt,relayUrl:this.providerOpts.relayUrl||G2n,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");Object.keys(this.namespaces).forEach(e=>{var t,n,a;let i=((t=this.session)==null?void 0:t.namespaces[e].accounts)||[],s=J2n(i),o=ADe($be({},Object.assign(this.namespaces[e],(a=(n=this.optionalNamespaces)==null?void 0:n[e])!=null?a:{})),{accounts:i,chains:s});switch(e){case"eip155":this.rpcProviders[e]=new SDe({client:this.client,namespace:o,events:this.events});break;case"solana":this.rpcProviders[e]=new RDe({client:this.client,namespace:o,events:this.events});break;case"cosmos":this.rpcProviders[e]=new MDe({client:this.client,namespace:o,events:this.events});break;case"polkadot":break;case"cip34":this.rpcProviders[e]=new NDe({client:this.client,namespace:o,events:this.events});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?this.events.emit("accountsChanged",n.data):n.name==="chainChanged"?this.onChainChanged(t.chainId):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var n;let{namespaces:a}=t,i=(n=this.client)==null?void 0:n.session.get(e);this.session=ADe($be({},i),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",ADe($be({},kDe.getSdkError("USER_DISCONNECTED")),{data:e.topic}))}),this.on(Uae.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw new Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace((t=this.session)==null?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:n,sessionProperties:a}=e;if(!t||!Object.keys(t).length)throw new Error("Namespaces must be not empty");this.namespaces=t,this.optionalNamespaces=n,this.sessionProperties=a,this.persist("namespaces",t),this.persist("optionalNamespaces",n)}validateChain(e){let[t,n]=e?.split(":")||["",""];if(t&&!Object.keys(this.namespaces).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&n)return[t,n];let a=Object.keys(this.namespaces)[0],i=this.rpcProviders[a].getDefaultChain();return[a,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){let[n,a]=this.validateChain(e);t||this.getProvider(n).setDefaultChain(a),this.namespaces[n].defaultChain=a,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",a)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${DAt}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${DAt}/${e}`)}},awn=SQ;Qbe.UniversalProvider=awn,Qbe.default=SQ});var H6a,iwn,UAt,DDe,swn,HAt,LDe,jAt=ce(()=>{d();p();H6a=Symbol(),iwn=Symbol(),UAt=Object.getPrototypeOf,DDe=new WeakMap,swn=r=>r&&(DDe.has(r)?DDe.get(r):UAt(r)===Object.prototype||UAt(r)===Array.prototype),HAt=r=>swn(r)&&r[iwn]||null,LDe=(r,e=!0)=>{DDe.set(r,e)}});function of(r={}){return cwn(r)}function F1(r,e,t){let n=c5.get(r);(q1.env&&q1.env.MODE)!=="production"&&!n&&console.warn("Please use proxy object");let a,i=[],s=n[3],o=!1,u=s(l=>{if(i.push(l),t){e(i.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(i.splice(0))}))});return o=!0,()=>{o=!1,u()}}function uwn(r,e){let t=c5.get(r);(q1.env&&q1.env.MODE)!=="production"&&!t&&console.warn("Please use proxy object");let[n,a,i]=t;return i(n,a(),e)}var q1,ODe,c5,eve,own,cwn,zAt=ce(()=>{d();p();jAt();q1={},ODe=r=>typeof r=="object"&&r!==null,c5=new WeakMap,eve=new WeakSet,own=(r=Object.is,e=(u,l)=>new Proxy(u,l),t=u=>ODe(u)&&!eve.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),n=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},a=new WeakMap,i=(u,l,h=n)=>{let f=a.get(u);if(f?.[0]===l)return f[1];let m=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return LDe(m,!0),a.set(u,[l,m]),Reflect.ownKeys(u).forEach(y=>{let I=Reflect.get(u,y);eve.has(I)?(LDe(I,!1),m[y]=I):I instanceof Promise?Object.defineProperty(m,y,{get(){return h(I)}}):c5.has(I)?m[y]=uwn(I,h):m[y]=I}),Object.freeze(m)},s=new WeakMap,o=[1,1],c=u=>{if(!ODe(u))throw new Error("object required");let l=s.get(u);if(l)return l;let h=o[0],f=new Set,m=(Q,q=++o[0])=>{h!==q&&(h=q,f.forEach(T=>T(Q,q)))},y=o[1],I=(Q=++o[1])=>(y!==Q&&!f.size&&(y=Q,R.forEach(([q])=>{let T=q[1](Q);T>h&&(h=T)})),h),C=Q=>(q,T)=>{let M=[...q];M[1]=[Q,...M[1]],m(M,T)},R=new Map,L=(Q,q)=>{if((q1.env&&q1.env.MODE)!=="production"&&R.has(Q))throw new Error("prop listener already exists");if(f.size){let T=q[3](C(Q));R.set(Q,[q,T])}else R.set(Q,[q])},F=Q=>{var q;let T=R.get(Q);T&&(R.delete(Q),(q=T[1])==null||q.call(T))},W=Q=>(f.add(Q),f.size===1&&R.forEach(([T,M],A)=>{if((q1.env&&q1.env.MODE)!=="production"&&M)throw new Error("remove already exists");let v=T[3](C(A));R.set(A,[T,v])}),()=>{f.delete(Q),f.size===0&&R.forEach(([T,M],A)=>{M&&(M(),R.set(A,[T]))})}),V=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),H=e(V,{deleteProperty(Q,q){let T=Reflect.get(Q,q);F(q);let M=Reflect.deleteProperty(Q,q);return M&&m(["delete",[q],T]),M},set(Q,q,T,M){var A;let v=Reflect.has(Q,q),k=Reflect.get(Q,q,M);if(v&&r(k,T))return!0;F(q),ODe(T)&&(T=HAt(T)||T);let O=T;if(!((A=Object.getOwnPropertyDescriptor(Q,q))!=null&&A.set))if(T instanceof Promise)T.then(D=>{T.status="fulfilled",T.value=D,m(["resolve",[q],D])}).catch(D=>{T.status="rejected",T.reason=D,m(["reject",[q],D])});else{!c5.has(T)&&t(T)&&(O=of(T));let D=!eve.has(O)&&c5.get(O);D&&L(q,D)}return Reflect.set(Q,q,O,M),m(["set",[q],T,k]),!0}});s.set(u,H);let G=[V,I,i,W];return c5.set(H,G),Reflect.ownKeys(u).forEach(Q=>{let q=Object.getOwnPropertyDescriptor(u,Q);q.get||q.set?Object.defineProperty(V,Q,q):H[Q]=u[Q]}),H})=>[c,c5,eve,r,e,t,n,a,i,s,o],[cwn]=own()});function lwn(r){let e=Object.fromEntries(Object.entries(r).filter(([t,n])=>typeof n<"u"&&n!==null&&n!=="").map(([t,n])=>[t,n.toString()]));return new URLSearchParams(e).toString()}function nve(){let{projectId:r}=Ds.state;if(!r)throw new Error("projectId is required to work with explorer api");return r}function dwn(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var GAt,tl,yt,Hae,qi,ys,za,tve,Ds,KAt,rve,u5,no,Id,Br,RQ,ao,ave,Lm,l5,Nc,Pr,qDe=ce(()=>{d();p();zAt();GAt=un(lc(),1),tl=of({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),yt={state:tl,subscribe(r){return F1(tl,()=>r(tl))},setChains(r){tl.chains=r},setStandaloneChains(r){tl.standaloneChains=r},setStandaloneUri(r){tl.standaloneUri=r},getSelectedChain(){let r=qi.client().getNetwork().chain;return r&&(tl.selectedChain=r),tl.selectedChain},setSelectedChain(r){tl.selectedChain=r},setIsStandalone(r){tl.isStandalone=r},setIsCustomDesktop(r){tl.isCustomDesktop=r},setIsCustomMobile(r){tl.isCustomMobile=r},setIsDataLoaded(r){tl.isDataLoaded=r},setIsUiLoaded(r){tl.isUiLoaded=r},setWalletConnectVersion(r){tl.walletConnectVersion=r}},Hae=of({initialized:!1,ethereumClient:void 0}),qi={setEthereumClient(r){!Hae.initialized&&r&&(Hae.ethereumClient=r,yt.setChains(r.chains),Hae.initialized=!0)},client(){if(Hae.ethereumClient)return Hae.ethereumClient;throw new Error("ClientCtrl has no client set")}},ys=of({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),za={state:ys,subscribe(r){return F1(ys,()=>r(ys))},getAccount(){let r=qi.client().getAccount();ys.address=r.address,ys.isConnected=r.isConnected},async fetchProfile(r,e){try{ys.profileLoading=!0;let t=e??ys.address,{id:n}=qi.client().getDefaultChain();if(t&&n===1){let[a,i]=await Promise.all([qi.client().fetchEnsName({address:t,chainId:1}),qi.client().fetchEnsAvatar({address:t,chainId:1})]);i&&await r(i),ys.profileName=a,ys.profileAvatar=i}}finally{ys.profileLoading=!1}},async fetchBalance(r){try{ys.balanceLoading=!0;let e=r??ys.address;if(e){let t=await qi.client().fetchBalance({address:e});ys.balance={amount:t.formatted,symbol:t.symbol}}}finally{ys.balanceLoading=!1}},setAddress(r){ys.address=r},setIsConnected(r){ys.isConnected=r},resetBalance(){ys.balance=void 0},resetAccount(){ys.address=void 0,ys.isConnected=!1,ys.profileName=void 0,ys.profileAvatar=void 0,ys.balance=void 0}},tve=of({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),Ds={state:tve,subscribe(r){return F1(tve,()=>r(tve))},setConfig(r){var e,t,n,a;if(yt.setStandaloneChains(r.standaloneChains),yt.setIsStandalone(!!((e=r.standaloneChains)!=null&&e.length)||!!r.enableStandaloneMode),yt.setIsCustomMobile(!!((t=r.mobileWallets)!=null&&t.length)),yt.setIsCustomDesktop(!!((n=r.desktopWallets)!=null&&n.length)),yt.setWalletConnectVersion((a=r.walletConnectVersion)!=null?a:1),r.defaultChain)yt.setSelectedChain(r.defaultChain);else if(!yt.state.isStandalone){let i=qi.client().getDefaultChain();yt.setSelectedChain(i)}Object.assign(tve,r)}},KAt="https://explorer-api.walletconnect.com";rve={async fetchWallets(r,e){let t=lwn(e),n=`${KAt}/v3/wallets?projectId=${r}&${t}`;return(await fetch(n)).json()},formatImageUrl(r,e){return`${KAt}/v3/logo/lg/${e}?projectId=${r}`}},u5=of({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});no={state:u5,async getPreviewWallets(r){let{listings:e}=await rve.fetchWallets(nve(),r);return u5.previewWallets=Object.values(e),u5.previewWallets},async getRecomendedWallets(){let{listings:r}=await rve.fetchWallets(nve(),{page:1,entries:6});u5.recomendedWallets=Object.values(r)},async getPaginatedWallets(r){let{page:e,search:t}=r,{listings:n,total:a}=await rve.fetchWallets(nve(),r),i=Object.values(n),s=t?"search":"wallets";return u5[s]={listings:[...u5[s].listings,...i],total:a,page:e??1},{listings:i,total:a}},getImageUrl(r){return rve.formatImageUrl(nve(),r)},resetSearch(){u5.search={listings:[],total:0,page:1}}},Id=of({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),Br={state:Id,subscribe(r){return F1(Id,()=>r(Id))},push(r,e){r!==Id.view&&(Id.view=r,e&&(Id.data=e),Id.history.push(r))},replace(r){Id.view=r,Id.history=[r]},goBack(){if(Id.history.length>1){Id.history.pop();let[r]=Id.history.slice(-1);Id.view=r}}},RQ=of({open:!1}),ao={state:RQ,subscribe(r){return F1(RQ,()=>r(RQ))},async open(r){return new Promise(e=>{let{isStandalone:t,isUiLoaded:n,isDataLoaded:a}=yt.state,{isConnected:i}=za.state,{enableNetworkView:s}=Ds.state;if(t?(yt.setStandaloneUri(r?.uri),yt.setStandaloneChains(r?.standaloneChains),Br.replace("ConnectWallet")):r!=null&&r.route?Br.replace(r.route):i?Br.replace("Account"):s?Br.replace("SelectNetwork"):Br.replace("ConnectWallet"),n&&a)RQ.open=!0,e();else{let o=setInterval(()=>{yt.state.isUiLoaded&&yt.state.isDataLoaded&&(clearInterval(o),RQ.open=!0,e())},200)}})},close(){RQ.open=!1}};ave=of({themeMode:dwn()?"dark":"light"}),Lm={state:ave,subscribe(r){return F1(ave,()=>r(ave))},setThemeConfig(r){Object.assign(ave,r)}},l5=of({open:!1,message:"",variant:"success"}),Nc={state:l5,subscribe(r){return F1(l5,()=>r(l5))},openToast(r,e){l5.open=!0,l5.message=r,l5.variant=e},closeToast(){l5.open=!1}},Pr={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return Pr.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.getOwnPropertyNames(r).length===0&&Object.getOwnPropertySymbols(r).length===0},isHttpUrl(r){return r.startsWith("http://")||r.startsWith("https://")},formatNativeUrl(r,e,t){if(Pr.isHttpUrl(r))return this.formatUniversalUrl(r,e,t);let n=r;n.includes("://")||(n=r.replaceAll("/","").replaceAll(":",""),n=`${n}://`),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}wc?uri=${a}`},formatUniversalUrl(r,e,t){if(!Pr.isHttpUrl(r))return this.formatNativeUrl(r,e,t);let n=r;r.endsWith("/")&&(n=r.slice(0,-1)),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}/wc?uri=${a}`},async wait(r){return new Promise(e=>{setTimeout(e,r)})},openHref(r,e){window.open(r,e,"noreferrer noopener")},setWalletConnectDeepLink(r,e){localStorage.setItem(Pr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:r,name:e}))},setWalletConnectAndroidDeepLink(r){let[e]=r.split("?");localStorage.setItem(Pr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(Pr.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(r){return r===null}};typeof window<"u"&&(window.Buffer||(window.Buffer=GAt.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}))});var ive,sve,FDe,VAt,jae,YAt,pr,WDe,ove,UDe=ce(()=>{d();p();ive=window,sve=ive.ShadowRoot&&(ive.ShadyCSS===void 0||ive.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,FDe=Symbol(),VAt=new WeakMap,jae=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==FDe)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(sve&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=VAt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&VAt.set(t,e))}return e}toString(){return this.cssText}},YAt=r=>new jae(typeof r=="string"?r:r+"",void 0,FDe),pr=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,a,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+r[i+1],r[0]);return new jae(t,r,FDe)},WDe=(r,e)=>{sve?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=ive.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})},ove=sve?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return YAt(t)})(r):r});var HDe,cve,$At,pwn,QAt,zDe,JAt,jDe,vy,uve=ce(()=>{d();p();UDe();UDe();cve=window,$At=cve.trustedTypes,pwn=$At?$At.emptyScript:"",QAt=cve.reactiveElementPolyfillSupport,zDe={toAttribute(r,e){switch(e){case Boolean:r=r?pwn:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},JAt=(r,e)=>e!==r&&(e==e||r==r),jDe={attribute:!0,type:String,converter:zDe,reflect:!1,hasChanged:JAt},vy=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,n)=>{let a=this._$Ep(n,t);a!==void 0&&(this._$Ev.set(a,n),e.push(a))}),e}static createProperty(e,t=jDe){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(a){let i=this[e];this[t]=a,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||jDe}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let a of n)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(ove(a))}else e!==void 0&&t.push(ove(e));return t}static _$Ep(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return WDe(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=jDe){var a;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((a=n.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?n.converter:zDe).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,t){var n;let a=this.constructor,i=a._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=a.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:zDe;this._$El=i,this[i]=o.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let a=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||JAt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((a,i)=>this[i]=a),this._$Ei=void 0);let t=!1,n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var i;return(i=a.hostUpdate)===null||i===void 0?void 0:i.call(a)}),this.update(n)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var a;return(a=n.hostUpdated)===null||a===void 0?void 0:a.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};vy.finalized=!0,vy.elementProperties=new Map,vy.elementStyles=[],vy.shadowRootOptions={mode:"open"},QAt?.({ReactiveElement:vy}),((HDe=cve.reactiveElementVersions)!==null&&HDe!==void 0?HDe:cve.reactiveElementVersions=[]).push("1.6.1")});function DQ(r,e,t=r,n){var a,i,s,o;if(e===wy)return e;let c=n!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[n]:t._$Cl,u=Gae(e)?void 0:e._$litDirective$;return c?.constructor!==u&&((i=c?._$AO)===null||i===void 0||i.call(c,!1),u===void 0?c=void 0:(c=new u(r),c._$AT(r,t,n)),n!==void 0?((s=(o=t)._$Co)!==null&&s!==void 0?s:o._$Co=[])[n]=c:t._$Cl=c),c!==void 0&&(e=DQ(r,c._$AS(r,e.values),c,n)),e}var KDe,lve,NQ,ZAt,W1,iPt,hwn,BQ,Kae,Gae,sPt,fwn,zae,XAt,ePt,d5,tPt,rPt,oPt,cPt,xe,Dr,wy,io,nPt,MQ,mwn,p5,GDe,h5,LQ,VDe,ywn,YDe,$De,QDe,aPt,uPt,f5=ce(()=>{d();p();lve=window,NQ=lve.trustedTypes,ZAt=NQ?NQ.createPolicy("lit-html",{createHTML:r=>r}):void 0,W1=`lit$${(Math.random()+"").slice(9)}$`,iPt="?"+W1,hwn=`<${iPt}>`,BQ=document,Kae=(r="")=>BQ.createComment(r),Gae=r=>r===null||typeof r!="object"&&typeof r!="function",sPt=Array.isArray,fwn=r=>sPt(r)||typeof r?.[Symbol.iterator]=="function",zae=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,XAt=/-->/g,ePt=/>/g,d5=RegExp(`>|[ + Approved: ${o.toString()}`)),Object.keys(e).forEach(p=>{if(!p.includes(":")||n)return;let h=M8(e[p].accounts);h.includes(p)||(n=n2("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${p} + Required: ${p} + Approved: ${h.toString()}`))}),s.forEach(p=>{n||(W6(a[p].methods,i[p].methods)?W6(a[p].events,i[p].events)||(n=n2("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${p}`)):n=n2("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${p}`))}),n}function aHn(r){let e={};return Object.keys(r).forEach(t=>{var n;t.includes(":")?e[t]=r[t]:(n=r[t].chains)==null||n.forEach(a=>{e[a]={methods:r[t].methods,events:r[t].events}})}),e}function Pjt(r){return[...new Set(r.map(e=>e.includes(":")?e.split(":")[0]:e))]}function iHn(r){let e={};return Object.keys(r).forEach(t=>{t.includes(":")?e[t]=r[t]:M8(r[t].accounts)?.forEach(a=>{e[a]={accounts:r[t].accounts.filter(i=>i.includes(`${a}:`)),methods:r[t].methods,events:r[t].events}})}),e}function sHn(r,e){return i_e(r,!1)&&r<=e.max&&r>=e.min}Ae.BASE10=NGe,Ae.BASE16=Rl,Ae.BASE64=Xxe,Ae.COLON=uUn,Ae.DEFAULT_DEPTH=qGe,Ae.EMPTY_SPACE=e_e,Ae.ENV_MAP=are,Ae.ONE_THOUSAND=lUn,Ae.REACT_NATIVE_PRODUCT=Gjt,Ae.RELAYER_DEFAULT_PROTOCOL=azt,Ae.SDK_TYPE=$jt,Ae.SLASH=Vjt,Ae.TYPE_0=OGe,Ae.TYPE_1=sre,Ae.UTF8=a_e,Ae.appendToQueryString=Jjt,Ae.assertType=mUn,Ae.calcExpiry=AUn,Ae.capitalize=xUn,Ae.capitalizeWord=nzt,Ae.createDelayedPromise=_Un,Ae.createExpiringPromise=TUn,Ae.decodeTypeByte=Vle,Ae.decrypt=nUn,Ae.deriveSymKey=XWn,Ae.deserialize=LGe,Ae.encodeTypeByte=jjt,Ae.encrypt=rUn,Ae.engineEvent=SUn,Ae.enumify=wUn,Ae.formatAccountId=Fjt,Ae.formatAccountWithChain=jWn,Ae.formatChainId=Ojt,Ae.formatExpirerTarget=HGe,Ae.formatIdTarget=IUn,Ae.formatMessage=YWn,Ae.formatMessageContext=yUn,Ae.formatRelayParams=szt,Ae.formatRelayRpcUrl=pUn,Ae.formatTopicTarget=EUn,Ae.formatUA=ezt,Ae.formatUri=FUn,Ae.generateKeyPair=JWn,Ae.generateRandomBytes32=ZWn,Ae.getAccountsChains=M8,Ae.getAccountsFromNamespaces=KWn,Ae.getAddressFromAccount=Ljt,Ae.getAddressesFromAccounts=zWn,Ae.getAppMetadata=fUn,Ae.getChainFromAccount=qjt,Ae.getChainsFromAccounts=Wjt,Ae.getChainsFromNamespace=r_e,Ae.getChainsFromNamespaces=GWn,Ae.getChainsFromRequiredNamespaces=VWn,Ae.getDidAddress=Hjt,Ae.getDidAddressSegments=n_e,Ae.getDidChainId=Ujt,Ae.getEnvironment=UGe,Ae.getHttpUrl=hUn,Ae.getInternalError=n2,Ae.getJavascriptID=Xjt,Ae.getJavascriptOS=Zjt,Ae.getLastItems=rzt,Ae.getNamespacedDidChainId=$Wn,Ae.getNamespacesChains=ozt,Ae.getNamespacesEventsForChainId=uzt,Ae.getNamespacesMethodsForChainId=czt,Ae.getRelayClientMetadata=dUn,Ae.getRelayProtocolApi=RUn,Ae.getRelayProtocolName=PUn,Ae.getRequiredNamespacesFromNamespaces=LUn,Ae.getSdkError=R8,Ae.getUniqueValues=DGe,Ae.hasOverlap=W6,Ae.hashKey=eUn,Ae.hashMessage=tUn,Ae.isBrowser=Qjt,Ae.isConformingNamespaces=nHn,Ae.isExpired=kUn,Ae.isNode=WGe,Ae.isProposalStruct=jUn,Ae.isReactNative=Yjt,Ae.isSessionCompatible=UUn,Ae.isSessionStruct=zUn,Ae.isTypeOneEnvelope=iUn,Ae.isUndefined=U6,Ae.isValidAccountId=lzt,Ae.isValidAccounts=pzt,Ae.isValidActions=mzt,Ae.isValidArray=$le,Ae.isValidChainId=s_e,Ae.isValidChains=fzt,Ae.isValidController=KUn,Ae.isValidErrorReason=QUn,Ae.isValidEvent=XUn,Ae.isValidId=$Un,Ae.isValidNamespaceAccounts=hzt,Ae.isValidNamespaceActions=zGe,Ae.isValidNamespaceChains=dzt,Ae.isValidNamespaceMethodsOrEvents=RGe,Ae.isValidNamespaces=yzt,Ae.isValidNamespacesChainId=eHn,Ae.isValidNamespacesEvent=rHn,Ae.isValidNamespacesRequest=tHn,Ae.isValidNumber=i_e,Ae.isValidObject=jGe,Ae.isValidParams=YUn,Ae.isValidRelay=bzt,Ae.isValidRelays=VUn,Ae.isValidRequest=JUn,Ae.isValidRequestExpiry=sHn,Ae.isValidRequiredNamespaces=GUn,Ae.isValidResponse=ZUn,Ae.isValidString=Id,Ae.isValidUrl=HUn,Ae.mapEntries=vUn,Ae.mapToObj=bUn,Ae.objToMap=gUn,Ae.parseAccountId=BGe,Ae.parseChainId=Njt,Ae.parseContextNames=tzt,Ae.parseExpirerTarget=CUn,Ae.parseRelayParams=izt,Ae.parseUri=OUn,Ae.serialize=zjt,Ae.validateDecoding=aUn,Ae.validateEncoding=Kjt});var vzt=E((v1i,gzt)=>{"use strict";f();d();function oHn(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}gzt.exports=cHn;function cHn(r,e,t){var n=t&&t.stringify||oHn,a=1;if(typeof r=="object"&&r!==null){var i=e.length+a;if(i===1)return r;var s=new Array(i);s[0]=n(r);for(var o=1;o-1?p:0,r.charCodeAt(m+1)){case 100:case 102:if(l>=c||e[l]==null)break;p=c||e[l]==null)break;p=c||e[l]===void 0)break;p",p=m+2,m++;break}u+=n(e[l]),p=m+2,m++;break;case 115:if(l>=c)break;p{"use strict";f();d();var wzt=vzt();Tzt.exports=uy;var Qle=gHn().console||{},uHn={mapHttpRequest:o_e,mapHttpResponse:o_e,wrapRequestSerializer:KGe,wrapResponseSerializer:KGe,wrapErrorSerializer:KGe,req:o_e,res:o_e,err:hHn};function lHn(r,e){return Array.isArray(r)?r.filter(function(n){return n!=="!stdSerializers.err"}):r===!0?Object.keys(e):!1}function uy(r){r=r||{},r.browser=r.browser||{};let e=r.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let t=r.browser.write||Qle;r.browser.write&&(r.browser.asObject=!0);let n=r.serializers||{},a=lHn(r.browser.serialize,n),i=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=["error","fatal","warn","info","debug","trace"];typeof t=="function"&&(t.error=t.fatal=t.warn=t.info=t.debug=t.trace=t),r.enabled===!1&&(r.level="silent");let o=r.level||"info",c=Object.create(t);c.log||(c.log=Jle),Object.defineProperty(c,"levelVal",{get:l}),Object.defineProperty(c,"level",{get:p,set:h});let u={transmit:e,serialize:a,asObject:r.browser.asObject,levels:s,timestamp:mHn(r)};c.levels=uy.levels,c.level=o,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=Jle,c.serializers=n,c._serialize=a,c._stdErrSerialize=i,c.child=m,e&&(c._logEvent=GGe());function l(){return this.level==="silent"?1/0:this.levels.values[this.level]}function p(){return this._level}function h(y){if(y!=="silent"&&!this.levels.values[y])throw Error("unknown level "+y);this._level=y,ore(u,c,"error","log"),ore(u,c,"fatal","error"),ore(u,c,"warn","error"),ore(u,c,"info","log"),ore(u,c,"debug","log"),ore(u,c,"trace","log")}function m(y,C){if(!y)throw new Error("missing bindings for child Pino");C=C||{},a&&y.serializers&&(C.serializers=y.serializers);let P=C.serializers;if(a&&P){var A=Object.assign({},n,P),B=r.browser.serialize===!0?Object.keys(A):a;delete y.serializers,c_e([y],B,A,this._stdErrSerialize)}function F(W){this._childLevel=(W._childLevel|0)+1,this.error=cre(W,y,"error"),this.fatal=cre(W,y,"fatal"),this.warn=cre(W,y,"warn"),this.info=cre(W,y,"info"),this.debug=cre(W,y,"debug"),this.trace=cre(W,y,"trace"),A&&(this.serializers=A,this._serialize=B),e&&(this._logEvent=GGe([].concat(W._logEvent.bindings,y)))}return F.prototype=this,new F(this)}return c}uy.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"}};uy.stdSerializers=uHn;uy.stdTimeFunctions=Object.assign({},{nullTime:xzt,epochTime:_zt,unixTime:yHn,isoTime:bHn});function ore(r,e,t,n){let a=Object.getPrototypeOf(e);e[t]=e.levelVal>e.levels.values[t]?Jle:a[t]?a[t]:Qle[t]||Qle[n]||Jle,fHn(r,e,t)}function fHn(r,e,t){!r.transmit&&e[t]===Jle||(e[t]=function(n){return function(){let i=r.timestamp(),s=new Array(arguments.length),o=Object.getPrototypeOf&&Object.getPrototypeOf(this)===Qle?Qle:this;for(var c=0;c-1&&i in t&&(r[a][i]=t[i](r[a][i]))}function cre(r,e,t){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var a=1;a{"use strict";f();d();Object.defineProperty(u_e,"__esModule",{value:!0});function vHn(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}u_e.safeJsonParse=vHn;function wHn(r){return typeof r=="string"?r:JSON.stringify(r,(e,t)=>typeof t>"u"?null:t)}u_e.safeJsonStringify=wHn});var Ezt=E((k1i,l_e)=>{"use strict";f();d();(function(){"use strict";let r;function e(){}r=e,r.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},r.prototype.setItem=function(t,n){this[t]=String(n)},r.prototype.removeItem=function(t){delete this[t]},r.prototype.clear=function(){let t=this;Object.keys(t).forEach(function(n){t[n]=void 0,delete t[n]})},r.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},r.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof global<"u"&&global.localStorage?l_e.exports=global.localStorage:typeof window<"u"&&window.localStorage?l_e.exports=window.localStorage:l_e.exports=new e})()});var Izt=E(f_e=>{"use strict";f();d();Object.defineProperty(f_e,"__esModule",{value:!0});f_e.IKeyValueStorage=void 0;var $Ge=class{};f_e.IKeyValueStorage=$Ge});var Czt=E(d_e=>{"use strict";f();d();Object.defineProperty(d_e,"__esModule",{value:!0});d_e.parseEntry=void 0;var xHn=VGe();function _Hn(r){var e;return[r[0],xHn.safeJsonParse((e=r[1])!==null&&e!==void 0?e:"")]}d_e.parseEntry=_Hn});var kzt=E(p_e=>{"use strict";f();d();Object.defineProperty(p_e,"__esModule",{value:!0});var Azt=_d();Azt.__exportStar(Izt(),p_e);Azt.__exportStar(Czt(),p_e)});var Pzt=E(Xle=>{"use strict";f();d();Object.defineProperty(Xle,"__esModule",{value:!0});Xle.KeyValueStorage=void 0;var ure=_d(),Szt=VGe(),THn=ure.__importDefault(Ezt()),EHn=kzt(),h_e=class{constructor(){this.localStorage=THn.default}getKeys(){return ure.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return ure.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(EHn.parseEntry)})}getItem(e){return ure.__awaiter(this,void 0,void 0,function*(){let t=this.localStorage.getItem(e);if(t!==null)return Szt.safeJsonParse(t)})}setItem(e,t){return ure.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(e,Szt.safeJsonStringify(t))})}removeItem(e){return ure.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}};Xle.KeyValueStorage=h_e;Xle.default=h_e});var YGe,Rzt=de(()=>{f();d();YGe=class{}});var QGe={};Rr(QGe,{IEvents:()=>YGe});var JGe=de(()=>{f();d();Rzt()});var Mzt=E(m_e=>{"use strict";f();d();Object.defineProperty(m_e,"__esModule",{value:!0});m_e.IHeartBeat=void 0;var IHn=(JGe(),Ht(QGe)),ZGe=class extends IHn.IEvents{constructor(e){super()}};m_e.IHeartBeat=ZGe});var eVe=E(XGe=>{"use strict";f();d();Object.defineProperty(XGe,"__esModule",{value:!0});var CHn=_d();CHn.__exportStar(Mzt(),XGe)});var Bzt=E(lre=>{"use strict";f();d();Object.defineProperty(lre,"__esModule",{value:!0});lre.HEARTBEAT_EVENTS=lre.HEARTBEAT_INTERVAL=void 0;var AHn=P8();lre.HEARTBEAT_INTERVAL=AHn.FIVE_SECONDS;lre.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var rVe=E(tVe=>{"use strict";f();d();Object.defineProperty(tVe,"__esModule",{value:!0});var kHn=_d();kHn.__exportStar(Bzt(),tVe)});var Dzt=E(y_e=>{"use strict";f();d();Object.defineProperty(y_e,"__esModule",{value:!0});y_e.HeartBeat=void 0;var nVe=_d(),SHn=ml(),PHn=P8(),RHn=eVe(),aVe=rVe(),efe=class extends RHn.IHeartBeat{constructor(e){super(e),this.events=new SHn.EventEmitter,this.interval=aVe.HEARTBEAT_INTERVAL,this.interval=e?.interval||aVe.HEARTBEAT_INTERVAL}static init(e){return nVe.__awaiter(this,void 0,void 0,function*(){let t=new efe(e);return yield t.init(),t})}init(){return nVe.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}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)}initialize(){return nVe.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),PHn.toMiliseconds(this.interval))})}pulse(){this.events.emit(aVe.HEARTBEAT_EVENTS.pulse)}};y_e.HeartBeat=efe});var Nzt=E(tfe=>{"use strict";f();d();Object.defineProperty(tfe,"__esModule",{value:!0});var iVe=_d();iVe.__exportStar(Dzt(),tfe);iVe.__exportStar(eVe(),tfe);iVe.__exportStar(rVe(),tfe)});var sVe=E(fre=>{"use strict";f();d();Object.defineProperty(fre,"__esModule",{value:!0});fre.PINO_CUSTOM_CONTEXT_KEY=fre.PINO_LOGGER_DEFAULTS=void 0;fre.PINO_LOGGER_DEFAULTS={level:"info"};fre.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var Wzt=E(Cf=>{"use strict";f();d();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.generateChildLogger=Cf.formatChildLoggerContext=Cf.getLoggerContext=Cf.setBrowserLoggerContext=Cf.getBrowserLoggerContext=Cf.getDefaultLoggerOptions=void 0;var dre=sVe();function MHn(r){return Object.assign(Object.assign({},r),{level:r?.level||dre.PINO_LOGGER_DEFAULTS.level})}Cf.getDefaultLoggerOptions=MHn;function Ozt(r,e=dre.PINO_CUSTOM_CONTEXT_KEY){return r[e]||""}Cf.getBrowserLoggerContext=Ozt;function Fzt(r,e,t=dre.PINO_CUSTOM_CONTEXT_KEY){return r[t]=e,r}Cf.setBrowserLoggerContext=Fzt;function Lzt(r,e=dre.PINO_CUSTOM_CONTEXT_KEY){let t="";return typeof r.bindings>"u"?t=Ozt(r,e):t=r.bindings().context||"",t}Cf.getLoggerContext=Lzt;function qzt(r,e,t=dre.PINO_CUSTOM_CONTEXT_KEY){let n=Lzt(r,t);return n.trim()?`${n}/${e}`:e}Cf.formatChildLoggerContext=qzt;function BHn(r,e,t=dre.PINO_CUSTOM_CONTEXT_KEY){let n=qzt(r,e,t),a=r.child({context:n});return Fzt(a,n,t)}Cf.generateChildLogger=BHn});var b_e=E(pre=>{"use strict";f();d();Object.defineProperty(pre,"__esModule",{value:!0});pre.pino=void 0;var oVe=_d(),DHn=oVe.__importDefault(Zle());Object.defineProperty(pre,"pino",{enumerable:!0,get:function(){return DHn.default}});oVe.__exportStar(sVe(),pre);oVe.__exportStar(Wzt(),pre)});var EVe=E(R0=>{"use strict";f();d();Object.defineProperty(R0,"__esModule",{value:!0});var hre=(JGe(),Ht(QGe)),Uzt=ml();function NHn(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var OHn=NHn(Uzt),cVe=class extends hre.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}},uVe=class{constructor(e,t,n){this.core=e,this.logger=t}},lVe=class extends hre.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}},fVe=class{constructor(e,t){this.logger=e,this.core=t}},dVe=class extends hre.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},pVe=class extends hre.IEvents{constructor(e){super()}},hVe=class{constructor(e,t,n,a){this.core=e,this.logger=t,this.name=n}},mVe=class{constructor(){this.map=new Map}},yVe=class extends hre.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},bVe=class{constructor(e,t){this.core=e,this.logger=t}},gVe=class extends hre.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}},vVe=class{constructor(e,t){this.logger=e,this.core=t}},wVe=class extends OHn.default{constructor(){super()}},xVe=class{constructor(e){this.opts=e,this.protocol="wc",this.version=2}},_Ve=class extends Uzt.EventEmitter{constructor(){super()}},TVe=class{constructor(e){this.client=e}};R0.ICore=cVe,R0.ICrypto=uVe,R0.IEngine=TVe,R0.IEngineEvents=_Ve,R0.IExpirer=gVe,R0.IJsonRpcHistory=lVe,R0.IKeyChain=bVe,R0.IMessageTracker=fVe,R0.IPairing=vVe,R0.IPublisher=dVe,R0.IRelayer=pVe,R0.ISignClient=xVe,R0.ISignClientEvents=wVe,R0.IStore=hVe,R0.ISubscriber=yVe,R0.ISubscriberTopicMap=mVe});var zzt=E(a2=>{"use strict";f();d();Object.defineProperty(a2,"__esModule",{value:!0});var yre=Xte(),mre=$p();a2.DIGEST_LENGTH=64;a2.BLOCK_SIZE=128;var jzt=function(){function r(){this.digestLength=a2.DIGEST_LENGTH,this.blockSize=a2.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){mre.wipe(this._buffer),mre.wipe(this._tempHi),mre.wipe(this._tempLo),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(IVe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=IVe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%128<112?128:256;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){mre.wipe(e.stateHi),mre.wipe(e.stateLo),e.buffer&&mre.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();a2.SHA512=jzt;var Hzt=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function IVe(r,e,t,n,a,i,s){for(var o=t[0],c=t[1],u=t[2],l=t[3],p=t[4],h=t[5],m=t[6],y=t[7],C=n[0],P=n[1],A=n[2],B=n[3],F=n[4],W=n[5],K=n[6],z=n[7],G,j,H,I,b,k,S,w;s>=128;){for(var R=0;R<16;R++){var O=8*R+i;r[R]=yre.readUint32BE(a,O),e[R]=yre.readUint32BE(a,O+4)}for(var R=0;R<80;R++){var D=o,T=c,x=u,N=l,U=p,M=h,V=m,ee=y,$=C,X=P,se=A,ue=B,ye=F,Ie=W,ge=K,xe=z;if(G=y,j=z,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=(p>>>14|F<<32-14)^(p>>>18|F<<32-18)^(F>>>41-32|p<<32-(41-32)),j=(F>>>14|p<<32-14)^(F>>>18|p<<32-18)^(p>>>41-32|F<<32-(41-32)),b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,G=p&h^~p&m,j=F&W^~F&K,b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,G=Hzt[R*2],j=Hzt[R*2+1],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,G=r[R%16],j=e[R%16],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,H=S&65535|w<<16,I=b&65535|k<<16,G=H,j=I,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=(o>>>28|C<<32-28)^(C>>>34-32|o<<32-(34-32))^(C>>>39-32|o<<32-(39-32)),j=(C>>>28|o<<32-28)^(o>>>34-32|C<<32-(34-32))^(o>>>39-32|C<<32-(39-32)),b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,G=o&c^o&u^c&u,j=C&P^C&A^P&A,b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,ee=S&65535|w<<16,xe=b&65535|k<<16,G=N,j=ue,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=H,j=I,b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,N=S&65535|w<<16,ue=b&65535|k<<16,c=D,u=T,l=x,p=N,h=U,m=M,y=V,o=ee,P=$,A=X,B=se,F=ue,W=ye,K=Ie,z=ge,C=xe,R%16===15)for(var O=0;O<16;O++)G=r[O],j=e[O],b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=r[(O+9)%16],j=e[(O+9)%16],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,H=r[(O+1)%16],I=e[(O+1)%16],G=(H>>>1|I<<32-1)^(H>>>8|I<<32-8)^H>>>7,j=(I>>>1|H<<32-1)^(I>>>8|H<<32-8)^(I>>>7|H<<32-7),b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,H=r[(O+14)%16],I=e[(O+14)%16],G=(H>>>19|I<<32-19)^(I>>>61-32|H<<32-(61-32))^H>>>6,j=(I>>>19|H<<32-19)^(H>>>61-32|I<<32-(61-32))^(I>>>6|H<<32-6),b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,r[O]=S&65535|w<<16,e[O]=b&65535|k<<16}G=o,j=C,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[0],j=n[0],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[0]=o=S&65535|w<<16,n[0]=C=b&65535|k<<16,G=c,j=P,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[1],j=n[1],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[1]=c=S&65535|w<<16,n[1]=P=b&65535|k<<16,G=u,j=A,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[2],j=n[2],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[2]=u=S&65535|w<<16,n[2]=A=b&65535|k<<16,G=l,j=B,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[3],j=n[3],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[3]=l=S&65535|w<<16,n[3]=B=b&65535|k<<16,G=p,j=F,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[4],j=n[4],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[4]=p=S&65535|w<<16,n[4]=F=b&65535|k<<16,G=h,j=W,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[5],j=n[5],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[5]=h=S&65535|w<<16,n[5]=W=b&65535|k<<16,G=m,j=K,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[6],j=n[6],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[6]=m=S&65535|w<<16,n[6]=K=b&65535|k<<16,G=y,j=z,b=j&65535,k=j>>>16,S=G&65535,w=G>>>16,G=t[7],j=n[7],b+=j&65535,k+=j>>>16,S+=G&65535,w+=G>>>16,k+=b>>>16,S+=k>>>16,w+=S>>>16,t[7]=y=S&65535|w<<16,n[7]=z=b&65535|k<<16,i+=128,s-=128}return i}function FHn(r){var e=new jzt;e.update(r);var t=e.digest();return e.clean(),t}a2.hash=FHn});var aKt=E(Bi=>{"use strict";f();d();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.convertSecretKeyToX25519=Bi.convertPublicKeyToX25519=Bi.verify=Bi.sign=Bi.extractPublicKeyFromSecretKey=Bi.generateKeyPair=Bi.generateKeyPairFromSeed=Bi.SEED_LENGTH=Bi.SECRET_KEY_LENGTH=Bi.PUBLIC_KEY_LENGTH=Bi.SIGNATURE_LENGTH=void 0;var LHn=Wle(),rfe=zzt(),Yzt=$p();Bi.SIGNATURE_LENGTH=64;Bi.PUBLIC_KEY_LENGTH=32;Bi.SECRET_KEY_LENGTH=64;Bi.SEED_LENGTH=32;function rr(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,Qzt(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function Jzt(r,e){let t=0;for(let n=0;n<32;n++)t|=r[n]^e[n];return(1&t-1>>>8)-1}function Vzt(r,e){let t=new Uint8Array(32),n=new Uint8Array(32);return nfe(t,r),nfe(n,e),Jzt(t,n)}function Zzt(r){let e=new Uint8Array(32);return nfe(e,r),e[0]&1}function jHn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function B8(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function N8(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function Gi(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,p=0,h=0,m=0,y=0,C=0,P=0,A=0,B=0,F=0,W=0,K=0,z=0,G=0,j=0,H=0,I=0,b=0,k=0,S=0,w=0,R=0,O=0,D=0,T=0,x=0,N=t[0],U=t[1],M=t[2],V=t[3],ee=t[4],$=t[5],X=t[6],se=t[7],ue=t[8],ye=t[9],Ie=t[10],ge=t[11],xe=t[12],Ue=t[13],Te=t[14],Be=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*M,c+=n*V,u+=n*ee,l+=n*$,p+=n*X,h+=n*se,m+=n*ue,y+=n*ye,C+=n*Ie,P+=n*ge,A+=n*xe,B+=n*Ue,F+=n*Te,W+=n*Be,n=e[1],s+=n*N,o+=n*U,c+=n*M,u+=n*V,l+=n*ee,p+=n*$,h+=n*X,m+=n*se,y+=n*ue,C+=n*ye,P+=n*Ie,A+=n*ge,B+=n*xe,F+=n*Ue,W+=n*Te,K+=n*Be,n=e[2],o+=n*N,c+=n*U,u+=n*M,l+=n*V,p+=n*ee,h+=n*$,m+=n*X,y+=n*se,C+=n*ue,P+=n*ye,A+=n*Ie,B+=n*ge,F+=n*xe,W+=n*Ue,K+=n*Te,z+=n*Be,n=e[3],c+=n*N,u+=n*U,l+=n*M,p+=n*V,h+=n*ee,m+=n*$,y+=n*X,C+=n*se,P+=n*ue,A+=n*ye,B+=n*Ie,F+=n*ge,W+=n*xe,K+=n*Ue,z+=n*Te,G+=n*Be,n=e[4],u+=n*N,l+=n*U,p+=n*M,h+=n*V,m+=n*ee,y+=n*$,C+=n*X,P+=n*se,A+=n*ue,B+=n*ye,F+=n*Ie,W+=n*ge,K+=n*xe,z+=n*Ue,G+=n*Te,j+=n*Be,n=e[5],l+=n*N,p+=n*U,h+=n*M,m+=n*V,y+=n*ee,C+=n*$,P+=n*X,A+=n*se,B+=n*ue,F+=n*ye,W+=n*Ie,K+=n*ge,z+=n*xe,G+=n*Ue,j+=n*Te,H+=n*Be,n=e[6],p+=n*N,h+=n*U,m+=n*M,y+=n*V,C+=n*ee,P+=n*$,A+=n*X,B+=n*se,F+=n*ue,W+=n*ye,K+=n*Ie,z+=n*ge,G+=n*xe,j+=n*Ue,H+=n*Te,I+=n*Be,n=e[7],h+=n*N,m+=n*U,y+=n*M,C+=n*V,P+=n*ee,A+=n*$,B+=n*X,F+=n*se,W+=n*ue,K+=n*ye,z+=n*Ie,G+=n*ge,j+=n*xe,H+=n*Ue,I+=n*Te,b+=n*Be,n=e[8],m+=n*N,y+=n*U,C+=n*M,P+=n*V,A+=n*ee,B+=n*$,F+=n*X,W+=n*se,K+=n*ue,z+=n*ye,G+=n*Ie,j+=n*ge,H+=n*xe,I+=n*Ue,b+=n*Te,k+=n*Be,n=e[9],y+=n*N,C+=n*U,P+=n*M,A+=n*V,B+=n*ee,F+=n*$,W+=n*X,K+=n*se,z+=n*ue,G+=n*ye,j+=n*Ie,H+=n*ge,I+=n*xe,b+=n*Ue,k+=n*Te,S+=n*Be,n=e[10],C+=n*N,P+=n*U,A+=n*M,B+=n*V,F+=n*ee,W+=n*$,K+=n*X,z+=n*se,G+=n*ue,j+=n*ye,H+=n*Ie,I+=n*ge,b+=n*xe,k+=n*Ue,S+=n*Te,w+=n*Be,n=e[11],P+=n*N,A+=n*U,B+=n*M,F+=n*V,W+=n*ee,K+=n*$,z+=n*X,G+=n*se,j+=n*ue,H+=n*ye,I+=n*Ie,b+=n*ge,k+=n*xe,S+=n*Ue,w+=n*Te,R+=n*Be,n=e[12],A+=n*N,B+=n*U,F+=n*M,W+=n*V,K+=n*ee,z+=n*$,G+=n*X,j+=n*se,H+=n*ue,I+=n*ye,b+=n*Ie,k+=n*ge,S+=n*xe,w+=n*Ue,R+=n*Te,O+=n*Be,n=e[13],B+=n*N,F+=n*U,W+=n*M,K+=n*V,z+=n*ee,G+=n*$,j+=n*X,H+=n*se,I+=n*ue,b+=n*ye,k+=n*Ie,S+=n*ge,w+=n*xe,R+=n*Ue,O+=n*Te,D+=n*Be,n=e[14],F+=n*N,W+=n*U,K+=n*M,z+=n*V,G+=n*ee,j+=n*$,H+=n*X,I+=n*se,b+=n*ue,k+=n*ye,S+=n*Ie,w+=n*ge,R+=n*xe,O+=n*Ue,D+=n*Te,T+=n*Be,n=e[15],W+=n*N,K+=n*U,z+=n*M,G+=n*V,j+=n*ee,H+=n*$,I+=n*X,b+=n*se,k+=n*ue,S+=n*ye,w+=n*Ie,R+=n*ge,O+=n*xe,D+=n*Ue,T+=n*Te,x+=n*Be,i+=38*K,s+=38*z,o+=38*G,c+=38*j,u+=38*H,l+=38*I,p+=38*b,h+=38*k,m+=38*S,y+=38*w,C+=38*R,P+=38*O,A+=38*D,B+=38*T,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=p+a+65535,a=Math.floor(n/65536),p=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=P+a+65535,a=Math.floor(n/65536),P=n-a*65536,n=A+a+65535,a=Math.floor(n/65536),A=n-a*65536,n=B+a+65535,a=Math.floor(n/65536),B=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=p+a+65535,a=Math.floor(n/65536),p=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=C+a+65535,a=Math.floor(n/65536),C=n-a*65536,n=P+a+65535,a=Math.floor(n/65536),P=n-a*65536,n=A+a+65535,a=Math.floor(n/65536),A=n-a*65536,n=B+a+65535,a=Math.floor(n/65536),B=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=p,r[7]=h,r[8]=m,r[9]=y,r[10]=C,r[11]=P,r[12]=A,r[13]=B,r[14]=F,r[15]=W}function D8(r,e){Gi(r,e,e)}function Xzt(r,e){let t=rr(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=253;n>=0;n--)D8(t,t),n!==2&&n!==4&&Gi(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function zHn(r,e){let t=rr(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=250;n>=0;n--)D8(t,t),n!==1&&Gi(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function SVe(r,e){let t=rr(),n=rr(),a=rr(),i=rr(),s=rr(),o=rr(),c=rr(),u=rr(),l=rr();N8(t,r[1],r[0]),N8(l,e[1],e[0]),Gi(t,t,l),B8(n,r[0],r[1]),B8(l,e[0],e[1]),Gi(n,n,l),Gi(a,r[3],e[3]),Gi(a,a,UHn),Gi(i,r[2],e[2]),B8(i,i,i),N8(s,n,t),N8(o,i,a),B8(c,i,a),B8(u,n,t),Gi(r[0],s,o),Gi(r[1],u,c),Gi(r[2],c,o),Gi(r[3],s,u)}function $zt(r,e,t){for(let n=0;n<4;n++)Qzt(r[n],e[n],t)}function RVe(r,e){let t=rr(),n=rr(),a=rr();Xzt(a,e[2]),Gi(t,e[0],a),Gi(n,e[1],a),nfe(r,n),r[31]^=Zzt(t)<<7}function eKt(r,e,t){H6(r[0],kVe),H6(r[1],bre),H6(r[2],bre),H6(r[3],kVe);for(let n=255;n>=0;--n){let a=t[n/8|0]>>(n&7)&1;$zt(r,e,a),SVe(e,r),SVe(r,r),$zt(r,e,a)}}function MVe(r,e){let t=[rr(),rr(),rr(),rr()];H6(t[0],Kzt),H6(t[1],Gzt),H6(t[2],bre),Gi(t[3],Kzt,Gzt),eKt(r,t,e)}function tKt(r){if(r.length!==Bi.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Bi.SEED_LENGTH} bytes`);let e=(0,rfe.hash)(r);e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(32),n=[rr(),rr(),rr(),rr()];MVe(n,e),RVe(t,n);let a=new Uint8Array(64);return a.set(r),a.set(t,32),{publicKey:t,secretKey:a}}Bi.generateKeyPairFromSeed=tKt;function KHn(r){let e=(0,LHn.randomBytes)(32,r),t=tKt(e);return(0,Yzt.wipe)(e),t}Bi.generateKeyPair=KHn;function GHn(r){if(r.length!==Bi.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Bi.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(r.subarray(32))}Bi.extractPublicKeyFromSecretKey=GHn;var AVe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function rKt(r,e){let t,n,a,i;for(n=63;n>=32;--n){for(t=0,a=n-32,i=n-12;a>4)*AVe[a],t=e[a]>>8,e[a]&=255;for(a=0;a<32;a++)e[a]-=t*AVe[a];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,r[n]=e[n]&255}function PVe(r){let e=new Float64Array(64);for(let t=0;t<64;t++)e[t]=r[t];for(let t=0;t<64;t++)r[t]=0;rKt(r,e)}function VHn(r,e){let t=new Float64Array(64),n=[rr(),rr(),rr(),rr()],a=(0,rfe.hash)(r.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let i=new Uint8Array(64);i.set(a.subarray(32),32);let s=new rfe.SHA512;s.update(i.subarray(32)),s.update(e);let o=s.digest();s.clean(),PVe(o),MVe(n,o),RVe(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(r.subarray(32)),s.update(e);let c=s.digest();PVe(c);for(let u=0;u<32;u++)t[u]=o[u];for(let u=0;u<32;u++)for(let l=0;l<32;l++)t[u+l]+=c[u]*a[l];return rKt(i.subarray(32),t),i}Bi.sign=VHn;function nKt(r,e){let t=rr(),n=rr(),a=rr(),i=rr(),s=rr(),o=rr(),c=rr();return H6(r[2],bre),jHn(r[1],e),D8(a,r[1]),Gi(i,a,WHn),N8(a,a,r[2]),B8(i,r[2],i),D8(s,i),D8(o,s),Gi(c,o,s),Gi(t,c,a),Gi(t,t,i),zHn(t,t),Gi(t,t,a),Gi(t,t,i),Gi(t,t,i),Gi(r[0],t,i),D8(n,r[0]),Gi(n,n,i),Vzt(n,a)&&Gi(r[0],r[0],HHn),D8(n,r[0]),Gi(n,n,i),Vzt(n,a)?-1:(Zzt(r[0])===e[31]>>7&&N8(r[0],kVe,r[0]),Gi(r[3],r[0],r[1]),0)}function $Hn(r,e,t){let n=new Uint8Array(32),a=[rr(),rr(),rr(),rr()],i=[rr(),rr(),rr(),rr()];if(t.length!==Bi.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Bi.SIGNATURE_LENGTH} bytes`);if(nKt(i,r))return!1;let s=new rfe.SHA512;s.update(t.subarray(0,32)),s.update(r),s.update(e);let o=s.digest();return PVe(o),eKt(a,i,o),MVe(i,t.subarray(32)),SVe(a,i),RVe(n,a),!Jzt(t,n)}Bi.verify=$Hn;function YHn(r){let e=[rr(),rr(),rr(),rr()];if(nKt(e,r))throw new Error("Ed25519: invalid public key");let t=rr(),n=rr(),a=e[1];B8(t,bre,a),N8(n,bre,a),Xzt(n,n),Gi(t,t,n);let i=new Uint8Array(32);return nfe(i,t),i}Bi.convertPublicKeyToX25519=YHn;function QHn(r){let e=(0,rfe.hash)(r.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(e.subarray(0,32));return(0,Yzt.wipe)(e),t}Bi.convertSecretKeyToX25519=QHn});var g_e,v_e,O8,gre,w_e,afe,x_e,__e,T_e,vre,E_e,I_e,iKt,sKt,C_e=de(()=>{f();d();g_e="EdDSA",v_e="JWT",O8=".",gre="base64url",w_e="utf8",afe="utf8",x_e=":",__e="did",T_e="key",vre="base58btc",E_e="z",I_e="K36",iKt=32,sKt=32});function ife(r){return Qb(C1(Mh(r,gre),w_e))}function sfe(r){return C1(Mh(iy(r),w_e),gre)}function BVe(r){let e=Mh(I_e,vre),t=E_e+C1(Ise([e,r]),vre);return[__e,T_e,t].join(x_e)}function DVe(r){let[e,t,n]=r.split(x_e);if(e!==__e||t!==T_e)throw new Error('Issuer must be a DID with method "key"');if(n.slice(0,1)!==E_e)throw new Error("Issuer must be a key in mulicodec format");let i=Mh(n.slice(1),vre);if(C1(i.slice(0,2),vre)!==I_e)throw new Error('Issuer must be a public key with type "Ed25519"');let o=i.slice(2);if(o.length!==32)throw new Error("Issuer must be a public key with length 32 bytes");return o}function oKt(r){return C1(r,gre)}function cKt(r){return Mh(r,gre)}function NVe(r){return Mh([sfe(r.header),sfe(r.payload)].join(O8),afe)}function JHn(r){let e=C1(r,afe).split(O8),t=ife(e[0]),n=ife(e[1]);return{header:t,payload:n}}function OVe(r){return[sfe(r.header),sfe(r.payload),oKt(r.signature)].join(O8)}function FVe(r){let e=r.split(O8),t=ife(e[0]),n=ife(e[1]),a=cKt(e[2]),i=Mh(e.slice(0,2).join(O8),afe);return{header:t,payload:n,signature:a,data:i}}var LVe=de(()=>{f();d();Lw();KZ();Fw();zte();C_e()});function ZHn(r=(0,uKt.randomBytes)(32)){return wre.generateKeyPairFromSeed(r)}async function XHn(r,e,t,n,a=(0,lKt.fromMiliseconds)(Date.now())){let i={alg:g_e,typ:v_e},s=BVe(n.publicKey),o=a+t,c={iss:s,sub:r,aud:e,iat:a,exp:o},u=NVe({header:i,payload:c}),l=wre.sign(n.secretKey,u);return OVe({header:i,payload:c,signature:l})}async function ejn(r){let{header:e,payload:t,data:n,signature:a}=FVe(r);if(e.alg!==g_e||e.typ!==v_e)throw new Error("JWT must use EdDSA algorithm");let i=DVe(t.iss);return wre.verify(i,n,a)}var wre,uKt,lKt,fKt=de(()=>{f();d();wre=ea(aKt()),uKt=ea(Wle()),lKt=ea(P8());C_e();LVe()});var dKt=de(()=>{f();d()});var pKt={};Rr(pKt,{DATA_ENCODING:()=>afe,DID_DELIMITER:()=>x_e,DID_METHOD:()=>T_e,DID_PREFIX:()=>__e,JSON_ENCODING:()=>w_e,JWT_DELIMITER:()=>O8,JWT_ENCODING:()=>gre,JWT_IRIDIUM_ALG:()=>g_e,JWT_IRIDIUM_TYP:()=>v_e,KEY_PAIR_SEED_LENGTH:()=>sKt,MULTICODEC_ED25519_BASE:()=>E_e,MULTICODEC_ED25519_ENCODING:()=>vre,MULTICODEC_ED25519_HEADER:()=>I_e,MULTICODEC_ED25519_LENGTH:()=>iKt,decodeData:()=>JHn,decodeIss:()=>DVe,decodeJSON:()=>ife,decodeJWT:()=>FVe,decodeSig:()=>cKt,encodeData:()=>NVe,encodeIss:()=>BVe,encodeJSON:()=>sfe,encodeJWT:()=>OVe,encodeSig:()=>oKt,generateKeyPair:()=>ZHn,signJWT:()=>XHn,verifyJWT:()=>ejn});var hKt=de(()=>{f();d();fKt();C_e();dKt();LVe()});var yKt=E((tbi,mKt)=>{"use strict";f();d();mKt.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var gKt,bKt,tjn,rjn,njn,A_e,vKt,qVe=de(()=>{f();d();gKt=ea(ml());zte();$b();bKt=10,tjn=()=>typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:yKt(),rjn=()=>typeof window<"u",njn=tjn(),A_e=class{constructor(e){if(this.url=e,this.events=new gKt.EventEmitter,this.registering=!1,!R4e(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}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(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e,t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(iy(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!R4e(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return a(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=e,this.registering=!0,new Promise((t,n)=>{let a=(0,Ac.isReactNative)()?void 0:{rejectUnauthorized:!jje(e)},i=new njn(e,[],a);rjn()?i.onerror=s=>{let o=s;n(this.emitError(o.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),t(i)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?Qb(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=hle(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return ple(e,t,"WS")}resetMaxListeners(){this.events.getMaxListeners()>bKt&&this.events.setMaxListeners(bKt)}emitError(e){let t=this.parseError(new Error(e?.message||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",t),t}},vKt=A_e});var wKt={};Rr(wKt,{WsConnection:()=>A_e,default:()=>ajn});var ajn,xKt=de(()=>{f();d();qVe();qVe();ajn=vKt});var rGt=E((ofe,_re)=>{f();d();var ijn=200,QVe="__lodash_hash_undefined__",N_e=1,BKt=2,DKt=9007199254740991,k_e="[object Arguments]",jVe="[object Array]",sjn="[object AsyncFunction]",NKt="[object Boolean]",OKt="[object Date]",FKt="[object Error]",LKt="[object Function]",ojn="[object GeneratorFunction]",S_e="[object Map]",qKt="[object Number]",cjn="[object Null]",xre="[object Object]",_Kt="[object Promise]",ujn="[object Proxy]",WKt="[object RegExp]",P_e="[object Set]",UKt="[object String]",ljn="[object Symbol]",fjn="[object Undefined]",zVe="[object WeakMap]",HKt="[object ArrayBuffer]",R_e="[object DataView]",djn="[object Float32Array]",pjn="[object Float64Array]",hjn="[object Int8Array]",mjn="[object Int16Array]",yjn="[object Int32Array]",bjn="[object Uint8Array]",gjn="[object Uint8ClampedArray]",vjn="[object Uint16Array]",wjn="[object Uint32Array]",xjn=/[\\^$.*+?()[\]{}|]/g,_jn=/^\[object .+?Constructor\]$/,Tjn=/^(?:0|[1-9]\d*)$/,gs={};gs[djn]=gs[pjn]=gs[hjn]=gs[mjn]=gs[yjn]=gs[bjn]=gs[gjn]=gs[vjn]=gs[wjn]=!0;gs[k_e]=gs[jVe]=gs[HKt]=gs[NKt]=gs[R_e]=gs[OKt]=gs[FKt]=gs[LKt]=gs[S_e]=gs[qKt]=gs[xre]=gs[WKt]=gs[P_e]=gs[UKt]=gs[zVe]=!1;var jKt=typeof global=="object"&&global&&global.Object===Object&&global,Ejn=typeof self=="object"&&self&&self.Object===Object&&self,i2=jKt||Ejn||Function("return this")(),zKt=typeof ofe=="object"&&ofe&&!ofe.nodeType&&ofe,TKt=zKt&&typeof _re=="object"&&_re&&!_re.nodeType&&_re,KKt=TKt&&TKt.exports===zKt,WVe=KKt&&jKt.process,EKt=function(){try{return WVe&&WVe.binding&&WVe.binding("util")}catch{}}(),IKt=EKt&&EKt.isTypedArray;function Ijn(r,e){for(var t=-1,n=r==null?0:r.length,a=0,i=[];++t-1}function tzn(r,e){var t=this.__data__,n=F_e(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}s2.prototype.clear=Jjn;s2.prototype.delete=Zjn;s2.prototype.get=Xjn;s2.prototype.has=ezn;s2.prototype.set=tzn;function q8(r){var e=-1,t=r==null?0:r.length;for(this.clear();++eo))return!1;var u=i.get(r);if(u&&i.get(e))return u==e;var l=-1,p=!0,h=t&BKt?new B_e:void 0;for(i.set(r,e),i.set(e,r);++l-1&&r%1==0&&r-1&&r%1==0&&r<=DKt}function eGt(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function lfe(r){return r!=null&&typeof r=="object"}var tGt=IKt?Sjn(IKt):gzn;function Mzn(r){return Pzn(r)?hzn(r):vzn(r)}function Bzn(){return[]}function Dzn(){return!1}_re.exports=Rzn});var nVt=E(or=>{"use strict";f();d();Object.defineProperty(or,"__esModule",{value:!0});var U8=ml(),Nzn=Zle(),Ozn=Pzt(),Y_e=Nzt(),Ks=b_e(),K6=EVe(),nGt=(zte(),Ht(Ize)),Fzn=(hKt(),Ht(pKt)),Ge=Yle(),Yc=P8(),Lzn=(Fle(),Ht(Ole)),wm=($b(),Ht(Ac)),qzn=(xKt(),Ht(wKt)),Wzn=rGt();function hfe(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function Uzn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Hzn=hfe(U8),wGt=hfe(Nzn),jzn=hfe(Ozn),q_e=Uzn(Fzn),zzn=hfe(qzn),Kzn=hfe(Wzn);function Gzn(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);A!==B;){for(var K=y[A],z=0,G=F-1;(K!==0||z>>0,W[G]=K%o>>>0,K=K/o>>>0;if(K!==0)throw new Error("Non-zero carry");P=z,A++}for(var j=F-P;j!==F&&W[j]===0;)j++;for(var H=c.repeat(C);j>>0,F=new Uint8Array(B);y[C];){var W=t[y.charCodeAt(C)];if(W===255)return;for(var K=0,z=B-1;(W!==0||K>>0,F[z]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");A=K,C++}if(y[C]!==" "){for(var G=B-A;G!==B&&F[G]===0;)G++;for(var j=new Uint8Array(P+(B-G)),H=P;G!==B;)j[H++]=F[G++];return j}}}function m(y){var C=h(y);if(C)return C;throw new Error(`Non-${e} character`)}return{encode:p,decodeUnsafe:h,decode:m}}var Vzn=Gzn,$zn=Vzn,xGt=r=>{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},Yzn=r=>new TextEncoder().encode(r),Qzn=r=>new TextDecoder().decode(r),XVe=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},e$e=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){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))}else throw Error("Can only multibase decode strings")}or(e){return _Gt(this,e)}},t$e=class{constructor(e){this.decoders=e}or(e){return _Gt(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},_Gt=(r,e)=>new t$e({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),r$e=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new XVe(e,t,n),this.decoder=new e$e(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},Q_e=({name:r,prefix:e,encode:t,decode:n})=>new r$e(r,e,t,n),mfe=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=$zn(t,e);return Q_e({prefix:r,name:e,encode:n,decode:i=>xGt(a(i))})},Jzn=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},Zzn=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<Q_e({prefix:e,name:r,encode(a){return Zzn(a,n,t)},decode(a){return Jzn(a,n,t,r)}}),Xzn=Q_e({prefix:"\0",name:"identity",encode:r=>Qzn(r),decode:r=>Yzn(r)}),eKn=Object.freeze({__proto__:null,identity:Xzn}),tKn=fu({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),rKn=Object.freeze({__proto__:null,base2:tKn}),nKn=fu({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),aKn=Object.freeze({__proto__:null,base8:nKn}),iKn=mfe({prefix:"9",name:"base10",alphabet:"0123456789"}),sKn=Object.freeze({__proto__:null,base10:iKn}),oKn=fu({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),cKn=fu({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),uKn=Object.freeze({__proto__:null,base16:oKn,base16upper:cKn}),lKn=fu({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),fKn=fu({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),dKn=fu({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),pKn=fu({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),hKn=fu({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),mKn=fu({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),yKn=fu({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),bKn=fu({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),gKn=fu({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),vKn=Object.freeze({__proto__:null,base32:lKn,base32upper:fKn,base32pad:dKn,base32padupper:pKn,base32hex:hKn,base32hexupper:mKn,base32hexpad:yKn,base32hexpadupper:bKn,base32z:gKn}),wKn=mfe({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),xKn=mfe({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),_Kn=Object.freeze({__proto__:null,base36:wKn,base36upper:xKn}),TKn=mfe({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),EKn=mfe({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),IKn=Object.freeze({__proto__:null,base58btc:TKn,base58flickr:EKn}),CKn=fu({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),AKn=fu({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),kKn=fu({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),SKn=fu({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),PKn=Object.freeze({__proto__:null,base64:CKn,base64pad:AKn,base64url:kKn,base64urlpad:SKn}),TGt=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),RKn=TGt.reduce((r,e,t)=>(r[t]=e,r),[]),MKn=TGt.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function BKn(r){return r.reduce((e,t)=>(e+=RKn[t],e),"")}function DKn(r){let e=[];for(let t of r){let n=MKn[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var NKn=Q_e({prefix:"\u{1F680}",name:"base256emoji",encode:BKn,decode:DKn}),OKn=Object.freeze({__proto__:null,base256emoji:NKn}),FKn=EGt,aGt=128,LKn=127,qKn=~LKn,WKn=Math.pow(2,31);function EGt(r,e,t){e=e||[],t=t||0;for(var n=t;r>=WKn;)e[t++]=r&255|aGt,r/=128;for(;r&qKn;)e[t++]=r&255|aGt,r>>>=7;return e[t]=r|0,EGt.bytes=t-n+1,e}var UKn=n$e,HKn=128,iGt=127;function n$e(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw n$e.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&iGt)<=HKn);return n$e.bytes=i-n,t}var jKn=Math.pow(2,7),zKn=Math.pow(2,14),KKn=Math.pow(2,21),GKn=Math.pow(2,28),VKn=Math.pow(2,35),$Kn=Math.pow(2,42),YKn=Math.pow(2,49),QKn=Math.pow(2,56),JKn=Math.pow(2,63),ZKn=function(r){return r(IGt.encode(r,e,t),e),oGt=r=>IGt.encodingLength(r),a$e=(r,e)=>{let t=e.byteLength,n=oGt(r),a=n+oGt(t),i=new Uint8Array(a+t);return sGt(r,i,0),sGt(t,i,n),i.set(e,a),new i$e(r,t,e,i)},i$e=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}},CGt=({name:r,code:e,encode:t})=>new s$e(r,e,t),s$e=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?a$e(this.code,t):t.then(n=>a$e(this.code,n))}else throw Error("Unknown type, must be binary type")}},AGt=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),eGn=CGt({name:"sha2-256",code:18,encode:AGt("SHA-256")}),tGn=CGt({name:"sha2-512",code:19,encode:AGt("SHA-512")}),rGn=Object.freeze({__proto__:null,sha256:eGn,sha512:tGn}),kGt=0,nGn="identity",SGt=xGt,aGn=r=>a$e(kGt,SGt(r)),iGn={code:kGt,name:nGn,encode:SGt,digest:aGn},sGn=Object.freeze({__proto__:null,identity:iGn});new TextEncoder,new TextDecoder;var cGt={...eKn,...rKn,...aKn,...sKn,...uKn,...vKn,..._Kn,...IKn,...PKn,...OKn};({...rGn,...sGn});function oGn(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function PGt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var uGt=PGt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),JVe=PGt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=oGn(r.length);for(let t=0;t{if(!this.initialized){let n=await this.getKeyChain();typeof n<"u"&&(this.keychain=n),this.initialized=!0}},this.has=n=>(this.isInitialized(),this.keychain.has(n)),this.set=async(n,a)=>{this.isInitialized(),this.keychain.set(n,a),await this.persist()},this.get=n=>{this.isInitialized();let a=this.keychain.get(n);if(typeof a>"u"){let{message:i}=Ge.getInternalError("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(i)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=e,this.logger=Ks.generateChildLogger(t,this.name)}get context(){return Ks.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Ge.mapToObj(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Ge.objToMap(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},U_e=class{constructor(e,t,n){this.core=e,this.logger=t,this.name=DGt,this.initialized=!1,this.init=async()=>{this.initialized||(await this.keychain.init(),this.initialized=!0)},this.hasKeys=a=>(this.isInitialized(),this.keychain.has(a)),this.getClientId=async()=>{this.isInitialized();let a=await this.getClientSeed(),i=q_e.generateKeyPair(a);return q_e.encodeIss(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let a=Ge.generateKeyPair();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();let i=await this.getClientSeed(),s=q_e.generateKeyPair(i),o=Ge.generateRandomBytes32(),c=NGt;return await q_e.signJWT(o,a,c,s)},this.generateSharedKey=(a,i,s)=>{this.isInitialized();let o=this.getPrivateKey(a),c=Ge.deriveSymKey(o,i);return this.setSymKey(c,s)},this.setSymKey=async(a,i)=>{this.isInitialized();let s=i||Ge.hashKey(a);return await this.keychain.set(s,a),s},this.deleteKeyPair=async a=>{this.isInitialized(),await this.keychain.del(a)},this.deleteSymKey=async a=>{this.isInitialized(),await this.keychain.del(a)},this.encode=async(a,i,s)=>{this.isInitialized();let o=Ge.validateEncoding(s),c=nGt.safeJsonStringify(i);if(Ge.isTypeOneEnvelope(o)){let h=o.senderPublicKey,m=o.receiverPublicKey;a=await this.generateSharedKey(h,m)}let u=this.getSymKey(a),{type:l,senderPublicKey:p}=o;return Ge.encrypt({type:l,symKey:u,message:c,senderPublicKey:p})},this.decode=async(a,i,s)=>{this.isInitialized();let o=Ge.validateDecoding(i,s);if(Ge.isTypeOneEnvelope(o)){let l=o.receiverPublicKey,p=o.senderPublicKey;a=await this.generateSharedKey(l,p)}let c=this.getSymKey(a),u=Ge.decrypt({symKey:c,encoded:i});return nGt.safeJsonParse(u)},this.core=e,this.logger=Ks.generateChildLogger(t,this.name),this.keychain=n||new W_e(this.core,this.logger)}get context(){return Ks.getLoggerContext(this.logger)}getPayloadType(e){let t=Ge.deserialize(e);return Ge.decodeTypeByte(t.type)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(o$e)}catch{e=Ge.generateRandomBytes32(),await this.keychain.set(o$e,e)}return uGn(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},H_e=class extends K6.IMessageTracker{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=LGt,this.version=qGt,this.initialized=!1,this.storagePrefix=o2,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let n=await this.getRelayerMessages();typeof n<"u"&&(this.messages=n),this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",size:this.messages.size})}catch(n){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(n)}finally{this.initialized=!0}}},this.set=async(n,a)=>{this.isInitialized();let i=Ge.hashMessage(a),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[i]<"u"||(s[i]=a,this.messages.set(n,s),await this.persist()),i},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();let i=this.get(n),s=Ge.hashMessage(a);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Ks.generateChildLogger(e,this.name),this.core=t}get context(){return Ks.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Ge.mapToObj(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Ge.objToMap(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},u$e=class extends K6.IPublisher{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new U8.EventEmitter,this.name=UGt,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,a,i)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}});try{let s=i?.ttl||WGt,o=Ge.getRelayProtocolName(i),c=i?.prompt||!1,u=i?.tag||0,l={topic:n,message:a,opts:{ttl:s,relay:o,prompt:c,tag:u}},p=Ge.hashMessage(a);this.queue.set(p,l);try{await await Ge.createExpiringPromise(this.rpcPublish(n,a,s,o,c,u),this.publishTimeout),this.relayer.events.emit(lu.publish,l)}catch{this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(lu.connection_stalled);return}this.onPublish(p,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.relayer=e,this.logger=Ks.generateChildLogger(t,this.name),this.registerEventListeners()}get context(){return Ks.getLoggerContext(this.logger)}rpcPublish(e,t,n,a,i,s){var o,c,u,l;let p={method:Ge.getRelayProtocolApi(a.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:s}};return Ge.isUndefined((o=p.params)==null?void 0:o.prompt)&&((c=p.params)==null||delete c.prompt),Ge.isUndefined((u=p.params)==null?void 0:u.tag)&&((l=p.params)==null||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:p}),this.relayer.provider.request(p)}onPublish(e,t){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:n,opts:a}=e;await this.publish(t,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(Y_e.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},l$e=class{constructor(){this.map=new Map,this.set=(e,t)=>{let n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,t))return;let a=n.filter(i=>i!==t);if(!a.length){this.map.delete(e);return}this.map.set(e,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},hGn=Object.defineProperty,mGn=Object.defineProperties,yGn=Object.getOwnPropertyDescriptors,lGt=Object.getOwnPropertySymbols,bGn=Object.prototype.hasOwnProperty,gGn=Object.prototype.propertyIsEnumerable,fGt=(r,e,t)=>e in r?hGn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,dfe=(r,e)=>{for(var t in e||(e={}))bGn.call(e,t)&&fGt(r,t,e[t]);if(lGt)for(var t of lGt(e))gGn.call(e,t)&&fGt(r,t,e[t]);return r},ZVe=(r,e)=>mGn(r,yGn(e)),j_e=class extends K6.ISubscriber{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new l$e,this.events=new U8.EventEmitter,this.name=$Gt,this.version=YGt,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=o2,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),this.clientId=await this.relayer.core.crypto.getClientId())},this.subscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}});try{let i=Ge.getRelayProtocolName(a),s={topic:n,relay:i};this.pending.set(n,s);let o=await this.rpcSubscribe(n,i);return this.onSubscribe(o,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),o}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof a?.id<"u"?await this.unsubscribeById(n,a.id,a):await this.unsubscribeByTopic(n,a)},this.isSubscribed=async n=>this.topics.includes(n)?!0:await new Promise((a,i)=>{let s=new Yc.Watch;s.start(this.pendingSubscriptionWatchLabel);let o=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),a(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=QGt&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pollingInterval)}),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.restart=async()=>{this.restartInProgress=!0,await this.restore(),await this.reset(),this.restartInProgress=!1},this.relayer=e,this.logger=Ks.generateChildLogger(t,this.name),this.clientId=""}get context(){return Ks.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.subscriptions.size}get ids(){return Array.from(this.subscriptions.keys())}get values(){return Array.from(this.subscriptions.values())}get topics(){return this.topicMap.topics}hasSubscription(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let n=this.topicMap.get(e);await Promise.all(n.map(async a=>await this.unsubscribeById(e,a,t)))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{let a=Ge.getRelayProtocolName(n);await this.rpcUnsubscribe(e,t,a);let i=Ge.getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(e,t){let n={method:Ge.getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Ge.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(lu.connection_stalled)}return Ge.hashMessage(e+this.clientId)}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,n={method:Ge.getRelayProtocolApi(t.protocol).batchSubscribe,params:{topics:e.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Ge.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(lu.connection_stalled)}}rpcUnsubscribe(e,t,n){let a={method:Ge.getRelayProtocolApi(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.provider.request(a)}onSubscribe(e,t){this.setSubscription(e,ZVe(dfe({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,dfe({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,dfe({},t)),this.topicMap.set(t.topic,e),this.events.emit(vm.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:n}=Ge.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(vm.deleted,ZVe(dfe({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(vm.sync)}async reset(){if(!this.cached.length)return;let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){let{message:t}=Ge.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);this.onBatchSubscribe(t.map((n,a)=>ZVe(dfe({},e[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e)}registerEventListeners(){this.relayer.core.heartbeat.on(Y_e.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(lu.connect,async()=>{await this.onConnect()}),this.relayer.on(lu.disconnect,()=>{this.onDisconnect()}),this.events.on(vm.created,async e=>{let t=vm.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(vm.deleted,async e=>{let t=vm.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}},vGn=Object.defineProperty,dGt=Object.getOwnPropertySymbols,wGn=Object.prototype.hasOwnProperty,xGn=Object.prototype.propertyIsEnumerable,pGt=(r,e,t)=>e in r?vGn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,_Gn=(r,e)=>{for(var t in e||(e={}))wGn.call(e,t)&&pGt(r,t,e[t]);if(dGt)for(var t of dGt(e))xGn.call(e,t)&&pGt(r,t,e[t]);return r},z_e=class extends K6.IRelayer{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new U8.EventEmitter,this.name=zGt,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?Ks.generateChildLogger(e.logger,this.name):wGt.default(Ks.getDefaultLoggerOptions({level:e.logger||jGt})),this.messages=new H_e(this.logger,e.core),this.subscriber=new j_e(this,this.logger),this.publisher=new u$e(this,this.logger),this.relayUrl=e?.relayUrl||d$e,this.projectId=e.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return Ks.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){this.isInitialized();let n="";return await Promise.all([new Promise(a=>{this.subscriber.once(vm.created,i=>{i.topic===e&&a()})}),new Promise(async a=>{n=await this.subscriber.subscribe(e,t),a()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}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 transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(lu.transport_closed))}async transportOpen(e){if(!this.reconnecting){this.relayUrl=e||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(t=>{this.initialized||t(),this.subscriber.once(vm.resubscribed,()=>{t()})}),await Promise.race([new Promise(async t=>{await this.provider.connect(),this.removeListener(lu.transport_closed,this.rejectTransportOpen),t()}),new Promise(t=>this.once(lu.transport_closed,this.rejectTransportOpen))])])}catch(t){let n=t;if(!/socket hang up/i.test(n.message))throw t;this.logger.error(t),this.events.emit(lu.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(e){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(t=>setTimeout(t,c$e)),await this.transportOpen(e))}rejectTransportOpen(){throw new Error("closeTransport called before connection was established")}async createProvider(){let e=await this.core.crypto.signJWT(this.relayUrl);return new Lzn.JsonRpcProvider(new zzn.default(Ge.formatRelayRpcUrl({sdkVersion:GGt,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0})))}async recordMessageEvent(e){let{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){let{topic:t,message:n}=e;return await this.subscriber.isSubscribed(t)?this.messages.has(t,n):!0}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),wm.isJsonRpcRequest(e)){if(!e.method.endsWith(KGt))return;let t=e.params,{topic:n,message:a,publishedAt:i}=t.data,s={topic:n,message:a,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(_Gn({type:"event",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(lu.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=wm.formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}registerEventListeners(){this.provider.on(pfe.payload,e=>this.onProviderPayload(e)),this.provider.on(pfe.connect,()=>{this.events.emit(lu.connect)}),this.provider.on(pfe.disconnect,()=>{this.events.emit(lu.disconnect),this.attemptToReconnect()}),this.provider.on(pfe.error,e=>{this.logger.error(e),this.events.emit(lu.error,e)}),this.events.on(lu.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},Yc.toMiliseconds(c$e))}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},TGn=Object.defineProperty,hGt=Object.getOwnPropertySymbols,EGn=Object.prototype.hasOwnProperty,IGn=Object.prototype.propertyIsEnumerable,mGt=(r,e,t)=>e in r?TGn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,yGt=(r,e)=>{for(var t in e||(e={}))EGn.call(e,t)&&mGt(r,t,e[t]);if(hGt)for(var t of hGt(e))IGn.call(e,t)&&mGt(r,t,e[t]);return r},K_e=class extends K6.IStore{constructor(e,t,n,a=o2,i=void 0){super(e,t,n,a),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version=VGt,this.cached=[],this.initialized=!1,this.storagePrefix=o2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{Ge.isProposalStruct(s)?this.map.set(s.id,s):Ge.isSessionStruct(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Ge.isUndefined(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,o)=>{this.isInitialized(),this.map.has(s)?await this.update(s,o):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:o}),this.map.set(s,o),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(o=>Object.keys(s).every(c=>Kzn.default(o[c],s[c]))):this.values),this.update=async(s,o)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:o});let c=yGt(yGt({},this.getData(s)),o);this.map.set(s,c),await this.persist()},this.delete=async(s,o)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:o}),this.map.delete(s),await this.persist())},this.logger=Ks.generateChildLogger(t,this.name),this.storagePrefix=a,this.getKey=i}get context(){return Ks.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.map.size}get keys(){return Array.from(this.map.keys())}get values(){return Array.from(this.map.values())}async setDataStore(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){let{message:n}=Ge.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:t}=Ge.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},G_e=class{constructor(e,t){this.core=e,this.logger=t,this.name=JGt,this.version=ZGt,this.events=new Hzn.default,this.initialized=!1,this.storagePrefix=o2,this.ignoredPayloadTypes=[Ge.TYPE_1],this.registeredMethods=[],this.init=async()=>{this.initialized||(await this.pairings.init(),await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized"))},this.register=({methods:n})=>{this.isInitialized(),this.registeredMethods=[...new Set([...this.registeredMethods,...n])]},this.create=async()=>{this.isInitialized();let n=Ge.generateRandomBytes32(),a=await this.core.crypto.setSymKey(n),i=Ge.calcExpiry(Yc.FIVE_MINUTES),s={protocol:HGt},o={topic:a,expiry:i,relay:s,active:!1},c=Ge.formatUri({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:s});return await this.pairings.set(a,o),await this.core.relayer.subscribe(a),this.core.expirer.set(a,i),{topic:a,uri:c}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:a,symKey:i,relay:s}=Ge.parseUri(n.uri);if(this.pairings.keys.includes(a))throw new Error(`Pairing already exists: ${a}`);if(this.core.crypto.hasKeys(a))throw new Error(`Keychain already exists: ${a}`);let o=Ge.calcExpiry(Yc.FIVE_MINUTES),c={topic:a,relay:s,expiry:o,active:!1};return await this.pairings.set(a,c),await this.core.crypto.setSymKey(i,a),await this.core.relayer.subscribe(a,{relay:s}),this.core.expirer.set(a,o),n.activatePairing&&await this.activate({topic:a}),c},this.activate=async({topic:n})=>{this.isInitialized();let a=Ge.calcExpiry(Yc.THIRTY_DAYS);await this.pairings.update(n,{active:!0,expiry:a}),this.core.expirer.set(n,a)},this.ping=async n=>{this.isInitialized(),await this.isValidPing(n);let{topic:a}=n;if(this.pairings.keys.includes(a)){let i=await this.sendRequest(a,"wc_pairingPing",{}),{done:s,resolve:o,reject:c}=Ge.createDelayedPromise();this.events.once(Ge.engineEvent("pairing_ping",i),({error:u})=>{u?c(u):o()}),await s()}},this.updateExpiry=async({topic:n,expiry:a})=>{this.isInitialized(),await this.pairings.update(n,{expiry:a})},this.updateMetadata=async({topic:n,metadata:a})=>{this.isInitialized(),await this.pairings.update(n,{peerMetadata:a})},this.getPairings=()=>(this.isInitialized(),this.pairings.values),this.disconnect=async n=>{this.isInitialized(),await this.isValidDisconnect(n);let{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",Ge.getSdkError("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,i)=>{let s=wm.formatJsonRpcRequest(a,i),o=await this.core.crypto.encode(n,s),c=Ere[a].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,o,c),s.id},this.sendResult=async(n,a,i)=>{let s=wm.formatJsonRpcResult(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=Ere[c.request.method].res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.sendError=async(n,a,i)=>{let s=wm.formatJsonRpcError(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=Ere[c.request.method]?Ere[c.request.method].res:Ere.unregistered_method.res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Ge.getSdkError("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(a=>Ge.isExpired(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{let{topic:a,payload:i}=n,s=i.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(a,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,i);default:return this.onUnknownRpcMethodRequest(a,i)}},this.onRelayEventResponse=async n=>{let{topic:a,payload:i}=n,s=(await this.core.history.get(a,i.id)).request.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(a,i);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,a)=>{let{id:i}=a;try{this.isValidPing({topic:n}),await this.sendResult(i,n,!0),this.events.emit("pairing_ping",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,a)=>{let{id:i}=a;setTimeout(()=>{wm.isJsonRpcResult(a)?this.events.emit(Ge.engineEvent("pairing_ping",i),{}):wm.isJsonRpcError(a)&&this.events.emit(Ge.engineEvent("pairing_ping",i),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{let{id:i}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit("pairing_delete",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,a)=>{let{id:i,method:s}=a;try{if(this.registeredMethods.includes(s))return;let o=Ge.getSdkError("WC_METHOD_UNSUPPORTED",s);await this.sendError(i,n,o),this.logger.error(o)}catch(o){await this.sendError(i,n,o),this.logger.error(o)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Ge.getSdkError("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Ge.isValidParams(n)){let{message:a}=Ge.getInternalError("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!Ge.isValidUrl(n.uri)){let{message:a}=Ge.getInternalError("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!Ge.isValidParams(n)){let{message:i}=Ge.getInternalError("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!Ge.isValidParams(n)){let{message:i}=Ge.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!Ge.isValidString(n,!1)){let{message:a}=Ge.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){let{message:a}=Ge.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(Ge.isExpired(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:a}=Ge.getInternalError("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=e,this.logger=Ks.generateChildLogger(t,this.name),this.pairings=new K_e(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Ks.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(lu.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let a=await this.core.crypto.decode(t,n);wm.isJsonRpcRequest(a)?(this.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):wm.isJsonRpcResponse(a)&&(await this.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.core.expirer.on(Yp.expired,async e=>{let{topic:t}=Ge.parseExpirerTarget(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))})}},V_e=class extends K6.IJsonRpcHistory{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new U8.EventEmitter,this.name=XGt,this.version=eVt,this.cached=[],this.initialized=!1,this.storagePrefix=o2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.records.set(n.id,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.set=(n,a,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:i}),this.records.has(a.id))return;let s={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:i};this.records.set(s.id,s),this.events.emit(gm.created,s)},this.resolve=async n=>{if(this.isInitialized(),this.logger.debug("Updating JSON-RPC response history record"),this.logger.trace({type:"method",method:"update",response:n}),!this.records.has(n.id))return;let a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=wm.isJsonRpcError(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(gm.updated,a))},this.get=async(n,a)=>(this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:n,id:a}),await this.getRecord(a)),this.delete=(n,a)=>{this.isInitialized(),this.logger.debug("Deleting record"),this.logger.trace({type:"method",method:"delete",id:a}),this.values.forEach(i=>{if(i.topic===n){if(typeof a<"u"&&i.id!==a)return;this.records.delete(i.id),this.events.emit(gm.deleted,i)}})},this.exists=async(n,a)=>(this.isInitialized(),this.records.has(a)?(await this.getRecord(a)).topic===n:!1),this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Ks.generateChildLogger(t,this.name)}get context(){return Ks.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get size(){return this.records.size}get keys(){return Array.from(this.records.keys())}get values(){return Array.from(this.records.values())}get pending(){let e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;let n={topic:t.topic,request:wm.formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:n}=Ge.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(gm.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:t}=Ge.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(gm.created,e=>{let t=gm.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(gm.updated,e=>{let t=gm.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(gm.deleted,e=>{let t=gm.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},$_e=class extends K6.IExpirer{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new U8.EventEmitter,this.name=tVt,this.version=rVt,this.cached=[],this.initialized=!1,this.storagePrefix=o2,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(n=>this.expirations.set(n.target,n)),this.cached=[],this.registerEventListeners(),this.initialized=!0)},this.has=n=>{try{let a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();let i=this.formatTarget(n),s={target:i,expiry:a};this.expirations.set(i,s),this.checkExpiry(i,s),this.events.emit(Yp.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){let a=this.formatTarget(n),i=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Yp.deleted,{target:a,expiration:i})}},this.on=(n,a)=>{this.events.on(n,a)},this.once=(n,a)=>{this.events.once(n,a)},this.off=(n,a)=>{this.events.off(n,a)},this.removeListener=(n,a)=>{this.events.removeListener(n,a)},this.logger=Ks.generateChildLogger(t,this.name)}get context(){return Ks.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}get length(){return this.expirations.size}get keys(){return Array.from(this.expirations.keys())}get values(){return Array.from(this.expirations.values())}formatTarget(e){if(typeof e=="string")return Ge.formatTopicTarget(e);if(typeof e=="number")return Ge.formatIdTarget(e);let{message:t}=Ge.getInternalError("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Yp.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:t}=Ge.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:n}=Ge.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}checkExpiry(e,t){let{expiry:n}=t;Yc.toMiliseconds(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(Yp.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(Y_e.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Yp.created,e=>{let t=Yp.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Yp.expired,e=>{let t=Yp.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Yp.deleted,e=>{let t=Yp.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Ge.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},CGn=Object.defineProperty,bGt=Object.getOwnPropertySymbols,AGn=Object.prototype.hasOwnProperty,kGn=Object.prototype.propertyIsEnumerable,gGt=(r,e,t)=>e in r?CGn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,vGt=(r,e)=>{for(var t in e||(e={}))AGn.call(e,t)&&gGt(r,t,e[t]);if(bGt)for(var t of bGt(e))kGn.call(e,t)&&gGt(r,t,e[t]);return r},Ire=class extends K6.ICore{constructor(e){super(e),this.protocol=f$e,this.version=RGt,this.name=J_e,this.events=new U8.EventEmitter,this.initialized=!1,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.projectId=e?.projectId,this.relayUrl=e?.relayUrl||d$e;let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:wGt.default(Ks.getDefaultLoggerOptions({level:e?.logger||MGt.logger}));this.logger=Ks.generateChildLogger(t,this.name),this.heartbeat=new Y_e.HeartBeat,this.crypto=new U_e(this,this.logger,e?.keychain),this.history=new V_e(this,this.logger),this.expirer=new $_e(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new jzn.default(vGt(vGt({},BGt),e?.storageOptions)),this.relayer=new z_e({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new G_e(this,this.logger)}static async init(e){let t=new Ire(e);return await t.initialize(),t}get context(){return Ks.getLoggerContext(this.logger)}async start(){this.initialized||await this.initialize()}async initialize(){this.logger.trace("Initialized");try{await this.crypto.init(),await this.history.init(),await this.expirer.init(),await this.relayer.init(),await this.heartbeat.init(),await this.pairing.init(),this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}},SGn=Ire;or.CORE_CONTEXT=J_e,or.CORE_DEFAULT=MGt,or.CORE_PROTOCOL=f$e,or.CORE_STORAGE_OPTIONS=BGt,or.CORE_STORAGE_PREFIX=o2,or.CORE_VERSION=RGt,or.CRYPTO_CLIENT_SEED=o$e,or.CRYPTO_CONTEXT=DGt,or.CRYPTO_JWT_TTL=NGt,or.Core=SGn,or.Crypto=U_e,or.EXPIRER_CONTEXT=tVt,or.EXPIRER_DEFAULT_TTL=pGn,or.EXPIRER_EVENTS=Yp,or.EXPIRER_STORAGE_VERSION=rVt,or.Expirer=$_e,or.HISTORY_CONTEXT=XGt,or.HISTORY_EVENTS=gm,or.HISTORY_STORAGE_VERSION=eVt,or.JsonRpcHistory=V_e,or.KEYCHAIN_CONTEXT=OGt,or.KEYCHAIN_STORAGE_VERSION=FGt,or.KeyChain=W_e,or.MESSAGES_CONTEXT=LGt,or.MESSAGES_STORAGE_VERSION=qGt,or.MessageTracker=H_e,or.PAIRING_CONTEXT=JGt,or.PAIRING_DEFAULT_TTL=dGn,or.PAIRING_RPC_OPTS=Ere,or.PAIRING_STORAGE_VERSION=ZGt,or.PENDING_SUB_RESOLUTION_TIMEOUT=QGt,or.PUBLISHER_CONTEXT=UGt,or.PUBLISHER_DEFAULT_TTL=WGt,or.Pairing=G_e,or.RELAYER_CONTEXT=zGt,or.RELAYER_DEFAULT_LOGGER=jGt,or.RELAYER_DEFAULT_PROTOCOL=HGt,or.RELAYER_DEFAULT_RELAY_URL=d$e,or.RELAYER_EVENTS=lu,or.RELAYER_PROVIDER_EVENTS=pfe,or.RELAYER_RECONNECT_TIMEOUT=c$e,or.RELAYER_SDK_VERSION=GGt,or.RELAYER_STORAGE_OPTIONS=lGn,or.RELAYER_SUBSCRIBER_SUFFIX=KGt,or.Relayer=z_e,or.STORE_STORAGE_VERSION=VGt,or.SUBSCRIBER_CONTEXT=$Gt,or.SUBSCRIBER_DEFAULT_TTL=fGn,or.SUBSCRIBER_EVENTS=vm,or.SUBSCRIBER_STORAGE_VERSION=YGt,or.Store=K_e,or.Subscriber=j_e,or.default=Ire});var hVt=E(oo=>{"use strict";f();d();Object.defineProperty(oo,"__esModule",{value:!0});var PGn=Zle(),G6=nVt(),p$e=b_e(),sVt=EVe(),Ce=Yle(),oVt=ml(),co=P8(),Qc=($b(),Ht(Ac));function cVt(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var RGn=cVt(PGn),MGn=cVt(oVt),v$e="wc",w$e=2,x$e="client",eTe=`${v$e}@${w$e}:${x$e}:`,Z_e={name:x$e,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},BGn={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire"},DGn={database:":memory:"},NGn={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},OGn="history",FGn="0.3",uVt="proposal",LGn=co.THIRTY_DAYS,lVt="Proposal expired",fVt="session",yfe=co.SEVEN_DAYS,dVt="engine",Cre={wc_sessionPropose:{req:{ttl:co.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:co.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:co.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:co.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:co.ONE_DAY,prompt:!1,tag:1104},res:{ttl:co.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:co.ONE_DAY,prompt:!1,tag:1106},res:{ttl:co.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:co.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:co.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:co.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:co.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:co.ONE_DAY,prompt:!1,tag:1112},res:{ttl:co.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:co.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:co.THIRTY_SECONDS,prompt:!1,tag:1115}}},X_e={min:co.FIVE_MINUTES,max:co.SEVEN_DAYS},pVt="request",qGn=Object.defineProperty,WGn=Object.defineProperties,UGn=Object.getOwnPropertyDescriptors,aVt=Object.getOwnPropertySymbols,HGn=Object.prototype.hasOwnProperty,jGn=Object.prototype.propertyIsEnumerable,iVt=(r,e,t)=>e in r?qGn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Qp=(r,e)=>{for(var t in e||(e={}))HGn.call(e,t)&&iVt(r,t,e[t]);if(aVt)for(var t of aVt(e))jGn.call(e,t)&&iVt(r,t,e[t]);return r},h$e=(r,e)=>WGn(r,UGn(e)),m$e=class extends sVt.IEngine{constructor(e){super(e),this.name=dVt,this.events=new MGn.default,this.initialized=!1,this.ignoredPayloadTypes=[Ce.TYPE_1],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(Cre)}),this.initialized=!0)},this.connect=async t=>{this.isInitialized();let n=h$e(Qp({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:a,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,relays:c}=n,u=a,l,p=!1;if(u&&(p=this.client.core.pairing.pairings.get(u).active),!u||!p){let{topic:F,uri:W}=await this.client.core.pairing.create();u=F,l=W}let h=await this.client.core.crypto.generateKeyPair(),m=Qp({requiredNamespaces:i,optionalNamespaces:s,relays:c??[{protocol:G6.RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:h,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:y,resolve:C,done:P}=Ce.createDelayedPromise(co.FIVE_MINUTES,lVt);if(this.events.once(Ce.engineEvent("session_connect"),async({error:F,session:W})=>{if(F)y(F);else if(W){W.self.publicKey=h;let K=h$e(Qp({},W),{requiredNamespaces:W.requiredNamespaces,optionalNamespaces:W.optionalNamespaces});await this.client.session.set(W.topic,K),await this.setExpiry(W.topic,W.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:W.peer.metadata}),C(K)}}),!u){let{message:F}=Ce.getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(F)}let A=await this.sendRequest(u,"wc_sessionPropose",m),B=Ce.calcExpiry(co.FIVE_MINUTES);return await this.setProposal(A,Qp({id:A,expiry:B},m)),{uri:l,approval:P}},this.pair=async t=>(this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{this.isInitialized(),await this.isValidApprove(t);let{id:n,relayProtocol:a,namespaces:i,sessionProperties:s}=t,o=this.client.proposal.get(n),{pairingTopic:c,proposer:u,requiredNamespaces:l,optionalNamespaces:p}=o;Ce.isValidObject(l)||(l=Ce.getRequiredNamespacesFromNamespaces(i,"approve()"));let h=await this.client.core.crypto.generateKeyPair(),m=u.publicKey,y=await this.client.core.crypto.generateSharedKey(h,m);c&&n&&(await this.client.core.pairing.updateMetadata({topic:c,metadata:u.metadata}),await this.sendResult(n,c,{relay:{protocol:a??"irn"},responderPublicKey:h}),await this.client.proposal.delete(n,Ce.getSdkError("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:c}));let C=Qp({relay:{protocol:a??"irn"},namespaces:i,requiredNamespaces:l,optionalNamespaces:p,controller:{publicKey:h,metadata:this.client.metadata},expiry:Ce.calcExpiry(yfe)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(y);let P=await this.sendRequest(y,"wc_sessionSettle",C),{done:A,resolve:B,reject:F}=Ce.createDelayedPromise();this.events.once(Ce.engineEvent("session_approve",P),({error:K})=>{K?F(K):B(this.client.session.get(y))});let W=h$e(Qp({},C),{topic:y,acknowledged:!1,self:C.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:h});return await this.client.session.set(y,W),await this.setExpiry(y,Ce.calcExpiry(yfe)),{topic:y,acknowledged:A}},this.reject=async t=>{this.isInitialized(),await this.isValidReject(t);let{id:n,reason:a}=t,{pairingTopic:i}=this.client.proposal.get(n);i&&(await this.sendError(n,i,a),await this.client.proposal.delete(n,Ce.getSdkError("USER_DISCONNECTED")))},this.update=async t=>{this.isInitialized(),await this.isValidUpdate(t);let{topic:n,namespaces:a}=t,i=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:a}),{done:s,resolve:o,reject:c}=Ce.createDelayedPromise();return this.events.once(Ce.engineEvent("session_update",i),({error:u})=>{u?c(u):o()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:s}},this.extend=async t=>{this.isInitialized(),await this.isValidExtend(t);let{topic:n}=t,a=await this.sendRequest(n,"wc_sessionExtend",{}),{done:i,resolve:s,reject:o}=Ce.createDelayedPromise();return this.events.once(Ce.engineEvent("session_extend",a),({error:c})=>{c?o(c):s()}),await this.setExpiry(n,Ce.calcExpiry(yfe)),{acknowledged:i}},this.request=async t=>{this.isInitialized(),await this.isValidRequest(t);let{chainId:n,request:a,topic:i,expiry:s}=t,o=await this.sendRequest(i,"wc_sessionRequest",{request:a,chainId:n},s),{done:c,resolve:u,reject:l}=Ce.createDelayedPromise(s);return this.events.once(Ce.engineEvent("session_request",o),({error:p,result:h})=>{p?l(p):u(h)}),this.client.events.emit("session_request_sent",{topic:i,request:a,chainId:n}),await c()},this.respond=async t=>{this.isInitialized(),await this.isValidRespond(t);let{topic:n,response:a}=t,{id:i}=a;Qc.isJsonRpcResult(a)?await this.sendResult(i,n,a.result):Qc.isJsonRpcError(a)&&await this.sendError(i,n,a.error),this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0})},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);let{topic:n}=t;if(this.client.session.keys.includes(n)){let a=await this.sendRequest(n,"wc_sessionPing",{}),{done:i,resolve:s,reject:o}=Ce.createDelayedPromise();this.events.once(Ce.engineEvent("session_ping",a),({error:c})=>{c?o(c):s()}),await i()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async t=>{this.isInitialized(),await this.isValidEmit(t);let{topic:n,event:a,chainId:i}=t;await this.sendRequest(n,"wc_sessionEvent",{event:a,chainId:i})},this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);let{topic:n}=t;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",Ce.getSdkError("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter(n=>Ce.isSessionCompatible(n,t))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(t,n)=>{let{self:a}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await Promise.all([this.client.session.delete(t,Ce.getSdkError("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.deleteSymKey(t),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deleteProposal=async(t,n)=>{await Promise.all([this.client.proposal.delete(t,Ce.getSdkError("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,n),a?Promise.resolve():this.client.core.expirer.del(t)])},this.setExpiry=async(t,n)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:n}),this.client.core.expirer.set(t,n)},this.setProposal=async(t,n)=>{await this.client.proposal.set(t,n),this.client.core.expirer.set(t,n.expiry)},this.setPendingSessionRequest=async t=>{let n=Cre.wc_sessionRequest.req.ttl,{id:a,topic:i,params:s}=t;await this.client.pendingRequest.set(a,{id:a,topic:i,params:s}),n&&this.client.core.expirer.set(a,Ce.calcExpiry(n))},this.sendRequest=async(t,n,a,i)=>{let s=Qc.formatJsonRpcRequest(n,a),o=await this.client.core.crypto.encode(t,s),c=Cre[n].req;return i&&(c.ttl=i),this.client.core.history.set(t,s),this.client.core.relayer.publish(t,o,c),s.id},this.sendResult=async(t,n,a)=>{let i=Qc.formatJsonRpcResult(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=Cre[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.sendError=async(t,n,a)=>{let i=Qc.formatJsonRpcError(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=Cre[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let t=[],n=[];this.client.session.getAll().forEach(a=>{Ce.isExpired(a.expiry)&&t.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{Ce.isExpired(a.expiry)&&n.push(a.id)}),await Promise.all([...t.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=t=>{let{topic:n,payload:a}=t,i=a.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeRequest(n,a);case"wc_sessionSettle":return this.onSessionSettleRequest(n,a);case"wc_sessionUpdate":return this.onSessionUpdateRequest(n,a);case"wc_sessionExtend":return this.onSessionExtendRequest(n,a);case"wc_sessionPing":return this.onSessionPingRequest(n,a);case"wc_sessionDelete":return this.onSessionDeleteRequest(n,a);case"wc_sessionRequest":return this.onSessionRequest(n,a);case"wc_sessionEvent":return this.onSessionEventRequest(n,a);default:return this.client.logger.info(`Unsupported request method ${i}`)}},this.onRelayEventResponse=async t=>{let{topic:n,payload:a}=t,i=(await this.client.core.history.get(n,a.id)).request.method;switch(i){case"wc_sessionPropose":return this.onSessionProposeResponse(n,a);case"wc_sessionSettle":return this.onSessionSettleResponse(n,a);case"wc_sessionUpdate":return this.onSessionUpdateResponse(n,a);case"wc_sessionExtend":return this.onSessionExtendResponse(n,a);case"wc_sessionPing":return this.onSessionPingResponse(n,a);case"wc_sessionRequest":return this.onSessionRequestResponse(n,a);default:return this.client.logger.info(`Unsupported response method ${i}`)}},this.onSessionProposeRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidConnect(Qp({},n.params));let s=Ce.calcExpiry(co.FIVE_MINUTES),o=Qp({id:i,pairingTopic:t,expiry:s},a);await this.setProposal(i,o),this.client.events.emit("session_proposal",{id:i,params:o})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(t,n)=>{let{id:a}=n;if(Qc.isJsonRpcResult(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let s=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let c=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});let u=await this.client.core.crypto.generateSharedKey(o,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});let l=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:t})}else Qc.isJsonRpcError(n)&&(await this.client.proposal.delete(a,Ce.getSdkError("USER_DISCONNECTED")),this.events.emit(Ce.engineEvent("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:s,controller:o,expiry:c,namespaces:u,requiredNamespaces:l,optionalNamespaces:p,sessionProperties:h}=n.params,m=Qp({topic:t,relay:s,expiry:c,namespaces:u,acknowledged:!0,requiredNamespaces:l,optionalNamespaces:p,controller:o.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:o.publicKey,metadata:o.metadata}},h&&{sessionProperties:h});await this.sendResult(n.id,t,!0),this.events.emit(Ce.engineEvent("session_connect"),{session:m})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(t,n)=>{let{id:a}=n;Qc.isJsonRpcResult(n)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(Ce.engineEvent("session_approve",a),{})):Qc.isJsonRpcError(n)&&(await this.client.session.delete(t,Ce.getSdkError("USER_DISCONNECTED")),this.events.emit(Ce.engineEvent("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidUpdate(Qp({topic:t},a)),await this.client.session.update(t,{namespaces:a.namespaces}),await this.sendResult(i,t,!0),this.client.events.emit("session_update",{id:i,topic:t,params:a})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(t,n)=>{let{id:a}=n;Qc.isJsonRpcResult(n)?this.events.emit(Ce.engineEvent("session_update",a),{}):Qc.isJsonRpcError(n)&&this.events.emit(Ce.engineEvent("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(t,n)=>{let{id:a}=n;try{this.isValidExtend({topic:t}),await this.setExpiry(t,Ce.calcExpiry(yfe)),await this.sendResult(a,t,!0),this.client.events.emit("session_extend",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionExtendResponse=(t,n)=>{let{id:a}=n;Qc.isJsonRpcResult(n)?this.events.emit(Ce.engineEvent("session_extend",a),{}):Qc.isJsonRpcError(n)&&this.events.emit(Ce.engineEvent("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(t,n)=>{let{id:a}=n;try{this.isValidPing({topic:t}),await this.sendResult(a,t,!0),this.client.events.emit("session_ping",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionPingResponse=(t,n)=>{let{id:a}=n;setTimeout(()=>{Qc.isJsonRpcResult(n)?this.events.emit(Ce.engineEvent("session_ping",a),{}):Qc.isJsonRpcError(n)&&this.events.emit(Ce.engineEvent("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(t,n)=>{let{id:a}=n;try{this.isValidDisconnect({topic:t,reason:n.params}),this.client.core.relayer.once(G6.RELAYER_EVENTS.publish,async()=>{await this.deleteSession(t)}),await this.sendResult(a,t,!0),this.client.events.emit("session_delete",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidRequest(Qp({topic:t},i)),await this.setPendingSessionRequest({id:a,topic:t,params:i}),this.client.events.emit("session_request",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(t,n)=>{let{id:a}=n;Qc.isJsonRpcResult(n)?this.events.emit(Ce.engineEvent("session_request",a),{result:n.result}):Qc.isJsonRpcError(n)&&this.events.emit(Ce.engineEvent("session_request",a),{error:n.error})},this.onSessionEventRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidEmit(Qp({topic:t},i)),this.client.events.emit("session_event",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.isValidConnect=async t=>{if(!Ce.isValidParams(t)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(c)}let{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:i,sessionProperties:s,relays:o}=t;if(Ce.isUndefined(n)||await this.isValidPairingTopic(n),!Ce.isValidRelays(o,!0)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(c)}!Ce.isUndefined(a)&&Ce.isValidObject(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!Ce.isUndefined(i)&&Ce.isValidObject(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),Ce.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(t,n)=>{let a=Ce.isValidRequiredNamespaces(t,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async t=>{if(!Ce.isValidParams(t))throw new Error(Ce.getInternalError("MISSING_OR_INVALID",`approve() params: ${t}`).message);let{id:n,namespaces:a,relayProtocol:i,sessionProperties:s}=t;await this.isValidProposalId(n);let o=this.client.proposal.get(n),c=Ce.isValidNamespaces(a,"approve()");if(c)throw new Error(c.message);let u=Ce.isConformingNamespaces(o.requiredNamespaces,a,"approve()");if(u)throw new Error(u.message);if(!Ce.isValidString(i,!0)){let{message:l}=Ce.getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(l)}Ce.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async t=>{if(!Ce.isValidParams(t)){let{message:i}=Ce.getInternalError("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(i)}let{id:n,reason:a}=t;if(await this.isValidProposalId(n),!Ce.isValidErrorReason(a)){let{message:i}=Ce.getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidSessionSettleRequest=t=>{if(!Ce.isValidParams(t)){let{message:u}=Ce.getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(u)}let{relay:n,controller:a,namespaces:i,expiry:s}=t;if(!Ce.isValidRelay(n)){let{message:u}=Ce.getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let o=Ce.isValidController(a,"onSessionSettleRequest()");if(o)throw new Error(o.message);let c=Ce.isValidNamespaces(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(Ce.isExpired(s)){let{message:u}=Ce.getInternalError("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async t=>{if(!Ce.isValidParams(t)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(c)}let{topic:n,namespaces:a}=t;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=Ce.isValidNamespaces(a,"update()");if(s)throw new Error(s.message);let o=Ce.isConformingNamespaces(i.requiredNamespaces,a,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!Ce.isValidParams(t)){let{message:a}=Ce.getInternalError("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionTopic(n)},this.isValidRequest=async t=>{if(!Ce.isValidParams(t)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(c)}let{topic:n,request:a,chainId:i,expiry:s}=t;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!Ce.isValidNamespacesChainId(o,i)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(c)}if(!Ce.isValidRequest(a)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(c)}if(!Ce.isValidNamespacesRequest(o,i,a.method)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(c)}if(s&&!Ce.isValidRequestExpiry(s,X_e)){let{message:c}=Ce.getInternalError("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${X_e.min} and ${X_e.max}`);throw new Error(c)}},this.isValidRespond=async t=>{if(!Ce.isValidParams(t)){let{message:i}=Ce.getInternalError("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(i)}let{topic:n,response:a}=t;if(await this.isValidSessionTopic(n),!Ce.isValidResponse(a)){let{message:i}=Ce.getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidPing=async t=>{if(!Ce.isValidParams(t)){let{message:a}=Ce.getInternalError("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async t=>{if(!Ce.isValidParams(t)){let{message:o}=Ce.getInternalError("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(o)}let{topic:n,event:a,chainId:i}=t;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!Ce.isValidNamespacesChainId(s,i)){let{message:o}=Ce.getInternalError("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(o)}if(!Ce.isValidEvent(a)){let{message:o}=Ce.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}if(!Ce.isValidNamespacesEvent(s,i,a.name)){let{message:o}=Ce.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}},this.isValidDisconnect=async t=>{if(!Ce.isValidParams(t)){let{message:a}=Ce.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(t,n)=>{Object.values(t).forEach(a=>{if(!Ce.isValidString(a,!1)){let{message:i}=Ce.getInternalError("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(i)}})}}isInitialized(){if(!this.initialized){let{message:e}=Ce.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(G6.RELAYER_EVENTS.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let a=await this.client.core.crypto.decode(t,n);Qc.isJsonRpcRequest(a)?(this.client.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):Qc.isJsonRpcResponse(a)&&(await this.client.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.client.core.expirer.on(G6.EXPIRER_EVENTS.expired,async e=>{let{topic:t,id:n}=Ce.parseExpirerTarget(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,Ce.getInternalError("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(await this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(e){if(!Ce.isValidString(e,!1)){let{message:t}=Ce.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=Ce.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(Ce.isExpired(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=Ce.getInternalError("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!Ce.isValidString(e,!1)){let{message:t}=Ce.getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(!this.client.session.keys.includes(e)){let{message:t}=Ce.getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(Ce.isExpired(this.client.session.get(e).expiry)){await this.deleteSession(e);let{message:t}=Ce.getInternalError("EXPIRED",`session topic: ${e}`);throw new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(Ce.isValidString(e,!1)){let{message:t}=Ce.getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}else{let{message:t}=Ce.getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}async isValidProposalId(e){if(!Ce.isValidId(e)){let{message:t}=Ce.getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=Ce.getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(Ce.isExpired(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);let{message:t}=Ce.getInternalError("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}},y$e=class extends G6.Store{constructor(e,t){super(e,t,uVt,eTe),this.core=e,this.logger=t}},b$e=class extends G6.Store{constructor(e,t){super(e,t,fVt,eTe),this.core=e,this.logger=t}},g$e=class extends G6.Store{constructor(e,t){super(e,t,pVt,eTe),this.core=e,this.logger=t}},Are=class extends sVt.ISignClient{constructor(e){super(e),this.protocol=v$e,this.version=w$e,this.name=Z_e.name,this.events=new oVt.EventEmitter,this.on=(n,a)=>this.events.on(n,a),this.once=(n,a)=>this.events.once(n,a),this.off=(n,a)=>this.events.off(n,a),this.removeListener=(n,a)=>this.events.removeListener(n,a),this.removeAllListeners=n=>this.events.removeAllListeners(n),this.connect=async n=>{try{return await this.engine.connect(n)}catch(a){throw this.logger.error(a.message),a}},this.pair=async n=>{try{return await this.engine.pair(n)}catch(a){throw this.logger.error(a.message),a}},this.approve=async n=>{try{return await this.engine.approve(n)}catch(a){throw this.logger.error(a.message),a}},this.reject=async n=>{try{return await this.engine.reject(n)}catch(a){throw this.logger.error(a.message),a}},this.update=async n=>{try{return await this.engine.update(n)}catch(a){throw this.logger.error(a.message),a}},this.extend=async n=>{try{return await this.engine.extend(n)}catch(a){throw this.logger.error(a.message),a}},this.request=async n=>{try{return await this.engine.request(n)}catch(a){throw this.logger.error(a.message),a}},this.respond=async n=>{try{return await this.engine.respond(n)}catch(a){throw this.logger.error(a.message),a}},this.ping=async n=>{try{return await this.engine.ping(n)}catch(a){throw this.logger.error(a.message),a}},this.emit=async n=>{try{return await this.engine.emit(n)}catch(a){throw this.logger.error(a.message),a}},this.disconnect=async n=>{try{return await this.engine.disconnect(n)}catch(a){throw this.logger.error(a.message),a}},this.find=n=>{try{return this.engine.find(n)}catch(a){throw this.logger.error(a.message),a}},this.getPendingSessionRequests=()=>{try{return this.engine.getPendingSessionRequests()}catch(n){throw this.logger.error(n.message),n}},this.name=e?.name||Z_e.name,this.metadata=e?.metadata||Ce.getAppMetadata();let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:RGn.default(p$e.getDefaultLoggerOptions({level:e?.logger||Z_e.logger}));this.core=e?.core||new G6.Core(e),this.logger=p$e.generateChildLogger(t,this.name),this.session=new b$e(this.core,this.logger),this.proposal=new y$e(this.core,this.logger),this.pendingRequest=new g$e(this.core,this.logger),this.engine=new m$e(this)}static async init(e){let t=new Are(e);return await t.initialize(),t}get context(){return p$e.getLoggerContext(this.logger)}get pairing(){return this.core.pairing.pairings}async initialize(){this.logger.trace("Initialized");try{await this.core.start(),await this.session.init(),await this.proposal.init(),await this.pendingRequest.init(),await this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}},zGn=Are;oo.ENGINE_CONTEXT=dVt,oo.ENGINE_RPC_OPTS=Cre,oo.HISTORY_CONTEXT=OGn,oo.HISTORY_EVENTS=NGn,oo.HISTORY_STORAGE_VERSION=FGn,oo.PROPOSAL_CONTEXT=uVt,oo.PROPOSAL_EXPIRY=LGn,oo.PROPOSAL_EXPIRY_MESSAGE=lVt,oo.REQUEST_CONTEXT=pVt,oo.SESSION_CONTEXT=fVt,oo.SESSION_EXPIRY=yfe,oo.SESSION_REQUEST_EXPIRY_BOUNDARIES=X_e,oo.SIGN_CLIENT_CONTEXT=x$e,oo.SIGN_CLIENT_DEFAULT=Z_e,oo.SIGN_CLIENT_EVENTS=BGn,oo.SIGN_CLIENT_PROTOCOL=v$e,oo.SIGN_CLIENT_STORAGE_OPTIONS=DGn,oo.SIGN_CLIENT_STORAGE_PREFIX=eTe,oo.SIGN_CLIENT_VERSION=w$e,oo.SignClient=zGn,oo.default=Are});var xVt=E(rTe=>{"use strict";f();d();Object.defineProperty(rTe,"__esModule",{value:!0});var KGn=Zle(),vVt=hVt(),_$e=Yle(),GGn=b_e(),nTe=(Fle(),Ht(Ole)),wVt=(xxe(),Ht(wxe)),VGn=ml();function aTe(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var $Gn=aTe(KGn),YGn=aTe(vVt),S$e=aTe(wVt),QGn=aTe(VGn),mVt="error",JGn="wss://relay.walletconnect.com",ZGn="wc",XGn="universal_provider",yVt=`${ZGn}@${2}:${XGn}:`,eVn="https://rpc.walletconnect.com/v1",bfe={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function kre(r,e,t){let n,a=E$e(r);return e.rpcMap&&(n=e.rpcMap[a]),n||(n=`${eVn}?chainId=eip155:${a}&projectId=${t}`),n}function E$e(r){return r.includes("eip155")?Number(r.split(":")[1]):Number(r)}function tVn(r,e){if(!e.includes(r))throw new Error(`Chain '${r}' not approved. Please use one of the following: ${e.toString()}`)}function rVn(r){return r.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}var iTe=(r,e)=>{let t=n=>{n.request!==e.request||n.topic!==e.topic||(r.events.removeListener("session_request_sent",t),nVn())};r.on("session_request_sent",t)};function nVn(){if(typeof window<"u")try{let r=window.localStorage.getItem("WALLETCONNECT_DEEPLINK_CHOICE");if(r){let e=JSON.parse(r);window.open(e.href,"_self","noreferrer noopener")}}catch(r){console.error(r)}}var I$e=class{constructor(e){this.name="eip155",this.namespace=e.namespace,this.client=e.client,this.events=e.events,this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){var t;switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return this.handleSwitchChain(e.request.params?(t=e.request.params[0])==null?void 0:t.chainId:"0x0"),null;case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?(iTe(this.client,e),await this.client.request(e)):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){let n=E$e(e);if(!this.httpProviders[n]){let a=t||kre(`${this.name}:${n}`,this.namespace,this.client.core.projectId);if(!a)throw new Error(`No RPC url provided for chainId: ${n}`);this.setHttpProvider(n,a)}this.chainId=n,this.events.emit(bfe.DEFAULT_CHAIN_CHANGED,`${this.name}:${n}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let n=t||kre(`${this.name}:${e}`,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new nTe.JsonRpcProvider(new wVt.HttpConnection(n))}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=E$e(t);e[n]=this.createHttpProvider(n)}),e}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}handleSwitchChain(e){let t=parseInt(e,16),n=`${this.name}:${t}`;tVn(n,this.namespace.chains),this.setDefaultChain(`${t}`)}},C$e=class{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?(iTe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let n=t||kre(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(bfe.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||kre(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new nTe.JsonRpcProvider(new S$e.default(n))}},A$e=class{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(iTe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||kre(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(bfe.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||kre(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new nTe.JsonRpcProvider(new S$e.default(n))}},k$e=class{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(iTe(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(bfe.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=this.getCardanoRPCUrl(t);e[t]=this.createHttpProvider(t,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||this.getCardanoRPCUrl(e);return typeof n>"u"?void 0:new nTe.JsonRpcProvider(new S$e.default(n))}},aVn=Object.defineProperty,iVn=Object.defineProperties,sVn=Object.getOwnPropertyDescriptors,bVt=Object.getOwnPropertySymbols,oVn=Object.prototype.hasOwnProperty,cVn=Object.prototype.propertyIsEnumerable,gVt=(r,e,t)=>e in r?aVn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,tTe=(r,e)=>{for(var t in e||(e={}))oVn.call(e,t)&&gVt(r,t,e[t]);if(bVt)for(var t of bVt(e))cVn.call(e,t)&&gVt(r,t,e[t]);return r},T$e=(r,e)=>iVn(r,sVn(e)),Sre=class{constructor(e){this.events=new QGn.default,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:$Gn.default(GGn.getDefaultLoggerOptions({level:e?.logger||mVt}))}static async init(e){let t=new Sre(e);return await t.initialize(),t}async request(e,t){let[n,a]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:tTe({},e),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(e,t,n){this.request(e,n).then(a=>t(null,a)).catch(a=>t(a,void 0))}async enable(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||await this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties}),await this.requestAccounts()}async disconnect(){var e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:_$e.getSdkError("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");let{uri:n,approval:a}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(i=>{this.session=i}).catch(i=>{if(i.message!==vVt.PROPOSAL_EXPIRY_MESSAGE)throw i;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{let[n,a]=this.validateChain(e);this.getProvider(n).setDefaultChain(a,t)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if(_$e.isValidArray(t)){for(let n of t)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await YGn.default.init({logger:this.providerOpts.logger||mVt,relayUrl:this.providerOpts.relayUrl||JGn,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");Object.keys(this.namespaces).forEach(e=>{var t,n,a;let i=((t=this.session)==null?void 0:t.namespaces[e].accounts)||[],s=rVn(i),o=T$e(tTe({},Object.assign(this.namespaces[e],(a=(n=this.optionalNamespaces)==null?void 0:n[e])!=null?a:{})),{accounts:i,chains:s});switch(e){case"eip155":this.rpcProviders[e]=new I$e({client:this.client,namespace:o,events:this.events});break;case"solana":this.rpcProviders[e]=new C$e({client:this.client,namespace:o,events:this.events});break;case"cosmos":this.rpcProviders[e]=new A$e({client:this.client,namespace:o,events:this.events});break;case"polkadot":break;case"cip34":this.rpcProviders[e]=new k$e({client:this.client,namespace:o,events:this.events});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?this.events.emit("accountsChanged",n.data):n.name==="chainChanged"?this.onChainChanged(t.chainId):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var n;let{namespaces:a}=t,i=(n=this.client)==null?void 0:n.session.get(e);this.session=T$e(tTe({},i),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",T$e(tTe({},_$e.getSdkError("USER_DISCONNECTED")),{data:e.topic}))}),this.on(bfe.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw new Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace((t=this.session)==null?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:n,sessionProperties:a}=e;if(!t||!Object.keys(t).length)throw new Error("Namespaces must be not empty");this.namespaces=t,this.optionalNamespaces=n,this.sessionProperties=a,this.persist("namespaces",t),this.persist("optionalNamespaces",n)}validateChain(e){let[t,n]=e?.split(":")||["",""];if(t&&!Object.keys(this.namespaces).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&n)return[t,n];let a=Object.keys(this.namespaces)[0],i=this.rpcProviders[a].getDefaultChain();return[a,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){let[n,a]=this.validateChain(e);t||this.getProvider(n).setDefaultChain(a),this.namespaces[n].defaultChain=a,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",a)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${yVt}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${yVt}/${e}`)}},uVn=Sre;rTe.UniversalProvider=uVn,rTe.default=Sre});var Ebi,lVn,_Vt,P$e,fVn,TVt,R$e,EVt=de(()=>{f();d();Ebi=Symbol(),lVn=Symbol(),_Vt=Object.getPrototypeOf,P$e=new WeakMap,fVn=r=>r&&(P$e.has(r)?P$e.get(r):_Vt(r)===Object.prototype||_Vt(r)===Array.prototype),TVt=r=>fVn(r)&&r[lVn]||null,R$e=(r,e=!0)=>{P$e.set(r,e)}});function xm(r={}){return pVn(r)}function $6(r,e,t){let n=H8.get(r);(V6.env&&V6.env.MODE)!=="production"&&!n&&console.warn("Please use proxy object");let a,i=[],s=n[3],o=!1,u=s(l=>{if(i.push(l),t){e(i.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(i.splice(0))}))});return o=!0,()=>{o=!1,u()}}function hVn(r,e){let t=H8.get(r);(V6.env&&V6.env.MODE)!=="production"&&!t&&console.warn("Please use proxy object");let[n,a,i]=t;return i(n,a(),e)}var V6,M$e,H8,sTe,dVn,pVn,IVt=de(()=>{f();d();EVt();V6={},M$e=r=>typeof r=="object"&&r!==null,H8=new WeakMap,sTe=new WeakSet,dVn=(r=Object.is,e=(u,l)=>new Proxy(u,l),t=u=>M$e(u)&&!sTe.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),n=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},a=new WeakMap,i=(u,l,p=n)=>{let h=a.get(u);if(h?.[0]===l)return h[1];let m=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return R$e(m,!0),a.set(u,[l,m]),Reflect.ownKeys(u).forEach(y=>{let C=Reflect.get(u,y);sTe.has(C)?(R$e(C,!1),m[y]=C):C instanceof Promise?Object.defineProperty(m,y,{get(){return p(C)}}):H8.has(C)?m[y]=hVn(C,p):m[y]=C}),Object.freeze(m)},s=new WeakMap,o=[1,1],c=u=>{if(!M$e(u))throw new Error("object required");let l=s.get(u);if(l)return l;let p=o[0],h=new Set,m=(H,I=++o[0])=>{p!==I&&(p=I,h.forEach(b=>b(H,I)))},y=o[1],C=(H=++o[1])=>(y!==H&&!h.size&&(y=H,A.forEach(([I])=>{let b=I[1](H);b>p&&(p=b)})),p),P=H=>(I,b)=>{let k=[...I];k[1]=[H,...k[1]],m(k,b)},A=new Map,B=(H,I)=>{if((V6.env&&V6.env.MODE)!=="production"&&A.has(H))throw new Error("prop listener already exists");if(h.size){let b=I[3](P(H));A.set(H,[I,b])}else A.set(H,[I])},F=H=>{var I;let b=A.get(H);b&&(A.delete(H),(I=b[1])==null||I.call(b))},W=H=>(h.add(H),h.size===1&&A.forEach(([b,k],S)=>{if((V6.env&&V6.env.MODE)!=="production"&&k)throw new Error("remove already exists");let w=b[3](P(S));A.set(S,[b,w])}),()=>{h.delete(H),h.size===0&&A.forEach(([b,k],S)=>{k&&(k(),A.set(S,[b]))})}),K=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),G=e(K,{deleteProperty(H,I){let b=Reflect.get(H,I);F(I);let k=Reflect.deleteProperty(H,I);return k&&m(["delete",[I],b]),k},set(H,I,b,k){var S;let w=Reflect.has(H,I),R=Reflect.get(H,I,k);if(w&&r(R,b))return!0;F(I),M$e(b)&&(b=TVt(b)||b);let O=b;if(!((S=Object.getOwnPropertyDescriptor(H,I))!=null&&S.set))if(b instanceof Promise)b.then(D=>{b.status="fulfilled",b.value=D,m(["resolve",[I],D])}).catch(D=>{b.status="rejected",b.reason=D,m(["reject",[I],D])});else{!H8.has(b)&&t(b)&&(O=xm(b));let D=!sTe.has(O)&&H8.get(O);D&&B(I,D)}return Reflect.set(H,I,O,k),m(["set",[I],b,R]),!0}});s.set(u,G);let j=[K,C,i,W];return H8.set(G,j),Reflect.ownKeys(u).forEach(H=>{let I=Object.getOwnPropertyDescriptor(u,H);I.get||I.set?Object.defineProperty(K,H,I):G[H]=u[H]}),G})=>[c,H8,sTe,r,e,t,n,a,i,s,o],[pVn]=dVn()});function mVn(r){let e=Object.fromEntries(Object.entries(r).filter(([t,n])=>typeof n<"u"&&n!==null&&n!=="").map(([t,n])=>[t,n.toString()]));return new URLSearchParams(e).toString()}function uTe(){let{projectId:r}=nc.state;if(!r)throw new Error("projectId is required to work with explorer api");return r}function yVn(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var AVt,Ml,nr,gfe,Gs,Oo,Vi,oTe,nc,CVt,cTe,j8,Sc,Cd,gn,Pre,Pc,lTe,fy,z8,du,pn,B$e=de(()=>{f();d();IVt();AVt=ea(Uo(),1),Ml=xm({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),nr={state:Ml,subscribe(r){return $6(Ml,()=>r(Ml))},setChains(r){Ml.chains=r},setStandaloneChains(r){Ml.standaloneChains=r},setStandaloneUri(r){Ml.standaloneUri=r},getSelectedChain(){let r=Gs.client().getNetwork().chain;return r&&(Ml.selectedChain=r),Ml.selectedChain},setSelectedChain(r){Ml.selectedChain=r},setIsStandalone(r){Ml.isStandalone=r},setIsCustomDesktop(r){Ml.isCustomDesktop=r},setIsCustomMobile(r){Ml.isCustomMobile=r},setIsDataLoaded(r){Ml.isDataLoaded=r},setIsUiLoaded(r){Ml.isUiLoaded=r},setWalletConnectVersion(r){Ml.walletConnectVersion=r}},gfe=xm({initialized:!1,ethereumClient:void 0}),Gs={setEthereumClient(r){!gfe.initialized&&r&&(gfe.ethereumClient=r,nr.setChains(r.chains),gfe.initialized=!0)},client(){if(gfe.ethereumClient)return gfe.ethereumClient;throw new Error("ClientCtrl has no client set")}},Oo=xm({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),Vi={state:Oo,subscribe(r){return $6(Oo,()=>r(Oo))},getAccount(){let r=Gs.client().getAccount();Oo.address=r.address,Oo.isConnected=r.isConnected},async fetchProfile(r,e){try{Oo.profileLoading=!0;let t=e??Oo.address,{id:n}=Gs.client().getDefaultChain();if(t&&n===1){let[a,i]=await Promise.all([Gs.client().fetchEnsName({address:t,chainId:1}),Gs.client().fetchEnsAvatar({address:t,chainId:1})]);i&&await r(i),Oo.profileName=a,Oo.profileAvatar=i}}finally{Oo.profileLoading=!1}},async fetchBalance(r){try{Oo.balanceLoading=!0;let e=r??Oo.address;if(e){let t=await Gs.client().fetchBalance({address:e});Oo.balance={amount:t.formatted,symbol:t.symbol}}}finally{Oo.balanceLoading=!1}},setAddress(r){Oo.address=r},setIsConnected(r){Oo.isConnected=r},resetBalance(){Oo.balance=void 0},resetAccount(){Oo.address=void 0,Oo.isConnected=!1,Oo.profileName=void 0,Oo.profileAvatar=void 0,Oo.balance=void 0}},oTe=xm({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),nc={state:oTe,subscribe(r){return $6(oTe,()=>r(oTe))},setConfig(r){var e,t,n,a;if(nr.setStandaloneChains(r.standaloneChains),nr.setIsStandalone(!!((e=r.standaloneChains)!=null&&e.length)||!!r.enableStandaloneMode),nr.setIsCustomMobile(!!((t=r.mobileWallets)!=null&&t.length)),nr.setIsCustomDesktop(!!((n=r.desktopWallets)!=null&&n.length)),nr.setWalletConnectVersion((a=r.walletConnectVersion)!=null?a:1),r.defaultChain)nr.setSelectedChain(r.defaultChain);else if(!nr.state.isStandalone){let i=Gs.client().getDefaultChain();nr.setSelectedChain(i)}Object.assign(oTe,r)}},CVt="https://explorer-api.walletconnect.com";cTe={async fetchWallets(r,e){let t=mVn(e),n=`${CVt}/v3/wallets?projectId=${r}&${t}`;return(await fetch(n)).json()},formatImageUrl(r,e){return`${CVt}/v3/logo/lg/${e}?projectId=${r}`}},j8=xm({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});Sc={state:j8,async getPreviewWallets(r){let{listings:e}=await cTe.fetchWallets(uTe(),r);return j8.previewWallets=Object.values(e),j8.previewWallets},async getRecomendedWallets(){let{listings:r}=await cTe.fetchWallets(uTe(),{page:1,entries:6});j8.recomendedWallets=Object.values(r)},async getPaginatedWallets(r){let{page:e,search:t}=r,{listings:n,total:a}=await cTe.fetchWallets(uTe(),r),i=Object.values(n),s=t?"search":"wallets";return j8[s]={listings:[...j8[s].listings,...i],total:a,page:e??1},{listings:i,total:a}},getImageUrl(r){return cTe.formatImageUrl(uTe(),r)},resetSearch(){j8.search={listings:[],total:0,page:1}}},Cd=xm({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),gn={state:Cd,subscribe(r){return $6(Cd,()=>r(Cd))},push(r,e){r!==Cd.view&&(Cd.view=r,e&&(Cd.data=e),Cd.history.push(r))},replace(r){Cd.view=r,Cd.history=[r]},goBack(){if(Cd.history.length>1){Cd.history.pop();let[r]=Cd.history.slice(-1);Cd.view=r}}},Pre=xm({open:!1}),Pc={state:Pre,subscribe(r){return $6(Pre,()=>r(Pre))},async open(r){return new Promise(e=>{let{isStandalone:t,isUiLoaded:n,isDataLoaded:a}=nr.state,{isConnected:i}=Vi.state,{enableNetworkView:s}=nc.state;if(t?(nr.setStandaloneUri(r?.uri),nr.setStandaloneChains(r?.standaloneChains),gn.replace("ConnectWallet")):r!=null&&r.route?gn.replace(r.route):i?gn.replace("Account"):s?gn.replace("SelectNetwork"):gn.replace("ConnectWallet"),n&&a)Pre.open=!0,e();else{let o=setInterval(()=>{nr.state.isUiLoaded&&nr.state.isDataLoaded&&(clearInterval(o),Pre.open=!0,e())},200)}})},close(){Pre.open=!1}};lTe=xm({themeMode:yVn()?"dark":"light"}),fy={state:lTe,subscribe(r){return $6(lTe,()=>r(lTe))},setThemeConfig(r){Object.assign(lTe,r)}},z8=xm({open:!1,message:"",variant:"success"}),du={state:z8,subscribe(r){return $6(z8,()=>r(z8))},openToast(r,e){z8.open=!0,z8.message=r,z8.variant=e},closeToast(){z8.open=!1}},pn={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return pn.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.getOwnPropertyNames(r).length===0&&Object.getOwnPropertySymbols(r).length===0},isHttpUrl(r){return r.startsWith("http://")||r.startsWith("https://")},formatNativeUrl(r,e,t){if(pn.isHttpUrl(r))return this.formatUniversalUrl(r,e,t);let n=r;n.includes("://")||(n=r.replaceAll("/","").replaceAll(":",""),n=`${n}://`),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}wc?uri=${a}`},formatUniversalUrl(r,e,t){if(!pn.isHttpUrl(r))return this.formatNativeUrl(r,e,t);let n=r;r.endsWith("/")&&(n=r.slice(0,-1)),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}/wc?uri=${a}`},async wait(r){return new Promise(e=>{setTimeout(e,r)})},openHref(r,e){window.open(r,e,"noreferrer noopener")},setWalletConnectDeepLink(r,e){localStorage.setItem(pn.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:r,name:e}))},setWalletConnectAndroidDeepLink(r){let[e]=r.split("?");localStorage.setItem(pn.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(pn.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(r){return r===null}};typeof window<"u"&&(window.Buffer||(window.Buffer=AVt.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}))});var fTe,dTe,D$e,kVt,vfe,SVt,Nr,N$e,pTe,O$e=de(()=>{f();d();fTe=window,dTe=fTe.ShadowRoot&&(fTe.ShadyCSS===void 0||fTe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,D$e=Symbol(),kVt=new WeakMap,vfe=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==D$e)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(dTe&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=kVt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&kVt.set(t,e))}return e}toString(){return this.cssText}},SVt=r=>new vfe(typeof r=="string"?r:r+"",void 0,D$e),Nr=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,a,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+r[i+1],r[0]);return new vfe(t,r,D$e)},N$e=(r,e)=>{dTe?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=fTe.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})},pTe=dTe?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return SVt(t)})(r):r});var F$e,hTe,PVt,bVn,RVt,q$e,MVt,L$e,c2,mTe=de(()=>{f();d();O$e();O$e();hTe=window,PVt=hTe.trustedTypes,bVn=PVt?PVt.emptyScript:"",RVt=hTe.reactiveElementPolyfillSupport,q$e={toAttribute(r,e){switch(e){case Boolean:r=r?bVn:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},MVt=(r,e)=>e!==r&&(e==e||r==r),L$e={attribute:!0,type:String,converter:q$e,reflect:!1,hasChanged:MVt},c2=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,n)=>{let a=this._$Ep(n,t);a!==void 0&&(this._$Ev.set(a,n),e.push(a))}),e}static createProperty(e,t=L$e){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(a){let i=this[e];this[t]=a,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||L$e}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let a of n)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(pTe(a))}else e!==void 0&&t.push(pTe(e));return t}static _$Ep(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return N$e(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=L$e){var a;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((a=n.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?n.converter:q$e).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,t){var n;let a=this.constructor,i=a._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=a.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:q$e;this._$El=i,this[i]=o.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let a=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||MVt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((a,i)=>this[i]=a),this._$Ei=void 0);let t=!1,n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var i;return(i=a.hostUpdate)===null||i===void 0?void 0:i.call(a)}),this.update(n)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var a;return(a=n.hostUpdated)===null||a===void 0?void 0:a.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};c2.finalized=!0,c2.elementProperties=new Map,c2.elementStyles=[],c2.shadowRootOptions={mode:"open"},RVt?.({ReactiveElement:c2}),((F$e=hTe.reactiveElementVersions)!==null&&F$e!==void 0?F$e:hTe.reactiveElementVersions=[]).push("1.6.1")});function Dre(r,e,t=r,n){var a,i,s,o;if(e===u2)return e;let c=n!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[n]:t._$Cl,u=_fe(e)?void 0:e._$litDirective$;return c?.constructor!==u&&((i=c?._$AO)===null||i===void 0||i.call(c,!1),u===void 0?c=void 0:(c=new u(r),c._$AT(r,t,n)),n!==void 0?((s=(o=t)._$Co)!==null&&s!==void 0?s:o._$Co=[])[n]=c:t._$Cl=c),c!==void 0&&(e=Dre(r,c._$AS(r,e.values),c,n)),e}var W$e,yTe,Mre,BVt,Y6,WVt,gVn,Bre,xfe,_fe,UVt,vVn,wfe,DVt,NVt,K8,OVt,FVt,HVt,jVt,Re,vn,u2,Rc,LVt,Rre,wVn,G8,U$e,V8,Nre,H$e,xVn,j$e,z$e,K$e,qVt,zVt,$8=de(()=>{f();d();yTe=window,Mre=yTe.trustedTypes,BVt=Mre?Mre.createPolicy("lit-html",{createHTML:r=>r}):void 0,Y6=`lit$${(Math.random()+"").slice(9)}$`,WVt="?"+Y6,gVn=`<${WVt}>`,Bre=document,xfe=(r="")=>Bre.createComment(r),_fe=r=>r===null||typeof r!="object"&&typeof r!="function",UVt=Array.isArray,vVn=r=>UVt(r)||typeof r?.[Symbol.iterator]=="function",wfe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,DVt=/-->/g,NVt=/>/g,K8=RegExp(`>|[ \f\r](?:([^\\s"'>=/]+)([ \f\r]*=[ \f\r]*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),tPt=/'/g,rPt=/"/g,oPt=/^(?:script|style|textarea|title)$/i,cPt=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),xe=cPt(1),Dr=cPt(2),wy=Symbol.for("lit-noChange"),io=Symbol.for("lit-nothing"),nPt=new WeakMap,MQ=BQ.createTreeWalker(BQ,129,null,!1),mwn=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"":"",s=zae;for(let c=0;c"?(s=a??zae,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,l=h[1],s=h[3]===void 0?d5:h[3]==='"'?rPt:tPt):s===rPt||s===tPt?s=d5:s===XAt||s===ePt?s=zae:(s=d5,a=void 0);let y=s===d5&&r[c+1].startsWith("/>")?" ":"";i+=s===zae?u+hwn:f>=0?(n.push(l),u.slice(0,f)+"$lit$"+u.slice(f)+W1+y):u+W1+(f===-2?(n.push(void 0),c):y)}let o=i+(r[t]||"")+(e===2?"":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ZAt!==void 0?ZAt.createHTML(o):o,n]},p5=class{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,o=e.length-1,c=this.parts,[u,l]=mwn(e,t);if(this.el=p5.createElement(u,n),MQ.currentNode=this.el.content,t===2){let h=this.el.content,f=h.firstChild;f.remove(),h.append(...f.childNodes)}for(;(a=MQ.nextNode())!==null&&c.length0){a.textContent=NQ?NQ.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=io}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=DQ(this,e,t,0),s=!Gae(e)||e!==this._$AH&&e!==wy,s&&(this._$AH=e);else{let o=e,c,u;for(e=i[0],c=0;c{var n,a;let i=(n=t?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let o=(a=t?.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=s=new h5(e.insertBefore(Kae(),o),o,void 0,t??{})}return s._$AI(r),s}});var JDe,ZDe,gt,lPt,dPt=ce(()=>{d();p();uve();uve();f5();f5();gt=class extends vy{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=uPt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return wy}};gt.finalized=!0,gt._$litElement$=!0,(JDe=globalThis.litElementHydrateSupport)===null||JDe===void 0||JDe.call(globalThis,{LitElement:gt});lPt=globalThis.litElementPolyfillSupport;lPt?.({LitElement:gt});((ZDe=globalThis.litElementVersions)!==null&&ZDe!==void 0?ZDe:globalThis.litElementVersions=[]).push("3.2.2")});var pPt=ce(()=>{d();p();});var hPt=ce(()=>{d();p();uve();f5();dPt();pPt()});var Jt,fPt=ce(()=>{d();p();Jt=r=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(r,e):((t,n)=>{let{kind:a,elements:i}=n;return{kind:a,elements:i,finisher(s){customElements.define(t,s)}}})(r,e)});function ar(r){return(e,t)=>t!==void 0?((n,a,i)=>{a.constructor.createProperty(i,n)})(r,e,t):gwn(r,e)}var gwn,XDe=ce(()=>{d();p();gwn=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}}});function xn(r){return ar({...r,state:!0})}var mPt=ce(()=>{d();p();XDe();});var m5=ce(()=>{d();p();});var yPt=ce(()=>{d();p();m5();});var gPt=ce(()=>{d();p();m5();});var bPt=ce(()=>{d();p();m5();});var vPt=ce(()=>{d();p();m5();});var eLe,aEa,tLe=ce(()=>{d();p();m5();aEa=((eLe=window.HTMLSlotElement)===null||eLe===void 0?void 0:eLe.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE)});var wPt=ce(()=>{d();p();m5();tLe();});var xPt=ce(()=>{d();p();fPt();XDe();mPt();yPt();gPt();bPt();vPt();tLe();wPt()});var _Pt,TPt,dve,IPt=ce(()=>{d();p();_Pt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},TPt=r=>(...e)=>({_$litDirective$:r,values:e}),dve=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var rl,EPt=ce(()=>{d();p();f5();IPt();rl=TPt(class extends dve{constructor(r){var e;if(super(r),r.type!==_Pt.ATTRIBUTE||r.name!=="class"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,n;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.st)===null||t===void 0)&&t.has(i))&&this.nt.add(i);return this.render(e)}let a=r.element.classList;this.nt.forEach(i=>{i in e||(a.remove(i),this.nt.delete(i))});for(let i in e){let s=!!e[i];s===this.nt.has(i)||((n=this.st)===null||n===void 0?void 0:n.has(i))||(s?(a.add(i),this.nt.add(i)):(a.remove(i),this.nt.delete(i)))}return wy}})});var CPt=ce(()=>{d();p();EPt()});function rLe(r,e){r.indexOf(e)===-1&&r.push(e)}var kPt=ce(()=>{d();p()});var Yae,nLe=ce(()=>{d();p();Yae=(r,e,t)=>Math.min(Math.max(t,r),e)});var Bc,APt=ce(()=>{d();p();Bc={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}});var cf,pve=ce(()=>{d();p();cf=r=>typeof r=="number"});var Om,aLe=ce(()=>{d();p();pve();Om=r=>Array.isArray(r)&&!cf(r[0])});var PPt,SPt=ce(()=>{d();p();PPt=(r,e,t)=>{let n=e-r;return((t-r)%n+n)%n+r}});function RPt(r,e){return Om(r)?r[PPt(0,r.length,e)]:r}var MPt=ce(()=>{d();p();aLe();SPt()});var hve,iLe=ce(()=>{d();p();hve=(r,e,t)=>-t*r+t*e+r});var $ae,ko,sLe=ce(()=>{d();p();$ae=()=>{},ko=r=>r});var y5,fve=ce(()=>{d();p();y5=(r,e,t)=>e-r===0?1:(t-r)/(e-r)});function oLe(r,e){let t=r[r.length-1];for(let n=1;n<=e;n++){let a=y5(0,e,n);r.push(hve(t,1,a))}}function NPt(r){let e=[0];return oLe(e,r-1),e}var BPt=ce(()=>{d();p();iLe();fve()});function cLe(r,e=NPt(r.length),t=ko){let n=r.length,a=n-e.length;return a>0&&oLe(e,a),i=>{let s=0;for(;s{d();p();iLe();sLe();BPt();fve();MPt();nLe()});var Qae,LPt=ce(()=>{d();p();pve();Qae=r=>Array.isArray(r)&&cf(r[0])});var OQ,OPt=ce(()=>{d();p();OQ=r=>typeof r=="object"&&Boolean(r.createAnimation)});var jp,qPt=ce(()=>{d();p();jp=r=>typeof r=="function"});var Jae,FPt=ce(()=>{d();p();Jae=r=>typeof r=="string"});var qm,WPt=ce(()=>{d();p();qm={ms:r=>r*1e3,s:r=>r/1e3}});function uLe(r,e){return e?r*(1e3/e):0}var UPt=ce(()=>{d();p()});var Nu=ce(()=>{d();p();kPt();nLe();APt();DPt();LPt();OPt();aLe();qPt();pve();FPt();sLe();fve();WPt();UPt()});function wwn(r,e,t,n,a){let i,s,o=0;do s=e+(t-e)/2,i=HPt(s,n,a)-r,i>0?t=s:e=s;while(Math.abs(i)>bwn&&++owwn(i,0,1,r,t);return i=>i===0||i===1?i:HPt(a(i),e,n)}var HPt,bwn,vwn,jPt=ce(()=>{d();p();Nu();HPt=(r,e,t)=>(((1-3*t+3*e)*r+(3*t-6*e))*r+3*e)*r,bwn=1e-7,vwn=12});var lLe,zPt=ce(()=>{d();p();Nu();lLe=(r,e="end")=>t=>{t=e==="end"?Math.min(t,.999):Math.max(t,.001);let n=t*r,a=e==="end"?Math.floor(n):Math.ceil(n);return Yae(0,1,a/r)}});var KPt=ce(()=>{d();p();jPt();zPt()});function dLe(r){if(jp(r))return r;if(Qae(r))return g5(...r);if(GPt[r])return GPt[r];if(r.startsWith("steps")){let e=xwn.exec(r);if(e){let t=e[1].split(",");return lLe(parseFloat(t[0]),t[1].trim())}}return ko}var GPt,xwn,VPt=ce(()=>{d();p();KPt();Nu();GPt={ease:g5(.25,.1,.25,1),"ease-in":g5(.42,0,1,1),"ease-in-out":g5(.42,0,.58,1),"ease-out":g5(0,0,.58,1)},xwn=/\((.*?)\)/});var b5,YPt=ce(()=>{d();p();Nu();VPt();b5=class{constructor(e,t=[0,1],{easing:n,duration:a=Bc.duration,delay:i=Bc.delay,endDelay:s=Bc.endDelay,repeat:o=Bc.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=ko,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,f)=>{this.resolve=h,this.reject=f}),n=n||Bc.easing,OQ(n)){let h=n.createAnimation(t);n=h.easing,t=h.keyframes||t,a=h.duration||a}this.repeat=o,this.easing=Om(n)?ko:dLe(n),this.updateDuration(a);let l=cLe(t,c,Om(n)?n.map(dLe):ko);this.tick=h=>{var f;i=i;let m=0;this.pauseTime!==void 0?m=this.pauseTime:m=(h-this.startTime)*this.rate,this.t=m,m/=1e3,m=Math.max(m-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(m=this.totalDuration);let y=m/this.duration,I=Math.floor(y),C=y%1;!C&&y>=1&&(C=1),C===1&&I--;let R=I%2;(u==="reverse"||u==="alternate"&&R||u==="alternate-reverse"&&!R)&&(C=1-C);let L=m>=this.totalDuration?1:Math.min(C,1),F=l(this.easing(L));e(F),this.pauseTime===void 0&&(this.playState==="finished"||m>=this.totalDuration+s)?(this.playState="finished",(f=this.resolve)===null||f===void 0||f.call(this,F)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}});var pLe=ce(()=>{d();p();YPt()});var _wn,mve,$Pt=ce(()=>{d();p();_wn=function(){},mve=function(){};g.env.NODE_ENV!=="production"&&(_wn=function(r,e){!r&&typeof console<"u"&&console.warn(e)},mve=function(r,e){if(!r)throw new Error(e)})});var Zae,QPt=ce(()=>{d();p();Zae=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}});var hLe=ce(()=>{d();p();QPt()});function yve(r){return fLe.has(r)||fLe.set(r,{transforms:[],values:new Map}),fLe.get(r)}function JPt(r,e){return r.has(e)||r.set(e,new Zae),r.get(e)}var fLe,mLe=ce(()=>{d();p();hLe();fLe=new WeakMap});var Twn,Iwn,Xae,ZPt,Ewn,Fm,bve,gve,Cwn,kwn,vve,XPt,Awn,Pwn,qQ=ce(()=>{d();p();Nu();mLe();Twn=["","X","Y","Z"],Iwn=["translate","scale","rotate","skew"],Xae={x:"translateX",y:"translateY",z:"translateZ"},ZPt={syntax:"",initialValue:"0deg",toDefaultUnit:r=>r+"deg"},Ewn={translate:{syntax:"",initialValue:"0px",toDefaultUnit:r=>r+"px"},rotate:ZPt,scale:{syntax:"",initialValue:1,toDefaultUnit:ko},skew:ZPt},Fm=new Map,bve=r=>`--motion-${r}`,gve=["x","y","z"];Iwn.forEach(r=>{Twn.forEach(e=>{gve.push(r+e),Fm.set(bve(r+e),Ewn[r])})});Cwn=(r,e)=>gve.indexOf(r)-gve.indexOf(e),kwn=new Set(gve),vve=r=>kwn.has(r),XPt=(r,e)=>{Xae[e]&&(e=Xae[e]);let{transforms:t}=yve(r);rLe(t,e),r.style.transform=Awn(t)},Awn=r=>r.sort(Cwn).reduce(Pwn,"").trim(),Pwn=(r,e)=>`${r} ${e}(var(${bve(e)}))`});function tSt(r){if(!eSt.has(r)){eSt.add(r);try{let{syntax:e,initialValue:t}=Fm.has(r)?Fm.get(r):{};CSS.registerProperty({name:r,inherits:!1,syntax:e,initialValue:t})}catch{}}}var eie,eSt,yLe=ce(()=>{d();p();qQ();eie=r=>r.startsWith("--"),eSt=new Set});var gLe,rSt,bLe,U1,vLe=ce(()=>{d();p();gLe=(r,e)=>document.createElement("div").animate(r,e),rSt={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{gLe({opacity:[1]})}catch{return!1}return!0},finished:()=>Boolean(gLe({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{gLe({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},bLe={},U1={};for(let r in rSt)U1[r]=()=>(bLe[r]===void 0&&(bLe[r]=rSt[r]()),bLe[r])});var Swn,Rwn,wLe,Mwn,nSt=ce(()=>{d();p();Nu();vLe();Swn=.015,Rwn=(r,e)=>{let t="",n=Math.round(e/Swn);for(let a=0;ajp(r)?U1.linearEasing()?`linear(${Rwn(r,e)})`:Bc.easing:Qae(r)?Mwn(r):r,Mwn=([r,e,t,n])=>`cubic-bezier(${r}, ${e}, ${t}, ${n})`});function aSt(r,e){for(let t=0;t{d();p();iSt=r=>Array.isArray(r)?r:[r]});function v5(r){return Xae[r]&&(r=Xae[r]),vve(r)?bve(r):r}var wve=ce(()=>{d();p();qQ()});var tie,oSt=ce(()=>{d();p();yLe();wve();qQ();tie={get:(r,e)=>{e=v5(e);let t=eie(e)?r.style.getPropertyValue(e):getComputedStyle(r)[e];if(!t&&t!==0){let n=Fm.get(e);n&&(t=n.initialValue)}return t},set:(r,e,t)=>{e=v5(e),eie(e)?r.style.setProperty(e,t):r.style[e]=t}}});function xve(r,e=!0){if(!(!r||r.playState==="finished"))try{r.stop?r.stop():(e&&r.commitStyles(),r.cancel())}catch{}}var xLe=ce(()=>{d();p()});function _ve(r,e){var t;let n=e?.toDefaultUnit||ko,a=r[r.length-1];if(Jae(a)){let i=((t=a.match(/(-?[\d.]+)([a-z%]*)/))===null||t===void 0?void 0:t[2])||"";i&&(n=s=>s+i)}return n}var _Le=ce(()=>{d();p();Nu()});function Nwn(){return window.__MOTION_DEV_TOOLS_RECORD}function cSt(r,e,t,n={},a){let i=Nwn(),s=n.record!==!1&&i,o,{duration:c=Bc.duration,delay:u=Bc.delay,endDelay:l=Bc.endDelay,repeat:h=Bc.repeat,easing:f=Bc.easing,persist:m=!1,direction:y,offset:I,allowWebkitAcceleration:C=!1}=n,R=yve(r),L=vve(e),F=U1.waapi();L&&XPt(r,e);let W=v5(e),V=JPt(R.values,W),K=Fm.get(W);return xve(V.animation,!(OQ(f)&&V.generator)&&n.record!==!1),()=>{let H=()=>{var q,T;return(T=(q=tie.get(r,W))!==null&&q!==void 0?q:K?.initialValue)!==null&&T!==void 0?T:0},G=aSt(iSt(t),H),Q=_ve(G,K);if(OQ(f)){let q=f.createAnimation(G,e!=="opacity",H,W,V);f=q.easing,G=q.keyframes||G,c=q.duration||c}if(eie(W)&&(U1.cssRegisterProperty()?tSt(W):F=!1),L&&!U1.linearEasing()&&(jp(f)||Om(f)&&f.some(jp))&&(F=!1),F){K&&(G=G.map(M=>cf(M)?K.toDefaultUnit(M):M)),G.length===1&&(!U1.partialKeyframes()||s)&&G.unshift(H());let q={delay:qm.ms(u),duration:qm.ms(c),endDelay:qm.ms(l),easing:Om(f)?void 0:wLe(f,c),direction:y,iterations:h+1,fill:"both"};o=r.animate({[W]:G,offset:I,easing:Om(f)?f.map(M=>wLe(M,c)):void 0},q),o.finished||(o.finished=new Promise((M,A)=>{o.onfinish=M,o.oncancel=A}));let T=G[G.length-1];o.finished.then(()=>{m||(tie.set(r,W,T),o.cancel())}).catch($ae),C||(o.playbackRate=1.000001)}else if(a&&L)G=G.map(q=>typeof q=="string"?parseFloat(q):q),G.length===1&&G.unshift(parseFloat(H())),o=new a(q=>{tie.set(r,W,Q?Q(q):q)},G,Object.assign(Object.assign({},n),{duration:c,easing:f}));else{let q=G[G.length-1];tie.set(r,W,K&&cf(q)?K.toDefaultUnit(q):q)}return s&&i(r,e,G,{duration:c,delay:u,easing:f,repeat:h,offset:I},"motion-one"),V.setAnimation(o),o}}var uSt=ce(()=>{d();p();mLe();yLe();Nu();qQ();nSt();vLe();sSt();oSt();wve();xLe();_Le()});var lSt,dSt=ce(()=>{d();p();lSt=(r,e)=>r[e]?Object.assign(Object.assign({},r),r[e]):Object.assign({},r)});function pSt(r,e){var t;return typeof r=="string"?e?((t=e[r])!==null&&t!==void 0||(e[r]=document.querySelectorAll(r)),r=e[r]):r=document.querySelectorAll(r):r instanceof Element&&(r=[r]),Array.from(r||[])}var hSt=ce(()=>{d();p()});var Bwn,rie,Dwn,Lwn,Own,TLe=ce(()=>{d();p();Nu();xLe();Bwn=r=>r(),rie=(r,e,t=Bc.duration)=>new Proxy({animations:r.map(Bwn).filter(Boolean),duration:t,options:e},Lwn),Dwn=r=>r.animations[0],Lwn={get:(r,e)=>{let t=Dwn(r);switch(e){case"duration":return r.duration;case"currentTime":return qm.s(t?.[e]||0);case"playbackRate":case"playState":return t?.[e];case"finished":return r.finished||(r.finished=Promise.all(r.animations.map(Own)).catch($ae)),r.finished;case"stop":return()=>{r.animations.forEach(n=>xve(n))};case"forEachNative":return n=>{r.animations.forEach(a=>n(a,r))};default:return typeof t?.[e]>"u"?void 0:()=>r.animations.forEach(n=>n[e]())}},set:(r,e,t)=>{switch(e){case"currentTime":t=qm.ms(t);case"currentTime":case"playbackRate":for(let n=0;nr.finished});function fSt(r,e,t){return jp(r)?r(e,t):r}var mSt=ce(()=>{d();p();Nu()});function ySt(r){return function(t,n,a={}){t=pSt(t);let i=t.length;mve(Boolean(i),"No valid element provided."),mve(Boolean(n),"No keyframes defined.");let s=[];for(let o=0;o{d();p();$Pt();uSt();dSt();hSt();TLe();mSt()});var ILe,bSt=ce(()=>{d();p();pLe();gSt();ILe=ySt(b5)});function nie(r,e,t){let n=Math.max(e-qwn,0);return uLe(t-r(n),e-n)}var qwn,ELe=ce(()=>{d();p();Nu();qwn=5});var H1,CLe=ce(()=>{d();p();H1={stiffness:100,damping:10,mass:1}});var vSt,wSt=ce(()=>{d();p();CLe();vSt=(r=H1.stiffness,e=H1.damping,t=H1.mass)=>e/(2*Math.sqrt(r*t))});function xSt(r,e,t){return r=e||r>e&&t<=e}var _St=ce(()=>{d();p()});var kLe,TSt=ce(()=>{d();p();Nu();CLe();wSt();_St();ELe();kLe=({stiffness:r=H1.stiffness,damping:e=H1.damping,mass:t=H1.mass,from:n=0,to:a=1,velocity:i=0,restSpeed:s=2,restDistance:o=.5}={})=>{i=i?qm.s(i):0;let c={done:!1,hasReachedTarget:!1,current:n,target:a},u=a-n,l=Math.sqrt(r/t)/1e3,h=vSt(r,e,t),f;if(h<1){let m=l*Math.sqrt(1-h*h);f=y=>a-Math.exp(-h*l*y)*((-i+h*l*u)/m*Math.sin(m*y)+u*Math.cos(m*y))}else f=m=>a-Math.exp(-l*m)*(u+(-i+l*u)*m);return m=>{c.current=f(m);let y=m===0?i:nie(f,m,c.current),I=Math.abs(y)<=s,C=Math.abs(a-c.current)<=o;return c.done=I&&C,c.hasReachedTarget=xSt(n,a,c.current),c}}});function PLe(r,e=ko){let t,n=ALe,a=r(0),i=[e(a.current)];for(;!a.done&&n{d();p();Nu();ALe=10,Fwn=1e4});var SLe=ce(()=>{d();p();TSt();ISt();ELe()});function ESt(r){return cf(r)&&!isNaN(r)}function RLe(r){return Jae(r)?parseFloat(r):r}function CSt(r){let e=new WeakMap;return(t={})=>{let n=new Map,a=(s=0,o=100,c=0,u=!1)=>{let l=`${s}-${o}-${c}-${u}`;return n.has(l)||n.set(l,r(Object.assign({from:s,to:o,velocity:c,restSpeed:u?.05:2,restDistance:u?.01:.5},t))),n.get(l)},i=(s,o)=>(e.has(s)||e.set(s,PLe(s,o)),e.get(s));return{createAnimation:(s,o=!0,c,u,l)=>{let h,f,m,y=0,I=ko,C=s.length;if(o){I=_ve(s,u?Fm.get(v5(u)):void 0);let R=s[C-1];if(m=RLe(R),C>1&&s[0]!==null)f=RLe(s[0]);else{let L=l?.generator;if(L){let{animation:F,generatorStartTime:W}=l,V=F?.startTime||W||0,K=F?.currentTime||performance.now()-V,H=L(K).current;f=H,y=nie(G=>L(G).current,K,H)}else c&&(f=RLe(c()))}}if(ESt(f)&&ESt(m)){let R=a(f,m,y,u?.includes("scale"));h=Object.assign(Object.assign({},i(R,I)),{easing:"linear"}),l&&(l.generator=R,l.generatorStartTime=performance.now())}return h||(h={easing:"ease",duration:i(a(0,100)).overshootDuration}),h}}}}var kSt=ce(()=>{d();p();SLe();Nu();_Le();qQ();wve()});var FQ,ASt=ce(()=>{d();p();SLe();kSt();FQ=CSt(kLe)});var MLe=ce(()=>{d();p();bSt();ASt();TLe()});function Wwn(r,e={}){return rie([()=>{let t=new b5(r,[0,1],e);return t.finished.catch(()=>{}),t}],e,e.duration)}function Wm(r,e,t){return(jp(r)?Wwn:ILe)(r,e,t)}var PSt=ce(()=>{d();p();MLe();Nu();pLe()});var SSt=ce(()=>{d();p();MLe();hLe();PSt()});var nl,RSt=ce(()=>{d();p();f5();nl=r=>r??io});var MSt=ce(()=>{d();p();RSt()});var ZSt={};cr(ZSt,{W3mAccountButton:()=>jQ,W3mConnectButton:()=>C5,W3mCoreButton:()=>z1,W3mModal:()=>gie,W3mNetworkSwitch:()=>k5});function zwn(){var r;let e=(r=Lm.state.themeMode)!=null?r:"dark",t={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--w3m-color-fg-1":t.foreground[1],"--w3m-color-fg-2":t.foreground[2],"--w3m-color-fg-3":t.foreground[3],"--w3m-color-bg-1":t.background[1],"--w3m-color-bg-2":t.background[2],"--w3m-color-bg-3":t.background[3],"--w3m-color-overlay":t.overlay}}function Kwn(){return{"--w3m-accent-color":"#3396FF","--w3m-accent-fill-color":"#FFFFFF","--w3m-z-index":"89","--w3m-background-color":"#3396FF","--w3m-background-border-radius":"8px","--w3m-container-border-radius":"30px","--w3m-wallet-icon-border-radius":"15px","--w3m-input-border-radius":"28px","--w3m-button-border-radius":"10px","--w3m-notification-border-radius":"36px","--w3m-secondary-button-border-radius":"28px","--w3m-icon-button-border-radius":"50%","--w3m-button-hover-highlight-border-radius":"10px","--w3m-text-big-bold-size":"20px","--w3m-text-big-bold-weight":"600","--w3m-text-big-bold-line-height":"24px","--w3m-text-big-bold-letter-spacing":"-0.03em","--w3m-text-big-bold-text-transform":"none","--w3m-text-xsmall-bold-size":"10px","--w3m-text-xsmall-bold-weight":"700","--w3m-text-xsmall-bold-line-height":"12px","--w3m-text-xsmall-bold-letter-spacing":"0.02em","--w3m-text-xsmall-bold-text-transform":"uppercase","--w3m-text-xsmall-regular-size":"12px","--w3m-text-xsmall-regular-weight":"600","--w3m-text-xsmall-regular-line-height":"14px","--w3m-text-xsmall-regular-letter-spacing":"-0.03em","--w3m-text-xsmall-regular-text-transform":"none","--w3m-text-small-thin-size":"14px","--w3m-text-small-thin-weight":"500","--w3m-text-small-thin-line-height":"16px","--w3m-text-small-thin-letter-spacing":"-0.03em","--w3m-text-small-thin-text-transform":"none","--w3m-text-small-regular-size":"14px","--w3m-text-small-regular-weight":"600","--w3m-text-small-regular-line-height":"16px","--w3m-text-small-regular-letter-spacing":"-0.03em","--w3m-text-small-regular-text-transform":"none","--w3m-text-medium-regular-size":"16px","--w3m-text-medium-regular-weight":"600","--w3m-text-medium-regular-line-height":"20px","--w3m-text-medium-regular-letter-spacing":"-0.03em","--w3m-text-medium-regular-text-transform":"none","--w3m-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--w3m-success-color":"rgb(38,181,98)","--w3m-error-color":"rgb(242, 90, 103)"}}function Gwn(){let{themeVariables:r}=Lm.state;return{"--w3m-background-image-url":r!=null&&r["--w3m-background-image-url"]?`url(${r["--w3m-background-image-url"]})`:"none"}}function OLe(r,e,t){return r===e?!1:(r-e<0?e-r:r-e)<=t+B5n}function D5n(r,e){let t=Array.prototype.slice.call(JSt.default.create(r,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((a,i,s)=>(s%n===0?a.push([i]):a[a.length-1].push(i))&&a,[])}var JSt,Uwn,NSt,Hwn,jwn,BSt,Tve,or,Vwn,Ywn,$wn,Ive,WQ,Qwn,Jwn,Zwn,aie,w5,Xwn,e5n,t5n,NLe,iie,yr,r5n,n5n,a5n,DSt,Eve,i5n,s5n,o5n,c5n,BLe,u5n,l5n,d5n,p5n,DLe,h5n,f5n,m5n,sie,x5,y5n,zQ,A5,g5n,b5n,LSt,v5n,w5n,OSt,x5n,Fe,_5n,T5n,I5n,LLe,oie,E5n,C5n,k5n,qSt,Cve,A5n,P5n,S5n,kve,UQ,R5n,M5n,N5n,FSt,Ave,B5n,WSt,xy,L5n,O5n,q5n,F5n,cie,_5,W5n,U5n,H5n,USt,Pve,j5n,z5n,K5n,G5n,qLe,V5n,Y5n,$5n,FLe,uie,Q5n,J5n,Z5n,HSt,Sve,X5n,e3n,t3n,j1,Um,r3n,n3n,a3n,WLe,lie,i3n,s3n,o3n,jSt,c3n,u3n,zSt,ULe,l3n,d3n,KSt,HLe,p3n,h3n,f3n,GSt,m3n,y3n,g3n,jLe,jQ,b3n,v3n,w3n,zLe,die,x3n,_3n,T3n,pie,T5,al,I3n,E3n,C3n,k3n,KLe,A3n,P3n,S3n,hie,I5,R3n,M3n,N3n,GLe,fie,B3n,D3n,L3n,Rve,C5,O3n,q3n,HQ,z1,F3n,W3n,U3n,H3n,VLe,j3n,z3n,K3n,G3n,YLe,V3n,Y3n,$3n,Q3n,$Le,J3n,Z3n,X3n,VSt,gie,exn,txn,rxn,Mve,k5,nxn,axn,ixn,sxn,QLe,oxn,cxn,uxn,YSt,Nve,lxn,dxn,pxn,hxn,JLe,fxn,mxn,yxn,ZLe,gxn,bxn,vxn,wxn,XLe,xxn,_xn,Txn,$St,Bve,Ixn,Exn,Cxn,kxn,eOe,Axn,Pxn,Sxn,Rxn,tOe,Mxn,Nxn,Bxn,rOe,mie,Dxn,Lxn,Oxn,qxn,nOe,Fxn,Wxn,Uxn,aOe,Hxn,jxn,zxn,Kxn,iOe,Gxn,Vxn,Yxn,QSt,Dve,$xn,Qxn,Jxn,yie,sOe,E5,XSt=ce(()=>{d();p();hPt();xPt();qDe();CPt();f5();SSt();MSt();JSt=un(LMe(),1),Uwn=Object.defineProperty,NSt=Object.getOwnPropertySymbols,Hwn=Object.prototype.hasOwnProperty,jwn=Object.prototype.propertyIsEnumerable,BSt=(r,e,t)=>e in r?Uwn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Tve=(r,e)=>{for(var t in e||(e={}))Hwn.call(e,t)&&BSt(r,t,e[t]);if(NSt)for(var t of NSt(e))jwn.call(e,t)&&BSt(r,t,e[t]);return r};or={setTheme(){let r=document.querySelector(":root"),{themeVariables:e}=Lm.state;if(r){let t=Tve(Tve(Tve(Tve({},zwn()),Kwn()),e),Gwn());Object.entries(t).forEach(([n,a])=>r.style.setProperty(n,a))}},globalCss:pr`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent}button::after{content:'';position:absolute;inset:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--w3m-accent-fill-color);background:var(--w3m-accent-color)}`},Vwn=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-accent-color);border-radius:var(--w3m-icon-button-border-radius);margin-bottom:4px}button path{fill:var(--w3m-accent-fill-color)}`,Ywn=Object.defineProperty,$wn=Object.getOwnPropertyDescriptor,Ive=(r,e,t,n)=>{for(var a=n>1?void 0:n?$wn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ywn(e,t,a),a},WQ=class extends gt{constructor(){super(...arguments),this.icon=void 0,this.label="",this.onClick=()=>null}render(){return xe``}};WQ.styles=[or.globalCss,Vwn],Ive([ar()],WQ.prototype,"icon",2),Ive([ar()],WQ.prototype,"label",2),Ive([ar()],WQ.prototype,"onClick",2),WQ=Ive([Jt("w3m-box-button")],WQ);Qwn=pr`button{border-radius:var(--w3m-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--w3m-accent-color)}button path{fill:var(--w3m-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--w3m-color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{background-color:var(--w3m-color-bg-3)}`,Jwn=Object.defineProperty,Zwn=Object.getOwnPropertyDescriptor,aie=(r,e,t,n)=>{for(var a=n>1?void 0:n?Zwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Jwn(e,t,a),a},w5=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null}render(){let r={"w3m-icon-left":this.iconLeft!==void 0,"w3m-icon-right":this.iconRight!==void 0};return xe``}};w5.styles=[or.globalCss,Qwn],aie([ar()],w5.prototype,"disabled",2),aie([ar()],w5.prototype,"iconLeft",2),aie([ar()],w5.prototype,"iconRight",2),aie([ar()],w5.prototype,"onClick",2),w5=aie([Jt("w3m-button")],w5);Xwn=pr`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--w3m-button-border-radius);color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--w3m-color-bg-3);color:var(--w3m-color-fg-3)}.w3m-secondary{color:var(--w3m-accent-color);background-color:transparent}.w3m-secondary::after{display:none}`,e5n=Object.defineProperty,t5n=Object.getOwnPropertyDescriptor,NLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?t5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&e5n(e,t,a),a},iie=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let r={"w3m-secondary":this.variant==="secondary"};return xe``}};iie.styles=[or.globalCss,Xwn],NLe([ar()],iie.prototype,"disabled",2),NLe([ar()],iie.prototype,"variant",2),iie=NLe([Jt("w3m-button-big")],iie);yr={CROSS_ICON:Dr``,WALLET_CONNECT_LOGO:Dr``,WALLET_CONNECT_ICON:Dr``,WALLET_CONNECT_ICON_COLORED:Dr``,BACK_ICON:Dr``,COPY_ICON:Dr``,RETRY_ICON:Dr``,DESKTOP_ICON:Dr``,MOBILE_ICON:Dr``,ARROW_DOWN_ICON:Dr``,ARROW_UP_RIGHT_ICON:Dr``,ARROW_RIGHT_ICON:Dr``,QRCODE_ICON:Dr``,SCAN_ICON:Dr``,CHECKMARK_ICON:Dr``,HELP_ETH_IMG:Dr``,HELP_PAINTING_IMG:Dr``,HELP_CHART_IMG:Dr``,HELP_KEY_IMG:Dr``,HELP_USER_IMG:Dr``,HELP_LOCK_IMG:Dr``,HELP_COMPAS_IMG:Dr``,HELP_NOUN_IMG:Dr``,HELP_DAO_IMG:Dr``,SEARCH_ICON:Dr``,HELP_ICON:Dr``,WALLET_ICON:Dr``,NETWORK_PLACEHOLDER:Dr``,WALLET_PLACEHOLDER:Dr``,TOKEN_PLACEHOLDER:Dr``,ACCOUNT_COPY:Dr``,ACCOUNT_DISCONNECT:Dr``},r5n=pr`.w3m-custom-placeholder{inset:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--w3m-background-border-radius) * .9)}.w3m-custom-placeholder{background-color:var(--w3m-background-color);background-image:var(--w3m-background-image-url);background-position:center;background-size:cover}.w3m-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--w3m-accent-fill-color)}.w3m-action-btn{width:28px;height:28px;border-radius:var(--w3m-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color,.2s ease;background-color:var(--w3m-color-bg-1);box-shadow:0 0 0 1px var(--w3m-color-overlay)}.w3m-action-btn:hover{background-color:var(--w3m-color-bg-2)}.w3m-action-btn svg{display:block;object-position:center}.w3m-action-btn path{fill:var(--w3m-color-fg-1)}.w3m-actions{display:flex}.w3m-actions button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--w3m-color-fg-1)}.w3m-help-active button:first-child path{fill:var(--w3m-color-bg-1)}`,n5n=Object.defineProperty,a5n=Object.getOwnPropertyDescriptor,DSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?a5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&n5n(e,t,a),a},Eve=class extends gt{constructor(){super(),this.isHelp=!1,this.unsubscribeRouter=void 0,this.unsubscribeRouter=Br.subscribe(r=>{this.isHelp=r.view==="Help"})}disconnectedCallback(){var r;(r=this.unsubscribeRouter)==null||r.call(this)}onHelp(){Br.push("Help")}logoTemplate(){var r;let e=(r=Lm.state.themeVariables)==null?void 0:r["--w3m-logo-image-url"];return e?xe``:yr.WALLET_CONNECT_LOGO}render(){let r={"w3m-actions":!0,"w3m-help-active":this.isHelp};return xe`
${this.logoTemplate()}
`}};Eve.styles=[or.globalCss,r5n],DSt([xn()],Eve.prototype,"isHelp",2),Eve=DSt([Jt("w3m-modal-backcard")],Eve);i5n=pr`main{padding:20px;padding-top:0;width:100%}`,s5n=Object.defineProperty,o5n=Object.getOwnPropertyDescriptor,c5n=(r,e,t,n)=>{for(var a=n>1?void 0:n?o5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&s5n(e,t,a),a},BLe=class extends gt{render(){return xe`
`}};BLe.styles=[or.globalCss,i5n],BLe=c5n([Jt("w3m-modal-content")],BLe);u5n=pr`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--w3m-color-bg-2)}`,l5n=Object.defineProperty,d5n=Object.getOwnPropertyDescriptor,p5n=(r,e,t,n)=>{for(var a=n>1?void 0:n?d5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&l5n(e,t,a),a},DLe=class extends gt{render(){return xe`
`}};DLe.styles=[or.globalCss,u5n],DLe=p5n([Jt("w3m-modal-footer")],DLe);h5n=pr`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.w3m-border{border-bottom:1px solid var(--w3m-color-bg-2);margin-bottom:20px}header button{padding:15px 20px;transition:opacity .2s ease}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}path{fill:var(--w3m-accent-color)}`,f5n=Object.defineProperty,m5n=Object.getOwnPropertyDescriptor,sie=(r,e,t,n)=>{for(var a=n>1?void 0:n?m5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&f5n(e,t,a),a},x5=class extends gt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return xe``}actionBtnTemplate(){return xe``}render(){let r={"w3m-border":this.border},e=Br.state.history.length>1,t=this.title?xe`${this.title}`:xe``;return xe`
${e?this.backBtnTemplate():null} ${t} ${this.onAction?this.actionBtnTemplate():null}
`}};x5.styles=[or.globalCss,h5n],sie([ar()],x5.prototype,"title",2),sie([ar()],x5.prototype,"onAction",2),sie([ar()],x5.prototype,"actionIcon",2),sie([ar()],x5.prototype,"border",2),x5=sie([Jt("w3m-modal-header")],x5);y5n={1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",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"},zQ=(r=>(r.metaMask="metaMask",r.trust="trust",r.phantom="phantom",r.brave="brave",r.spotEthWallet="spotEthWallet",r.exodus="exodus",r.tokenPocket="tokenPocket",r.frame="frame",r.tally="tally",r.coinbaseWallet="coinbaseWallet",r.core="core",r.bitkeep="bitkeep",r.mathWallet="mathWallet",r.opera="opera",r.tokenary="tokenary",r["1inch"]="1inch",r.kuCoinWallet="kuCoinWallet",r.ledger="ledger",r))(zQ||{}),A5={injectedPreset:{metaMask:{name:"MetaMask",icon:"619537c0-2ff3-4c78-9ed8-a05e7567f300",url:"https://metamask.io",isMobile:!0,isInjected:!0},trust:{name:"Trust",icon:"0528ee7e-16d1-4089-21e3-bbfb41933100",url:"https://trustwallet.com",isMobile:!0,isInjected:!0},spotEthWallet:{name:"Spot",icon:"1bf33a89-b049-4a1c-d1f6-4dd7419ee400",url:"https://www.spot-wallet.com",isMobile:!0,isInjected:!0},phantom:{name:"Phantom",icon:"62471a22-33cb-4e65-5b54-c3d9ea24b900",url:"https://phantom.app",isInjected:!0},core:{name:"Core",icon:"35f9c46e-cc57-4aa7-315d-e6ccb2a1d600",url:"https://core.app",isMobile:!0,isInjected:!0},bitkeep:{name:"BitKeep",icon:"3f7075d0-4ab7-4db5-404d-3e4c05e6fe00",url:"https://bitkeep.com",isMobile:!0,isInjected:!0},tokenPocket:{name:"TokenPocket",icon:"f3119826-4ef5-4d31-4789-d4ae5c18e400",url:"https://www.tokenpocket.pro",isMobile:!0,isInjected:!0},mathWallet:{name:"MathWallet",icon:"26a8f588-3231-4411-60ce-5bb6b805a700",url:"https://mathwallet.org",isMobile:!0,isInjected:!0},exodus:{name:"Exodus",icon:"4c16cad4-cac9-4643-6726-c696efaf5200",url:"https://www.exodus.com",isMobile:!0,isDesktop:!0,isInjected:!0},kuCoinWallet:{name:"KuCoin Wallet",icon:"1e47340b-8fd7-4ad6-17e7-b2bd651fae00",url:"https://kuwallet.com",isMobile:!0,isInjected:!0},ledger:{name:"Ledger",icon:"a7f416de-aa03-4c5e-3280-ab49269aef00",url:"https://www.ledger.com",isDesktop:!0},brave:{name:"Brave",icon:"125e828e-9936-4451-a8f2-949c119b7400",url:"https://brave.com/wallet",isInjected:!0},frame:{name:"Frame",icon:"cd492418-ea85-4ef1-aeed-1c9e20b58900",url:"https://frame.sh",isInjected:!0},tally:{name:"Tally",icon:"98d2620c-9fc8-4a1c-31bc-78d59d00a300",url:"https://tallyho.org",isInjected:!0},coinbaseWallet:{name:"Coinbase",icon:"f8068a7f-83d7-4190-1f94-78154a12c600",url:"https://www.coinbase.com/wallet",isInjected:!0},opera:{name:"Opera",icon:"877fa1a4-304d-4d45-ca8e-f76d1a556f00",url:"https://www.opera.com/crypto",isInjected:!0},tokenary:{name:"Tokenary",icon:"5e481041-dc3c-4a81-373a-76bbde91b800",url:"https://tokenary.io",isDesktop:!0,isInjected:!0},["1inch"]:{name:"1inch Wallet",icon:"dce1ee99-403f-44a9-9f94-20de30616500",url:"https://1inch.io/wallet",isMobile:!0}},getInjectedId(r){if(r.toUpperCase()!=="INJECTED"&&r.length)return r;let{ethereum:e,spotEthWallet:t,coinbaseWalletExtension:n}=window;return e?e.isTrust||e.isTrustWallet?"trust":e.isPhantom?"phantom":e.isBraveWallet?"brave":t?"spotEthWallet":e.isExodus?"exodus":e.isTokenPocket?"tokenPocket":e.isFrame?"frame":e.isTally?"tally":n?"coinbaseWallet":e.isAvalanche?"core":e.isBitKeep?"bitkeep":e.isMathWallet?"mathWallet":e.isOpera?"opera":e.isTokenary?"tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch":e.isKuCoinWallet?"kuCoinWallet":e.isMetaMask?"metaMask":"injected":"metaMask"},getInjectedName(r){var e,t;if(r.length&&r.toUpperCase()!=="INJECTED")return r;let n=A5.getInjectedId("");return(t=(e=A5.injectedPreset[n])==null?void 0:e.name)!=null?t:"Injected"}},g5n={ETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},WETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},AVAX:{icon:"30c46e53-e989-45fb-4549-be3bd4eb3b00"},FTM:{icon:"06b26297-fe0c-4733-5d6b-ffa5498aac00"},BNB:{icon:"93564157-2e8e-4ce7-81df-b264dbee9b00"},MATIC:{icon:"41d04d42-da3b-4453-8506-668cc0727900"},OP:{icon:"ab9c186a-c52f-464b-2906-ca59d760a400"},xDAI:{icon:"02b53f6a-e3d4-479e-1cb4-21178987d100"},EVMOS:{icon:"f926ff41-260d-4028-635e-91913fc28e00"},METIS:{icon:"3897a66d-40b9-4833-162f-a2c90531c900"},IOTX:{icon:"34e68754-e536-40da-c153-6ef2e7188a00"}},b5n=Object.defineProperty,LSt=Object.getOwnPropertySymbols,v5n=Object.prototype.hasOwnProperty,w5n=Object.prototype.propertyIsEnumerable,OSt=(r,e,t)=>e in r?b5n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,x5n=(r,e)=>{for(var t in e||(e={}))v5n.call(e,t)&&OSt(r,t,e[t]);if(LSt)for(var t of LSt(e))w5n.call(e,t)&&OSt(r,t,e[t]);return r},Fe={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET:"W3M_RECENT_WALLET",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",rejectStandaloneButtonComponent(){let{isStandalone:r}=yt.state;if(r)throw new Error("Web3Modal button components are not available in standalone mode.")},getShadowRootElement(r,e){let t=r.renderRoot.querySelector(e);if(!t)throw new Error(`${e} not found`);return t},getWalletId(r){return A5.getInjectedId(r)},getWalletIcon(r){var e,t;let n=(e=A5.injectedPreset[r])==null?void 0:e.icon,{projectId:a,walletImages:i}=Ds.state;return(t=i?.[r])!=null?t:a&&n?no.getImageUrl(n):""},getWalletName(r,e=!1){let t=A5.getInjectedName(r);return e?t.split(" ")[0]:t},getChainIcon(r){var e;let t=y5n[r],{projectId:n,chainImages:a}=Ds.state;return(e=a?.[r])!=null?e:n&&t?no.getImageUrl(t):""},getTokenIcon(r){var e,t;let n=(e=g5n[r])==null?void 0:e.icon,{projectId:a,tokenImages:i}=Ds.state;return(t=i?.[r])!=null?t:a&&n?no.getImageUrl(n):""},isMobileAnimation(){return window.innerWidth<=Fe.MOBILE_BREAKPOINT},async preloadImage(r){let e=new Promise((t,n)=>{let a=new Image;a.onload=t,a.onerror=n,a.src=r});return Promise.race([e,Pr.wait(3e3)])},getErrorMessage(r){return r instanceof Error?r.message:"Unknown Error"},debounce(r,e=500){let t;return(...n)=>{function a(){r(...n)}t&&clearTimeout(t),t=setTimeout(a,e)}},async handleMobileLinking(r){Pr.removeWalletConnectDeepLink();let{standaloneUri:e,selectedChain:t}=yt.state,{links:n,name:a}=r;function i(s){let o="";n!=null&&n.universal?o=Pr.formatUniversalUrl(n.universal,s,a):n!=null&&n.native&&(o=Pr.formatNativeUrl(n.native,s,a)),Pr.openHref(o,"_self")}e?(Fe.setRecentWallet(r),i(e)):(await qi.client().connectWalletConnect(s=>{i(s)},t?.id),Fe.setRecentWallet(r),ao.close())},async handleAndroidLinking(){Pr.removeWalletConnectDeepLink();let{standaloneUri:r,selectedChain:e}=yt.state;r?Pr.openHref(r,"_self"):(await qi.client().connectWalletConnect(t=>{Pr.setWalletConnectAndroidDeepLink(t),Pr.openHref(t,"_self")},e?.id),ao.close())},async handleUriCopy(){let{standaloneUri:r}=yt.state;if(r)await navigator.clipboard.writeText(r);else{let e=qi.client().walletConnectUri;await navigator.clipboard.writeText(e)}Nc.openToast("Link copied","success")},async handleConnectorConnection(r,e){try{let{selectedChain:t}=yt.state;await qi.client().connectConnector(r,t?.id),ao.close()}catch(t){console.error(t),e?e():Nc.openToast(Fe.getErrorMessage(t),"error")}},getCustomWallets(){var r;let{desktopWallets:e,mobileWallets:t}=Ds.state;return(r=Pr.isMobile()?t:e)!=null?r:[]},getCustomImageUrls(){let{chainImages:r,walletImages:e}=Ds.state,t=Object.values(r??{}),n=Object.values(e??{});return Object.values([...t,...n])},getConnectorImageUrls(){return qi.client().getConnectors().map(({id:r})=>A5.getInjectedId(r)).map(r=>Fe.getWalletIcon(r))},truncate(r,e=8){return r.length<=e?r:`${r.substring(0,4)}...${r.substring(r.length-4)}`},generateAvatarColors(r){var e;let t=(e=r.match(/.{1,7}/g))==null?void 0:e.splice(0,5),n=[];t?.forEach(i=>{let s=0;for(let c=0;c>c*8&255;o[c]=u}n.push(`rgb(${o[0]}, ${o[1]}, ${o[2]})`)});let a=document.querySelector(":root");if(a){let i={"--w3m-color-av-1":n[0],"--w3m-color-av-2":n[1],"--w3m-color-av-3":n[2],"--w3m-color-av-4":n[3],"--w3m-color-av-5":n[4]};Object.entries(i).forEach(([s,o])=>a.style.setProperty(s,o))}},setRecentWallet(r){let{walletConnectVersion:e}=yt.state;localStorage.setItem(Fe.W3M_RECENT_WALLET,JSON.stringify({[e]:r}))},getRecentWallet(){let r=localStorage.getItem(Fe.W3M_RECENT_WALLET);if(r){let{walletConnectVersion:e}=yt.state,t=JSON.parse(r);if(t[e])return t[e]}},getExtensionWallets(){let r=[];for(let[e,t]of Object.entries(A5.injectedPreset))t!=null&&t.isInjected&&!t.isDesktop&&r.push(x5n({id:e},t));return r},caseSafeIncludes(r,e){return r.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){Pr.openHref(Fe.EXPLORER_WALLET_URL,"_blank")}},_5n=pr`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`,T5n=Object.defineProperty,I5n=Object.getOwnPropertyDescriptor,LLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?I5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&T5n(e,t,a),a},oie=class extends gt{constructor(){super(),this.view=Br.state.view,this.prevView=Br.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=Br.subscribe(r=>{this.view!==r.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([r])=>{let e=`${r.contentRect.height}px`;this.oldHeight!=="0px"&&(Wm(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),Wm(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.03})),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var r,e;(r=this.unsubscribe)==null||r.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return Fe.getShadowRootElement(this,".w3m-router")}get contentEl(){return Fe.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return xe``;case"SelectNetwork":return xe``;case"InjectedConnector":return xe``;case"InstallConnector":return xe``;case"GetWallet":return xe``;case"DesktopConnector":return xe``;case"WalletExplorer":return xe``;case"Qrcode":return xe``;case"Help":return xe``;case"Account":return xe``;case"SwitchNetwork":return xe``;case"Connectors":return xe``;default:return xe`
Not Found
`}}async onChangeRoute(){await Wm(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15}).finished,this.view=Br.state.view}render(){return xe`
${this.viewTemplate()}
`}};oie.styles=[or.globalCss,_5n],LLe([xn()],oie.prototype,"view",2),LLe([xn()],oie.prototype,"prevView",2),oie=LLe([Jt("w3m-modal-router")],oie);E5n=pr`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:10px 15px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--w3m-notification-border-radius);border:1px solid var(--w3m-color-overlay);background-color:var(--w3m-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--w3m-color-bg-3)}}.w3m-success path{fill:var(--w3m-accent-color)}.w3m-error path{fill:var(--w3m-error-color)}`,C5n=Object.defineProperty,k5n=Object.getOwnPropertyDescriptor,qSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?k5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&C5n(e,t,a),a},Cve=class extends gt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Nc.subscribe(r=>{r.open?(this.open=!0,this.timeout=setTimeout(()=>Nc.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),clearTimeout(this.timeout),Nc.closeToast()}render(){let{message:r,variant:e}=Nc.state,t={"w3m-success":e==="success","w3m-error":e==="error"};return this.open?xe`
${e==="success"?yr.CHECKMARK_ICON:null} ${e==="error"?yr.CROSS_ICON:null}${r}
`:null}};Cve.styles=[or.globalCss,E5n],qSt([xn()],Cve.prototype,"open",2),Cve=qSt([Jt("w3m-modal-toast")],Cve);A5n=pr`button{padding:5px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:all .2s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}button:hover{background-color:var(--w3m-color-overlay)}`,P5n=Object.defineProperty,S5n=Object.getOwnPropertyDescriptor,kve=(r,e,t,n)=>{for(var a=n>1?void 0:n?S5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&P5n(e,t,a),a},UQ=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId=""}render(){return xe``}};UQ.styles=[or.globalCss,A5n],kve([ar()],UQ.prototype,"onClick",2),kve([ar()],UQ.prototype,"name",2),kve([ar()],UQ.prototype,"chainId",2),UQ=kve([Jt("w3m-network-button")],UQ);R5n=pr`div{width:inherit;height:inherit}.polygon-stroke{stroke:var(--w3m-color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--w3m-color-bg-3)}#network-placeholder-dash{stroke:var(--w3m-color-overlay)}`,M5n=Object.defineProperty,N5n=Object.getOwnPropertyDescriptor,FSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?N5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&M5n(e,t,a),a},Ave=class extends gt{constructor(){super(...arguments),this.chainId=""}render(){let r=Fe.getChainIcon(this.chainId);return r?xe`
`:xe`${yr.NETWORK_PLACEHOLDER}`}};Ave.styles=[or.globalCss,R5n],FSt([ar()],Ave.prototype,"chainId",2),Ave=FSt([Jt("w3m-network-image")],Ave);B5n=.1,WSt=2.5,xy=7;L5n={generate(r,e,t,n){let a=n==="light"?"#141414":"#fff",i=n==="light"?"#fff":"#141414",s=[],o=D5n(r,"Q"),c=e/o.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:I,y:C})=>{let R=(o.length-xy)*c*I,L=(o.length-xy)*c*C,F=.32;for(let W=0;W`)}});let l=Math.floor((t+25)/c),h=o.length/2-l/2,f=o.length/2+l/2-1,m=[];o.forEach((I,C)=>{I.forEach((R,L)=>{if(o[C][L]&&!(Co.length-(xy+1)&&Lo.length-(xy+1))&&!(C>h&&Ch&&L{y[I]?y[I].push(C):y[I]=[C]}),Object.entries(y).map(([I,C])=>{let R=C.filter(L=>C.every(F=>!OLe(L,F,c)));return[Number(I),R]}).forEach(([I,C])=>{C.forEach(R=>{s.push(Dr``)})}),Object.entries(y).filter(([I,C])=>C.length>1).map(([I,C])=>{let R=C.filter(L=>C.some(F=>OLe(L,F,c)));return[Number(I),R]}).map(([I,C])=>{C.sort((L,F)=>LW.some(V=>OLe(L,V,c)));F?F.push(L):R.push([L])}return[I,R.map(L=>[L[0],L[L.length-1]])]}).forEach(([I,C])=>{C.forEach(([R,L])=>{s.push(Dr``)})}),s}},O5n=pr`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;width:100%;aspect-ratio:1/1;animation:fadeIn ease .2s}svg:first-child,w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:15px}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--w3m-accent-color)}svg:first-child path:last-child{stroke:var(--w3m-color-overlay)}`,q5n=Object.defineProperty,F5n=Object.getOwnPropertyDescriptor,cie=(r,e,t,n)=>{for(var a=n>1?void 0:n?F5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&q5n(e,t,a),a},_5=class extends gt{constructor(){super(...arguments),this.uri="",this.size=0,this.logoSrc="",this.walletId=""}svgTemplate(){var r;let e=(r=Lm.state.themeMode)!=null?r:"light";return Dr`${L5n.generate(this.uri,this.size,this.size/4,e)}`}render(){return xe`
${this.walletId||this.logoSrc?xe``:yr.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};_5.styles=[or.globalCss,O5n],cie([ar()],_5.prototype,"uri",2),cie([ar({type:Number})],_5.prototype,"size",2),cie([ar()],_5.prototype,"logoSrc",2),cie([ar()],_5.prototype,"walletId",2),_5=cie([Jt("w3m-qrcode")],_5);W5n=pr`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--w3m-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:transparent;position:absolute;background-color:var(--w3m-color-bg-3);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}input::placeholder{color:transparent}svg{margin-right:4px}.w3m-placeholder{top:0;left:50%;transform:translateX(-50%);transition:.2s all ease;pointer-events:none;display:flex;align-items:center;justify-content:center;height:100%;width:fit-content;position:relative}input:focus-within+.w3m-placeholder,input:not(:placeholder-shown)+.w3m-placeholder{transform:translateX(10px);left:0}w3m-text{opacity:1;transition:.2s opacity ease}input:focus-within+.w3m-placeholder w3m-text,input:not(:placeholder-shown)+.w3m-placeholder w3m-text{opacity:0}input:focus-within,input:not(:placeholder-shown){color:var(--w3m-color-fg-1)}input:focus-within{box-shadow:inset 0 0 0 1px var(--w3m-accent-color)}path{fill:var(--w3m-color-fg-2)}`,U5n=Object.defineProperty,H5n=Object.getOwnPropertyDescriptor,USt=(r,e,t,n)=>{for(var a=n>1?void 0:n?H5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&U5n(e,t,a),a},Pve=class extends gt{constructor(){super(...arguments),this.onChange=()=>null}render(){let r=Pr.isMobile()?"Search mobile wallets":"Search desktop wallets";return xe`
${yr.SEARCH_ICON}${r}
`}};Pve.styles=[or.globalCss,W5n],USt([ar()],Pve.prototype,"onChange",2),Pve=USt([Jt("w3m-search-input")],Pve);j5n=pr`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--w3m-accent-color)}`,z5n=Object.defineProperty,K5n=Object.getOwnPropertyDescriptor,G5n=(r,e,t,n)=>{for(var a=n>1?void 0:n?K5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&z5n(e,t,a),a},qLe=class extends gt{render(){return xe``}};qLe.styles=[or.globalCss,j5n],qLe=G5n([Jt("w3m-spinner")],qLe);V5n=pr`span{font-style:normal;font-family:var(--w3m-font-family);font-feature-settings:'tnum' on,'lnum' on,'case' on}.w3m-xsmall-bold{font-family:var(--w3m-text-xsmall-bold-font-family);font-weight:var(--w3m-text-xsmall-bold-weight);font-size:var(--w3m-text-xsmall-bold-size);line-height:var(--w3m-text-xsmall-bold-line-height);letter-spacing:var(--w3m-text-xsmall-bold-letter-spacing);text-transform:var(--w3m-text-xsmall-bold-text-transform)}.w3m-xsmall-regular{font-family:var(--w3m-text-xsmall-regular-font-family);font-weight:var(--w3m-text-xsmall-regular-weight);font-size:var(--w3m-text-xsmall-regular-size);line-height:var(--w3m-text-xsmall-regular-line-height);letter-spacing:var(--w3m-text-xsmall-regular-letter-spacing);text-transform:var(--w3m-text-xsmall-regular-text-transform)}.w3m-small-thin{font-family:var(--w3m-text-small-thin-font-family);font-weight:var(--w3m-text-small-thin-weight);font-size:var(--w3m-text-small-thin-size);line-height:var(--w3m-text-small-thin-line-height);letter-spacing:var(--w3m-text-small-thin-letter-spacing);text-transform:var(--w3m-text-small-thin-text-transform)}.w3m-small-regular{font-family:var(--w3m-text-small-regular-font-family);font-weight:var(--w3m-text-small-regular-weight);font-size:var(--w3m-text-small-regular-size);line-height:var(--w3m-text-small-regular-line-height);letter-spacing:var(--w3m-text-small-regular-letter-spacing);text-transform:var(--w3m-text-small-regular-text-transform)}.w3m-medium-regular{font-family:var(--w3m-text-medium-regular-font-family);font-weight:var(--w3m-text-medium-regular-weight);font-size:var(--w3m-text-medium-regular-size);line-height:var(--w3m-text-medium-regular-line-height);letter-spacing:var(--w3m-text-medium-regular-letter-spacing);text-transform:var(--w3m-text-medium-regular-text-transform)}.w3m-big-bold{font-family:var(--w3m-text-big-bold-font-family);font-weight:var(--w3m-text-big-bold-weight);font-size:var(--w3m-text-big-bold-size);line-height:var(--w3m-text-big-bold-line-height);letter-spacing:var(--w3m-text-big-bold-letter-spacing);text-transform:var(--w3m-text-big-bold-text-transform)}:host(*){color:var(--w3m-color-fg-1)}.w3m-color-primary{color:var(--w3m-color-fg-1)}.w3m-color-secondary{color:var(--w3m-color-fg-2)}.w3m-color-tertiary{color:var(--w3m-color-fg-3)}.w3m-color-inverse{color:var(--w3m-accent-fill-color)}.w3m-color-accnt{color:var(--w3m-accent-color)}.w3m-color-error{color:var(--w3m-error-color)}`,Y5n=Object.defineProperty,$5n=Object.getOwnPropertyDescriptor,FLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?$5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Y5n(e,t,a),a},uie=class extends gt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let r={"w3m-big-bold":this.variant==="big-bold","w3m-medium-regular":this.variant==="medium-regular","w3m-small-regular":this.variant==="small-regular","w3m-small-thin":this.variant==="small-thin","w3m-xsmall-regular":this.variant==="xsmall-regular","w3m-xsmall-bold":this.variant==="xsmall-bold","w3m-color-primary":this.color==="primary","w3m-color-secondary":this.color==="secondary","w3m-color-tertiary":this.color==="tertiary","w3m-color-inverse":this.color==="inverse","w3m-color-accnt":this.color==="accent","w3m-color-error":this.color==="error"};return xe``}};uie.styles=[or.globalCss,V5n],FLe([ar()],uie.prototype,"variant",2),FLe([ar()],uie.prototype,"color",2),uie=FLe([Jt("w3m-text")],uie);Q5n=pr`div{overflow:hidden;position:relative;border-radius:50%}div::after{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}svg{width:100%;height:100%}#token-placeholder-fill{fill:var(--w3m-color-bg-3)}#token-placeholder-dash{stroke:var(--w3m-color-overlay)}`,J5n=Object.defineProperty,Z5n=Object.getOwnPropertyDescriptor,HSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Z5n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&J5n(e,t,a),a},Sve=class extends gt{constructor(){super(...arguments),this.symbol=void 0}render(){var r;let e=Fe.getTokenIcon((r=this.symbol)!=null?r:"");return e?xe`
${this.id}
`:yr.TOKEN_PLACEHOLDER}};Sve.styles=[or.globalCss,Q5n],HSt([ar()],Sve.prototype,"symbol",2),Sve=HSt([Jt("w3m-token-image")],Sve);X5n=pr`button{transition:all .2s ease;width:100%;height:100%;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:hover{background-color:var(--w3m-color-overlay)}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--w3m-wallet-icon-border-radius);margin-bottom:5px}.w3m-sublabel{margin-top:2px}`,e3n=Object.defineProperty,t3n=Object.getOwnPropertyDescriptor,j1=(r,e,t,n)=>{for(var a=n>1?void 0:n?t3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&e3n(e,t,a),a},Um=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.src=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?xe`RECENT`:this.installed?xe`INSTALLED`:null}render(){var r;return xe``}};Um.styles=[or.globalCss,X5n],j1([ar()],Um.prototype,"onClick",2),j1([ar()],Um.prototype,"name",2),j1([ar()],Um.prototype,"walletId",2),j1([ar()],Um.prototype,"label",2),j1([ar()],Um.prototype,"src",2),j1([ar()],Um.prototype,"installed",2),j1([ar()],Um.prototype,"recent",2),Um=j1([Jt("w3m-wallet-button")],Um);r3n=pr`div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,n3n=Object.defineProperty,a3n=Object.getOwnPropertyDescriptor,WLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?a3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&n3n(e,t,a),a},lie=class extends gt{constructor(){super(...arguments),this.walletId=void 0,this.src=void 0}render(){var r;let e=Fe.getWalletId((r=this.walletId)!=null?r:""),t=Fe.getWalletId(e),n=this.src?this.src:Fe.getWalletIcon(t);return xe`${n.length?xe`
${this.id}
`:yr.WALLET_PLACEHOLDER}`}};lie.styles=[or.globalCss,r3n],WLe([ar()],lie.prototype,"walletId",2),WLe([ar()],lie.prototype,"src",2),lie=WLe([Jt("w3m-wallet-image")],lie);i3n=Object.defineProperty,s3n=Object.getOwnPropertyDescriptor,o3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?s3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&i3n(e,t,a),a},jSt=class extends gt{constructor(){super(),this.unwatchAccount=void 0,za.getAccount(),this.fetchProfile(),this.fetchBalance(),this.unwatchAccount=qi.client().watchAccount(r=>{let{address:e}=za.state;r.address!==e&&(this.fetchProfile(r.address),this.fetchBalance(r.address)),za.setAddress(r.address),za.setIsConnected(r.isConnected)})}disconnectedCallback(){var r;(r=this.unwatchAccount)==null||r.call(this)}async fetchProfile(r){var e;let t=(e=yt.state.chains)==null?void 0:e.find(n=>n.id===1);if(Ds.state.enableAccountView&&t)try{await za.fetchProfile(Fe.preloadImage,r)}catch(n){console.error(n),Nc.openToast(Fe.getErrorMessage(n),"error")}}async fetchBalance(r){if(Ds.state.enableAccountView)try{await za.fetchBalance(r)}catch(e){console.error(e),Nc.openToast(Fe.getErrorMessage(e),"error")}}};jSt=o3n([Jt("w3m-account-context")],jSt);c3n=Object.defineProperty,u3n=Object.getOwnPropertyDescriptor,zSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?u3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&c3n(e,t,a),a},ULe=class extends gt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(r){try{r!=null&&r.length&&await Promise.all(r.map(async e=>Fe.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images")}}async preloadListings(){var r;if(Ds.state.enableExplorer){let{standaloneChains:e,chains:t,walletConnectVersion:n}=yt.state,a=e?.join(",");await Promise.all([no.getPreviewWallets({page:1,entries:10,chains:a,device:Pr.isMobile()?"mobile":"desktop",version:n}),no.getRecomendedWallets()]),yt.setIsDataLoaded(!0);let{previewWallets:i,recomendedWallets:s}=no.state,o=(r=t?.map(u=>Fe.getChainIcon(u.id)))!=null?r:[],c=[...i,...s].map(u=>u.image_url.lg);await this.loadImages([...o,...c])}else yt.setIsDataLoaded(!0)}async preloadCustomImages(){let r=Fe.getCustomImageUrls();await this.loadImages(r)}async preloadConnectorImages(){if(!yt.state.isStandalone){let r=Fe.getConnectorImageUrls();await this.loadImages(r)}}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages(),this.preloadConnectorImages()]))}catch(r){console.error(r),Nc.openToast("Failed preloading","error")}}};zSt([xn()],ULe.prototype,"preload",2),ULe=zSt([Jt("w3m-explorer-context")],ULe);l3n=Object.defineProperty,d3n=Object.getOwnPropertyDescriptor,KSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?d3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&l3n(e,t,a),a},HLe=class extends gt{constructor(){super(),this.activeChainId=void 0,this.unwatchNetwork=void 0;let r=yt.getSelectedChain();this.activeChainId=r?.id,this.unwatchNetwork=qi.client().watchNetwork(e=>{let t=e.chain;t&&this.activeChainId!==t.id&&(yt.setSelectedChain(t),this.activeChainId=t.id,za.resetBalance(),this.fetchBalance())})}disconnectedCallback(){var r;(r=this.unwatchNetwork)==null||r.call(this)}async fetchBalance(){if(Ds.state.enableAccountView)try{await za.fetchBalance()}catch(r){console.error(r),Nc.openToast(Fe.getErrorMessage(r),"error")}}};KSt([xn()],HLe.prototype,"activeChainId",2),HLe=KSt([Jt("w3m-network-context")],HLe);p3n=Object.defineProperty,h3n=Object.getOwnPropertyDescriptor,f3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?h3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&p3n(e,t,a),a},GSt=class extends gt{constructor(){super(),this.unsubscribeTheme=void 0,or.setTheme(),this.unsubscribeTheme=Lm.subscribe(or.setTheme)}disconnectedCallback(){var r;(r=this.unsubscribeTheme)==null||r.call(this)}};GSt=f3n([Jt("w3m-theme-context")],GSt);m3n=pr`:host{all:initial}div{display:flex;align-items:center;background-color:var(--w3m-color-overlay);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);border-radius:var(--w3m-button-border-radius);padding:4px 4px 4px 8px}div button{border-radius:var(--w3m-secondary-button-border-radius);padding:4px 8px;padding-left:4px;height:auto;margin-left:10px;color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}.w3m-no-avatar{padding-left:8px}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}w3m-avatar{margin-right:6px}w3m-button-big w3m-avatar{margin-left:-5px}`,y3n=Object.defineProperty,g3n=Object.getOwnPropertyDescriptor,jLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?g3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&y3n(e,t,a),a},jQ=class extends gt{constructor(){super(),this.balance="hide",this.avatar="show",Fe.rejectStandaloneButtonComponent()}onOpen(){let{isStandalone:r}=yt.state;r||ao.open({route:"Account"})}accountTemplate(){let r=this.avatar==="show";return xe`${r?xe``:null}`}render(){let r=this.balance==="show",e={"w3m-no-avatar":this.avatar==="hide"};return r?xe`
`:xe`${this.accountTemplate()}`}};jQ.styles=[or.globalCss,m3n],jLe([ar()],jQ.prototype,"balance",2),jLe([ar()],jQ.prototype,"avatar",2),jQ=jLe([Jt("w3m-account-button")],jQ);b3n=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`,v3n=Object.defineProperty,w3n=Object.getOwnPropertyDescriptor,zLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?w3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&v3n(e,t,a),a},die=class extends gt{constructor(){super(),this.chainId="",this.label="",this.unsubscribeNetwork=void 0;let{selectedChain:r}=yt.state;this.chainId=r?.id.toString(),this.label=r?.name,this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.chainId=e?.id.toString(),this.label=e?.name})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onClick(){Br.push("SelectNetwork")}render(){let{chains:r,selectedChain:e}=yt.state,t=r?.map(i=>i.id),n=e&&t?.includes(e.id),a=r&&r.length<=1&&n;return xe``}};die.styles=[or.globalCss,b3n],zLe([xn()],die.prototype,"chainId",2),zLe([xn()],die.prototype,"label",2),die=zLe([Jt("w3m-account-network-button")],die);x3n=pr`@keyframes slide{0%{background-position:0 0}100%{background-position:200px 0}}w3m-text{padding:1px 0}.w3m-loading{background:linear-gradient(270deg,var(--w3m-color-fg-1) 36.33%,var(--w3m-color-fg-3) 42.07%,var(--w3m-color-fg-1) 83.3%);background-size:200px 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation-name:slide;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}`,_3n=Object.defineProperty,T3n=Object.getOwnPropertyDescriptor,pie=(r,e,t,n)=>{for(var a=n>1?void 0:n?T3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&_3n(e,t,a),a},T5=class extends gt{constructor(){super(),this.address=void 0,this.name=void 0,this.loading=!0,this.variant="button",this.unsubscribeAccount=void 0,this.address=za.state.address,this.name=za.state.profileName,this.loading=!!za.state.profileLoading,this.unsubscribeAccount=za.subscribe(({address:r,profileName:e,profileLoading:t})=>{this.address=r,this.name=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){var r;let e=this.variant==="button",t={"w3m-loading":this.loading};return xe`${this.name?this.name:Fe.truncate((r=this.address)!=null?r:"")}`}};T5.styles=[or.globalCss,x3n],pie([xn()],T5.prototype,"address",2),pie([xn()],T5.prototype,"name",2),pie([xn()],T5.prototype,"loading",2),pie([ar()],T5.prototype,"variant",2),T5=pie([Jt("w3m-address-text")],T5);al={allowedExplorerListings(r){let{explorerAllowList:e,explorerDenyList:t}=Ds.state,n=[...r];return e&&(n=n.filter(a=>e.includes(a.id))),t&&(n=n.filter(a=>!t.includes(a.id))),n},walletsWithInjected(r){let e=[...r??[]];if(window.ethereum){let t=Fe.getWalletName("");e=e.filter(({name:n})=>!Fe.caseSafeIncludes(n,t))}return e},connectorWallets(){let{isStandalone:r}=yt.state;if(r)return[];let e=qi.client().getConnectors();return!window.ethereum&&Pr.isMobile()&&(e=e.filter(({id:t})=>t!=="injected"&&t!==zQ.metaMask)),e},walletTemplatesWithRecent(r,e){let t=[...r];if(e){let n=Fe.getRecentWallet();t=t.filter(a=>!a.values.includes(n?.name)),t.splice(1,0,e)}return t},deduplicateExplorerListingsFromConnectors(r){let{isStandalone:e}=yt.state;if(e)return r;let t=qi.client().getConnectors().map(({name:n})=>n.toUpperCase());return r.filter(({name:n})=>!t.includes(n.toUpperCase()))}},I3n=pr`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 10),0,0)}}.w3m-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px}.w3m-slider::after,.w3m-slider::before{content:'';height:100%;width:50px;z-index:2;position:absolute;background:linear-gradient(to right,var(--w3m-color-bg-1) 0,transparent 100%);top:0}.w3m-slider::before{left:0}.w3m-slider::after{right:0;transform:rotateZ(180deg)}.w3m-track{display:flex;width:calc(70px * 20);animation:scroll 20s linear infinite}.w3m-action{padding:30px 0 10px 0;display:flex;justify-content:center;align-items:center;flex-direction:column}.w3m-action w3m-button-big:last-child{margin-top:10px}w3m-wallet-image{width:60px;height:60px;margin:0 5px;box-shadow:0 2px 4px -2px rgba(0,0,0,.12),0 4px 4px -2px rgba(0,0,0,.08);border-radius:15px}w3m-button-big{margin:0 5px}`,E3n=Object.defineProperty,C3n=Object.getOwnPropertyDescriptor,k3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?C3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&E3n(e,t,a),a},KLe=class extends gt{onGoToQrcode(){Br.push("Qrcode")}onGoToConnectors(){Br.push("Connectors")}onGoToGetWallet(){Br.push("GetWallet")}getConnectors(){let r=al.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==zQ.metaMask)),r}render(){let{previewWallets:r}=no.state,e=r.length,t=[...r,...r],n=this.getConnectors().length>0;return xe`${e?xe`
${t.map(({image_url:a})=>xe``)}
`:null}
${n?"WalletConnect":"Select Wallet"}${n?xe`Other`:null}
I don’t have a wallet
`}};KLe.styles=[or.globalCss,I3n],KLe=k3n([Jt("w3m-android-wallet-selection")],KLe);A3n=pr`@keyframes slide{0%{transform:translateX(-50px)}100%{transform:translateX(200px)}}.w3m-placeholder,img{border-radius:50%;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);display:block;position:relative;overflow:hidden!important;background-color:var(--w3m-color-av-1);background-image:radial-gradient(at 66% 77%,var(--w3m-color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--w3m-color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--w3m-color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--w3m-color-av-5) 0,transparent 50%);transform:translateZ(0)}.w3m-loader{width:50px;height:100%;background:linear-gradient(270deg,transparent 0,rgba(255,255,255,.4) 30%,transparent 100%);animation-name:slide;animation-duration:1.5s;transform:translateX(-50px);animation-iteration-count:infinite;animation-timing-function:linear;animation-delay:.55s}.w3m-small{width:24px;height:24px}.w3m-medium{width:60px;height:60px}`,P3n=Object.defineProperty,S3n=Object.getOwnPropertyDescriptor,hie=(r,e,t,n)=>{for(var a=n>1?void 0:n?S3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&P3n(e,t,a),a},I5=class extends gt{constructor(){super(),this.address=void 0,this.avatar=void 0,this.loading=!0,this.size="small",this.unsubscribeAccount=void 0,this.address=za.state.address,this.avatar=za.state.profileAvatar,this.loading=!!za.state.profileLoading,this.unsubscribeAccount=za.subscribe(({address:r,profileAvatar:e,profileLoading:t})=>{this.address=r,this.avatar=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r={"w3m-placeholder":!0,"w3m-small":this.size==="small","w3m-medium":this.size==="medium"};return this.avatar?xe``:this.address?(Fe.generateAvatarColors(this.address),xe`
${this.loading?xe`
`:null}
`):null}};I5.styles=[or.globalCss,A3n],hie([xn()],I5.prototype,"address",2),hie([xn()],I5.prototype,"avatar",2),hie([xn()],I5.prototype,"loading",2),hie([ar()],I5.prototype,"size",2),I5=hie([Jt("w3m-avatar")],I5);R3n=pr`div{display:flex;align-items:center}w3m-token-image{width:28px;height:28px;margin-right:6px}`,M3n=Object.defineProperty,N3n=Object.getOwnPropertyDescriptor,GLe=(r,e,t,n)=>{for(var a=n>1?void 0:n?N3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&M3n(e,t,a),a},fie=class extends gt{constructor(){var r,e;super(),this.symbol=void 0,this.amount=void 0,this.unsubscribeAccount=void 0,this.symbol=(r=za.state.balance)==null?void 0:r.symbol,this.amount=(e=za.state.balance)==null?void 0:e.amount,this.unsubscribeAccount=za.subscribe(({balance:t})=>{this.symbol=t?.symbol,this.amount=t?.amount})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r="_._";return this.amount==="0.0"&&(r=0),this.amount&&this.amount.length>6&&(r=parseFloat(this.amount).toFixed(3)),xe`
${r} ${this.symbol}
`}};fie.styles=[or.globalCss,R3n],GLe([xn()],fie.prototype,"symbol",2),GLe([xn()],fie.prototype,"amount",2),fie=GLe([Jt("w3m-balance")],fie);B3n=pr`:host{all:initial}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--w3m-accent-fill-color)}button:disabled svg path{fill:var(--w3m-color-fg-3)}w3m-spinner{margin:0 10px 0 0}`,D3n=Object.defineProperty,L3n=Object.getOwnPropertyDescriptor,Rve=(r,e,t,n)=>{for(var a=n>1?void 0:n?L3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&D3n(e,t,a),a},C5=class extends gt{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,Fe.rejectStandaloneButtonComponent(),this.modalUnsub=ao.subscribe(r=>{r.open&&(this.loading=!0),r.open||(this.loading=!1)})}disconnectedCallback(){var r;(r=this.modalUnsub)==null||r.call(this)}iconTemplate(){return this.icon==="show"?yr.WALLET_CONNECT_ICON:null}onClick(){za.state.isConnected?this.onDisconnect():this.onConnect()}onConnect(){this.loading=!0;let{enableNetworkView:r}=Ds.state,{chains:e,selectedChain:t}=yt.state,n=e?.length&&e.length>1;r||n&&!t?ao.open({route:"SelectNetwork"}):ao.open({route:"ConnectWallet"})}onDisconnect(){qi.client().disconnect(),za.resetAccount()}render(){return xe`${this.loading?xe`Connecting...`:xe`${this.iconTemplate()}${this.label}`}`}};C5.styles=[or.globalCss,B3n],Rve([xn()],C5.prototype,"loading",2),Rve([ar()],C5.prototype,"label",2),Rve([ar()],C5.prototype,"icon",2),C5=Rve([Jt("w3m-connect-button")],C5);O3n=Object.defineProperty,q3n=Object.getOwnPropertyDescriptor,HQ=(r,e,t,n)=>{for(var a=n>1?void 0:n?q3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&O3n(e,t,a),a},z1=class extends gt{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.avatar="show",this.balance="hide",this.unsubscribeAccount=void 0,Fe.rejectStandaloneButtonComponent(),this.isConnected=za.state.isConnected,this.unsubscribeAccount=za.subscribe(({isConnected:r})=>{this.isConnected=r})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let{enableAccountView:r}=Ds.state,e=nl(this.balance),t=nl(this.label),n=nl(this.icon),a=nl(this.avatar);return this.isConnected&&r?xe``:xe``}};HQ([xn()],z1.prototype,"isConnected",2),HQ([ar()],z1.prototype,"label",2),HQ([ar()],z1.prototype,"icon",2),HQ([ar()],z1.prototype,"avatar",2),HQ([ar()],z1.prototype,"balance",2),z1=HQ([Jt("w3m-core-button")],z1);F3n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--w3m-color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--w3m-accent-color)}`,W3n=Object.defineProperty,U3n=Object.getOwnPropertyDescriptor,H3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?U3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&W3n(e,t,a),a},VLe=class extends gt{onDesktopWallet(r){Br.push("DesktopConnector",{DesktopConnector:r})}onInjectedWallet(){Br.push("InjectedConnector")}onInstallConnector(){Br.push("InstallConnector",{InstallConnector:{id:"metaMask",name:"MetaMask",isMobile:!0,url:"https://metamask.io"}})}async onConnectorWallet(r){window.ethereum?r==="injected"||r===zQ.metaMask?this.onInjectedWallet():await Fe.handleConnectorConnection(r):this.onInstallConnector()}desktopWalletsTemplate(){let{desktopWallets:r}=Ds.state;return r?.map(({id:e,name:t,links:{universal:n,native:a}})=>xe``)}previewWalletsTemplate(){let r=al.allowedExplorerListings(no.state.previewWallets);return r=al.deduplicateExplorerListingsFromConnectors(r),r.map(({name:e,desktop:{universal:t,native:n},homepage:a,image_url:i,id:s})=>xe``)}connectorWalletsTemplate(){return al.connectorWallets().map(({id:r,name:e,ready:t})=>xe``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return xe``}render(){let{standaloneUri:r}=yt.state,e=this.desktopWalletsTemplate(),t=this.previewWalletsTemplate(),n=this.connectorWalletsTemplate(),a=this.recentWalletTemplate(),i=[...e??[],...t],s=[...n,...i],o=al.walletTemplatesWithRecent(s,a),c=al.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>4,h=[];l?h=u.slice(0,3):h=u;let f=!!h.length;return xe`
${yr.MOBILE_ICON}Mobile
${yr.SCAN_ICON}Scan with your wallet
${f?xe`
${yr.DESKTOP_ICON}Desktop
${h} ${l?xe``:null}
`:null}`}};VLe.styles=[or.globalCss,F3n],VLe=H3n([Jt("w3m-desktop-wallet-selection")],VLe);j3n=pr`div{background-color:var(--w3m-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--w3m-color-bg-3);text-align:center}a{color:var(--w3m-accent-color);text-decoration:none;transition:opacity .2s ease-in-out}a:hover{opacity:.8}`,z3n=Object.defineProperty,K3n=Object.getOwnPropertyDescriptor,G3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?K3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&z3n(e,t,a),a},YLe=class extends gt{render(){let{termsOfServiceUrl:r,privacyPolicyUrl:e}=Ds.state;return r??e?xe`
By connecting your wallet to this app, you agree to the app's
${r?xe`Terms of Service`:null} ${r&&e?"and":null} ${e?xe`Privacy Policy`:null}
`:null}};YLe.styles=[or.globalCss,j3n],YLe=G3n([Jt("w3m-legal-notice")],YLe);V3n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,Y3n=Object.defineProperty,$3n=Object.getOwnPropertyDescriptor,Q3n=(r,e,t,n)=>{for(var a=n>1?void 0:n?$3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Y3n(e,t,a),a},$Le=class extends gt{onGoToQrcode(){Br.push("Qrcode")}async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}mobileWalletsTemplate(){let{mobileWallets:r}=Ds.state,e=al.walletsWithInjected(r);if(e.length)return e.map(({id:t,name:n,links:{universal:a,native:i}})=>xe``)}previewWalletsTemplate(){let{previewWallets:r}=no.state,e=al.walletsWithInjected(r);return e=al.allowedExplorerListings(e),e=al.deduplicateExplorerListingsFromConnectors(e),e.map(({image_url:t,name:n,mobile:{native:a,universal:i},id:s})=>xe``)}connectorWalletsTemplate(){let r=al.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==zQ.metaMask)),r.map(({name:e,id:t,ready:n})=>xe``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return xe``}render(){let{standaloneUri:r}=yt.state,e=this.connectorWalletsTemplate(),t=this.mobileWalletsTemplate(),n=this.previewWalletsTemplate(),a=this.recentWalletTemplate(),i=t??n,s=[...e,...i],o=al.walletTemplatesWithRecent(s,a),c=al.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>8,h=[];l?h=u.slice(0,7):h=u;let f=h.slice(0,4),m=h.slice(4,8),y=!!h.length;return xe`${y?xe`
${f} ${m.length?xe`${m} ${l?xe``:null}`:null}
`:null}`}};$Le.styles=[or.globalCss,V3n],$Le=Q3n([Jt("w3m-mobile-wallet-selection")],$Le);J3n=pr`:host{all:initial}.w3m-overlay{inset:0;position:fixed;z-index:var(--w3m-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.3);opacity:0;pointer-events:none}@media(max-height:720px) and (orientation:landscape){.w3m-overlay{overflow:scroll;align-items:flex-start}}.w3m-open{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) var(--w3m-container-border-radius) var(--w3m-container-border-radius);border:1px solid var(--w3m-color-overlay);overflow:hidden}.w3m-card{width:100%;position:relative;border-radius:var(--w3m-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-color-bg-1);color:var(--w3m-color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) 0 0}.w3m-card{border-radius:var(--w3m-container-border-radius) var(--w3m-container-border-radius) 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:440px){.w3m-container{border:0}}`,Z3n=Object.defineProperty,X3n=Object.getOwnPropertyDescriptor,VSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?X3n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Z3n(e,t,a),a},gie=class extends gt{constructor(){super(),this.open=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=ao.subscribe(r=>{r.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var r;(r=this.unsubscribeModal)==null||r.call(this)}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return Fe.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(r){document.querySelector("body")&&(r?document.getElementById("w3m-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(r){r.target===r.currentTarget&&ao.close()}async onOpenModalEvent(){this.toggleBodyScroll(!1);let r=.2;await Wm(this.containerEl,{y:0},{duration:0}).finished,Wm(this.overlayEl,{opacity:[0,1]},{duration:.2,delay:r}),Wm(this.containerEl,Fe.isMobileAnimation()?{y:["50vh",0]}:{scale:[.98,1]},{scale:{easing:FQ({velocity:.4})},y:{easing:FQ({mass:.5})},delay:r}),this.addKeyboardEvents(),this.open=!0}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents(),await Promise.all([Wm(this.containerEl,Fe.isMobileAnimation()?{y:[0,"50vh"]}:{scale:[1,.98]},{scale:{easing:FQ({velocity:0})},y:{easing:FQ({mass:.5})}}).finished,Wm(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished]),this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",r=>{var e;r.key==="Escape"?ao.close():r.key==="Tab"&&((e=r.target)!=null&&e.tagName.includes("W3M-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var r;(r=this.abortController)==null||r.abort(),this.abortController=void 0}managedModalContextTemplate(){let{isStandalone:r}=yt.state;return r?null:xe``}render(){let r={"w3m-overlay":!0,"w3m-open":this.open};return xe`${this.managedModalContextTemplate()}
${this.open?xe`
`:null}
`}};gie.styles=[or.globalCss,J3n],VSt([xn()],gie.prototype,"open",2),gie=VSt([Jt("w3m-modal")],gie);exn=pr`:host{all:initial}w3m-network-image{margin-left:-6px;margin-right:6px;width:28px;height:28px}`,txn=Object.defineProperty,rxn=Object.getOwnPropertyDescriptor,Mve=(r,e,t,n)=>{for(var a=n>1?void 0:n?rxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&txn(e,t,a),a},k5=class extends gt{constructor(){super(),this.chainId="",this.label="",this.wrongNetwork=!1,this.unsubscribeNetwork=void 0,Fe.rejectStandaloneButtonComponent();let{selectedChain:r}=yt.state;this.onSetChainData(r),this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.onSetChainData(e)})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onSetChainData(r){if(r){let{chains:e}=yt.state,t=e?.map(n=>n.id);this.chainId=r.id.toString(),this.wrongNetwork=!(t!=null&&t.includes(r.id)),this.label=this.wrongNetwork?"Wrong Network":r.name}}onClick(){ao.open({route:"SelectNetwork"})}render(){var r;let{chains:e}=yt.state,t=e&&e.length>1;return xe`${(r=this.label)!=null&&r.length?this.label:"Select Network"}`}};k5.styles=[or.globalCss,exn],Mve([xn()],k5.prototype,"chainId",2),Mve([xn()],k5.prototype,"label",2),Mve([xn()],k5.prototype,"wrongNetwork",2),k5=Mve([Jt("w3m-network-switch")],k5);nxn=pr`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:background-color .2s ease;height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--w3m-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}button:hover{background-color:var(--w3m-color-overlay)}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--w3m-wallet-icon-border-radius)/ 2);border:1px solid var(--w3m-color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,axn=Object.defineProperty,ixn=Object.getOwnPropertyDescriptor,sxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?ixn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&axn(e,t,a),a},QLe=class extends gt{onClick(){Br.push("WalletExplorer")}render(){let{previewWallets:r}=no.state,e=Fe.getCustomWallets(),t=[...r,...e].reverse().slice(0,4);return xe``}};QLe.styles=[or.globalCss,nxn],QLe=sxn([Jt("w3m-view-all-wallets-button")],QLe);oxn=pr`.w3m-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,cxn=Object.defineProperty,uxn=Object.getOwnPropertyDescriptor,YSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?uxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&cxn(e,t,a),a},Nve=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-qr-container")}async createConnectionAndWait(r=0){var e;Pr.removeWalletConnectDeepLink();try{let{standaloneUri:t}=yt.state;t?setTimeout(()=>this.uri=t,0):(await qi.client().connectWalletConnect(n=>this.uri=n,(e=yt.state.selectedChain)==null?void 0:e.id),ao.close())}catch(t){console.error(t),Nc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}render(){return xe`
${this.uri?xe``:xe``}
`}};Nve.styles=[or.globalCss,oxn],YSt([xn()],Nve.prototype,"uri",2),Nve=YSt([Jt("w3m-walletconnect-qr")],Nve);lxn=pr`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start;padding-top:20px}.w3m-connection-badge{background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--w3m-success-color);border-radius:50%;top:50%;margin-top:-5px;box-shadow:0 1px 4px 1px var(--w3m-success-color),inset 0 0 0 1px var(--w3m-color-overlay)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}.w3m-balance{border-top:1px solid var(--w3m-color-bg-2);padding:11px 20px}`,dxn=Object.defineProperty,pxn=Object.getOwnPropertyDescriptor,hxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?pxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&dxn(e,t,a),a},JLe=class extends gt{onDisconnect(){ao.close(),qi.client().disconnect(),za.resetAccount()}async onCopyAddress(){var r;await navigator.clipboard.writeText((r=za.state.address)!=null?r:""),Nc.openToast("Address copied","success")}render(){return xe`
Connected
`}};JLe.styles=[or.globalCss,lxn],JLe=hxn([Jt("w3m-account-view")],JLe);fxn=Object.defineProperty,mxn=Object.getOwnPropertyDescriptor,yxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?mxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&fxn(e,t,a),a},ZLe=class extends gt{viewTemplate(){return Pr.isAndroid()?xe``:Pr.isMobile()?xe``:xe``}render(){return xe`${this.viewTemplate()}`}};ZLe.styles=[or.globalCss],ZLe=yxn([Jt("w3m-connect-wallet-view")],ZLe);gxn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}`,bxn=Object.defineProperty,vxn=Object.getOwnPropertyDescriptor,wxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?vxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&bxn(e,t,a),a},XLe=class extends gt{async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}connectorWalletsTemplate(){let r=al.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==zQ.metaMask)),r.map(({name:e,id:t,ready:n})=>xe``)}render(){let r=this.connectorWalletsTemplate();return xe`
${r}
`}};XLe.styles=[or.globalCss,gxn],XLe=wxn([Jt("w3m-connectors-view")],XLe);xxn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}.w3m-install-actions{display:flex}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`,_xn=Object.defineProperty,Txn=Object.getOwnPropertyDescriptor,$St=(r,e,t,n)=>{for(var a=n>1?void 0:n?Txn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&_xn(e,t,a),a},Bve=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.DesktopConnector;if(!e)throw new Error("Missing router data");return e}onFormatAndRedirect(r){let{native:e,universal:t,name:n}=this.getRouterData();if(e){let a=Pr.formatNativeUrl(e,r,n);Pr.openHref(a,"_self")}else if(t){let a=Pr.formatUniversalUrl(t,r,n);Pr.openHref(a,"_blank")}}async createConnectionAndWait(r=0){var e;Pr.removeWalletConnectDeepLink();let{standaloneUri:t}=yt.state,{name:n,walletId:a,native:i,universal:s,icon:o}=this.getRouterData(),c={name:n,id:a,links:{native:i,universal:s},image:o};if(t)Fe.setRecentWallet(c),this.onFormatAndRedirect(t);else try{await qi.client().connectWalletConnect(u=>{this.uri=u,this.onFormatAndRedirect(u)},(e=yt.state.selectedChain)==null?void 0:e.id),Fe.setRecentWallet(c),ao.close()}catch{Nc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}onConnectWithMobile(){Br.push("Qrcode")}onGoToWallet(){let{universal:r,name:e}=this.getRouterData();if(r){let t=Pr.formatUniversalUrl(r,this.uri,e);Pr.openHref(t,"_blank")}}render(){let{name:r,icon:e,universal:t,walletId:n}=this.getRouterData(),a=Fe.getWalletName(r);return xe`
${e?xe``:xe``}
${`Continue in ${a}...`}
Retry${t?xe`Go to Wallet`:xe`Connect with Mobile`}
`}};Bve.styles=[or.globalCss,xxn],$St([xn()],Bve.prototype,"uri",2),Bve=$St([Jt("w3m-desktop-connector-view")],Bve);Ixn=pr`.w3m-info-text{margin:5px 0 15px;max-width:320px;text-align:center}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--w3m-color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--w3m-color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`,Exn=Object.defineProperty,Cxn=Object.getOwnPropertyDescriptor,kxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Cxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Exn(e,t,a),a},eOe=class extends gt{onGet(r){Pr.openHref(r,"_blank")}render(){let{recomendedWallets:r}=no.state,e=Fe.getCustomWallets().slice(0,6),t=r.length,n=e.length;return xe`${t?r.map(({name:a,image_url:i,homepage:s})=>xe`
${a}Get
`):null} ${n?e.map(({name:a,id:i,links:s})=>xe`
${a}Get
`):null}
`}};eOe.styles=[or.globalCss,Ixn],eOe=kxn([Jt("w3m-get-wallet-view")],eOe);Axn=pr`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px;text-align:center}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--w3m-color-overlay)}`,Pxn=Object.defineProperty,Sxn=Object.getOwnPropertyDescriptor,Rxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Sxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Pxn(e,t,a),a},tOe=class extends gt{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){Ds.state.enableExplorer?Br.push("GetWallet"):Fe.openWalletExplorerUrl()}onLearnMore(){Pr.openHref(this.learnUrl,"_blank")}render(){return xe`
${yr.HELP_CHART_IMG} ${yr.HELP_PAINTING_IMG} ${yr.HELP_ETH_IMG}
A home for your digital assetsA wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.
${yr.HELP_KEY_IMG} ${yr.HELP_USER_IMG} ${yr.HELP_LOCK_IMG}
One login for all of web3Log in to any app by connecting your wallet. Say goodbye to countless passwords!
${yr.HELP_COMPAS_IMG} ${yr.HELP_NOUN_IMG} ${yr.HELP_DAO_IMG}
Your gateway to a new webWith your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.
`}};tOe.styles=[or.globalCss,Axn],tOe=Rxn([Jt("w3m-help-view")],tOe);Mxn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:20px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}`,Nxn=Object.defineProperty,Bxn=Object.getOwnPropertyDescriptor,rOe=(r,e,t,n)=>{for(var a=n>1?void 0:n?Bxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Nxn(e,t,a),a},mie=class extends gt{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=qi.client().getConnectorById("injected"),this.onConnect()}async onConnect(){let{ready:r}=this.connector;r&&(this.error=!1,this.connecting=!0,await Fe.handleConnectorConnection("injected",()=>{this.error=!0,this.connecting=!1}))}render(){let r=Fe.getWalletName(this.connector.name),e=Fe.getWalletId(this.connector.id),t={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return xe`
${this.connecting?xe``:null}${this.error?"Connection declined":`Continue in ${r}...`}
Try Again
`}};mie.styles=[or.globalCss,Mxn],rOe([xn()],mie.prototype,"connecting",2),rOe([xn()],mie.prototype,"error",2),mie=rOe([Jt("w3m-injected-connector-view")],mie);Dxn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.w3m-install-title{display:flex;align-items:center;justify-content:center;flex-direction:column}.w3m-install-title w3m-text:last-child{margin-top:10px;max-width:240px}.w3m-install-actions{display:flex;margin-top:15px;align-items:center;flex-direction:column}@media(max-width:355px){.w3m-install-actions{flex-direction:column;align-items:center}}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-install-actions w3m-button{margin:5px;opacity:1}.w3m-info-text{text-align:center}`,Lxn=Object.defineProperty,Oxn=Object.getOwnPropertyDescriptor,qxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Oxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Lxn(e,t,a),a},nOe=class extends gt{getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.InstallConnector;if(!e)throw new Error("Missing router data");return e}onInstall(){let{url:r}=this.getRouterData();Pr.openHref(r,"_blank")}onMobile(){let{name:r}=this.getRouterData();Br.push("ConnectWallet"),Nc.openToast(`Scan the code with ${r}`,"success")}render(){let{name:r,id:e,isMobile:t}=this.getRouterData();return xe`
Install ${r}To connect ${r}, install the browser extension.
Install Extension${t?xe`${r} Mobile`:null}
`}};nOe.styles=[or.globalCss,Dxn],nOe=qxn([Jt("w3m-install-connector-view")],nOe);Fxn=Object.defineProperty,Wxn=Object.getOwnPropertyDescriptor,Uxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Wxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Fxn(e,t,a),a},aOe=class extends gt{render(){return xe``}};aOe.styles=[or.globalCss],aOe=Uxn([Jt("w3m-qrcode-view")],aOe);Hxn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}`,jxn=Object.defineProperty,zxn=Object.getOwnPropertyDescriptor,Kxn=(r,e,t,n)=>{for(var a=n>1?void 0:n?zxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&jxn(e,t,a),a},iOe=class extends gt{async onSelectChain(r){try{let{selectedChain:e,walletConnectVersion:t}=yt.state,{isConnected:n}=za.state;n?e?.id===r.id?Br.replace("Account"):t===2?(await qi.client().switchNetwork({chainId:r.id}),Br.replace("Account")):Br.push("SwitchNetwork",{SwitchNetwork:r}):(Br.push("ConnectWallet"),yt.setSelectedChain(r))}catch(e){console.error(e),Nc.openToast(Fe.getErrorMessage(e),"error")}}render(){let{chains:r}=yt.state;return xe`
${r?.map(e=>xe`${e.name}`)}
`}};iOe.styles=[or.globalCss,Hxn],iOe=Kxn([Jt("w3m-select-network-view")],iOe);Gxn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-network-image{width:96px;height:96px;margin-bottom:20px}w3m-button{opacity:0}.w3m-error w3m-button{opacity:1}`,Vxn=Object.defineProperty,Yxn=Object.getOwnPropertyDescriptor,QSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Yxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Vxn(e,t,a),a},Dve=class extends gt{constructor(){super(),this.error=!1,this.onSwitchNetwork()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.SwitchNetwork;if(!e)throw new Error("Missing router data");return e}async onSwitchNetwork(){try{this.error=!1;let r=this.getRouterData();await qi.client().switchNetwork({chainId:r.id}),yt.setSelectedChain(r),Br.replace("Account")}catch{this.error=!0}}render(){let{id:r,name:e}=this.getRouterData(),t={"w3m-wrapper":!0,"w3m-error":this.error};return xe`
${this.error?null:xe``}${this.error?"Connection declined":"Approve in your wallet"}
Try Again
`}};Dve.styles=[or.globalCss,Gxn],QSt([xn()],Dve.prototype,"error",2),Dve=QSt([Jt("w3m-switch-network-view")],Dve);$xn=pr`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(var(--w3m-color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--w3m-color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,Qxn=Object.defineProperty,Jxn=Object.getOwnPropertyDescriptor,yie=(r,e,t,n)=>{for(var a=n>1?void 0:n?Jxn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Qxn(e,t,a),a},sOe=40,E5=class extends gt{constructor(){super(...arguments),this.loading=!no.state.wallets.listings.length,this.firstFetch=!no.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Fe.debounce(r=>{r.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=r,no.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),no.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var r;(r=this.intersectionObserver)==null||r.disconnect()}get placeholderEl(){return Fe.getShadowRootElement(this,".w3m-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([r])=>{r.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:r,search:e}=no.state,{listings:t,total:n}=this.search?e:r;return n<=sOe||t.length>=n}async fetchWallets(){var r;let{wallets:e,search:t}=no.state,n=Fe.getExtensionWallets(),{listings:a,total:i,page:s}=this.search?t:e;if(!this.endReached&&(this.firstFetch||i>sOe&&a.lengthh.lg),l=n.map(({id:h})=>Fe.getWalletIcon(h));await Promise.all([...u.map(async h=>Fe.preloadImage(h)),...l.map(async h=>Fe.preloadImage(h)),Pr.wait(300)]),this.endReached=this.isLastPage()}catch(o){console.error(o),Nc.openToast(Fe.getErrorMessage(o),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnectCustom({name:r,id:e,links:t}){Pr.isMobile()?Fe.handleMobileLinking({links:t,name:r,id:e}):Br.push("DesktopConnector",{DesktopConnector:{name:r,walletId:e,universal:t.universal,native:t.native}})}onConnectListing(r){if(Pr.isMobile()){let{id:e,image_url:t}=r,{native:n,universal:a}=r.mobile;Fe.handleMobileLinking({links:{native:n,universal:a},name:r.name,id:e,image:t.lg})}else Br.push("DesktopConnector",{DesktopConnector:{name:r.name,icon:r.image_url.lg,universal:r.desktop.universal||r.homepage,native:r.desktop.native}})}onConnectExtension(r){Fe.getWalletId("")===r.id?Br.push("InjectedConnector"):Br.push("InstallConnector",{InstallConnector:r})}onSearchChange(r){let{value:e}=r.target;this.searchDebounce(e)}render(){let{wallets:r,search:e}=no.state,{isStandalone:t}=yt.state,{listings:n}=this.search?e:r;n=al.allowedExplorerListings(n);let a=this.loading&&!n.length,i=this.search.length>=3,s=!t&&!Pr.isMobile()?Fe.getExtensionWallets():[],o=Fe.getCustomWallets();i&&(s=s.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)),o=o.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)));let c=!this.loading&&!n.length&&!s.length,u=Math.max(s.length,n.length),l={"w3m-loading":a,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":c};return xe`
${a?null:[...Array(u)].map((h,f)=>xe`${o[f]?xe``:null} ${s[f]?xe``:null} ${n[f]?xe``:null}`)}
${c?xe`No results found`:null} ${!c&&this.loading?xe``:null}
`}};E5.styles=[or.globalCss,$xn],yie([xn()],E5.prototype,"loading",2),yie([xn()],E5.prototype,"firstFetch",2),yie([xn()],E5.prototype,"search",2),yie([xn()],E5.prototype,"endReached",2),E5=yie([Jt("w3m-wallet-explorer-view")],E5)});var r7t={};cr(r7t,{Web3Modal:()=>oOe});var Zxn,e7t,Xxn,e_n,t7t,t_n,oOe,n7t=ce(()=>{d();p();qDe();Zxn=Object.defineProperty,e7t=Object.getOwnPropertySymbols,Xxn=Object.prototype.hasOwnProperty,e_n=Object.prototype.propertyIsEnumerable,t7t=(r,e,t)=>e in r?Zxn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,t_n=(r,e)=>{for(var t in e||(e={}))Xxn.call(e,t)&&t7t(r,t,e[t]);if(e7t)for(var t of e7t(e))e_n.call(e,t)&&t7t(r,t,e[t]);return r},oOe=class{constructor(e){this.openModal=ao.open,this.closeModal=ao.close,this.subscribeModal=ao.subscribe,this.setTheme=Lm.setThemeConfig,Lm.setThemeConfig(e),Ds.setConfig(t_n({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>(XSt(),ZSt));let e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),yt.setIsUiLoaded(!0)}}}});var lOe=_(K1=>{"use strict";d();p();Object.defineProperty(K1,"__esModule",{value:!0});var r_n=Lu(),bie=vae(),n_n=WAt();function a_n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var i_n="wc",s_n="ethereum_provider",o_n=`${i_n}@${2}:${s_n}:`,c_n="https://rpc.walletconnect.com/v1/",Lve=["eth_sendTransaction","personal_sign"],u_n=["eth_accounts","eth_requestAccounts","eth_call","eth_getBalance","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Ove=["chainChanged","accountsChanged"],l_n=["message","disconnect","connect"],d_n=Object.defineProperty,p_n=Object.defineProperties,h_n=Object.getOwnPropertyDescriptors,a7t=Object.getOwnPropertySymbols,f_n=Object.prototype.hasOwnProperty,m_n=Object.prototype.propertyIsEnumerable,i7t=(r,e,t)=>e in r?d_n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,s7t=(r,e)=>{for(var t in e||(e={}))f_n.call(e,t)&&i7t(r,t,e[t]);if(a7t)for(var t of a7t(e))m_n.call(e,t)&&i7t(r,t,e[t]);return r},o7t=(r,e)=>p_n(r,h_n(e));function uOe(r){return Number(r[0].split(":")[1])}function cOe(r){return`0x${r.toString(16)}`}function y_n(r){let{chains:e,optionalChains:t,methods:n,optionalMethods:a,events:i,optionalEvents:s,rpcMap:o}=r;if(!bie.isValidArray(e))throw new Error("Invalid chains");let c=e,u=n||Lve,l=i||Ove,h={[uOe(c)]:o[uOe(c)]},f={chains:c,methods:u,events:l,rpcMap:h},m=i?.filter(R=>!Ove.includes(R)),y=n?.filter(R=>!Lve.includes(R));if(!t&&!s&&!a&&!(m!=null&&m.length)&&!(y!=null&&y.length))return{required:f};let I=m?.length&&y?.length||!t,C={chains:[...new Set(I?c.concat(t||[]):t)],methods:[...new Set(u.concat(a||[]))],events:[...new Set(l.concat(s||[]))],rpcMap:o};return{required:f,optional:C}}var KQ=class{constructor(){this.events=new r_n.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=o_n,this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new KQ;return await t.initialize(e),t}async request(e){return await this.signer.request(e,this.formatChainId(this.chainId))}sendAsync(e,t){this.signer.sendAsync(e,t,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:n}=y_n(this.rpc);try{let a=await new Promise(async(s,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(u=>{!u.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(o7t(s7t({namespaces:{[this.namespace]:t}},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:e?.pairingTopic})).then(u=>{s(u)}).catch(u=>{o(new Error(u.message))})});if(!a)return;this.setChainIds(this.rpc.chains);let i=bie.getAccountsFromNamespaces(a.namespaces,[this.namespace]);this.setAccounts(i),this.events.emit("connect",{chainId:cOe(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",cOe(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",o7t(s7t({},bie.getSdkError("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,n;this.rpc.showQrModal&&((t=this.modal)==null||t.closeModal(),(n=this.modal)==null||n.openModal({uri:e})),this.events.emit("display_uri",e)})}setHttpProvider(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",cOe(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.setHttpProvider(t)}}parseAccountId(e){let[t,n,a]=e.split(":");return{chainId:`${t}:${n}`,address:a}}setAccounts(e){this.accounts=e.filter(t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId).map(t=>this.parseAccountId(t).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,n;return{chains:((t=e.chains)==null?void 0:t.map(a=>this.formatChainId(a)))||[`${this.namespace}:1`],optionalChains:e.optionalChains?e.optionalChains.map(a=>this.formatChainId(a)):void 0,methods:e?.methods||Lve,events:e?.events||Ove,optionalMethods:e?.optionalMethods||[],optionalEvents:e?.optionalEvents||[],rpcMap:e?.rpcMap||this.buildRpcMap(e.chains.concat(e.optionalChains||[]),e.projectId),showQrModal:(n=e?.showQrModal)!=null?n:!0,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let n={};return e.forEach(a=>{n[a]=this.getRpcUrl(a,t)}),n}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=uOe(this.rpc.chains),this.signer=await n_n.UniversalProvider.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let{Web3Modal:t}=await Promise.resolve().then(function(){return a_n((n7t(),nt(r7t)))});this.modal=new t({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains})}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:n,rpcMap:a}=e;t&&bie.isValidArray(t)&&(this.rpc.chains=t.map(i=>this.formatChainId(i)),t.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)})),n&&bie.isValidArray(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(i=>this.formatChainId(i)),n.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)}))}getRpcUrl(e,t){var n;return((n=this.rpc.rpcMap)==null?void 0:n[e])||`${c_n}?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`);this.setChainIds(e?[this.formatChainId(e)]:this.session.namespaces[this.namespace].accounts),this.setAccounts(this.session.namespaces[this.namespace].accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e=="string"||e instanceof String?[this.parseAccount(e)]:e.map(t=>this.parseAccount(t))}},g_n=KQ;K1.EthereumProvider=g_n,K1.OPTIONAL_EVENTS=l_n,K1.OPTIONAL_METHODS=u_n,K1.REQUIRED_EVENTS=Ove,K1.REQUIRED_METHODS=Lve,K1.default=KQ});var g7t=_(wOe=>{"use strict";d();p();Object.defineProperty(wOe,"__esModule",{value:!0});var fi=ym(),Qr=gm(),G1=ec(),P5=je(),vie=_Y();Vu();vt();Je();function b_n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var d7t="eip155",p7t="wagmi.requestedChains",mOe="wallet_addEthereumChain",dOe="last-used-chain-id",Fi=new WeakMap,Fve=new WeakMap,S5=new WeakMap,pOe=new WeakSet,h7t=new WeakSet,hOe=new WeakSet,fOe=new WeakSet,wie=new WeakSet,yOe=new WeakSet,gOe=new WeakSet,bOe=new WeakSet,vOe=class extends vie.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),fi._classPrivateMethodInitSpec(this,bOe),fi._classPrivateMethodInitSpec(this,gOe),fi._classPrivateMethodInitSpec(this,yOe),fi._classPrivateMethodInitSpec(this,wie),fi._classPrivateMethodInitSpec(this,fOe),fi._classPrivateMethodInitSpec(this,hOe),fi._classPrivateMethodInitSpec(this,h7t),fi._classPrivateMethodInitSpec(this,pOe),G1._defineProperty(this,"id","walletConnect"),G1._defineProperty(this,"name","WalletConnect"),G1._defineProperty(this,"ready",!0),Qr._classPrivateFieldInitSpec(this,Fi,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,Fve,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,S5,{writable:!0,value:void 0}),G1._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:P5.utils.getAddress(t[0])})}),G1._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Qr._classPrivateFieldGet(this,S5).setItem(dOe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),G1._defineProperty(this,"onDisconnect",()=>{fi._classPrivateMethodGet(this,wie,qve).call(this,[]),Qr._classPrivateFieldGet(this,S5).removeItem(dOe),this.emit("disconnect")}),G1._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),G1._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Qr._classPrivateFieldGet(this,Fi)})}),Qr._classPrivateFieldSet(this,S5,e.options.storage),fi._classPrivateMethodGet(this,pOe,c7t).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Qr._classPrivateFieldGet(this,S5).getItem(dOe),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await fi._classPrivateMethodGet(this,hOe,u7t).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l.length>0?l:[n]}),fi._classPrivateMethodGet(this,wie,qve).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=P5.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new P5.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new vie.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{fi._classPrivateMethodGet(this,fOe,l7t).call(this),fi._classPrivateMethodGet(this,wie,qve).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return P5.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qr._classPrivateFieldGet(this,Fi)||await fi._classPrivateMethodGet(this,pOe,c7t).call(this),e&&await this.switchChain(e),!Qr._classPrivateFieldGet(this,Fi))throw new Error("No provider found.");return Qr._classPrivateFieldGet(this,Fi)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new P5.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await fi._classPrivateMethodGet(this,hOe,u7t).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new vie.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=fi._classPrivateMethodGet(this,gOe,m7t).call(this),i=fi._classPrivateMethodGet(this,bOe,y7t).call(this);if(!a.includes(e)&&i.includes(mOe)){await n.request({method:mOe,params:[{chainId:P5.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await fi._classPrivateMethodGet(this,yOe,f7t).call(this);o.push(e),fi._classPrivateMethodGet(this,wie,qve).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:P5.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new vie.UserRejectedRequestError(n):new vie.SwitchChainError(n)}}async setupListeners(){!Qr._classPrivateFieldGet(this,Fi)||(fi._classPrivateMethodGet(this,fOe,l7t).call(this),Qr._classPrivateFieldGet(this,Fi).on("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Fi).on("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Fi).on("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).on("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).on("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Fi).on("connect",this.onConnect))}};async function c7t(){return!Qr._classPrivateFieldGet(this,Fve)&&typeof window<"u"&&Qr._classPrivateFieldSet(this,Fve,fi._classPrivateMethodGet(this,h7t,v_n).call(this)),Qr._classPrivateFieldGet(this,Fve)}async function v_n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return b_n(lOe())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Qr._classPrivateFieldSet(this,Fi,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function u7t(){if(fi._classPrivateMethodGet(this,bOe,y7t).call(this).includes(mOe)||!this.options.isNewChainsStale)return!1;let e=await fi._classPrivateMethodGet(this,yOe,f7t).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=fi._classPrivateMethodGet(this,gOe,m7t).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function l7t(){!Qr._classPrivateFieldGet(this,Fi)||(Qr._classPrivateFieldGet(this,Fi).removeListener("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Fi).removeListener("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Fi).removeListener("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).removeListener("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Fi).removeListener("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Fi).removeListener("connect",this.onConnect))}function qve(r){Qr._classPrivateFieldGet(this,S5).setItem(p7t,JSON.stringify(r))}async function f7t(){let r=await Qr._classPrivateFieldGet(this,S5).getItem(p7t);return r?JSON.parse(r):[]}function m7t(){return Qr._classPrivateFieldGet(this,Fi)?Qr._classPrivateFieldGet(this,Fi).session?.namespaces[d7t]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function y7t(){return Qr._classPrivateFieldGet(this,Fi)?Qr._classPrivateFieldGet(this,Fi).session?.namespaces[d7t]?.methods??[]:[]}wOe.WalletConnectConnector=vOe});var w7t=_(kOe=>{"use strict";d();p();Object.defineProperty(kOe,"__esModule",{value:!0});var xie=ym(),_ie=ec(),Hr=gm(),w_n=vY(),x_n=xY();Vu();Je();Yg();je();vt();var __n="145769e410f16970a79ff77b2d89a1e0",Ul=new WeakMap,GQ=new WeakMap,T_n=new WeakMap,_Oe=new WeakMap,TOe=new WeakMap,IOe=new WeakMap,EOe=new WeakMap,COe=new WeakMap,b7t=new WeakSet,xOe=new WeakSet,R5=class extends x_n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e?.walletId||R5.id,e),xie._classPrivateMethodInitSpec(this,xOe),xie._classPrivateMethodInitSpec(this,b7t),Hr._classPrivateFieldInitSpec(this,Ul,{writable:!0,value:void 0}),Hr._classPrivateFieldInitSpec(this,GQ,{writable:!0,value:void 0}),_ie._defineProperty(this,"connector",void 0),_ie._defineProperty(this,"projectId",void 0),_ie._defineProperty(this,"qrcode",void 0),Hr._classPrivateFieldInitSpec(this,T_n,{writable:!0,value:t=>{if(t)throw t}}),Hr._classPrivateFieldInitSpec(this,_Oe,{writable:!0,value:t=>{if(Hr._classPrivateFieldSet(this,GQ,t.provider),!Hr._classPrivateFieldGet(this,GQ))throw new Error("WalletConnect provider not found after connecting.")}}),Hr._classPrivateFieldInitSpec(this,TOe,{writable:!0,value:()=>{xie._classPrivateMethodGet(this,xOe,v7t).call(this)}}),Hr._classPrivateFieldInitSpec(this,IOe,{writable:!0,value:async t=>{t.chain||t.account}}),Hr._classPrivateFieldInitSpec(this,EOe,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),Hr._classPrivateFieldInitSpec(this,COe,{writable:!0,value:()=>{this.emit("open_wallet")}}),this.projectId=e?.projectId||__n,this.qrcode=e?.qrcode!==!1}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return g7t()});Hr._classPrivateFieldSet(this,Ul,new e({chains:this.chains,options:{qrcode:this.qrcode,projectId:this.projectId,dappMetadata:this.dappMetadata,storage:this.walletStorage}})),this.connector=new w_n.WagmiAdapter(Hr._classPrivateFieldGet(this,Ul)),Hr._classPrivateFieldSet(this,GQ,await Hr._classPrivateFieldGet(this,Ul).getProvider()),xie._classPrivateMethodGet(this,b7t,I_n).call(this)}return this.connector}};function I_n(){!Hr._classPrivateFieldGet(this,Ul)||(xie._classPrivateMethodGet(this,xOe,v7t).call(this),Hr._classPrivateFieldGet(this,Ul).on("connect",Hr._classPrivateFieldGet(this,_Oe)),Hr._classPrivateFieldGet(this,Ul).on("disconnect",Hr._classPrivateFieldGet(this,TOe)),Hr._classPrivateFieldGet(this,Ul).on("change",Hr._classPrivateFieldGet(this,IOe)),Hr._classPrivateFieldGet(this,Ul).on("message",Hr._classPrivateFieldGet(this,EOe)),Hr._classPrivateFieldGet(this,GQ)?.signer.client.on("session_request_sent",Hr._classPrivateFieldGet(this,COe)))}function v7t(){!Hr._classPrivateFieldGet(this,Ul)||(Hr._classPrivateFieldGet(this,Ul).removeListener("connect",Hr._classPrivateFieldGet(this,_Oe)),Hr._classPrivateFieldGet(this,Ul).removeListener("disconnect",Hr._classPrivateFieldGet(this,TOe)),Hr._classPrivateFieldGet(this,Ul).removeListener("change",Hr._classPrivateFieldGet(this,IOe)),Hr._classPrivateFieldGet(this,Ul).removeListener("message",Hr._classPrivateFieldGet(this,EOe)),Hr._classPrivateFieldGet(this,GQ)?.signer.client.removeListener("session_request_sent",Hr._classPrivateFieldGet(this,COe)))}_ie._defineProperty(R5,"id","walletConnect");_ie._defineProperty(R5,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});kOe.WalletConnect=R5});var S7t=_(OOe=>{"use strict";d();p();Object.defineProperty(OOe,"__esModule",{value:!0});var mi=Cm(),Jr=km(),V1=ac(),M5=je(),Tie=P$();Zu();vt();Je();function E_n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var I7t="eip155",E7t="wagmi.requestedChains",MOe="wallet_addEthereumChain",AOe="last-used-chain-id",Wi=new WeakMap,Uve=new WeakMap,N5=new WeakMap,POe=new WeakSet,C7t=new WeakSet,SOe=new WeakSet,ROe=new WeakSet,Iie=new WeakSet,NOe=new WeakSet,BOe=new WeakSet,DOe=new WeakSet,LOe=class extends Tie.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),mi._classPrivateMethodInitSpec(this,DOe),mi._classPrivateMethodInitSpec(this,BOe),mi._classPrivateMethodInitSpec(this,NOe),mi._classPrivateMethodInitSpec(this,Iie),mi._classPrivateMethodInitSpec(this,ROe),mi._classPrivateMethodInitSpec(this,SOe),mi._classPrivateMethodInitSpec(this,C7t),mi._classPrivateMethodInitSpec(this,POe),V1._defineProperty(this,"id","walletConnect"),V1._defineProperty(this,"name","WalletConnect"),V1._defineProperty(this,"ready",!0),Jr._classPrivateFieldInitSpec(this,Wi,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,Uve,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,N5,{writable:!0,value:void 0}),V1._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:M5.utils.getAddress(t[0])})}),V1._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Jr._classPrivateFieldGet(this,N5).setItem(AOe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),V1._defineProperty(this,"onDisconnect",()=>{mi._classPrivateMethodGet(this,Iie,Wve).call(this,[]),Jr._classPrivateFieldGet(this,N5).removeItem(AOe),this.emit("disconnect")}),V1._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),V1._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Jr._classPrivateFieldGet(this,Wi)})}),Jr._classPrivateFieldSet(this,N5,e.options.storage),mi._classPrivateMethodGet(this,POe,x7t).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Jr._classPrivateFieldGet(this,N5).getItem(AOe),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await mi._classPrivateMethodGet(this,SOe,_7t).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l.length>0?l:[n]}),mi._classPrivateMethodGet(this,Iie,Wve).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=M5.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new M5.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new Tie.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{mi._classPrivateMethodGet(this,ROe,T7t).call(this),mi._classPrivateMethodGet(this,Iie,Wve).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return M5.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jr._classPrivateFieldGet(this,Wi)||await mi._classPrivateMethodGet(this,POe,x7t).call(this),e&&await this.switchChain(e),!Jr._classPrivateFieldGet(this,Wi))throw new Error("No provider found.");return Jr._classPrivateFieldGet(this,Wi)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new M5.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await mi._classPrivateMethodGet(this,SOe,_7t).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new Tie.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=mi._classPrivateMethodGet(this,BOe,A7t).call(this),i=mi._classPrivateMethodGet(this,DOe,P7t).call(this);if(!a.includes(e)&&i.includes(MOe)){await n.request({method:MOe,params:[{chainId:M5.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await mi._classPrivateMethodGet(this,NOe,k7t).call(this);o.push(e),mi._classPrivateMethodGet(this,Iie,Wve).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:M5.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new Tie.UserRejectedRequestError(n):new Tie.SwitchChainError(n)}}async setupListeners(){!Jr._classPrivateFieldGet(this,Wi)||(mi._classPrivateMethodGet(this,ROe,T7t).call(this),Jr._classPrivateFieldGet(this,Wi).on("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Wi).on("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Wi).on("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).on("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).on("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Wi).on("connect",this.onConnect))}};async function x7t(){return!Jr._classPrivateFieldGet(this,Uve)&&typeof window<"u"&&Jr._classPrivateFieldSet(this,Uve,mi._classPrivateMethodGet(this,C7t,C_n).call(this)),Jr._classPrivateFieldGet(this,Uve)}async function C_n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return E_n(lOe())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Jr._classPrivateFieldSet(this,Wi,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function _7t(){if(mi._classPrivateMethodGet(this,DOe,P7t).call(this).includes(MOe)||!this.options.isNewChainsStale)return!1;let e=await mi._classPrivateMethodGet(this,NOe,k7t).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=mi._classPrivateMethodGet(this,BOe,A7t).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function T7t(){!Jr._classPrivateFieldGet(this,Wi)||(Jr._classPrivateFieldGet(this,Wi).removeListener("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Wi).removeListener("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Wi).removeListener("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).removeListener("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Wi).removeListener("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Wi).removeListener("connect",this.onConnect))}function Wve(r){Jr._classPrivateFieldGet(this,N5).setItem(E7t,JSON.stringify(r))}async function k7t(){let r=await Jr._classPrivateFieldGet(this,N5).getItem(E7t);return r?JSON.parse(r):[]}function A7t(){return Jr._classPrivateFieldGet(this,Wi)?Jr._classPrivateFieldGet(this,Wi).session?.namespaces[I7t]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function P7t(){return Jr._classPrivateFieldGet(this,Wi)?Jr._classPrivateFieldGet(this,Wi).session?.namespaces[I7t]?.methods??[]:[]}OOe.WalletConnectConnector=LOe});var N7t=_(zOe=>{"use strict";d();p();Object.defineProperty(zOe,"__esModule",{value:!0});var Eie=Cm(),Cie=ac(),jr=km(),k_n=C$(),A_n=A$();Zu();Je();p1();je();vt();var P_n="145769e410f16970a79ff77b2d89a1e0",Hl=new WeakMap,VQ=new WeakMap,S_n=new WeakMap,FOe=new WeakMap,WOe=new WeakMap,UOe=new WeakMap,HOe=new WeakMap,jOe=new WeakMap,R7t=new WeakSet,qOe=new WeakSet,B5=class extends A_n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e?.walletId||B5.id,e),Eie._classPrivateMethodInitSpec(this,qOe),Eie._classPrivateMethodInitSpec(this,R7t),jr._classPrivateFieldInitSpec(this,Hl,{writable:!0,value:void 0}),jr._classPrivateFieldInitSpec(this,VQ,{writable:!0,value:void 0}),Cie._defineProperty(this,"connector",void 0),Cie._defineProperty(this,"projectId",void 0),Cie._defineProperty(this,"qrcode",void 0),jr._classPrivateFieldInitSpec(this,S_n,{writable:!0,value:t=>{if(t)throw t}}),jr._classPrivateFieldInitSpec(this,FOe,{writable:!0,value:t=>{if(jr._classPrivateFieldSet(this,VQ,t.provider),!jr._classPrivateFieldGet(this,VQ))throw new Error("WalletConnect provider not found after connecting.")}}),jr._classPrivateFieldInitSpec(this,WOe,{writable:!0,value:()=>{Eie._classPrivateMethodGet(this,qOe,M7t).call(this)}}),jr._classPrivateFieldInitSpec(this,UOe,{writable:!0,value:async t=>{t.chain||t.account}}),jr._classPrivateFieldInitSpec(this,HOe,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),jr._classPrivateFieldInitSpec(this,jOe,{writable:!0,value:()=>{this.emit("open_wallet")}}),this.projectId=e?.projectId||P_n,this.qrcode=e?.qrcode!==!1}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return S7t()});jr._classPrivateFieldSet(this,Hl,new e({chains:this.chains,options:{qrcode:this.qrcode,projectId:this.projectId,dappMetadata:this.dappMetadata,storage:this.walletStorage}})),this.connector=new k_n.WagmiAdapter(jr._classPrivateFieldGet(this,Hl)),jr._classPrivateFieldSet(this,VQ,await jr._classPrivateFieldGet(this,Hl).getProvider()),Eie._classPrivateMethodGet(this,R7t,R_n).call(this)}return this.connector}};function R_n(){!jr._classPrivateFieldGet(this,Hl)||(Eie._classPrivateMethodGet(this,qOe,M7t).call(this),jr._classPrivateFieldGet(this,Hl).on("connect",jr._classPrivateFieldGet(this,FOe)),jr._classPrivateFieldGet(this,Hl).on("disconnect",jr._classPrivateFieldGet(this,WOe)),jr._classPrivateFieldGet(this,Hl).on("change",jr._classPrivateFieldGet(this,UOe)),jr._classPrivateFieldGet(this,Hl).on("message",jr._classPrivateFieldGet(this,HOe)),jr._classPrivateFieldGet(this,VQ)?.signer.client.on("session_request_sent",jr._classPrivateFieldGet(this,jOe)))}function M7t(){!jr._classPrivateFieldGet(this,Hl)||(jr._classPrivateFieldGet(this,Hl).removeListener("connect",jr._classPrivateFieldGet(this,FOe)),jr._classPrivateFieldGet(this,Hl).removeListener("disconnect",jr._classPrivateFieldGet(this,WOe)),jr._classPrivateFieldGet(this,Hl).removeListener("change",jr._classPrivateFieldGet(this,UOe)),jr._classPrivateFieldGet(this,Hl).removeListener("message",jr._classPrivateFieldGet(this,HOe)),jr._classPrivateFieldGet(this,VQ)?.signer.client.removeListener("session_request_sent",jr._classPrivateFieldGet(this,jOe)))}Cie._defineProperty(B5,"id","walletConnect");Cie._defineProperty(B5,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});zOe.WalletConnect=B5});var B7t=_((hSa,KOe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?KOe.exports=w7t():KOe.exports=N7t()});d();p();var O7t=un(OXe()),q7t=un(set()),F7t=un(wmt()),GOe=un(bn()),QOe=un(P3t()),JOe=un(W3t()),VOe=un(j3t()),ZOe=un(Z3t()),XOe=un(NEt()),eqe=un(B7t()),YOe=un(je()),M_n="339d65590ba0fa79e4c8be0af33d64eda709e13652acb02c6be63f5a1fbef9c3",N_n="145769e410f16970a79ff77b2d89a1e0",D7t="/",L7t="#",Y1=(r,e)=>YOe.BigNumber.isBigNumber(e)||typeof e=="object"&&e!==null&&e.type==="BigNumber"&&"hex"in e?YOe.BigNumber.from(e).toString():e,B_n=[XOe.MetaMaskWallet,ZOe.InjectedWallet,eqe.WalletConnect,QOe.CoinbaseWallet,JOe.DeviceBrowserWallet],D_n=window,$Oe=class{constructor(){this.walletMap=new Map}updateSDKSigner(e){this.activeSDK&&(e?this.activeSDK.updateSignerOrProvider(e):this.initializedChain&&this.activeSDK.updateSignerOrProvider(this.initializedChain)),e&&(this.auth?this.auth.updateWallet(new VOe.EthersWallet(e)):this.auth=new O7t.ThirdwebAuth(new VOe.EthersWallet(e),"example.com"))}initialize(e,t){this.initializedChain=e,console.debug("thirdwebSDK initialization:",e,t);let n=JSON.parse(t),a=n?.storage&&n?.storage?.ipfsGatewayUrl?new GOe.ThirdwebStorage({gatewayUrls:{"ipfs://":[n.storage.ipfsGatewayUrl]}}):new GOe.ThirdwebStorage;n.thirdwebApiKey=n.thirdwebApiKey||M_n,this.activeSDK=new F7t.ThirdwebSDK(e,n,a);for(let i of B_n){let s,o={name:n.wallet?.appName||"thirdweb powered game",url:n.wallet?.appUrl||"https://thirdweb.com",description:n.wallet?.appDescription||"",logoUrl:n.wallet?.appIcons?.[0]||"",...n.wallet?.extras};switch(i.id){case"injected":s=new ZOe.InjectedWallet({dappMetadata:o});break;case"metamask":s=new XOe.MetaMaskWallet({dappMetadata:o});break;case"walletConnect":s=new eqe.WalletConnect({dappMetadata:o,projectId:N_n});break;case"coinbaseWallet":s=new QOe.CoinbaseWallet({dappMetadata:o});break;case"deviceWallet":s=new JOe.DeviceBrowserWallet({dappMetadata:o});break;default:throw new Error(`Unknown wallet type: ${i.id}`)}s&&(s.on("connect",async()=>this.updateSDKSigner(await s.getSigner())),s.on("change",async()=>this.updateSDKSigner(await s.getSigner())),s.on("disconnect",()=>this.updateSDKSigner()),this.walletMap.set(i.id,s))}}async connect(e="injected",t,n){if(!this.activeSDK)throw new Error("SDK not initialized");t===0&&(t=void 0);let a=this.walletMap.get(e);if(a)return a.walletId==="deviceWallet"&&n?await a.connect({chainId:t,password:n}):await a.connect({chainId:t}),this.activeWallet=a,this.updateSDKSigner(await a.getSigner()),await this.activeSDK.wallet.getAddress();throw new Error("Invalid Wallet")}async disconnect(){this.activeWallet&&(await this.activeWallet.disconnect(),this.activeWallet=void 0,this.updateSDKSigner())}async switchNetwork(e){if(e&&this.activeWallet&&"switchChain"in this.activeWallet)await this.activeWallet.switchChain(e),this.updateSDKSigner(await this.activeWallet.getSigner());else throw new Error("Error Switching Network")}async invoke(e,t){if(!this.activeSDK)throw new Error("SDK not initialized");let n=e.split(D7t),a=n[0].split(L7t),i=a[0],o=JSON.parse(t).arguments.map(c=>{try{return typeof c=="string"&&(c.startsWith("{")||c.startsWith("["))?JSON.parse(c):c}catch{return c}});if(console.debug("thirdwebSDK call:",e,o),i.startsWith("sdk")){let c;if(a.length>1&&(c=a[1]),c&&n.length===2){let u=await this.activeSDK[c][n[1]](...o);return JSON.stringify({result:u},Y1)}else if(n.length===2){let u=await this.activeSDK[n[1]](...o);return JSON.stringify({result:u},Y1)}else throw new Error("Invalid Route")}if(i.startsWith("auth")){if(!this.auth)throw new Error("You need to connect a wallet to use auth!");let c;if(a.length>1&&(c=a[1]),c==="login"&&n.length===1){let u=await this.auth.login({domain:o[0]});return JSON.stringify({result:u})}else if(c==="verify"&&n.length===1){let u=await this.auth.verify(o[0]);return JSON.stringify({result:u})}}if(i.startsWith("0x")){let c;if(a.length>1)try{c=JSON.parse(a[1])}catch{c=a[1]}let u=c?await this.activeSDK.getContract(i,c):await this.activeSDK.getContract(i);if(n.length===2){let l=await u[n[1]](...o);return JSON.stringify({result:l},Y1)}else if(n.length===3){let l=await u[n[1]][n[2]](...o);return JSON.stringify({result:l},Y1)}else if(n.length===4){let l=await u[n[1]][n[2]][n[3]](...o);return JSON.stringify({result:l},Y1)}else throw new Error("Invalid Route")}}async invokeListener(e,t,n,a,i){if(!this.activeSDK)throw new Error("SDK not initialized");let s=t.split(D7t),o=s[0].split(L7t),c=o[0],l=JSON.parse(n).arguments.map(h=>{try{return typeof h=="string"&&(h.startsWith("{")||h.startsWith("["))?JSON.parse(h):h}catch{return h}});if(console.debug("thirdwebSDK invoke listener:",e,t,l,a),c.startsWith("0x")){let h;if(o.length>1)try{h=JSON.parse(o[1])}catch{h=o[1]}let f=h?await this.activeSDK.getContract(c,h):await this.activeSDK.getContract(c);if(s.length===2)await f[s[1]](...l,m=>i(a,e,JSON.stringify(m,Y1)));else if(s.length===3)await f[s[1]][s[2]](...l,m=>i(a,e,JSON.stringify(m,Y1)));else if(s.length===4)await f[s[1]][s[2]][s[3]](...l,m=>i(a,e,JSON.stringify(m,Y1)));else throw new Error("Invalid Route")}}async fundWallet(e){if(!this.activeSDK)throw new Error("SDK not initialized");let{appId:t,...n}=JSON.parse(e);return await new q7t.CoinbasePayIntegration({appId:t}).fundWallet(n)}};D_n.bridge=new $Oe;})(); +\f\r"'\`<>=]|("|')|))|$)`,"g"),OVt=/'/g,FVt=/"/g,HVt=/^(?:script|style|textarea|title)$/i,jVt=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),Re=jVt(1),vn=jVt(2),u2=Symbol.for("lit-noChange"),Rc=Symbol.for("lit-nothing"),LVt=new WeakMap,Rre=Bre.createTreeWalker(Bre,129,null,!1),wVn=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"":"",s=wfe;for(let c=0;c"?(s=a??wfe,h=-1):p[1]===void 0?h=-2:(h=s.lastIndex-p[2].length,l=p[1],s=p[3]===void 0?K8:p[3]==='"'?FVt:OVt):s===FVt||s===OVt?s=K8:s===DVt||s===NVt?s=wfe:(s=K8,a=void 0);let y=s===K8&&r[c+1].startsWith("/>")?" ":"";i+=s===wfe?u+gVn:h>=0?(n.push(l),u.slice(0,h)+"$lit$"+u.slice(h)+Y6+y):u+Y6+(h===-2?(n.push(void 0),c):y)}let o=i+(r[t]||"")+(e===2?"":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[BVt!==void 0?BVt.createHTML(o):o,n]},G8=class{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,o=e.length-1,c=this.parts,[u,l]=wVn(e,t);if(this.el=G8.createElement(u,n),Rre.currentNode=this.el.content,t===2){let p=this.el.content,h=p.firstChild;h.remove(),p.append(...h.childNodes)}for(;(a=Rre.nextNode())!==null&&c.length0){a.textContent=Mre?Mre.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Rc}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=Dre(this,e,t,0),s=!_fe(e)||e!==this._$AH&&e!==u2,s&&(this._$AH=e);else{let o=e,c,u;for(e=i[0],c=0;c{var n,a;let i=(n=t?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let o=(a=t?.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=s=new V8(e.insertBefore(xfe(),o),o,void 0,t??{})}return s._$AI(r),s}});var G$e,V$e,ar,KVt,GVt=de(()=>{f();d();mTe();mTe();$8();$8();ar=class extends c2{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=zVt(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return u2}};ar.finalized=!0,ar._$litElement$=!0,(G$e=globalThis.litElementHydrateSupport)===null||G$e===void 0||G$e.call(globalThis,{LitElement:ar});KVt=globalThis.litElementPolyfillSupport;KVt?.({LitElement:ar});((V$e=globalThis.litElementVersions)!==null&&V$e!==void 0?V$e:globalThis.litElementVersions=[]).push("3.2.2")});var VVt=de(()=>{f();d();});var $Vt=de(()=>{f();d();mTe();$8();GVt();VVt()});var mr,YVt=de(()=>{f();d();mr=r=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(r,e):((t,n)=>{let{kind:a,elements:i}=n;return{kind:a,elements:i,finisher(s){customElements.define(t,s)}}})(r,e)});function Cr(r){return(e,t)=>t!==void 0?((n,a,i)=>{a.constructor.createProperty(i,n)})(r,e,t):_Vn(r,e)}var _Vn,$$e=de(()=>{f();d();_Vn=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}}});function pa(r){return Cr({...r,state:!0})}var QVt=de(()=>{f();d();$$e();});var Y8=de(()=>{f();d();});var JVt=de(()=>{f();d();Y8();});var ZVt=de(()=>{f();d();Y8();});var XVt=de(()=>{f();d();Y8();});var e$t=de(()=>{f();d();Y8();});var Y$e,W2i,Q$e=de(()=>{f();d();Y8();W2i=((Y$e=window.HTMLSlotElement)===null||Y$e===void 0?void 0:Y$e.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE)});var t$t=de(()=>{f();d();Y8();Q$e();});var r$t=de(()=>{f();d();YVt();$$e();QVt();JVt();ZVt();XVt();e$t();Q$e();t$t()});var n$t,a$t,bTe,i$t=de(()=>{f();d();n$t={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},a$t=r=>(...e)=>({_$litDirective$:r,values:e}),bTe=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var Bl,s$t=de(()=>{f();d();$8();i$t();Bl=a$t(class extends bTe{constructor(r){var e;if(super(r),r.type!==n$t.ATTRIBUTE||r.name!=="class"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,n;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.st)===null||t===void 0)&&t.has(i))&&this.nt.add(i);return this.render(e)}let a=r.element.classList;this.nt.forEach(i=>{i in e||(a.remove(i),this.nt.delete(i))});for(let i in e){let s=!!e[i];s===this.nt.has(i)||((n=this.st)===null||n===void 0?void 0:n.has(i))||(s?(a.add(i),this.nt.add(i)):(a.remove(i),this.nt.delete(i)))}return u2}})});var o$t=de(()=>{f();d();s$t()});function J$e(r,e){r.indexOf(e)===-1&&r.push(e)}var c$t=de(()=>{f();d()});var Efe,Z$e=de(()=>{f();d();Efe=(r,e,t)=>Math.min(Math.max(t,r),e)});var pu,u$t=de(()=>{f();d();pu={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}});var _m,gTe=de(()=>{f();d();_m=r=>typeof r=="number"});var dy,X$e=de(()=>{f();d();gTe();dy=r=>Array.isArray(r)&&!_m(r[0])});var l$t,f$t=de(()=>{f();d();l$t=(r,e,t)=>{let n=e-r;return((t-r)%n+n)%n+r}});function d$t(r,e){return dy(r)?r[l$t(0,r.length,e)]:r}var p$t=de(()=>{f();d();X$e();f$t()});var vTe,eYe=de(()=>{f();d();vTe=(r,e,t)=>-t*r+t*e+r});var Ife,Jc,tYe=de(()=>{f();d();Ife=()=>{},Jc=r=>r});var Q8,wTe=de(()=>{f();d();Q8=(r,e,t)=>e-r===0?1:(t-r)/(e-r)});function rYe(r,e){let t=r[r.length-1];for(let n=1;n<=e;n++){let a=Q8(0,e,n);r.push(vTe(t,1,a))}}function h$t(r){let e=[0];return rYe(e,r-1),e}var m$t=de(()=>{f();d();eYe();wTe()});function nYe(r,e=h$t(r.length),t=Jc){let n=r.length,a=n-e.length;return a>0&&rYe(e,a),i=>{let s=0;for(;s{f();d();eYe();tYe();m$t();wTe();p$t();Z$e()});var Cfe,b$t=de(()=>{f();d();gTe();Cfe=r=>Array.isArray(r)&&_m(r[0])});var Ore,g$t=de(()=>{f();d();Ore=r=>typeof r=="object"&&Boolean(r.createAnimation)});var Jp,v$t=de(()=>{f();d();Jp=r=>typeof r=="function"});var Afe,w$t=de(()=>{f();d();Afe=r=>typeof r=="string"});var py,x$t=de(()=>{f();d();py={ms:r=>r*1e3,s:r=>r/1e3}});function aYe(r,e){return e?r*(1e3/e):0}var _$t=de(()=>{f();d()});var cl=de(()=>{f();d();c$t();Z$e();u$t();y$t();b$t();g$t();X$e();v$t();gTe();w$t();tYe();wTe();x$t();_$t()});function IVn(r,e,t,n,a){let i,s,o=0;do s=e+(t-e)/2,i=T$t(s,n,a)-r,i>0?t=s:e=s;while(Math.abs(i)>TVn&&++oIVn(i,0,1,r,t);return i=>i===0||i===1?i:T$t(a(i),e,n)}var T$t,TVn,EVn,E$t=de(()=>{f();d();cl();T$t=(r,e,t)=>(((1-3*t+3*e)*r+(3*t-6*e))*r+3*e)*r,TVn=1e-7,EVn=12});var iYe,I$t=de(()=>{f();d();cl();iYe=(r,e="end")=>t=>{t=e==="end"?Math.min(t,.999):Math.max(t,.001);let n=t*r,a=e==="end"?Math.floor(n):Math.ceil(n);return Efe(0,1,a/r)}});var C$t=de(()=>{f();d();E$t();I$t()});function sYe(r){if(Jp(r))return r;if(Cfe(r))return J8(...r);if(A$t[r])return A$t[r];if(r.startsWith("steps")){let e=CVn.exec(r);if(e){let t=e[1].split(",");return iYe(parseFloat(t[0]),t[1].trim())}}return Jc}var A$t,CVn,k$t=de(()=>{f();d();C$t();cl();A$t={ease:J8(.25,.1,.25,1),"ease-in":J8(.42,0,1,1),"ease-in-out":J8(.42,0,.58,1),"ease-out":J8(0,0,.58,1)},CVn=/\((.*?)\)/});var Z8,S$t=de(()=>{f();d();cl();k$t();Z8=class{constructor(e,t=[0,1],{easing:n,duration:a=pu.duration,delay:i=pu.delay,endDelay:s=pu.endDelay,repeat:o=pu.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Jc,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((p,h)=>{this.resolve=p,this.reject=h}),n=n||pu.easing,Ore(n)){let p=n.createAnimation(t);n=p.easing,t=p.keyframes||t,a=p.duration||a}this.repeat=o,this.easing=dy(n)?Jc:sYe(n),this.updateDuration(a);let l=nYe(t,c,dy(n)?n.map(sYe):Jc);this.tick=p=>{var h;i=i;let m=0;this.pauseTime!==void 0?m=this.pauseTime:m=(p-this.startTime)*this.rate,this.t=m,m/=1e3,m=Math.max(m-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(m=this.totalDuration);let y=m/this.duration,C=Math.floor(y),P=y%1;!P&&y>=1&&(P=1),P===1&&C--;let A=C%2;(u==="reverse"||u==="alternate"&&A||u==="alternate-reverse"&&!A)&&(P=1-P);let B=m>=this.totalDuration?1:Math.min(P,1),F=l(this.easing(B));e(F),this.pauseTime===void 0&&(this.playState==="finished"||m>=this.totalDuration+s)?(this.playState="finished",(h=this.resolve)===null||h===void 0||h.call(this,F)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}}});var oYe=de(()=>{f();d();S$t()});var AVn,xTe,P$t=de(()=>{f();d();AVn=function(){},xTe=function(){};g.env.NODE_ENV!=="production"&&(AVn=function(r,e){!r&&typeof console<"u"&&console.warn(e)},xTe=function(r,e){if(!r)throw new Error(e)})});var kfe,R$t=de(()=>{f();d();kfe=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}});var cYe=de(()=>{f();d();R$t()});function _Te(r){return uYe.has(r)||uYe.set(r,{transforms:[],values:new Map}),uYe.get(r)}function M$t(r,e){return r.has(e)||r.set(e,new kfe),r.get(e)}var uYe,lYe=de(()=>{f();d();cYe();uYe=new WeakMap});var kVn,SVn,Sfe,B$t,PVn,hy,ETe,TTe,RVn,MVn,ITe,D$t,BVn,DVn,Fre=de(()=>{f();d();cl();lYe();kVn=["","X","Y","Z"],SVn=["translate","scale","rotate","skew"],Sfe={x:"translateX",y:"translateY",z:"translateZ"},B$t={syntax:"",initialValue:"0deg",toDefaultUnit:r=>r+"deg"},PVn={translate:{syntax:"",initialValue:"0px",toDefaultUnit:r=>r+"px"},rotate:B$t,scale:{syntax:"",initialValue:1,toDefaultUnit:Jc},skew:B$t},hy=new Map,ETe=r=>`--motion-${r}`,TTe=["x","y","z"];SVn.forEach(r=>{kVn.forEach(e=>{TTe.push(r+e),hy.set(ETe(r+e),PVn[r])})});RVn=(r,e)=>TTe.indexOf(r)-TTe.indexOf(e),MVn=new Set(TTe),ITe=r=>MVn.has(r),D$t=(r,e)=>{Sfe[e]&&(e=Sfe[e]);let{transforms:t}=_Te(r);J$e(t,e),r.style.transform=BVn(t)},BVn=r=>r.sort(RVn).reduce(DVn,"").trim(),DVn=(r,e)=>`${r} ${e}(var(${ETe(e)}))`});function O$t(r){if(!N$t.has(r)){N$t.add(r);try{let{syntax:e,initialValue:t}=hy.has(r)?hy.get(r):{};CSS.registerProperty({name:r,inherits:!1,syntax:e,initialValue:t})}catch{}}}var Pfe,N$t,fYe=de(()=>{f();d();Fre();Pfe=r=>r.startsWith("--"),N$t=new Set});var dYe,F$t,pYe,Q6,hYe=de(()=>{f();d();dYe=(r,e)=>document.createElement("div").animate(r,e),F$t={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{dYe({opacity:[1]})}catch{return!1}return!0},finished:()=>Boolean(dYe({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{dYe({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},pYe={},Q6={};for(let r in F$t)Q6[r]=()=>(pYe[r]===void 0&&(pYe[r]=F$t[r]()),pYe[r])});var NVn,OVn,mYe,FVn,L$t=de(()=>{f();d();cl();hYe();NVn=.015,OVn=(r,e)=>{let t="",n=Math.round(e/NVn);for(let a=0;aJp(r)?Q6.linearEasing()?`linear(${OVn(r,e)})`:pu.easing:Cfe(r)?FVn(r):r,FVn=([r,e,t,n])=>`cubic-bezier(${r}, ${e}, ${t}, ${n})`});function q$t(r,e){for(let t=0;t{f();d();W$t=r=>Array.isArray(r)?r:[r]});function X8(r){return Sfe[r]&&(r=Sfe[r]),ITe(r)?ETe(r):r}var CTe=de(()=>{f();d();Fre()});var Rfe,H$t=de(()=>{f();d();fYe();CTe();Fre();Rfe={get:(r,e)=>{e=X8(e);let t=Pfe(e)?r.style.getPropertyValue(e):getComputedStyle(r)[e];if(!t&&t!==0){let n=hy.get(e);n&&(t=n.initialValue)}return t},set:(r,e,t)=>{e=X8(e),Pfe(e)?r.style.setProperty(e,t):r.style[e]=t}}});function ATe(r,e=!0){if(!(!r||r.playState==="finished"))try{r.stop?r.stop():(e&&r.commitStyles(),r.cancel())}catch{}}var yYe=de(()=>{f();d()});function kTe(r,e){var t;let n=e?.toDefaultUnit||Jc,a=r[r.length-1];if(Afe(a)){let i=((t=a.match(/(-?[\d.]+)([a-z%]*)/))===null||t===void 0?void 0:t[2])||"";i&&(n=s=>s+i)}return n}var bYe=de(()=>{f();d();cl()});function LVn(){return window.__MOTION_DEV_TOOLS_RECORD}function j$t(r,e,t,n={},a){let i=LVn(),s=n.record!==!1&&i,o,{duration:c=pu.duration,delay:u=pu.delay,endDelay:l=pu.endDelay,repeat:p=pu.repeat,easing:h=pu.easing,persist:m=!1,direction:y,offset:C,allowWebkitAcceleration:P=!1}=n,A=_Te(r),B=ITe(e),F=Q6.waapi();B&&D$t(r,e);let W=X8(e),K=M$t(A.values,W),z=hy.get(W);return ATe(K.animation,!(Ore(h)&&K.generator)&&n.record!==!1),()=>{let G=()=>{var I,b;return(b=(I=Rfe.get(r,W))!==null&&I!==void 0?I:z?.initialValue)!==null&&b!==void 0?b:0},j=q$t(W$t(t),G),H=kTe(j,z);if(Ore(h)){let I=h.createAnimation(j,e!=="opacity",G,W,K);h=I.easing,j=I.keyframes||j,c=I.duration||c}if(Pfe(W)&&(Q6.cssRegisterProperty()?O$t(W):F=!1),B&&!Q6.linearEasing()&&(Jp(h)||dy(h)&&h.some(Jp))&&(F=!1),F){z&&(j=j.map(k=>_m(k)?z.toDefaultUnit(k):k)),j.length===1&&(!Q6.partialKeyframes()||s)&&j.unshift(G());let I={delay:py.ms(u),duration:py.ms(c),endDelay:py.ms(l),easing:dy(h)?void 0:mYe(h,c),direction:y,iterations:p+1,fill:"both"};o=r.animate({[W]:j,offset:C,easing:dy(h)?h.map(k=>mYe(k,c)):void 0},I),o.finished||(o.finished=new Promise((k,S)=>{o.onfinish=k,o.oncancel=S}));let b=j[j.length-1];o.finished.then(()=>{m||(Rfe.set(r,W,b),o.cancel())}).catch(Ife),P||(o.playbackRate=1.000001)}else if(a&&B)j=j.map(I=>typeof I=="string"?parseFloat(I):I),j.length===1&&j.unshift(parseFloat(G())),o=new a(I=>{Rfe.set(r,W,H?H(I):I)},j,Object.assign(Object.assign({},n),{duration:c,easing:h}));else{let I=j[j.length-1];Rfe.set(r,W,z&&_m(I)?z.toDefaultUnit(I):I)}return s&&i(r,e,j,{duration:c,delay:u,easing:h,repeat:p,offset:C},"motion-one"),K.setAnimation(o),o}}var z$t=de(()=>{f();d();lYe();fYe();cl();Fre();L$t();hYe();U$t();H$t();CTe();yYe();bYe()});var K$t,G$t=de(()=>{f();d();K$t=(r,e)=>r[e]?Object.assign(Object.assign({},r),r[e]):Object.assign({},r)});function V$t(r,e){var t;return typeof r=="string"?e?((t=e[r])!==null&&t!==void 0||(e[r]=document.querySelectorAll(r)),r=e[r]):r=document.querySelectorAll(r):r instanceof Element&&(r=[r]),Array.from(r||[])}var $$t=de(()=>{f();d()});var qVn,Mfe,WVn,UVn,HVn,gYe=de(()=>{f();d();cl();yYe();qVn=r=>r(),Mfe=(r,e,t=pu.duration)=>new Proxy({animations:r.map(qVn).filter(Boolean),duration:t,options:e},UVn),WVn=r=>r.animations[0],UVn={get:(r,e)=>{let t=WVn(r);switch(e){case"duration":return r.duration;case"currentTime":return py.s(t?.[e]||0);case"playbackRate":case"playState":return t?.[e];case"finished":return r.finished||(r.finished=Promise.all(r.animations.map(HVn)).catch(Ife)),r.finished;case"stop":return()=>{r.animations.forEach(n=>ATe(n))};case"forEachNative":return n=>{r.animations.forEach(a=>n(a,r))};default:return typeof t?.[e]>"u"?void 0:()=>r.animations.forEach(n=>n[e]())}},set:(r,e,t)=>{switch(e){case"currentTime":t=py.ms(t);case"currentTime":case"playbackRate":for(let n=0;nr.finished});function Y$t(r,e,t){return Jp(r)?r(e,t):r}var Q$t=de(()=>{f();d();cl()});function J$t(r){return function(t,n,a={}){t=V$t(t);let i=t.length;xTe(Boolean(i),"No valid element provided."),xTe(Boolean(n),"No keyframes defined.");let s=[];for(let o=0;o{f();d();P$t();z$t();G$t();$$t();gYe();Q$t()});var vYe,X$t=de(()=>{f();d();oYe();Z$t();vYe=J$t(Z8)});function Bfe(r,e,t){let n=Math.max(e-jVn,0);return aYe(t-r(n),e-n)}var jVn,wYe=de(()=>{f();d();cl();jVn=5});var J6,xYe=de(()=>{f();d();J6={stiffness:100,damping:10,mass:1}});var eYt,tYt=de(()=>{f();d();xYe();eYt=(r=J6.stiffness,e=J6.damping,t=J6.mass)=>e/(2*Math.sqrt(r*t))});function rYt(r,e,t){return r=e||r>e&&t<=e}var nYt=de(()=>{f();d()});var _Ye,aYt=de(()=>{f();d();cl();xYe();tYt();nYt();wYe();_Ye=({stiffness:r=J6.stiffness,damping:e=J6.damping,mass:t=J6.mass,from:n=0,to:a=1,velocity:i=0,restSpeed:s=2,restDistance:o=.5}={})=>{i=i?py.s(i):0;let c={done:!1,hasReachedTarget:!1,current:n,target:a},u=a-n,l=Math.sqrt(r/t)/1e3,p=eYt(r,e,t),h;if(p<1){let m=l*Math.sqrt(1-p*p);h=y=>a-Math.exp(-p*l*y)*((-i+p*l*u)/m*Math.sin(m*y)+u*Math.cos(m*y))}else h=m=>a-Math.exp(-l*m)*(u+(-i+l*u)*m);return m=>{c.current=h(m);let y=m===0?i:Bfe(h,m,c.current),C=Math.abs(y)<=s,P=Math.abs(a-c.current)<=o;return c.done=C&&P,c.hasReachedTarget=rYt(n,a,c.current),c}}});function EYe(r,e=Jc){let t,n=TYe,a=r(0),i=[e(a.current)];for(;!a.done&&n{f();d();cl();TYe=10,zVn=1e4});var IYe=de(()=>{f();d();aYt();iYt();wYe()});function sYt(r){return _m(r)&&!isNaN(r)}function CYe(r){return Afe(r)?parseFloat(r):r}function oYt(r){let e=new WeakMap;return(t={})=>{let n=new Map,a=(s=0,o=100,c=0,u=!1)=>{let l=`${s}-${o}-${c}-${u}`;return n.has(l)||n.set(l,r(Object.assign({from:s,to:o,velocity:c,restSpeed:u?.05:2,restDistance:u?.01:.5},t))),n.get(l)},i=(s,o)=>(e.has(s)||e.set(s,EYe(s,o)),e.get(s));return{createAnimation:(s,o=!0,c,u,l)=>{let p,h,m,y=0,C=Jc,P=s.length;if(o){C=kTe(s,u?hy.get(X8(u)):void 0);let A=s[P-1];if(m=CYe(A),P>1&&s[0]!==null)h=CYe(s[0]);else{let B=l?.generator;if(B){let{animation:F,generatorStartTime:W}=l,K=F?.startTime||W||0,z=F?.currentTime||performance.now()-K,G=B(z).current;h=G,y=Bfe(j=>B(j).current,z,G)}else c&&(h=CYe(c()))}}if(sYt(h)&&sYt(m)){let A=a(h,m,y,u?.includes("scale"));p=Object.assign(Object.assign({},i(A,C)),{easing:"linear"}),l&&(l.generator=A,l.generatorStartTime=performance.now())}return p||(p={easing:"ease",duration:i(a(0,100)).overshootDuration}),p}}}}var cYt=de(()=>{f();d();IYe();cl();bYe();Fre();CTe()});var Lre,uYt=de(()=>{f();d();IYe();cYt();Lre=oYt(_Ye)});var AYe=de(()=>{f();d();X$t();uYt();gYe()});function KVn(r,e={}){return Mfe([()=>{let t=new Z8(r,[0,1],e);return t.finished.catch(()=>{}),t}],e,e.duration)}function my(r,e,t){return(Jp(r)?KVn:vYe)(r,e,t)}var lYt=de(()=>{f();d();AYe();cl();oYe()});var fYt=de(()=>{f();d();AYe();cYe();lYt()});var Dl,dYt=de(()=>{f();d();$8();Dl=r=>r??Rc});var pYt=de(()=>{f();d();dYt()});var BYt={};Rr(BYt,{W3mAccountButton:()=>Hre,W3mConnectButton:()=>s4,W3mCoreButton:()=>X6,W3mModal:()=>Vfe,W3mNetworkSwitch:()=>o4});function YVn(){var r;let e=(r=fy.state.themeMode)!=null?r:"dark",t={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[e];return{"--w3m-color-fg-1":t.foreground[1],"--w3m-color-fg-2":t.foreground[2],"--w3m-color-fg-3":t.foreground[3],"--w3m-color-bg-1":t.background[1],"--w3m-color-bg-2":t.background[2],"--w3m-color-bg-3":t.background[3],"--w3m-color-overlay":t.overlay}}function QVn(){return{"--w3m-accent-color":"#3396FF","--w3m-accent-fill-color":"#FFFFFF","--w3m-z-index":"89","--w3m-background-color":"#3396FF","--w3m-background-border-radius":"8px","--w3m-container-border-radius":"30px","--w3m-wallet-icon-border-radius":"15px","--w3m-input-border-radius":"28px","--w3m-button-border-radius":"10px","--w3m-notification-border-radius":"36px","--w3m-secondary-button-border-radius":"28px","--w3m-icon-button-border-radius":"50%","--w3m-button-hover-highlight-border-radius":"10px","--w3m-text-big-bold-size":"20px","--w3m-text-big-bold-weight":"600","--w3m-text-big-bold-line-height":"24px","--w3m-text-big-bold-letter-spacing":"-0.03em","--w3m-text-big-bold-text-transform":"none","--w3m-text-xsmall-bold-size":"10px","--w3m-text-xsmall-bold-weight":"700","--w3m-text-xsmall-bold-line-height":"12px","--w3m-text-xsmall-bold-letter-spacing":"0.02em","--w3m-text-xsmall-bold-text-transform":"uppercase","--w3m-text-xsmall-regular-size":"12px","--w3m-text-xsmall-regular-weight":"600","--w3m-text-xsmall-regular-line-height":"14px","--w3m-text-xsmall-regular-letter-spacing":"-0.03em","--w3m-text-xsmall-regular-text-transform":"none","--w3m-text-small-thin-size":"14px","--w3m-text-small-thin-weight":"500","--w3m-text-small-thin-line-height":"16px","--w3m-text-small-thin-letter-spacing":"-0.03em","--w3m-text-small-thin-text-transform":"none","--w3m-text-small-regular-size":"14px","--w3m-text-small-regular-weight":"600","--w3m-text-small-regular-line-height":"16px","--w3m-text-small-regular-letter-spacing":"-0.03em","--w3m-text-small-regular-text-transform":"none","--w3m-text-medium-regular-size":"16px","--w3m-text-medium-regular-weight":"600","--w3m-text-medium-regular-line-height":"20px","--w3m-text-medium-regular-letter-spacing":"-0.03em","--w3m-text-medium-regular-text-transform":"none","--w3m-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--w3m-success-color":"rgb(38,181,98)","--w3m-error-color":"rgb(242, 90, 103)"}}function JVn(){let{themeVariables:r}=fy.state;return{"--w3m-background-image-url":r!=null&&r["--w3m-background-image-url"]?`url(${r["--w3m-background-image-url"]})`:"none"}}function MYe(r,e,t){return r===e?!1:(r-e<0?e-r:r-e)<=t+q$n}function W$n(r,e){let t=Array.prototype.slice.call(MYt.default.create(r,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((a,i,s)=>(s%n===0?a.push([i]):a[a.length-1].push(i))&&a,[])}var MYt,GVn,hYt,VVn,$Vn,mYt,STe,Sr,ZVn,XVn,e$n,PTe,qre,t$n,r$n,n$n,Dfe,e4,a$n,i$n,s$n,kYe,Nfe,Kr,o$n,c$n,u$n,yYt,RTe,l$n,f$n,d$n,p$n,SYe,h$n,m$n,y$n,b$n,PYe,g$n,v$n,w$n,Ofe,t4,x$n,jre,c4,_$n,T$n,bYt,E$n,I$n,gYt,C$n,pt,A$n,k$n,S$n,RYe,Ffe,P$n,R$n,M$n,vYt,MTe,B$n,D$n,N$n,BTe,Wre,O$n,F$n,L$n,wYt,DTe,q$n,xYt,l2,U$n,H$n,j$n,z$n,Lfe,r4,K$n,G$n,V$n,_Yt,NTe,$$n,Y$n,Q$n,J$n,BYe,Z$n,X$n,eYn,DYe,qfe,tYn,rYn,nYn,TYt,OTe,aYn,iYn,sYn,Z6,yy,oYn,cYn,uYn,NYe,Wfe,lYn,fYn,dYn,EYt,pYn,hYn,IYt,OYe,mYn,yYn,CYt,FYe,bYn,gYn,vYn,AYt,wYn,xYn,_Yn,LYe,Hre,TYn,EYn,IYn,qYe,Ufe,CYn,AYn,kYn,Hfe,n4,Nl,SYn,PYn,RYn,MYn,WYe,BYn,DYn,NYn,jfe,a4,OYn,FYn,LYn,UYe,zfe,qYn,WYn,UYn,FTe,s4,HYn,jYn,Ure,X6,zYn,KYn,GYn,VYn,HYe,$Yn,YYn,QYn,JYn,jYe,ZYn,XYn,eQn,tQn,zYe,rQn,nQn,aQn,kYt,Vfe,iQn,sQn,oQn,LTe,o4,cQn,uQn,lQn,fQn,KYe,dQn,pQn,hQn,SYt,qTe,mQn,yQn,bQn,gQn,GYe,vQn,wQn,xQn,VYe,_Qn,TQn,EQn,IQn,$Ye,CQn,AQn,kQn,PYt,WTe,SQn,PQn,RQn,MQn,YYe,BQn,DQn,NQn,OQn,QYe,FQn,LQn,qQn,JYe,Kfe,WQn,UQn,HQn,jQn,ZYe,zQn,KQn,GQn,XYe,VQn,$Qn,YQn,QQn,eQe,JQn,ZQn,XQn,RYt,UTe,eJn,tJn,rJn,Gfe,tQe,i4,DYt=de(()=>{f();d();$Vt();r$t();B$e();o$t();$8();fYt();pYt();MYt=ea(HKe(),1),GVn=Object.defineProperty,hYt=Object.getOwnPropertySymbols,VVn=Object.prototype.hasOwnProperty,$Vn=Object.prototype.propertyIsEnumerable,mYt=(r,e,t)=>e in r?GVn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,STe=(r,e)=>{for(var t in e||(e={}))VVn.call(e,t)&&mYt(r,t,e[t]);if(hYt)for(var t of hYt(e))$Vn.call(e,t)&&mYt(r,t,e[t]);return r};Sr={setTheme(){let r=document.querySelector(":root"),{themeVariables:e}=fy.state;if(r){let t=STe(STe(STe(STe({},YVn()),QVn()),e),JVn());Object.entries(t).forEach(([n,a])=>r.style.setProperty(n,a))}},globalCss:Nr`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent}button::after{content:'';position:absolute;inset:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--w3m-accent-fill-color);background:var(--w3m-accent-color)}`},ZVn=Nr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-accent-color);border-radius:var(--w3m-icon-button-border-radius);margin-bottom:4px}button path{fill:var(--w3m-accent-fill-color)}`,XVn=Object.defineProperty,e$n=Object.getOwnPropertyDescriptor,PTe=(r,e,t,n)=>{for(var a=n>1?void 0:n?e$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&XVn(e,t,a),a},qre=class extends ar{constructor(){super(...arguments),this.icon=void 0,this.label="",this.onClick=()=>null}render(){return Re``}};qre.styles=[Sr.globalCss,ZVn],PTe([Cr()],qre.prototype,"icon",2),PTe([Cr()],qre.prototype,"label",2),PTe([Cr()],qre.prototype,"onClick",2),qre=PTe([mr("w3m-box-button")],qre);t$n=Nr`button{border-radius:var(--w3m-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--w3m-accent-color)}button path{fill:var(--w3m-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--w3m-color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{background-color:var(--w3m-color-bg-3)}`,r$n=Object.defineProperty,n$n=Object.getOwnPropertyDescriptor,Dfe=(r,e,t,n)=>{for(var a=n>1?void 0:n?n$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&r$n(e,t,a),a},e4=class extends ar{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null}render(){let r={"w3m-icon-left":this.iconLeft!==void 0,"w3m-icon-right":this.iconRight!==void 0};return Re``}};e4.styles=[Sr.globalCss,t$n],Dfe([Cr()],e4.prototype,"disabled",2),Dfe([Cr()],e4.prototype,"iconLeft",2),Dfe([Cr()],e4.prototype,"iconRight",2),Dfe([Cr()],e4.prototype,"onClick",2),e4=Dfe([mr("w3m-button")],e4);a$n=Nr`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--w3m-button-border-radius);color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--w3m-color-bg-3);color:var(--w3m-color-fg-3)}.w3m-secondary{color:var(--w3m-accent-color);background-color:transparent}.w3m-secondary::after{display:none}`,i$n=Object.defineProperty,s$n=Object.getOwnPropertyDescriptor,kYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?s$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&i$n(e,t,a),a},Nfe=class extends ar{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let r={"w3m-secondary":this.variant==="secondary"};return Re``}};Nfe.styles=[Sr.globalCss,a$n],kYe([Cr()],Nfe.prototype,"disabled",2),kYe([Cr()],Nfe.prototype,"variant",2),Nfe=kYe([mr("w3m-button-big")],Nfe);Kr={CROSS_ICON:vn``,WALLET_CONNECT_LOGO:vn``,WALLET_CONNECT_ICON:vn``,WALLET_CONNECT_ICON_COLORED:vn``,BACK_ICON:vn``,COPY_ICON:vn``,RETRY_ICON:vn``,DESKTOP_ICON:vn``,MOBILE_ICON:vn``,ARROW_DOWN_ICON:vn``,ARROW_UP_RIGHT_ICON:vn``,ARROW_RIGHT_ICON:vn``,QRCODE_ICON:vn``,SCAN_ICON:vn``,CHECKMARK_ICON:vn``,HELP_ETH_IMG:vn``,HELP_PAINTING_IMG:vn``,HELP_CHART_IMG:vn``,HELP_KEY_IMG:vn``,HELP_USER_IMG:vn``,HELP_LOCK_IMG:vn``,HELP_COMPAS_IMG:vn``,HELP_NOUN_IMG:vn``,HELP_DAO_IMG:vn``,SEARCH_ICON:vn``,HELP_ICON:vn``,WALLET_ICON:vn``,NETWORK_PLACEHOLDER:vn``,WALLET_PLACEHOLDER:vn``,TOKEN_PLACEHOLDER:vn``,ACCOUNT_COPY:vn``,ACCOUNT_DISCONNECT:vn``},o$n=Nr`.w3m-custom-placeholder{inset:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--w3m-background-border-radius) * .9)}.w3m-custom-placeholder{background-color:var(--w3m-background-color);background-image:var(--w3m-background-image-url);background-position:center;background-size:cover}.w3m-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--w3m-accent-fill-color)}.w3m-action-btn{width:28px;height:28px;border-radius:var(--w3m-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color,.2s ease;background-color:var(--w3m-color-bg-1);box-shadow:0 0 0 1px var(--w3m-color-overlay)}.w3m-action-btn:hover{background-color:var(--w3m-color-bg-2)}.w3m-action-btn svg{display:block;object-position:center}.w3m-action-btn path{fill:var(--w3m-color-fg-1)}.w3m-actions{display:flex}.w3m-actions button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--w3m-color-fg-1)}.w3m-help-active button:first-child path{fill:var(--w3m-color-bg-1)}`,c$n=Object.defineProperty,u$n=Object.getOwnPropertyDescriptor,yYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?u$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&c$n(e,t,a),a},RTe=class extends ar{constructor(){super(),this.isHelp=!1,this.unsubscribeRouter=void 0,this.unsubscribeRouter=gn.subscribe(r=>{this.isHelp=r.view==="Help"})}disconnectedCallback(){var r;(r=this.unsubscribeRouter)==null||r.call(this)}onHelp(){gn.push("Help")}logoTemplate(){var r;let e=(r=fy.state.themeVariables)==null?void 0:r["--w3m-logo-image-url"];return e?Re``:Kr.WALLET_CONNECT_LOGO}render(){let r={"w3m-actions":!0,"w3m-help-active":this.isHelp};return Re`
${this.logoTemplate()}
`}};RTe.styles=[Sr.globalCss,o$n],yYt([pa()],RTe.prototype,"isHelp",2),RTe=yYt([mr("w3m-modal-backcard")],RTe);l$n=Nr`main{padding:20px;padding-top:0;width:100%}`,f$n=Object.defineProperty,d$n=Object.getOwnPropertyDescriptor,p$n=(r,e,t,n)=>{for(var a=n>1?void 0:n?d$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&f$n(e,t,a),a},SYe=class extends ar{render(){return Re`
`}};SYe.styles=[Sr.globalCss,l$n],SYe=p$n([mr("w3m-modal-content")],SYe);h$n=Nr`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--w3m-color-bg-2)}`,m$n=Object.defineProperty,y$n=Object.getOwnPropertyDescriptor,b$n=(r,e,t,n)=>{for(var a=n>1?void 0:n?y$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&m$n(e,t,a),a},PYe=class extends ar{render(){return Re`
`}};PYe.styles=[Sr.globalCss,h$n],PYe=b$n([mr("w3m-modal-footer")],PYe);g$n=Nr`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.w3m-border{border-bottom:1px solid var(--w3m-color-bg-2);margin-bottom:20px}header button{padding:15px 20px;transition:opacity .2s ease}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}path{fill:var(--w3m-accent-color)}`,v$n=Object.defineProperty,w$n=Object.getOwnPropertyDescriptor,Ofe=(r,e,t,n)=>{for(var a=n>1?void 0:n?w$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&v$n(e,t,a),a},t4=class extends ar{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return Re``}actionBtnTemplate(){return Re``}render(){let r={"w3m-border":this.border},e=gn.state.history.length>1,t=this.title?Re`${this.title}`:Re``;return Re`
${e?this.backBtnTemplate():null} ${t} ${this.onAction?this.actionBtnTemplate():null}
`}};t4.styles=[Sr.globalCss,g$n],Ofe([Cr()],t4.prototype,"title",2),Ofe([Cr()],t4.prototype,"onAction",2),Ofe([Cr()],t4.prototype,"actionIcon",2),Ofe([Cr()],t4.prototype,"border",2),t4=Ofe([mr("w3m-modal-header")],t4);x$n={1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",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"},jre=(r=>(r.metaMask="metaMask",r.trust="trust",r.phantom="phantom",r.brave="brave",r.spotEthWallet="spotEthWallet",r.exodus="exodus",r.tokenPocket="tokenPocket",r.frame="frame",r.tally="tally",r.coinbaseWallet="coinbaseWallet",r.core="core",r.bitkeep="bitkeep",r.mathWallet="mathWallet",r.opera="opera",r.tokenary="tokenary",r["1inch"]="1inch",r.kuCoinWallet="kuCoinWallet",r.ledger="ledger",r))(jre||{}),c4={injectedPreset:{metaMask:{name:"MetaMask",icon:"619537c0-2ff3-4c78-9ed8-a05e7567f300",url:"https://metamask.io",isMobile:!0,isInjected:!0},trust:{name:"Trust",icon:"0528ee7e-16d1-4089-21e3-bbfb41933100",url:"https://trustwallet.com",isMobile:!0,isInjected:!0},spotEthWallet:{name:"Spot",icon:"1bf33a89-b049-4a1c-d1f6-4dd7419ee400",url:"https://www.spot-wallet.com",isMobile:!0,isInjected:!0},phantom:{name:"Phantom",icon:"62471a22-33cb-4e65-5b54-c3d9ea24b900",url:"https://phantom.app",isInjected:!0},core:{name:"Core",icon:"35f9c46e-cc57-4aa7-315d-e6ccb2a1d600",url:"https://core.app",isMobile:!0,isInjected:!0},bitkeep:{name:"BitKeep",icon:"3f7075d0-4ab7-4db5-404d-3e4c05e6fe00",url:"https://bitkeep.com",isMobile:!0,isInjected:!0},tokenPocket:{name:"TokenPocket",icon:"f3119826-4ef5-4d31-4789-d4ae5c18e400",url:"https://www.tokenpocket.pro",isMobile:!0,isInjected:!0},mathWallet:{name:"MathWallet",icon:"26a8f588-3231-4411-60ce-5bb6b805a700",url:"https://mathwallet.org",isMobile:!0,isInjected:!0},exodus:{name:"Exodus",icon:"4c16cad4-cac9-4643-6726-c696efaf5200",url:"https://www.exodus.com",isMobile:!0,isDesktop:!0,isInjected:!0},kuCoinWallet:{name:"KuCoin Wallet",icon:"1e47340b-8fd7-4ad6-17e7-b2bd651fae00",url:"https://kuwallet.com",isMobile:!0,isInjected:!0},ledger:{name:"Ledger",icon:"a7f416de-aa03-4c5e-3280-ab49269aef00",url:"https://www.ledger.com",isDesktop:!0},brave:{name:"Brave",icon:"125e828e-9936-4451-a8f2-949c119b7400",url:"https://brave.com/wallet",isInjected:!0},frame:{name:"Frame",icon:"cd492418-ea85-4ef1-aeed-1c9e20b58900",url:"https://frame.sh",isInjected:!0},tally:{name:"Tally",icon:"98d2620c-9fc8-4a1c-31bc-78d59d00a300",url:"https://tallyho.org",isInjected:!0},coinbaseWallet:{name:"Coinbase",icon:"f8068a7f-83d7-4190-1f94-78154a12c600",url:"https://www.coinbase.com/wallet",isInjected:!0},opera:{name:"Opera",icon:"877fa1a4-304d-4d45-ca8e-f76d1a556f00",url:"https://www.opera.com/crypto",isInjected:!0},tokenary:{name:"Tokenary",icon:"5e481041-dc3c-4a81-373a-76bbde91b800",url:"https://tokenary.io",isDesktop:!0,isInjected:!0},["1inch"]:{name:"1inch Wallet",icon:"dce1ee99-403f-44a9-9f94-20de30616500",url:"https://1inch.io/wallet",isMobile:!0}},getInjectedId(r){if(r.toUpperCase()!=="INJECTED"&&r.length)return r;let{ethereum:e,spotEthWallet:t,coinbaseWalletExtension:n}=window;return e?e.isTrust||e.isTrustWallet?"trust":e.isPhantom?"phantom":e.isBraveWallet?"brave":t?"spotEthWallet":e.isExodus?"exodus":e.isTokenPocket?"tokenPocket":e.isFrame?"frame":e.isTally?"tally":n?"coinbaseWallet":e.isAvalanche?"core":e.isBitKeep?"bitkeep":e.isMathWallet?"mathWallet":e.isOpera?"opera":e.isTokenary?"tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch":e.isKuCoinWallet?"kuCoinWallet":e.isMetaMask?"metaMask":"injected":"metaMask"},getInjectedName(r){var e,t;if(r.length&&r.toUpperCase()!=="INJECTED")return r;let n=c4.getInjectedId("");return(t=(e=c4.injectedPreset[n])==null?void 0:e.name)!=null?t:"Injected"}},_$n={ETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},WETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},AVAX:{icon:"30c46e53-e989-45fb-4549-be3bd4eb3b00"},FTM:{icon:"06b26297-fe0c-4733-5d6b-ffa5498aac00"},BNB:{icon:"93564157-2e8e-4ce7-81df-b264dbee9b00"},MATIC:{icon:"41d04d42-da3b-4453-8506-668cc0727900"},OP:{icon:"ab9c186a-c52f-464b-2906-ca59d760a400"},xDAI:{icon:"02b53f6a-e3d4-479e-1cb4-21178987d100"},EVMOS:{icon:"f926ff41-260d-4028-635e-91913fc28e00"},METIS:{icon:"3897a66d-40b9-4833-162f-a2c90531c900"},IOTX:{icon:"34e68754-e536-40da-c153-6ef2e7188a00"}},T$n=Object.defineProperty,bYt=Object.getOwnPropertySymbols,E$n=Object.prototype.hasOwnProperty,I$n=Object.prototype.propertyIsEnumerable,gYt=(r,e,t)=>e in r?T$n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,C$n=(r,e)=>{for(var t in e||(e={}))E$n.call(e,t)&&gYt(r,t,e[t]);if(bYt)for(var t of bYt(e))I$n.call(e,t)&&gYt(r,t,e[t]);return r},pt={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET:"W3M_RECENT_WALLET",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",rejectStandaloneButtonComponent(){let{isStandalone:r}=nr.state;if(r)throw new Error("Web3Modal button components are not available in standalone mode.")},getShadowRootElement(r,e){let t=r.renderRoot.querySelector(e);if(!t)throw new Error(`${e} not found`);return t},getWalletId(r){return c4.getInjectedId(r)},getWalletIcon(r){var e,t;let n=(e=c4.injectedPreset[r])==null?void 0:e.icon,{projectId:a,walletImages:i}=nc.state;return(t=i?.[r])!=null?t:a&&n?Sc.getImageUrl(n):""},getWalletName(r,e=!1){let t=c4.getInjectedName(r);return e?t.split(" ")[0]:t},getChainIcon(r){var e;let t=x$n[r],{projectId:n,chainImages:a}=nc.state;return(e=a?.[r])!=null?e:n&&t?Sc.getImageUrl(t):""},getTokenIcon(r){var e,t;let n=(e=_$n[r])==null?void 0:e.icon,{projectId:a,tokenImages:i}=nc.state;return(t=i?.[r])!=null?t:a&&n?Sc.getImageUrl(n):""},isMobileAnimation(){return window.innerWidth<=pt.MOBILE_BREAKPOINT},async preloadImage(r){let e=new Promise((t,n)=>{let a=new Image;a.onload=t,a.onerror=n,a.src=r});return Promise.race([e,pn.wait(3e3)])},getErrorMessage(r){return r instanceof Error?r.message:"Unknown Error"},debounce(r,e=500){let t;return(...n)=>{function a(){r(...n)}t&&clearTimeout(t),t=setTimeout(a,e)}},async handleMobileLinking(r){pn.removeWalletConnectDeepLink();let{standaloneUri:e,selectedChain:t}=nr.state,{links:n,name:a}=r;function i(s){let o="";n!=null&&n.universal?o=pn.formatUniversalUrl(n.universal,s,a):n!=null&&n.native&&(o=pn.formatNativeUrl(n.native,s,a)),pn.openHref(o,"_self")}e?(pt.setRecentWallet(r),i(e)):(await Gs.client().connectWalletConnect(s=>{i(s)},t?.id),pt.setRecentWallet(r),Pc.close())},async handleAndroidLinking(){pn.removeWalletConnectDeepLink();let{standaloneUri:r,selectedChain:e}=nr.state;r?pn.openHref(r,"_self"):(await Gs.client().connectWalletConnect(t=>{pn.setWalletConnectAndroidDeepLink(t),pn.openHref(t,"_self")},e?.id),Pc.close())},async handleUriCopy(){let{standaloneUri:r}=nr.state;if(r)await navigator.clipboard.writeText(r);else{let e=Gs.client().walletConnectUri;await navigator.clipboard.writeText(e)}du.openToast("Link copied","success")},async handleConnectorConnection(r,e){try{let{selectedChain:t}=nr.state;await Gs.client().connectConnector(r,t?.id),Pc.close()}catch(t){console.error(t),e?e():du.openToast(pt.getErrorMessage(t),"error")}},getCustomWallets(){var r;let{desktopWallets:e,mobileWallets:t}=nc.state;return(r=pn.isMobile()?t:e)!=null?r:[]},getCustomImageUrls(){let{chainImages:r,walletImages:e}=nc.state,t=Object.values(r??{}),n=Object.values(e??{});return Object.values([...t,...n])},getConnectorImageUrls(){return Gs.client().getConnectors().map(({id:r})=>c4.getInjectedId(r)).map(r=>pt.getWalletIcon(r))},truncate(r,e=8){return r.length<=e?r:`${r.substring(0,4)}...${r.substring(r.length-4)}`},generateAvatarColors(r){var e;let t=(e=r.match(/.{1,7}/g))==null?void 0:e.splice(0,5),n=[];t?.forEach(i=>{let s=0;for(let c=0;c>c*8&255;o[c]=u}n.push(`rgb(${o[0]}, ${o[1]}, ${o[2]})`)});let a=document.querySelector(":root");if(a){let i={"--w3m-color-av-1":n[0],"--w3m-color-av-2":n[1],"--w3m-color-av-3":n[2],"--w3m-color-av-4":n[3],"--w3m-color-av-5":n[4]};Object.entries(i).forEach(([s,o])=>a.style.setProperty(s,o))}},setRecentWallet(r){let{walletConnectVersion:e}=nr.state;localStorage.setItem(pt.W3M_RECENT_WALLET,JSON.stringify({[e]:r}))},getRecentWallet(){let r=localStorage.getItem(pt.W3M_RECENT_WALLET);if(r){let{walletConnectVersion:e}=nr.state,t=JSON.parse(r);if(t[e])return t[e]}},getExtensionWallets(){let r=[];for(let[e,t]of Object.entries(c4.injectedPreset))t!=null&&t.isInjected&&!t.isDesktop&&r.push(C$n({id:e},t));return r},caseSafeIncludes(r,e){return r.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){pn.openHref(pt.EXPLORER_WALLET_URL,"_blank")}},A$n=Nr`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`,k$n=Object.defineProperty,S$n=Object.getOwnPropertyDescriptor,RYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?S$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&k$n(e,t,a),a},Ffe=class extends ar{constructor(){super(),this.view=gn.state.view,this.prevView=gn.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=gn.subscribe(r=>{this.view!==r.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([r])=>{let e=`${r.contentRect.height}px`;this.oldHeight!=="0px"&&(my(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),my(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.03})),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var r,e;(r=this.unsubscribe)==null||r.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return pt.getShadowRootElement(this,".w3m-router")}get contentEl(){return pt.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return Re``;case"SelectNetwork":return Re``;case"InjectedConnector":return Re``;case"InstallConnector":return Re``;case"GetWallet":return Re``;case"DesktopConnector":return Re``;case"WalletExplorer":return Re``;case"Qrcode":return Re``;case"Help":return Re``;case"Account":return Re``;case"SwitchNetwork":return Re``;case"Connectors":return Re``;default:return Re`
Not Found
`}}async onChangeRoute(){await my(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15}).finished,this.view=gn.state.view}render(){return Re`
${this.viewTemplate()}
`}};Ffe.styles=[Sr.globalCss,A$n],RYe([pa()],Ffe.prototype,"view",2),RYe([pa()],Ffe.prototype,"prevView",2),Ffe=RYe([mr("w3m-modal-router")],Ffe);P$n=Nr`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:10px 15px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--w3m-notification-border-radius);border:1px solid var(--w3m-color-overlay);background-color:var(--w3m-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--w3m-color-bg-3)}}.w3m-success path{fill:var(--w3m-accent-color)}.w3m-error path{fill:var(--w3m-error-color)}`,R$n=Object.defineProperty,M$n=Object.getOwnPropertyDescriptor,vYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?M$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&R$n(e,t,a),a},MTe=class extends ar{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=du.subscribe(r=>{r.open?(this.open=!0,this.timeout=setTimeout(()=>du.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),clearTimeout(this.timeout),du.closeToast()}render(){let{message:r,variant:e}=du.state,t={"w3m-success":e==="success","w3m-error":e==="error"};return this.open?Re`
${e==="success"?Kr.CHECKMARK_ICON:null} ${e==="error"?Kr.CROSS_ICON:null}${r}
`:null}};MTe.styles=[Sr.globalCss,P$n],vYt([pa()],MTe.prototype,"open",2),MTe=vYt([mr("w3m-modal-toast")],MTe);B$n=Nr`button{padding:5px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:all .2s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}button:hover{background-color:var(--w3m-color-overlay)}`,D$n=Object.defineProperty,N$n=Object.getOwnPropertyDescriptor,BTe=(r,e,t,n)=>{for(var a=n>1?void 0:n?N$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&D$n(e,t,a),a},Wre=class extends ar{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId=""}render(){return Re``}};Wre.styles=[Sr.globalCss,B$n],BTe([Cr()],Wre.prototype,"onClick",2),BTe([Cr()],Wre.prototype,"name",2),BTe([Cr()],Wre.prototype,"chainId",2),Wre=BTe([mr("w3m-network-button")],Wre);O$n=Nr`div{width:inherit;height:inherit}.polygon-stroke{stroke:var(--w3m-color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--w3m-color-bg-3)}#network-placeholder-dash{stroke:var(--w3m-color-overlay)}`,F$n=Object.defineProperty,L$n=Object.getOwnPropertyDescriptor,wYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?L$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&F$n(e,t,a),a},DTe=class extends ar{constructor(){super(...arguments),this.chainId=""}render(){let r=pt.getChainIcon(this.chainId);return r?Re`
`:Re`${Kr.NETWORK_PLACEHOLDER}`}};DTe.styles=[Sr.globalCss,O$n],wYt([Cr()],DTe.prototype,"chainId",2),DTe=wYt([mr("w3m-network-image")],DTe);q$n=.1,xYt=2.5,l2=7;U$n={generate(r,e,t,n){let a=n==="light"?"#141414":"#fff",i=n==="light"?"#fff":"#141414",s=[],o=W$n(r,"Q"),c=e/o.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:C,y:P})=>{let A=(o.length-l2)*c*C,B=(o.length-l2)*c*P,F=.32;for(let W=0;W`)}});let l=Math.floor((t+25)/c),p=o.length/2-l/2,h=o.length/2+l/2-1,m=[];o.forEach((C,P)=>{C.forEach((A,B)=>{if(o[P][B]&&!(Po.length-(l2+1)&&Bo.length-(l2+1))&&!(P>p&&Pp&&B{y[C]?y[C].push(P):y[C]=[P]}),Object.entries(y).map(([C,P])=>{let A=P.filter(B=>P.every(F=>!MYe(B,F,c)));return[Number(C),A]}).forEach(([C,P])=>{P.forEach(A=>{s.push(vn``)})}),Object.entries(y).filter(([C,P])=>P.length>1).map(([C,P])=>{let A=P.filter(B=>P.some(F=>MYe(B,F,c)));return[Number(C),A]}).map(([C,P])=>{P.sort((B,F)=>BW.some(K=>MYe(B,K,c)));F?F.push(B):A.push([B])}return[C,A.map(B=>[B[0],B[B.length-1]])]}).forEach(([C,P])=>{P.forEach(([A,B])=>{s.push(vn``)})}),s}},H$n=Nr`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;width:100%;aspect-ratio:1/1;animation:fadeIn ease .2s}svg:first-child,w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:15px}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--w3m-accent-color)}svg:first-child path:last-child{stroke:var(--w3m-color-overlay)}`,j$n=Object.defineProperty,z$n=Object.getOwnPropertyDescriptor,Lfe=(r,e,t,n)=>{for(var a=n>1?void 0:n?z$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&j$n(e,t,a),a},r4=class extends ar{constructor(){super(...arguments),this.uri="",this.size=0,this.logoSrc="",this.walletId=""}svgTemplate(){var r;let e=(r=fy.state.themeMode)!=null?r:"light";return vn`${U$n.generate(this.uri,this.size,this.size/4,e)}`}render(){return Re`
${this.walletId||this.logoSrc?Re``:Kr.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};r4.styles=[Sr.globalCss,H$n],Lfe([Cr()],r4.prototype,"uri",2),Lfe([Cr({type:Number})],r4.prototype,"size",2),Lfe([Cr()],r4.prototype,"logoSrc",2),Lfe([Cr()],r4.prototype,"walletId",2),r4=Lfe([mr("w3m-qrcode")],r4);K$n=Nr`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--w3m-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:transparent;position:absolute;background-color:var(--w3m-color-bg-3);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}input::placeholder{color:transparent}svg{margin-right:4px}.w3m-placeholder{top:0;left:50%;transform:translateX(-50%);transition:.2s all ease;pointer-events:none;display:flex;align-items:center;justify-content:center;height:100%;width:fit-content;position:relative}input:focus-within+.w3m-placeholder,input:not(:placeholder-shown)+.w3m-placeholder{transform:translateX(10px);left:0}w3m-text{opacity:1;transition:.2s opacity ease}input:focus-within+.w3m-placeholder w3m-text,input:not(:placeholder-shown)+.w3m-placeholder w3m-text{opacity:0}input:focus-within,input:not(:placeholder-shown){color:var(--w3m-color-fg-1)}input:focus-within{box-shadow:inset 0 0 0 1px var(--w3m-accent-color)}path{fill:var(--w3m-color-fg-2)}`,G$n=Object.defineProperty,V$n=Object.getOwnPropertyDescriptor,_Yt=(r,e,t,n)=>{for(var a=n>1?void 0:n?V$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&G$n(e,t,a),a},NTe=class extends ar{constructor(){super(...arguments),this.onChange=()=>null}render(){let r=pn.isMobile()?"Search mobile wallets":"Search desktop wallets";return Re`
${Kr.SEARCH_ICON}${r}
`}};NTe.styles=[Sr.globalCss,K$n],_Yt([Cr()],NTe.prototype,"onChange",2),NTe=_Yt([mr("w3m-search-input")],NTe);$$n=Nr`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--w3m-accent-color)}`,Y$n=Object.defineProperty,Q$n=Object.getOwnPropertyDescriptor,J$n=(r,e,t,n)=>{for(var a=n>1?void 0:n?Q$n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Y$n(e,t,a),a},BYe=class extends ar{render(){return Re``}};BYe.styles=[Sr.globalCss,$$n],BYe=J$n([mr("w3m-spinner")],BYe);Z$n=Nr`span{font-style:normal;font-family:var(--w3m-font-family);font-feature-settings:'tnum' on,'lnum' on,'case' on}.w3m-xsmall-bold{font-family:var(--w3m-text-xsmall-bold-font-family);font-weight:var(--w3m-text-xsmall-bold-weight);font-size:var(--w3m-text-xsmall-bold-size);line-height:var(--w3m-text-xsmall-bold-line-height);letter-spacing:var(--w3m-text-xsmall-bold-letter-spacing);text-transform:var(--w3m-text-xsmall-bold-text-transform)}.w3m-xsmall-regular{font-family:var(--w3m-text-xsmall-regular-font-family);font-weight:var(--w3m-text-xsmall-regular-weight);font-size:var(--w3m-text-xsmall-regular-size);line-height:var(--w3m-text-xsmall-regular-line-height);letter-spacing:var(--w3m-text-xsmall-regular-letter-spacing);text-transform:var(--w3m-text-xsmall-regular-text-transform)}.w3m-small-thin{font-family:var(--w3m-text-small-thin-font-family);font-weight:var(--w3m-text-small-thin-weight);font-size:var(--w3m-text-small-thin-size);line-height:var(--w3m-text-small-thin-line-height);letter-spacing:var(--w3m-text-small-thin-letter-spacing);text-transform:var(--w3m-text-small-thin-text-transform)}.w3m-small-regular{font-family:var(--w3m-text-small-regular-font-family);font-weight:var(--w3m-text-small-regular-weight);font-size:var(--w3m-text-small-regular-size);line-height:var(--w3m-text-small-regular-line-height);letter-spacing:var(--w3m-text-small-regular-letter-spacing);text-transform:var(--w3m-text-small-regular-text-transform)}.w3m-medium-regular{font-family:var(--w3m-text-medium-regular-font-family);font-weight:var(--w3m-text-medium-regular-weight);font-size:var(--w3m-text-medium-regular-size);line-height:var(--w3m-text-medium-regular-line-height);letter-spacing:var(--w3m-text-medium-regular-letter-spacing);text-transform:var(--w3m-text-medium-regular-text-transform)}.w3m-big-bold{font-family:var(--w3m-text-big-bold-font-family);font-weight:var(--w3m-text-big-bold-weight);font-size:var(--w3m-text-big-bold-size);line-height:var(--w3m-text-big-bold-line-height);letter-spacing:var(--w3m-text-big-bold-letter-spacing);text-transform:var(--w3m-text-big-bold-text-transform)}:host(*){color:var(--w3m-color-fg-1)}.w3m-color-primary{color:var(--w3m-color-fg-1)}.w3m-color-secondary{color:var(--w3m-color-fg-2)}.w3m-color-tertiary{color:var(--w3m-color-fg-3)}.w3m-color-inverse{color:var(--w3m-accent-fill-color)}.w3m-color-accnt{color:var(--w3m-accent-color)}.w3m-color-error{color:var(--w3m-error-color)}`,X$n=Object.defineProperty,eYn=Object.getOwnPropertyDescriptor,DYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?eYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&X$n(e,t,a),a},qfe=class extends ar{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let r={"w3m-big-bold":this.variant==="big-bold","w3m-medium-regular":this.variant==="medium-regular","w3m-small-regular":this.variant==="small-regular","w3m-small-thin":this.variant==="small-thin","w3m-xsmall-regular":this.variant==="xsmall-regular","w3m-xsmall-bold":this.variant==="xsmall-bold","w3m-color-primary":this.color==="primary","w3m-color-secondary":this.color==="secondary","w3m-color-tertiary":this.color==="tertiary","w3m-color-inverse":this.color==="inverse","w3m-color-accnt":this.color==="accent","w3m-color-error":this.color==="error"};return Re``}};qfe.styles=[Sr.globalCss,Z$n],DYe([Cr()],qfe.prototype,"variant",2),DYe([Cr()],qfe.prototype,"color",2),qfe=DYe([mr("w3m-text")],qfe);tYn=Nr`div{overflow:hidden;position:relative;border-radius:50%}div::after{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}svg{width:100%;height:100%}#token-placeholder-fill{fill:var(--w3m-color-bg-3)}#token-placeholder-dash{stroke:var(--w3m-color-overlay)}`,rYn=Object.defineProperty,nYn=Object.getOwnPropertyDescriptor,TYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?nYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&rYn(e,t,a),a},OTe=class extends ar{constructor(){super(...arguments),this.symbol=void 0}render(){var r;let e=pt.getTokenIcon((r=this.symbol)!=null?r:"");return e?Re`
${this.id}
`:Kr.TOKEN_PLACEHOLDER}};OTe.styles=[Sr.globalCss,tYn],TYt([Cr()],OTe.prototype,"symbol",2),OTe=TYt([mr("w3m-token-image")],OTe);aYn=Nr`button{transition:all .2s ease;width:100%;height:100%;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:hover{background-color:var(--w3m-color-overlay)}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--w3m-wallet-icon-border-radius);margin-bottom:5px}.w3m-sublabel{margin-top:2px}`,iYn=Object.defineProperty,sYn=Object.getOwnPropertyDescriptor,Z6=(r,e,t,n)=>{for(var a=n>1?void 0:n?sYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&iYn(e,t,a),a},yy=class extends ar{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.src=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?Re`RECENT`:this.installed?Re`INSTALLED`:null}render(){var r;return Re``}};yy.styles=[Sr.globalCss,aYn],Z6([Cr()],yy.prototype,"onClick",2),Z6([Cr()],yy.prototype,"name",2),Z6([Cr()],yy.prototype,"walletId",2),Z6([Cr()],yy.prototype,"label",2),Z6([Cr()],yy.prototype,"src",2),Z6([Cr()],yy.prototype,"installed",2),Z6([Cr()],yy.prototype,"recent",2),yy=Z6([mr("w3m-wallet-button")],yy);oYn=Nr`div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,cYn=Object.defineProperty,uYn=Object.getOwnPropertyDescriptor,NYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?uYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&cYn(e,t,a),a},Wfe=class extends ar{constructor(){super(...arguments),this.walletId=void 0,this.src=void 0}render(){var r;let e=pt.getWalletId((r=this.walletId)!=null?r:""),t=pt.getWalletId(e),n=this.src?this.src:pt.getWalletIcon(t);return Re`${n.length?Re`
${this.id}
`:Kr.WALLET_PLACEHOLDER}`}};Wfe.styles=[Sr.globalCss,oYn],NYe([Cr()],Wfe.prototype,"walletId",2),NYe([Cr()],Wfe.prototype,"src",2),Wfe=NYe([mr("w3m-wallet-image")],Wfe);lYn=Object.defineProperty,fYn=Object.getOwnPropertyDescriptor,dYn=(r,e,t,n)=>{for(var a=n>1?void 0:n?fYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&lYn(e,t,a),a},EYt=class extends ar{constructor(){super(),this.unwatchAccount=void 0,Vi.getAccount(),this.fetchProfile(),this.fetchBalance(),this.unwatchAccount=Gs.client().watchAccount(r=>{let{address:e}=Vi.state;r.address!==e&&(this.fetchProfile(r.address),this.fetchBalance(r.address)),Vi.setAddress(r.address),Vi.setIsConnected(r.isConnected)})}disconnectedCallback(){var r;(r=this.unwatchAccount)==null||r.call(this)}async fetchProfile(r){var e;let t=(e=nr.state.chains)==null?void 0:e.find(n=>n.id===1);if(nc.state.enableAccountView&&t)try{await Vi.fetchProfile(pt.preloadImage,r)}catch(n){console.error(n),du.openToast(pt.getErrorMessage(n),"error")}}async fetchBalance(r){if(nc.state.enableAccountView)try{await Vi.fetchBalance(r)}catch(e){console.error(e),du.openToast(pt.getErrorMessage(e),"error")}}};EYt=dYn([mr("w3m-account-context")],EYt);pYn=Object.defineProperty,hYn=Object.getOwnPropertyDescriptor,IYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?hYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&pYn(e,t,a),a},OYe=class extends ar{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(r){try{r!=null&&r.length&&await Promise.all(r.map(async e=>pt.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images")}}async preloadListings(){var r;if(nc.state.enableExplorer){let{standaloneChains:e,chains:t,walletConnectVersion:n}=nr.state,a=e?.join(",");await Promise.all([Sc.getPreviewWallets({page:1,entries:10,chains:a,device:pn.isMobile()?"mobile":"desktop",version:n}),Sc.getRecomendedWallets()]),nr.setIsDataLoaded(!0);let{previewWallets:i,recomendedWallets:s}=Sc.state,o=(r=t?.map(u=>pt.getChainIcon(u.id)))!=null?r:[],c=[...i,...s].map(u=>u.image_url.lg);await this.loadImages([...o,...c])}else nr.setIsDataLoaded(!0)}async preloadCustomImages(){let r=pt.getCustomImageUrls();await this.loadImages(r)}async preloadConnectorImages(){if(!nr.state.isStandalone){let r=pt.getConnectorImageUrls();await this.loadImages(r)}}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages(),this.preloadConnectorImages()]))}catch(r){console.error(r),du.openToast("Failed preloading","error")}}};IYt([pa()],OYe.prototype,"preload",2),OYe=IYt([mr("w3m-explorer-context")],OYe);mYn=Object.defineProperty,yYn=Object.getOwnPropertyDescriptor,CYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?yYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&mYn(e,t,a),a},FYe=class extends ar{constructor(){super(),this.activeChainId=void 0,this.unwatchNetwork=void 0;let r=nr.getSelectedChain();this.activeChainId=r?.id,this.unwatchNetwork=Gs.client().watchNetwork(e=>{let t=e.chain;t&&this.activeChainId!==t.id&&(nr.setSelectedChain(t),this.activeChainId=t.id,Vi.resetBalance(),this.fetchBalance())})}disconnectedCallback(){var r;(r=this.unwatchNetwork)==null||r.call(this)}async fetchBalance(){if(nc.state.enableAccountView)try{await Vi.fetchBalance()}catch(r){console.error(r),du.openToast(pt.getErrorMessage(r),"error")}}};CYt([pa()],FYe.prototype,"activeChainId",2),FYe=CYt([mr("w3m-network-context")],FYe);bYn=Object.defineProperty,gYn=Object.getOwnPropertyDescriptor,vYn=(r,e,t,n)=>{for(var a=n>1?void 0:n?gYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&bYn(e,t,a),a},AYt=class extends ar{constructor(){super(),this.unsubscribeTheme=void 0,Sr.setTheme(),this.unsubscribeTheme=fy.subscribe(Sr.setTheme)}disconnectedCallback(){var r;(r=this.unsubscribeTheme)==null||r.call(this)}};AYt=vYn([mr("w3m-theme-context")],AYt);wYn=Nr`:host{all:initial}div{display:flex;align-items:center;background-color:var(--w3m-color-overlay);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);border-radius:var(--w3m-button-border-radius);padding:4px 4px 4px 8px}div button{border-radius:var(--w3m-secondary-button-border-radius);padding:4px 8px;padding-left:4px;height:auto;margin-left:10px;color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}.w3m-no-avatar{padding-left:8px}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}w3m-avatar{margin-right:6px}w3m-button-big w3m-avatar{margin-left:-5px}`,xYn=Object.defineProperty,_Yn=Object.getOwnPropertyDescriptor,LYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?_Yn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&xYn(e,t,a),a},Hre=class extends ar{constructor(){super(),this.balance="hide",this.avatar="show",pt.rejectStandaloneButtonComponent()}onOpen(){let{isStandalone:r}=nr.state;r||Pc.open({route:"Account"})}accountTemplate(){let r=this.avatar==="show";return Re`${r?Re``:null}`}render(){let r=this.balance==="show",e={"w3m-no-avatar":this.avatar==="hide"};return r?Re`
`:Re`${this.accountTemplate()}`}};Hre.styles=[Sr.globalCss,wYn],LYe([Cr()],Hre.prototype,"balance",2),LYe([Cr()],Hre.prototype,"avatar",2),Hre=LYe([mr("w3m-account-button")],Hre);TYn=Nr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`,EYn=Object.defineProperty,IYn=Object.getOwnPropertyDescriptor,qYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?IYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&EYn(e,t,a),a},Ufe=class extends ar{constructor(){super(),this.chainId="",this.label="",this.unsubscribeNetwork=void 0;let{selectedChain:r}=nr.state;this.chainId=r?.id.toString(),this.label=r?.name,this.unsubscribeNetwork=nr.subscribe(({selectedChain:e})=>{this.chainId=e?.id.toString(),this.label=e?.name})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onClick(){gn.push("SelectNetwork")}render(){let{chains:r,selectedChain:e}=nr.state,t=r?.map(i=>i.id),n=e&&t?.includes(e.id),a=r&&r.length<=1&&n;return Re``}};Ufe.styles=[Sr.globalCss,TYn],qYe([pa()],Ufe.prototype,"chainId",2),qYe([pa()],Ufe.prototype,"label",2),Ufe=qYe([mr("w3m-account-network-button")],Ufe);CYn=Nr`@keyframes slide{0%{background-position:0 0}100%{background-position:200px 0}}w3m-text{padding:1px 0}.w3m-loading{background:linear-gradient(270deg,var(--w3m-color-fg-1) 36.33%,var(--w3m-color-fg-3) 42.07%,var(--w3m-color-fg-1) 83.3%);background-size:200px 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation-name:slide;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}`,AYn=Object.defineProperty,kYn=Object.getOwnPropertyDescriptor,Hfe=(r,e,t,n)=>{for(var a=n>1?void 0:n?kYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&AYn(e,t,a),a},n4=class extends ar{constructor(){super(),this.address=void 0,this.name=void 0,this.loading=!0,this.variant="button",this.unsubscribeAccount=void 0,this.address=Vi.state.address,this.name=Vi.state.profileName,this.loading=!!Vi.state.profileLoading,this.unsubscribeAccount=Vi.subscribe(({address:r,profileName:e,profileLoading:t})=>{this.address=r,this.name=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){var r;let e=this.variant==="button",t={"w3m-loading":this.loading};return Re`${this.name?this.name:pt.truncate((r=this.address)!=null?r:"")}`}};n4.styles=[Sr.globalCss,CYn],Hfe([pa()],n4.prototype,"address",2),Hfe([pa()],n4.prototype,"name",2),Hfe([pa()],n4.prototype,"loading",2),Hfe([Cr()],n4.prototype,"variant",2),n4=Hfe([mr("w3m-address-text")],n4);Nl={allowedExplorerListings(r){let{explorerAllowList:e,explorerDenyList:t}=nc.state,n=[...r];return e&&(n=n.filter(a=>e.includes(a.id))),t&&(n=n.filter(a=>!t.includes(a.id))),n},walletsWithInjected(r){let e=[...r??[]];if(window.ethereum){let t=pt.getWalletName("");e=e.filter(({name:n})=>!pt.caseSafeIncludes(n,t))}return e},connectorWallets(){let{isStandalone:r}=nr.state;if(r)return[];let e=Gs.client().getConnectors();return!window.ethereum&&pn.isMobile()&&(e=e.filter(({id:t})=>t!=="injected"&&t!==jre.metaMask)),e},walletTemplatesWithRecent(r,e){let t=[...r];if(e){let n=pt.getRecentWallet();t=t.filter(a=>!a.values.includes(n?.name)),t.splice(1,0,e)}return t},deduplicateExplorerListingsFromConnectors(r){let{isStandalone:e}=nr.state;if(e)return r;let t=Gs.client().getConnectors().map(({name:n})=>n.toUpperCase());return r.filter(({name:n})=>!t.includes(n.toUpperCase()))}},SYn=Nr`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 10),0,0)}}.w3m-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px}.w3m-slider::after,.w3m-slider::before{content:'';height:100%;width:50px;z-index:2;position:absolute;background:linear-gradient(to right,var(--w3m-color-bg-1) 0,transparent 100%);top:0}.w3m-slider::before{left:0}.w3m-slider::after{right:0;transform:rotateZ(180deg)}.w3m-track{display:flex;width:calc(70px * 20);animation:scroll 20s linear infinite}.w3m-action{padding:30px 0 10px 0;display:flex;justify-content:center;align-items:center;flex-direction:column}.w3m-action w3m-button-big:last-child{margin-top:10px}w3m-wallet-image{width:60px;height:60px;margin:0 5px;box-shadow:0 2px 4px -2px rgba(0,0,0,.12),0 4px 4px -2px rgba(0,0,0,.08);border-radius:15px}w3m-button-big{margin:0 5px}`,PYn=Object.defineProperty,RYn=Object.getOwnPropertyDescriptor,MYn=(r,e,t,n)=>{for(var a=n>1?void 0:n?RYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&PYn(e,t,a),a},WYe=class extends ar{onGoToQrcode(){gn.push("Qrcode")}onGoToConnectors(){gn.push("Connectors")}onGoToGetWallet(){gn.push("GetWallet")}getConnectors(){let r=Nl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==jre.metaMask)),r}render(){let{previewWallets:r}=Sc.state,e=r.length,t=[...r,...r],n=this.getConnectors().length>0;return Re`${e?Re`
${t.map(({image_url:a})=>Re``)}
`:null}
${n?"WalletConnect":"Select Wallet"}${n?Re`Other`:null}
I don’t have a wallet
`}};WYe.styles=[Sr.globalCss,SYn],WYe=MYn([mr("w3m-android-wallet-selection")],WYe);BYn=Nr`@keyframes slide{0%{transform:translateX(-50px)}100%{transform:translateX(200px)}}.w3m-placeholder,img{border-radius:50%;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);display:block;position:relative;overflow:hidden!important;background-color:var(--w3m-color-av-1);background-image:radial-gradient(at 66% 77%,var(--w3m-color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--w3m-color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--w3m-color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--w3m-color-av-5) 0,transparent 50%);transform:translateZ(0)}.w3m-loader{width:50px;height:100%;background:linear-gradient(270deg,transparent 0,rgba(255,255,255,.4) 30%,transparent 100%);animation-name:slide;animation-duration:1.5s;transform:translateX(-50px);animation-iteration-count:infinite;animation-timing-function:linear;animation-delay:.55s}.w3m-small{width:24px;height:24px}.w3m-medium{width:60px;height:60px}`,DYn=Object.defineProperty,NYn=Object.getOwnPropertyDescriptor,jfe=(r,e,t,n)=>{for(var a=n>1?void 0:n?NYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&DYn(e,t,a),a},a4=class extends ar{constructor(){super(),this.address=void 0,this.avatar=void 0,this.loading=!0,this.size="small",this.unsubscribeAccount=void 0,this.address=Vi.state.address,this.avatar=Vi.state.profileAvatar,this.loading=!!Vi.state.profileLoading,this.unsubscribeAccount=Vi.subscribe(({address:r,profileAvatar:e,profileLoading:t})=>{this.address=r,this.avatar=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r={"w3m-placeholder":!0,"w3m-small":this.size==="small","w3m-medium":this.size==="medium"};return this.avatar?Re``:this.address?(pt.generateAvatarColors(this.address),Re`
${this.loading?Re`
`:null}
`):null}};a4.styles=[Sr.globalCss,BYn],jfe([pa()],a4.prototype,"address",2),jfe([pa()],a4.prototype,"avatar",2),jfe([pa()],a4.prototype,"loading",2),jfe([Cr()],a4.prototype,"size",2),a4=jfe([mr("w3m-avatar")],a4);OYn=Nr`div{display:flex;align-items:center}w3m-token-image{width:28px;height:28px;margin-right:6px}`,FYn=Object.defineProperty,LYn=Object.getOwnPropertyDescriptor,UYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?LYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&FYn(e,t,a),a},zfe=class extends ar{constructor(){var r,e;super(),this.symbol=void 0,this.amount=void 0,this.unsubscribeAccount=void 0,this.symbol=(r=Vi.state.balance)==null?void 0:r.symbol,this.amount=(e=Vi.state.balance)==null?void 0:e.amount,this.unsubscribeAccount=Vi.subscribe(({balance:t})=>{this.symbol=t?.symbol,this.amount=t?.amount})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r="_._";return this.amount==="0.0"&&(r=0),this.amount&&this.amount.length>6&&(r=parseFloat(this.amount).toFixed(3)),Re`
${r} ${this.symbol}
`}};zfe.styles=[Sr.globalCss,OYn],UYe([pa()],zfe.prototype,"symbol",2),UYe([pa()],zfe.prototype,"amount",2),zfe=UYe([mr("w3m-balance")],zfe);qYn=Nr`:host{all:initial}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--w3m-accent-fill-color)}button:disabled svg path{fill:var(--w3m-color-fg-3)}w3m-spinner{margin:0 10px 0 0}`,WYn=Object.defineProperty,UYn=Object.getOwnPropertyDescriptor,FTe=(r,e,t,n)=>{for(var a=n>1?void 0:n?UYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&WYn(e,t,a),a},s4=class extends ar{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,pt.rejectStandaloneButtonComponent(),this.modalUnsub=Pc.subscribe(r=>{r.open&&(this.loading=!0),r.open||(this.loading=!1)})}disconnectedCallback(){var r;(r=this.modalUnsub)==null||r.call(this)}iconTemplate(){return this.icon==="show"?Kr.WALLET_CONNECT_ICON:null}onClick(){Vi.state.isConnected?this.onDisconnect():this.onConnect()}onConnect(){this.loading=!0;let{enableNetworkView:r}=nc.state,{chains:e,selectedChain:t}=nr.state,n=e?.length&&e.length>1;r||n&&!t?Pc.open({route:"SelectNetwork"}):Pc.open({route:"ConnectWallet"})}onDisconnect(){Gs.client().disconnect(),Vi.resetAccount()}render(){return Re`${this.loading?Re`Connecting...`:Re`${this.iconTemplate()}${this.label}`}`}};s4.styles=[Sr.globalCss,qYn],FTe([pa()],s4.prototype,"loading",2),FTe([Cr()],s4.prototype,"label",2),FTe([Cr()],s4.prototype,"icon",2),s4=FTe([mr("w3m-connect-button")],s4);HYn=Object.defineProperty,jYn=Object.getOwnPropertyDescriptor,Ure=(r,e,t,n)=>{for(var a=n>1?void 0:n?jYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&HYn(e,t,a),a},X6=class extends ar{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.avatar="show",this.balance="hide",this.unsubscribeAccount=void 0,pt.rejectStandaloneButtonComponent(),this.isConnected=Vi.state.isConnected,this.unsubscribeAccount=Vi.subscribe(({isConnected:r})=>{this.isConnected=r})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let{enableAccountView:r}=nc.state,e=Dl(this.balance),t=Dl(this.label),n=Dl(this.icon),a=Dl(this.avatar);return this.isConnected&&r?Re``:Re``}};Ure([pa()],X6.prototype,"isConnected",2),Ure([Cr()],X6.prototype,"label",2),Ure([Cr()],X6.prototype,"icon",2),Ure([Cr()],X6.prototype,"avatar",2),Ure([Cr()],X6.prototype,"balance",2),X6=Ure([mr("w3m-core-button")],X6);zYn=Nr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--w3m-color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--w3m-accent-color)}`,KYn=Object.defineProperty,GYn=Object.getOwnPropertyDescriptor,VYn=(r,e,t,n)=>{for(var a=n>1?void 0:n?GYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&KYn(e,t,a),a},HYe=class extends ar{onDesktopWallet(r){gn.push("DesktopConnector",{DesktopConnector:r})}onInjectedWallet(){gn.push("InjectedConnector")}onInstallConnector(){gn.push("InstallConnector",{InstallConnector:{id:"metaMask",name:"MetaMask",isMobile:!0,url:"https://metamask.io"}})}async onConnectorWallet(r){window.ethereum?r==="injected"||r===jre.metaMask?this.onInjectedWallet():await pt.handleConnectorConnection(r):this.onInstallConnector()}desktopWalletsTemplate(){let{desktopWallets:r}=nc.state;return r?.map(({id:e,name:t,links:{universal:n,native:a}})=>Re``)}previewWalletsTemplate(){let r=Nl.allowedExplorerListings(Sc.state.previewWallets);return r=Nl.deduplicateExplorerListingsFromConnectors(r),r.map(({name:e,desktop:{universal:t,native:n},homepage:a,image_url:i,id:s})=>Re``)}connectorWalletsTemplate(){return Nl.connectorWallets().map(({id:r,name:e,ready:t})=>Re``)}recentWalletTemplate(){let r=pt.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return Re``}render(){let{standaloneUri:r}=nr.state,e=this.desktopWalletsTemplate(),t=this.previewWalletsTemplate(),n=this.connectorWalletsTemplate(),a=this.recentWalletTemplate(),i=[...e??[],...t],s=[...n,...i],o=Nl.walletTemplatesWithRecent(s,a),c=Nl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>4,p=[];l?p=u.slice(0,3):p=u;let h=!!p.length;return Re`
${Kr.MOBILE_ICON}Mobile
${Kr.SCAN_ICON}Scan with your wallet
${h?Re`
${Kr.DESKTOP_ICON}Desktop
${p} ${l?Re``:null}
`:null}`}};HYe.styles=[Sr.globalCss,zYn],HYe=VYn([mr("w3m-desktop-wallet-selection")],HYe);$Yn=Nr`div{background-color:var(--w3m-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--w3m-color-bg-3);text-align:center}a{color:var(--w3m-accent-color);text-decoration:none;transition:opacity .2s ease-in-out}a:hover{opacity:.8}`,YYn=Object.defineProperty,QYn=Object.getOwnPropertyDescriptor,JYn=(r,e,t,n)=>{for(var a=n>1?void 0:n?QYn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&YYn(e,t,a),a},jYe=class extends ar{render(){let{termsOfServiceUrl:r,privacyPolicyUrl:e}=nc.state;return r??e?Re`
By connecting your wallet to this app, you agree to the app's
${r?Re`Terms of Service`:null} ${r&&e?"and":null} ${e?Re`Privacy Policy`:null}
`:null}};jYe.styles=[Sr.globalCss,$Yn],jYe=JYn([mr("w3m-legal-notice")],jYe);ZYn=Nr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,XYn=Object.defineProperty,eQn=Object.getOwnPropertyDescriptor,tQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?eQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&XYn(e,t,a),a},zYe=class extends ar{onGoToQrcode(){gn.push("Qrcode")}async onConnectorWallet(r){await pt.handleConnectorConnection(r)}mobileWalletsTemplate(){let{mobileWallets:r}=nc.state,e=Nl.walletsWithInjected(r);if(e.length)return e.map(({id:t,name:n,links:{universal:a,native:i}})=>Re``)}previewWalletsTemplate(){let{previewWallets:r}=Sc.state,e=Nl.walletsWithInjected(r);return e=Nl.allowedExplorerListings(e),e=Nl.deduplicateExplorerListingsFromConnectors(e),e.map(({image_url:t,name:n,mobile:{native:a,universal:i},id:s})=>Re``)}connectorWalletsTemplate(){let r=Nl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==jre.metaMask)),r.map(({name:e,id:t,ready:n})=>Re``)}recentWalletTemplate(){let r=pt.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return Re``}render(){let{standaloneUri:r}=nr.state,e=this.connectorWalletsTemplate(),t=this.mobileWalletsTemplate(),n=this.previewWalletsTemplate(),a=this.recentWalletTemplate(),i=t??n,s=[...e,...i],o=Nl.walletTemplatesWithRecent(s,a),c=Nl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>8,p=[];l?p=u.slice(0,7):p=u;let h=p.slice(0,4),m=p.slice(4,8),y=!!p.length;return Re`${y?Re`
${h} ${m.length?Re`${m} ${l?Re``:null}`:null}
`:null}`}};zYe.styles=[Sr.globalCss,ZYn],zYe=tQn([mr("w3m-mobile-wallet-selection")],zYe);rQn=Nr`:host{all:initial}.w3m-overlay{inset:0;position:fixed;z-index:var(--w3m-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.3);opacity:0;pointer-events:none}@media(max-height:720px) and (orientation:landscape){.w3m-overlay{overflow:scroll;align-items:flex-start}}.w3m-open{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) var(--w3m-container-border-radius) var(--w3m-container-border-radius);border:1px solid var(--w3m-color-overlay);overflow:hidden}.w3m-card{width:100%;position:relative;border-radius:var(--w3m-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-color-bg-1);color:var(--w3m-color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) 0 0}.w3m-card{border-radius:var(--w3m-container-border-radius) var(--w3m-container-border-radius) 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:440px){.w3m-container{border:0}}`,nQn=Object.defineProperty,aQn=Object.getOwnPropertyDescriptor,kYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?aQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&nQn(e,t,a),a},Vfe=class extends ar{constructor(){super(),this.open=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=Pc.subscribe(r=>{r.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var r;(r=this.unsubscribeModal)==null||r.call(this)}get overlayEl(){return pt.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return pt.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(r){document.querySelector("body")&&(r?document.getElementById("w3m-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(r){r.target===r.currentTarget&&Pc.close()}async onOpenModalEvent(){this.toggleBodyScroll(!1);let r=.2;await my(this.containerEl,{y:0},{duration:0}).finished,my(this.overlayEl,{opacity:[0,1]},{duration:.2,delay:r}),my(this.containerEl,pt.isMobileAnimation()?{y:["50vh",0]}:{scale:[.98,1]},{scale:{easing:Lre({velocity:.4})},y:{easing:Lre({mass:.5})},delay:r}),this.addKeyboardEvents(),this.open=!0}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents(),await Promise.all([my(this.containerEl,pt.isMobileAnimation()?{y:[0,"50vh"]}:{scale:[1,.98]},{scale:{easing:Lre({velocity:0})},y:{easing:Lre({mass:.5})}}).finished,my(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished]),this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",r=>{var e;r.key==="Escape"?Pc.close():r.key==="Tab"&&((e=r.target)!=null&&e.tagName.includes("W3M-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var r;(r=this.abortController)==null||r.abort(),this.abortController=void 0}managedModalContextTemplate(){let{isStandalone:r}=nr.state;return r?null:Re``}render(){let r={"w3m-overlay":!0,"w3m-open":this.open};return Re`${this.managedModalContextTemplate()}
${this.open?Re`
`:null}
`}};Vfe.styles=[Sr.globalCss,rQn],kYt([pa()],Vfe.prototype,"open",2),Vfe=kYt([mr("w3m-modal")],Vfe);iQn=Nr`:host{all:initial}w3m-network-image{margin-left:-6px;margin-right:6px;width:28px;height:28px}`,sQn=Object.defineProperty,oQn=Object.getOwnPropertyDescriptor,LTe=(r,e,t,n)=>{for(var a=n>1?void 0:n?oQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&sQn(e,t,a),a},o4=class extends ar{constructor(){super(),this.chainId="",this.label="",this.wrongNetwork=!1,this.unsubscribeNetwork=void 0,pt.rejectStandaloneButtonComponent();let{selectedChain:r}=nr.state;this.onSetChainData(r),this.unsubscribeNetwork=nr.subscribe(({selectedChain:e})=>{this.onSetChainData(e)})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onSetChainData(r){if(r){let{chains:e}=nr.state,t=e?.map(n=>n.id);this.chainId=r.id.toString(),this.wrongNetwork=!(t!=null&&t.includes(r.id)),this.label=this.wrongNetwork?"Wrong Network":r.name}}onClick(){Pc.open({route:"SelectNetwork"})}render(){var r;let{chains:e}=nr.state,t=e&&e.length>1;return Re`${(r=this.label)!=null&&r.length?this.label:"Select Network"}`}};o4.styles=[Sr.globalCss,iQn],LTe([pa()],o4.prototype,"chainId",2),LTe([pa()],o4.prototype,"label",2),LTe([pa()],o4.prototype,"wrongNetwork",2),o4=LTe([mr("w3m-network-switch")],o4);cQn=Nr`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:background-color .2s ease;height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--w3m-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}button:hover{background-color:var(--w3m-color-overlay)}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--w3m-wallet-icon-border-radius)/ 2);border:1px solid var(--w3m-color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,uQn=Object.defineProperty,lQn=Object.getOwnPropertyDescriptor,fQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?lQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&uQn(e,t,a),a},KYe=class extends ar{onClick(){gn.push("WalletExplorer")}render(){let{previewWallets:r}=Sc.state,e=pt.getCustomWallets(),t=[...r,...e].reverse().slice(0,4);return Re``}};KYe.styles=[Sr.globalCss,cQn],KYe=fQn([mr("w3m-view-all-wallets-button")],KYe);dQn=Nr`.w3m-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,pQn=Object.defineProperty,hQn=Object.getOwnPropertyDescriptor,SYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?hQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&pQn(e,t,a),a},qTe=class extends ar{constructor(){super(),this.uri="",this.createConnectionAndWait()}get overlayEl(){return pt.getShadowRootElement(this,".w3m-qr-container")}async createConnectionAndWait(r=0){var e;pn.removeWalletConnectDeepLink();try{let{standaloneUri:t}=nr.state;t?setTimeout(()=>this.uri=t,0):(await Gs.client().connectWalletConnect(n=>this.uri=n,(e=nr.state.selectedChain)==null?void 0:e.id),Pc.close())}catch(t){console.error(t),du.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}render(){return Re`
${this.uri?Re``:Re``}
`}};qTe.styles=[Sr.globalCss,dQn],SYt([pa()],qTe.prototype,"uri",2),qTe=SYt([mr("w3m-walletconnect-qr")],qTe);mQn=Nr`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start;padding-top:20px}.w3m-connection-badge{background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--w3m-success-color);border-radius:50%;top:50%;margin-top:-5px;box-shadow:0 1px 4px 1px var(--w3m-success-color),inset 0 0 0 1px var(--w3m-color-overlay)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}.w3m-balance{border-top:1px solid var(--w3m-color-bg-2);padding:11px 20px}`,yQn=Object.defineProperty,bQn=Object.getOwnPropertyDescriptor,gQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?bQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&yQn(e,t,a),a},GYe=class extends ar{onDisconnect(){Pc.close(),Gs.client().disconnect(),Vi.resetAccount()}async onCopyAddress(){var r;await navigator.clipboard.writeText((r=Vi.state.address)!=null?r:""),du.openToast("Address copied","success")}render(){return Re`
Connected
`}};GYe.styles=[Sr.globalCss,mQn],GYe=gQn([mr("w3m-account-view")],GYe);vQn=Object.defineProperty,wQn=Object.getOwnPropertyDescriptor,xQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?wQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&vQn(e,t,a),a},VYe=class extends ar{viewTemplate(){return pn.isAndroid()?Re``:pn.isMobile()?Re``:Re``}render(){return Re`${this.viewTemplate()}`}};VYe.styles=[Sr.globalCss],VYe=xQn([mr("w3m-connect-wallet-view")],VYe);_Qn=Nr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}`,TQn=Object.defineProperty,EQn=Object.getOwnPropertyDescriptor,IQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?EQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&TQn(e,t,a),a},$Ye=class extends ar{async onConnectorWallet(r){await pt.handleConnectorConnection(r)}connectorWalletsTemplate(){let r=Nl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==jre.metaMask)),r.map(({name:e,id:t,ready:n})=>Re``)}render(){let r=this.connectorWalletsTemplate();return Re`
${r}
`}};$Ye.styles=[Sr.globalCss,_Qn],$Ye=IQn([mr("w3m-connectors-view")],$Ye);CQn=Nr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}.w3m-install-actions{display:flex}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`,AQn=Object.defineProperty,kQn=Object.getOwnPropertyDescriptor,PYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?kQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&AQn(e,t,a),a},WTe=class extends ar{constructor(){super(),this.uri="",this.createConnectionAndWait()}getRouterData(){var r;let e=(r=gn.state.data)==null?void 0:r.DesktopConnector;if(!e)throw new Error("Missing router data");return e}onFormatAndRedirect(r){let{native:e,universal:t,name:n}=this.getRouterData();if(e){let a=pn.formatNativeUrl(e,r,n);pn.openHref(a,"_self")}else if(t){let a=pn.formatUniversalUrl(t,r,n);pn.openHref(a,"_blank")}}async createConnectionAndWait(r=0){var e;pn.removeWalletConnectDeepLink();let{standaloneUri:t}=nr.state,{name:n,walletId:a,native:i,universal:s,icon:o}=this.getRouterData(),c={name:n,id:a,links:{native:i,universal:s},image:o};if(t)pt.setRecentWallet(c),this.onFormatAndRedirect(t);else try{await Gs.client().connectWalletConnect(u=>{this.uri=u,this.onFormatAndRedirect(u)},(e=nr.state.selectedChain)==null?void 0:e.id),pt.setRecentWallet(c),Pc.close()}catch{du.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}onConnectWithMobile(){gn.push("Qrcode")}onGoToWallet(){let{universal:r,name:e}=this.getRouterData();if(r){let t=pn.formatUniversalUrl(r,this.uri,e);pn.openHref(t,"_blank")}}render(){let{name:r,icon:e,universal:t,walletId:n}=this.getRouterData(),a=pt.getWalletName(r);return Re`
${e?Re``:Re``}
${`Continue in ${a}...`}
Retry${t?Re`Go to Wallet`:Re`Connect with Mobile`}
`}};WTe.styles=[Sr.globalCss,CQn],PYt([pa()],WTe.prototype,"uri",2),WTe=PYt([mr("w3m-desktop-connector-view")],WTe);SQn=Nr`.w3m-info-text{margin:5px 0 15px;max-width:320px;text-align:center}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--w3m-color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--w3m-color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`,PQn=Object.defineProperty,RQn=Object.getOwnPropertyDescriptor,MQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?RQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&PQn(e,t,a),a},YYe=class extends ar{onGet(r){pn.openHref(r,"_blank")}render(){let{recomendedWallets:r}=Sc.state,e=pt.getCustomWallets().slice(0,6),t=r.length,n=e.length;return Re`${t?r.map(({name:a,image_url:i,homepage:s})=>Re`
${a}Get
`):null} ${n?e.map(({name:a,id:i,links:s})=>Re`
${a}Get
`):null}
`}};YYe.styles=[Sr.globalCss,SQn],YYe=MQn([mr("w3m-get-wallet-view")],YYe);BQn=Nr`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px;text-align:center}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--w3m-color-overlay)}`,DQn=Object.defineProperty,NQn=Object.getOwnPropertyDescriptor,OQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?NQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&DQn(e,t,a),a},QYe=class extends ar{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){nc.state.enableExplorer?gn.push("GetWallet"):pt.openWalletExplorerUrl()}onLearnMore(){pn.openHref(this.learnUrl,"_blank")}render(){return Re`
${Kr.HELP_CHART_IMG} ${Kr.HELP_PAINTING_IMG} ${Kr.HELP_ETH_IMG}
A home for your digital assetsA wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.
${Kr.HELP_KEY_IMG} ${Kr.HELP_USER_IMG} ${Kr.HELP_LOCK_IMG}
One login for all of web3Log in to any app by connecting your wallet. Say goodbye to countless passwords!
${Kr.HELP_COMPAS_IMG} ${Kr.HELP_NOUN_IMG} ${Kr.HELP_DAO_IMG}
Your gateway to a new webWith your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.
`}};QYe.styles=[Sr.globalCss,BQn],QYe=OQn([mr("w3m-help-view")],QYe);FQn=Nr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:20px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}`,LQn=Object.defineProperty,qQn=Object.getOwnPropertyDescriptor,JYe=(r,e,t,n)=>{for(var a=n>1?void 0:n?qQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&LQn(e,t,a),a},Kfe=class extends ar{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=Gs.client().getConnectorById("injected"),this.onConnect()}async onConnect(){let{ready:r}=this.connector;r&&(this.error=!1,this.connecting=!0,await pt.handleConnectorConnection("injected",()=>{this.error=!0,this.connecting=!1}))}render(){let r=pt.getWalletName(this.connector.name),e=pt.getWalletId(this.connector.id),t={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return Re`
${this.connecting?Re``:null}${this.error?"Connection declined":`Continue in ${r}...`}
Try Again
`}};Kfe.styles=[Sr.globalCss,FQn],JYe([pa()],Kfe.prototype,"connecting",2),JYe([pa()],Kfe.prototype,"error",2),Kfe=JYe([mr("w3m-injected-connector-view")],Kfe);WQn=Nr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.w3m-install-title{display:flex;align-items:center;justify-content:center;flex-direction:column}.w3m-install-title w3m-text:last-child{margin-top:10px;max-width:240px}.w3m-install-actions{display:flex;margin-top:15px;align-items:center;flex-direction:column}@media(max-width:355px){.w3m-install-actions{flex-direction:column;align-items:center}}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-install-actions w3m-button{margin:5px;opacity:1}.w3m-info-text{text-align:center}`,UQn=Object.defineProperty,HQn=Object.getOwnPropertyDescriptor,jQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?HQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&UQn(e,t,a),a},ZYe=class extends ar{getRouterData(){var r;let e=(r=gn.state.data)==null?void 0:r.InstallConnector;if(!e)throw new Error("Missing router data");return e}onInstall(){let{url:r}=this.getRouterData();pn.openHref(r,"_blank")}onMobile(){let{name:r}=this.getRouterData();gn.push("ConnectWallet"),du.openToast(`Scan the code with ${r}`,"success")}render(){let{name:r,id:e,isMobile:t}=this.getRouterData();return Re`
Install ${r}To connect ${r}, install the browser extension.
Install Extension${t?Re`${r} Mobile`:null}
`}};ZYe.styles=[Sr.globalCss,WQn],ZYe=jQn([mr("w3m-install-connector-view")],ZYe);zQn=Object.defineProperty,KQn=Object.getOwnPropertyDescriptor,GQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?KQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&zQn(e,t,a),a},XYe=class extends ar{render(){return Re``}};XYe.styles=[Sr.globalCss],XYe=GQn([mr("w3m-qrcode-view")],XYe);VQn=Nr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}`,$Qn=Object.defineProperty,YQn=Object.getOwnPropertyDescriptor,QQn=(r,e,t,n)=>{for(var a=n>1?void 0:n?YQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&$Qn(e,t,a),a},eQe=class extends ar{async onSelectChain(r){try{let{selectedChain:e,walletConnectVersion:t}=nr.state,{isConnected:n}=Vi.state;n?e?.id===r.id?gn.replace("Account"):t===2?(await Gs.client().switchNetwork({chainId:r.id}),gn.replace("Account")):gn.push("SwitchNetwork",{SwitchNetwork:r}):(gn.push("ConnectWallet"),nr.setSelectedChain(r))}catch(e){console.error(e),du.openToast(pt.getErrorMessage(e),"error")}}render(){let{chains:r}=nr.state;return Re`
${r?.map(e=>Re`${e.name}`)}
`}};eQe.styles=[Sr.globalCss,VQn],eQe=QQn([mr("w3m-select-network-view")],eQe);JQn=Nr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-network-image{width:96px;height:96px;margin-bottom:20px}w3m-button{opacity:0}.w3m-error w3m-button{opacity:1}`,ZQn=Object.defineProperty,XQn=Object.getOwnPropertyDescriptor,RYt=(r,e,t,n)=>{for(var a=n>1?void 0:n?XQn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&ZQn(e,t,a),a},UTe=class extends ar{constructor(){super(),this.error=!1,this.onSwitchNetwork()}getRouterData(){var r;let e=(r=gn.state.data)==null?void 0:r.SwitchNetwork;if(!e)throw new Error("Missing router data");return e}async onSwitchNetwork(){try{this.error=!1;let r=this.getRouterData();await Gs.client().switchNetwork({chainId:r.id}),nr.setSelectedChain(r),gn.replace("Account")}catch{this.error=!0}}render(){let{id:r,name:e}=this.getRouterData(),t={"w3m-wrapper":!0,"w3m-error":this.error};return Re`
${this.error?null:Re``}${this.error?"Connection declined":"Approve in your wallet"}
Try Again
`}};UTe.styles=[Sr.globalCss,JQn],RYt([pa()],UTe.prototype,"error",2),UTe=RYt([mr("w3m-switch-network-view")],UTe);eJn=Nr`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(var(--w3m-color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--w3m-color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,tJn=Object.defineProperty,rJn=Object.getOwnPropertyDescriptor,Gfe=(r,e,t,n)=>{for(var a=n>1?void 0:n?rJn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&tJn(e,t,a),a},tQe=40,i4=class extends ar{constructor(){super(...arguments),this.loading=!Sc.state.wallets.listings.length,this.firstFetch=!Sc.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=pt.debounce(r=>{r.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=r,Sc.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),Sc.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var r;(r=this.intersectionObserver)==null||r.disconnect()}get placeholderEl(){return pt.getShadowRootElement(this,".w3m-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([r])=>{r.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:r,search:e}=Sc.state,{listings:t,total:n}=this.search?e:r;return n<=tQe||t.length>=n}async fetchWallets(){var r;let{wallets:e,search:t}=Sc.state,n=pt.getExtensionWallets(),{listings:a,total:i,page:s}=this.search?t:e;if(!this.endReached&&(this.firstFetch||i>tQe&&a.lengthp.lg),l=n.map(({id:p})=>pt.getWalletIcon(p));await Promise.all([...u.map(async p=>pt.preloadImage(p)),...l.map(async p=>pt.preloadImage(p)),pn.wait(300)]),this.endReached=this.isLastPage()}catch(o){console.error(o),du.openToast(pt.getErrorMessage(o),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnectCustom({name:r,id:e,links:t}){pn.isMobile()?pt.handleMobileLinking({links:t,name:r,id:e}):gn.push("DesktopConnector",{DesktopConnector:{name:r,walletId:e,universal:t.universal,native:t.native}})}onConnectListing(r){if(pn.isMobile()){let{id:e,image_url:t}=r,{native:n,universal:a}=r.mobile;pt.handleMobileLinking({links:{native:n,universal:a},name:r.name,id:e,image:t.lg})}else gn.push("DesktopConnector",{DesktopConnector:{name:r.name,icon:r.image_url.lg,universal:r.desktop.universal||r.homepage,native:r.desktop.native}})}onConnectExtension(r){pt.getWalletId("")===r.id?gn.push("InjectedConnector"):gn.push("InstallConnector",{InstallConnector:r})}onSearchChange(r){let{value:e}=r.target;this.searchDebounce(e)}render(){let{wallets:r,search:e}=Sc.state,{isStandalone:t}=nr.state,{listings:n}=this.search?e:r;n=Nl.allowedExplorerListings(n);let a=this.loading&&!n.length,i=this.search.length>=3,s=!t&&!pn.isMobile()?pt.getExtensionWallets():[],o=pt.getCustomWallets();i&&(s=s.filter(({name:p})=>pt.caseSafeIncludes(p,this.search)),o=o.filter(({name:p})=>pt.caseSafeIncludes(p,this.search)));let c=!this.loading&&!n.length&&!s.length,u=Math.max(s.length,n.length),l={"w3m-loading":a,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":c};return Re`
${a?null:[...Array(u)].map((p,h)=>Re`${o[h]?Re``:null} ${s[h]?Re``:null} ${n[h]?Re``:null}`)}
${c?Re`No results found`:null} ${!c&&this.loading?Re``:null}
`}};i4.styles=[Sr.globalCss,eJn],Gfe([pa()],i4.prototype,"loading",2),Gfe([pa()],i4.prototype,"firstFetch",2),Gfe([pa()],i4.prototype,"search",2),Gfe([pa()],i4.prototype,"endReached",2),i4=Gfe([mr("w3m-wallet-explorer-view")],i4)});var FYt={};Rr(FYt,{Web3Modal:()=>rQe});var nJn,NYt,aJn,iJn,OYt,sJn,rQe,LYt=de(()=>{f();d();B$e();nJn=Object.defineProperty,NYt=Object.getOwnPropertySymbols,aJn=Object.prototype.hasOwnProperty,iJn=Object.prototype.propertyIsEnumerable,OYt=(r,e,t)=>e in r?nJn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,sJn=(r,e)=>{for(var t in e||(e={}))aJn.call(e,t)&&OYt(r,t,e[t]);if(NYt)for(var t of NYt(e))iJn.call(e,t)&&OYt(r,t,e[t]);return r},rQe=class{constructor(e){this.openModal=Pc.open,this.closeModal=Pc.close,this.subscribeModal=Pc.subscribe,this.setTheme=fy.setThemeConfig,fy.setThemeConfig(e),nc.setConfig(sJn({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>(DYt(),BYt));let e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),nr.setIsUiLoaded(!0)}}}});var iQe=E(e5=>{"use strict";f();d();Object.defineProperty(e5,"__esModule",{value:!0});var oJn=ml(),$fe=Yle(),cJn=xVt();function uJn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var lJn="wc",fJn="ethereum_provider",dJn=`${lJn}@${2}:${fJn}:`,pJn="https://rpc.walletconnect.com/v1/",HTe=["eth_sendTransaction","personal_sign"],hJn=["eth_accounts","eth_requestAccounts","eth_call","eth_getBalance","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],jTe=["chainChanged","accountsChanged"],mJn=["message","disconnect","connect"],yJn=Object.defineProperty,bJn=Object.defineProperties,gJn=Object.getOwnPropertyDescriptors,qYt=Object.getOwnPropertySymbols,vJn=Object.prototype.hasOwnProperty,wJn=Object.prototype.propertyIsEnumerable,WYt=(r,e,t)=>e in r?yJn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,UYt=(r,e)=>{for(var t in e||(e={}))vJn.call(e,t)&&WYt(r,t,e[t]);if(qYt)for(var t of qYt(e))wJn.call(e,t)&&WYt(r,t,e[t]);return r},HYt=(r,e)=>bJn(r,gJn(e));function aQe(r){return Number(r[0].split(":")[1])}function nQe(r){return`0x${r.toString(16)}`}function xJn(r){let{chains:e,optionalChains:t,methods:n,optionalMethods:a,events:i,optionalEvents:s,rpcMap:o}=r;if(!$fe.isValidArray(e))throw new Error("Invalid chains");let c=e,u=n||HTe,l=i||jTe,p={[aQe(c)]:o[aQe(c)]},h={chains:c,methods:u,events:l,rpcMap:p},m=i?.filter(A=>!jTe.includes(A)),y=n?.filter(A=>!HTe.includes(A));if(!t&&!s&&!a&&!(m!=null&&m.length)&&!(y!=null&&y.length))return{required:h};let C=m?.length&&y?.length||!t,P={chains:[...new Set(C?c.concat(t||[]):t)],methods:[...new Set(u.concat(a||[]))],events:[...new Set(l.concat(s||[]))],rpcMap:o};return{required:h,optional:P}}var zre=class{constructor(){this.events=new oJn.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=dJn,this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new zre;return await t.initialize(e),t}async request(e){return await this.signer.request(e,this.formatChainId(this.chainId))}sendAsync(e,t){this.signer.sendAsync(e,t,this.formatChainId(this.chainId))}get connected(){return this.signer.client?this.signer.client.core.relayer.connected:!1}get connecting(){return this.signer.client?this.signer.client.core.relayer.connecting:!1}async enable(){return this.session||await this.connect(),await this.request({method:"eth_requestAccounts"})}async connect(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:n}=xJn(this.rpc);try{let a=await new Promise(async(s,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(u=>{!u.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(HYt(UYt({namespaces:{[this.namespace]:t}},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:e?.pairingTopic})).then(u=>{s(u)}).catch(u=>{o(new Error(u.message))})});if(!a)return;this.setChainIds(this.rpc.chains);let i=$fe.getAccountsFromNamespaces(a.namespaces,[this.namespace]);this.setAccounts(i),this.events.emit("connect",{chainId:nQe(this.chainId)})}catch(a){throw this.signer.logger.error(a),a}finally{this.modal&&this.modal.closeModal()}}async disconnect(){this.session&&await this.signer.disconnect(),this.reset()}get isWalletConnect(){return!0}get session(){return this.signer.session}registerEventListeners(){this.signer.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?(this.accounts=this.parseAccounts(n.data),this.events.emit("accountsChanged",this.accounts)):n.name==="chainChanged"?this.setChainId(this.formatChainId(n.data)):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",nQe(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",HYt(UYt({},$fe.getSdkError("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,n;this.rpc.showQrModal&&((t=this.modal)==null||t.closeModal(),(n=this.modal)==null||n.openModal({uri:e})),this.events.emit("display_uri",e)})}setHttpProvider(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",nQe(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.setHttpProvider(t)}}parseAccountId(e){let[t,n,a]=e.split(":");return{chainId:`${t}:${n}`,address:a}}setAccounts(e){this.accounts=e.filter(t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId).map(t=>this.parseAccountId(t).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,n;return{chains:((t=e.chains)==null?void 0:t.map(a=>this.formatChainId(a)))||[`${this.namespace}:1`],optionalChains:e.optionalChains?e.optionalChains.map(a=>this.formatChainId(a)):void 0,methods:e?.methods||HTe,events:e?.events||jTe,optionalMethods:e?.optionalMethods||[],optionalEvents:e?.optionalEvents||[],rpcMap:e?.rpcMap||this.buildRpcMap(e.chains.concat(e.optionalChains||[]),e.projectId),showQrModal:(n=e?.showQrModal)!=null?n:!0,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let n={};return e.forEach(a=>{n[a]=this.getRpcUrl(a,t)}),n}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=aQe(this.rpc.chains),this.signer=await cJn.UniversalProvider.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let{Web3Modal:t}=await Promise.resolve().then(function(){return uJn((LYt(),Ht(FYt)))});this.modal=new t({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains})}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:n,rpcMap:a}=e;t&&$fe.isValidArray(t)&&(this.rpc.chains=t.map(i=>this.formatChainId(i)),t.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)})),n&&$fe.isValidArray(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(i=>this.formatChainId(i)),n.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)}))}getRpcUrl(e,t){var n;return((n=this.rpc.rpcMap)==null?void 0:n[e])||`${pJn}?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`);this.setChainIds(e?[this.formatChainId(e)]:this.session.namespaces[this.namespace].accounts),this.setAccounts(this.session.namespaces[this.namespace].accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e=="string"||e instanceof String?[this.parseAccount(e)]:e.map(t=>this.parseAccount(t))}},_Jn=zre;e5.EthereumProvider=_Jn,e5.OPTIONAL_EVENTS=mJn,e5.OPTIONAL_METHODS=hJn,e5.REQUIRED_EVENTS=jTe,e5.REQUIRED_METHODS=HTe,e5.default=zre});var ZYt=E(mQe=>{"use strict";f();d();Object.defineProperty(mQe,"__esModule",{value:!0});var vs=Zu(),Un=bf(),t5=Oi(),u4=ke(),TJn=n6(),zTe=O3();ao();Ct();Xe();function EJn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var GYt="eip155",VYt="wagmi.requestedChains",lQe="wallet_addEthereumChain",sQe="last-used-chain-id",Vs=new WeakMap,GTe=new WeakMap,l4=new WeakMap,oQe=new WeakSet,$Yt=new WeakSet,cQe=new WeakSet,uQe=new WeakSet,Yfe=new WeakSet,fQe=new WeakSet,dQe=new WeakSet,pQe=new WeakSet,hQe=class extends TJn.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),vs._classPrivateMethodInitSpec(this,pQe),vs._classPrivateMethodInitSpec(this,dQe),vs._classPrivateMethodInitSpec(this,fQe),vs._classPrivateMethodInitSpec(this,Yfe),vs._classPrivateMethodInitSpec(this,uQe),vs._classPrivateMethodInitSpec(this,cQe),vs._classPrivateMethodInitSpec(this,$Yt),vs._classPrivateMethodInitSpec(this,oQe),t5._defineProperty(this,"id","walletConnect"),t5._defineProperty(this,"name","WalletConnect"),t5._defineProperty(this,"ready",!0),Un._classPrivateFieldInitSpec(this,Vs,{writable:!0,value:void 0}),Un._classPrivateFieldInitSpec(this,GTe,{writable:!0,value:void 0}),Un._classPrivateFieldInitSpec(this,l4,{writable:!0,value:void 0}),t5._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:u4.utils.getAddress(t[0])})}),t5._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Un._classPrivateFieldGet(this,l4).setItem(sQe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),t5._defineProperty(this,"onDisconnect",()=>{vs._classPrivateMethodGet(this,Yfe,KTe).call(this,[]),Un._classPrivateFieldGet(this,l4).removeItem(sQe),this.emit("disconnect")}),t5._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),t5._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Un._classPrivateFieldGet(this,Vs)})}),Un._classPrivateFieldSet(this,l4,e.options.storage),vs._classPrivateMethodGet(this,oQe,jYt).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Un._classPrivateFieldGet(this,l4).getItem(sQe),p=l?parseInt(l):void 0;p&&!this.isChainUnsupported(p)?n=p:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await vs._classPrivateMethodGet(this,cQe,zYt).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(p=>p.chainId!==n).map(p=>p.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l.length>0?l:[n]}),vs._classPrivateMethodGet(this,Yfe,KTe).call(this,this.chains.map(p=>{let{chainId:h}=p;return h}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=u4.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new u4.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new zTe.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{vs._classPrivateMethodGet(this,uQe,KYt).call(this),vs._classPrivateMethodGet(this,Yfe,KTe).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return u4.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Un._classPrivateFieldGet(this,Vs)||await vs._classPrivateMethodGet(this,oQe,jYt).call(this),e&&await this.switchChain(e),!Un._classPrivateFieldGet(this,Vs))throw new Error("No provider found.");return Un._classPrivateFieldGet(this,Vs)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new u4.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await vs._classPrivateMethodGet(this,cQe,zYt).call(this);if(!e)return!1;if(n&&t.session){try{await t.disconnect()}catch{}return!1}return!0}catch{return!1}}async switchChain(e){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new zTe.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=vs._classPrivateMethodGet(this,dQe,QYt).call(this),i=vs._classPrivateMethodGet(this,pQe,JYt).call(this);if(!a.includes(e)&&i.includes(lQe)){await n.request({method:lQe,params:[{chainId:u4.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await vs._classPrivateMethodGet(this,fQe,YYt).call(this);o.push(e),vs._classPrivateMethodGet(this,Yfe,KTe).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:u4.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new zTe.UserRejectedRequestError(n):new zTe.SwitchChainError(n)}}async setupListeners(){!Un._classPrivateFieldGet(this,Vs)||(vs._classPrivateMethodGet(this,uQe,KYt).call(this),Un._classPrivateFieldGet(this,Vs).on("accountsChanged",this.onAccountsChanged),Un._classPrivateFieldGet(this,Vs).on("chainChanged",this.onChainChanged),Un._classPrivateFieldGet(this,Vs).on("disconnect",this.onDisconnect),Un._classPrivateFieldGet(this,Vs).on("session_delete",this.onDisconnect),Un._classPrivateFieldGet(this,Vs).on("display_uri",this.onDisplayUri),Un._classPrivateFieldGet(this,Vs).on("connect",this.onConnect))}};async function jYt(){return!Un._classPrivateFieldGet(this,GTe)&&typeof window<"u"&&Un._classPrivateFieldSet(this,GTe,vs._classPrivateMethodGet(this,$Yt,IJn).call(this)),Un._classPrivateFieldGet(this,GTe)}async function IJn(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return EJn(iQe())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Un._classPrivateFieldSet(this,Vs,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function zYt(){if(vs._classPrivateMethodGet(this,pQe,JYt).call(this).includes(lQe)||!this.options.isNewChainsStale)return!1;let e=await vs._classPrivateMethodGet(this,fQe,YYt).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=vs._classPrivateMethodGet(this,dQe,QYt).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function KYt(){!Un._classPrivateFieldGet(this,Vs)||(Un._classPrivateFieldGet(this,Vs).removeListener("accountsChanged",this.onAccountsChanged),Un._classPrivateFieldGet(this,Vs).removeListener("chainChanged",this.onChainChanged),Un._classPrivateFieldGet(this,Vs).removeListener("disconnect",this.onDisconnect),Un._classPrivateFieldGet(this,Vs).removeListener("session_delete",this.onDisconnect),Un._classPrivateFieldGet(this,Vs).removeListener("display_uri",this.onDisplayUri),Un._classPrivateFieldGet(this,Vs).removeListener("connect",this.onConnect))}function KTe(r){Un._classPrivateFieldGet(this,l4).setItem(VYt,JSON.stringify(r))}async function YYt(){let r=await Un._classPrivateFieldGet(this,l4).getItem(VYt);return r?JSON.parse(r):[]}function QYt(){return Un._classPrivateFieldGet(this,Vs)?Un._classPrivateFieldGet(this,Vs).session?.namespaces[GYt]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function JYt(){return Un._classPrivateFieldGet(this,Vs)?Un._classPrivateFieldGet(this,Vs).session?.namespaces[GYt]?.methods??[]:[]}mQe.WalletConnectConnector=hQe});var tQt=E(_Qe=>{"use strict";f();d();Object.defineProperty(_Qe,"__esModule",{value:!0});var Qfe=Zu(),Jfe=Oi(),Rn=bf(),CJn=md(),AJn=Dp();ao();Xe();yf();ke();Ct();var kJn="145769e410f16970a79ff77b2d89a1e0",Af=new WeakMap,Kre=new WeakMap,SJn=new WeakMap,bQe=new WeakMap,gQe=new WeakMap,vQe=new WeakMap,wQe=new WeakMap,xQe=new WeakMap,XYt=new WeakSet,yQe=new WeakSet,f4=class extends AJn.AbstractClientWallet{get walletName(){return"WalletConnect"}constructor(e){super(e?.walletId||f4.id,e),Qfe._classPrivateMethodInitSpec(this,yQe),Qfe._classPrivateMethodInitSpec(this,XYt),Rn._classPrivateFieldInitSpec(this,Af,{writable:!0,value:void 0}),Rn._classPrivateFieldInitSpec(this,Kre,{writable:!0,value:void 0}),Jfe._defineProperty(this,"connector",void 0),Jfe._defineProperty(this,"projectId",void 0),Jfe._defineProperty(this,"qrcode",void 0),Rn._classPrivateFieldInitSpec(this,SJn,{writable:!0,value:t=>{if(t)throw t}}),Rn._classPrivateFieldInitSpec(this,bQe,{writable:!0,value:t=>{if(Rn._classPrivateFieldSet(this,Kre,t.provider),!Rn._classPrivateFieldGet(this,Kre))throw new Error("WalletConnect provider not found after connecting.")}}),Rn._classPrivateFieldInitSpec(this,gQe,{writable:!0,value:()=>{Qfe._classPrivateMethodGet(this,yQe,eQt).call(this)}}),Rn._classPrivateFieldInitSpec(this,vQe,{writable:!0,value:async t=>{t.chain||t.account}}),Rn._classPrivateFieldInitSpec(this,wQe,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),Rn._classPrivateFieldInitSpec(this,xQe,{writable:!0,value:()=>{this.emit("open_wallet")}}),this.projectId=e?.projectId||kJn,this.qrcode=e?.qrcode!==!1}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return ZYt()});Rn._classPrivateFieldSet(this,Af,new e({chains:this.chains,options:{qrcode:this.qrcode,projectId:this.projectId,dappMetadata:this.dappMetadata,storage:this.walletStorage}})),this.connector=new CJn.WagmiAdapter(Rn._classPrivateFieldGet(this,Af)),Rn._classPrivateFieldSet(this,Kre,await Rn._classPrivateFieldGet(this,Af).getProvider()),Qfe._classPrivateMethodGet(this,XYt,PJn).call(this)}return this.connector}};function PJn(){!Rn._classPrivateFieldGet(this,Af)||(Qfe._classPrivateMethodGet(this,yQe,eQt).call(this),Rn._classPrivateFieldGet(this,Af).on("connect",Rn._classPrivateFieldGet(this,bQe)),Rn._classPrivateFieldGet(this,Af).on("disconnect",Rn._classPrivateFieldGet(this,gQe)),Rn._classPrivateFieldGet(this,Af).on("change",Rn._classPrivateFieldGet(this,vQe)),Rn._classPrivateFieldGet(this,Af).on("message",Rn._classPrivateFieldGet(this,wQe)),Rn._classPrivateFieldGet(this,Kre)?.signer.client.on("session_request_sent",Rn._classPrivateFieldGet(this,xQe)))}function eQt(){!Rn._classPrivateFieldGet(this,Af)||(Rn._classPrivateFieldGet(this,Af).removeListener("connect",Rn._classPrivateFieldGet(this,bQe)),Rn._classPrivateFieldGet(this,Af).removeListener("disconnect",Rn._classPrivateFieldGet(this,gQe)),Rn._classPrivateFieldGet(this,Af).removeListener("change",Rn._classPrivateFieldGet(this,vQe)),Rn._classPrivateFieldGet(this,Af).removeListener("message",Rn._classPrivateFieldGet(this,wQe)),Rn._classPrivateFieldGet(this,Kre)?.signer.client.removeListener("session_request_sent",Rn._classPrivateFieldGet(this,xQe)))}Jfe._defineProperty(f4,"id","walletConnect");Jfe._defineProperty(f4,"meta",{name:"WalletConnect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});_Qe.WalletConnect=f4});var aQt=E(AQe=>{"use strict";f();d();Object.defineProperty(AQe,"__esModule",{value:!0});var VTe=Zu(),YTe=Oi(),Ei=bf(),RJn=md(),MJn=Dp();ao();Xe();yf();ke();Ct();var Ol=new WeakMap,$Te=new WeakMap,TQe=new WeakMap,EQe=new WeakMap,IQe=new WeakMap,CQe=new WeakMap,rQt=new WeakSet,nQt=new WeakSet,d4=class extends MJn.AbstractClientWallet{get walletName(){return Ei._classPrivateFieldGet(this,Ol)?.walletName||"WalletConnect"}constructor(e){super(e?.walletId||d4.id,e),VTe._classPrivateMethodInitSpec(this,nQt),VTe._classPrivateMethodInitSpec(this,rQt),Ei._classPrivateFieldInitSpec(this,Ol,{writable:!0,value:void 0}),Ei._classPrivateFieldInitSpec(this,$Te,{writable:!0,value:void 0}),YTe._defineProperty(this,"connector",void 0),YTe._defineProperty(this,"qrcode",void 0),Ei._classPrivateFieldInitSpec(this,TQe,{writable:!0,value:t=>{if(Ei._classPrivateFieldSet(this,$Te,t.provider),!Ei._classPrivateFieldGet(this,$Te))throw new Error("WalletConnect provider not found after connecting.")}}),Ei._classPrivateFieldInitSpec(this,EQe,{writable:!0,value:()=>{VTe._classPrivateMethodGet(this,nQt,DJn).call(this)}}),Ei._classPrivateFieldInitSpec(this,IQe,{writable:!0,value:async t=>{t.chain||t.account}}),Ei._classPrivateFieldInitSpec(this,CQe,{writable:!0,value:t=>{switch(t.type){case"request":case"add_chain":case"switch_chain":this.emit("open_wallet");break;case"display_uri":this.emit("open_wallet",t.data);break}}}),this.qrcode=e?.qrcode!==!1}async getConnector(){if(!this.connector){let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return sGe()});Ei._classPrivateFieldSet(this,Ol,new e({chains:this.chains,storage:this.walletStorage,options:{qrcode:this.qrcode,clientMeta:{description:this.dappMetadata.description||"",url:this.dappMetadata.url,icons:[this.dappMetadata.logoUrl||""],name:this.dappMetadata.name}}})),this.connector=new RJn.WagmiAdapter(Ei._classPrivateFieldGet(this,Ol)),Ei._classPrivateFieldSet(this,$Te,await Ei._classPrivateFieldGet(this,Ol).getProvider()),VTe._classPrivateMethodGet(this,rQt,BJn).call(this)}return this.connector}};function BJn(){!Ei._classPrivateFieldGet(this,Ol)||(Ei._classPrivateFieldGet(this,Ol).on("connect",Ei._classPrivateFieldGet(this,TQe)),Ei._classPrivateFieldGet(this,Ol).on("disconnect",Ei._classPrivateFieldGet(this,EQe)),Ei._classPrivateFieldGet(this,Ol).on("change",Ei._classPrivateFieldGet(this,IQe)),Ei._classPrivateFieldGet(this,Ol).on("message",Ei._classPrivateFieldGet(this,CQe)))}function DJn(){!Ei._classPrivateFieldGet(this,Ol)||(Ei._classPrivateFieldGet(this,Ol).removeListener("connect",Ei._classPrivateFieldGet(this,TQe)),Ei._classPrivateFieldGet(this,Ol).removeListener("disconnect",Ei._classPrivateFieldGet(this,EQe)),Ei._classPrivateFieldGet(this,Ol).removeListener("change",Ei._classPrivateFieldGet(this,IQe)),Ei._classPrivateFieldGet(this,Ol).removeListener("message",Ei._classPrivateFieldGet(this,CQe)))}YTe._defineProperty(d4,"id","walletConnectV1");YTe._defineProperty(d4,"meta",{name:"WalletConnect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});AQe.WalletConnectV1=d4});var kQe=E((G8i,iQt)=>{"use strict";f();d();iQt.exports=function(e,t){return function(){for(var a=new Array(arguments.length),i=0;i{"use strict";f();d();var NJn=kQe(),PQe=Object.prototype.toString,RQe=function(r){return function(e){var t=PQe.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())}}(Object.create(null));function p4(r){return r=r.toLowerCase(),function(t){return RQe(t)===r}}function MQe(r){return Array.isArray(r)}function JTe(r){return typeof r>"u"}function OJn(r){return r!==null&&!JTe(r)&&r.constructor!==null&&!JTe(r.constructor)&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}var sQt=p4("ArrayBuffer");function FJn(r){var e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&sQt(r.buffer),e}function LJn(r){return typeof r=="string"}function qJn(r){return typeof r=="number"}function oQt(r){return r!==null&&typeof r=="object"}function QTe(r){if(RQe(r)!=="object")return!1;var e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}var WJn=p4("Date"),UJn=p4("File"),HJn=p4("Blob"),jJn=p4("FileList");function BQe(r){return PQe.call(r)==="[object Function]"}function zJn(r){return oQt(r)&&BQe(r.pipe)}function KJn(r){var e="[object FormData]";return r&&(typeof FormData=="function"&&r instanceof FormData||PQe.call(r)===e||BQe(r.toString)&&r.toString()===e)}var GJn=p4("URLSearchParams");function VJn(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function $Jn(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function DQe(r,e){if(!(r===null||typeof r>"u"))if(typeof r!="object"&&(r=[r]),MQe(r))for(var t=0,n=r.length;t0;)i=n[a],s[i]||(e[i]=r[i],s[i]=!0);r=Object.getPrototypeOf(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e}function XJn(r,e,t){r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;var n=r.indexOf(e,t);return n!==-1&&n===t}function eZn(r){if(!r)return null;var e=r.length;if(JTe(e))return null;for(var t=new Array(e);e-- >0;)t[e]=r[e];return t}var tZn=function(r){return function(e){return r&&e instanceof r}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));cQt.exports={isArray:MQe,isArrayBuffer:sQt,isBuffer:OJn,isFormData:KJn,isArrayBufferView:FJn,isString:LJn,isNumber:qJn,isObject:oQt,isPlainObject:QTe,isUndefined:JTe,isDate:WJn,isFile:UJn,isBlob:HJn,isFunction:BQe,isStream:zJn,isURLSearchParams:GJn,isStandardBrowserEnv:$Jn,forEach:DQe,merge:SQe,extend:YJn,trim:VJn,stripBOM:QJn,inherits:JJn,toFlatObject:ZJn,kindOf:RQe,kindOfTest:p4,endsWith:XJn,toArray:eZn,isTypedArray:tZn,isFileList:jJn}});var NQe=E((Z8i,lQt)=>{"use strict";f();d();var Gre=M0();function uQt(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}lQt.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(Gre.isURLSearchParams(t))a=t.toString();else{var i=[];Gre.forEach(t,function(c,u){c===null||typeof c>"u"||(Gre.isArray(c)?u=u+"[]":c=[c],Gre.forEach(c,function(p){Gre.isDate(p)?p=p.toISOString():Gre.isObject(p)&&(p=JSON.stringify(p)),i.push(uQt(u)+"="+uQt(p))}))}),a=i.join("&")}if(a){var s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}});var dQt=E((t4i,fQt)=>{"use strict";f();d();var rZn=M0();function ZTe(){this.handlers=[]}ZTe.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};ZTe.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};ZTe.prototype.forEach=function(e){rZn.forEach(this.handlers,function(n){n!==null&&e(n)})};fQt.exports=ZTe});var hQt=E((a4i,pQt)=>{"use strict";f();d();var nZn=M0();pQt.exports=function(e,t){nZn.forEach(e,function(a,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[i])})}});var h4=E((o4i,gQt)=>{"use strict";f();d();var mQt=M0();function Vre(r,e,t,n,a){Error.call(this),this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a)}mQt.inherits(Vre,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var yQt=Vre.prototype,bQt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(r){bQt[r]={value:r}});Object.defineProperties(Vre,bQt);Object.defineProperty(yQt,"isAxiosError",{value:!0});Vre.from=function(r,e,t,n,a,i){var s=Object.create(yQt);return mQt.toFlatObject(r,s,function(c){return c!==Error.prototype}),Vre.call(s,r.message,e,t,n,a),s.name=r.name,i&&Object.assign(s,i),s};gQt.exports=Vre});var OQe=E((l4i,vQt)=>{"use strict";f();d();vQt.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var FQe=E((p4i,wQt)=>{"use strict";f();d();var Tm=M0();function aZn(r,e){e=e||new FormData;var t=[];function n(i){return i===null?"":Tm.isDate(i)?i.toISOString():Tm.isArrayBuffer(i)||Tm.isTypedArray(i)?typeof Blob=="function"?new Blob([i]):v.Buffer.from(i):i}function a(i,s){if(Tm.isPlainObject(i)||Tm.isArray(i)){if(t.indexOf(i)!==-1)throw Error("Circular reference detected in "+s);t.push(i),Tm.forEach(i,function(c,u){if(!Tm.isUndefined(c)){var l=s?s+"."+u:u,p;if(c&&!s&&typeof c=="object"){if(Tm.endsWith(u,"{}"))c=JSON.stringify(c);else if(Tm.endsWith(u,"[]")&&(p=Tm.toArray(c))){p.forEach(function(h){!Tm.isUndefined(h)&&e.append(l,n(h))});return}}a(c,l)}}),t.pop()}else e.append(s,n(i))}return a(r),e}wQt.exports=aZn});var _Qt=E((y4i,xQt)=>{"use strict";f();d();var LQe=h4();xQt.exports=function(e,t,n){var a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new LQe("Request failed with status code "+n.status,[LQe.ERR_BAD_REQUEST,LQe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}});var EQt=E((v4i,TQt)=>{"use strict";f();d();var XTe=M0();TQt.exports=XTe.isStandardBrowserEnv()?function(){return{write:function(t,n,a,i,s,o){var c=[];c.push(t+"="+encodeURIComponent(n)),XTe.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),XTe.isString(i)&&c.push("path="+i),XTe.isString(s)&&c.push("domain="+s),o===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()});var CQt=E((_4i,IQt)=>{"use strict";f();d();IQt.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}});var kQt=E((I4i,AQt)=>{"use strict";f();d();AQt.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}});var qQe=E((k4i,SQt)=>{"use strict";f();d();var iZn=CQt(),sZn=kQt();SQt.exports=function(e,t){return e&&!iZn(t)?sZn(e,t):t}});var RQt=E((R4i,PQt)=>{"use strict";f();d();var WQe=M0(),oZn=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];PQt.exports=function(e){var t={},n,a,i;return e&&WQe.forEach(e.split(` +`),function(o){if(i=o.indexOf(":"),n=WQe.trim(o.substr(0,i)).toLowerCase(),a=WQe.trim(o.substr(i+1)),n){if(t[n]&&oZn.indexOf(n)>=0)return;n==="set-cookie"?t[n]=(t[n]?t[n]:[]).concat([a]):t[n]=t[n]?t[n]+", "+a:a}}),t}});var DQt=E((D4i,BQt)=>{"use strict";f();d();var MQt=M0();BQt.exports=MQt.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),n;function a(i){var s=i;return e&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(s){var o=MQt.isString(s)?a(s):s;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}()});var Zfe=E((F4i,OQt)=>{"use strict";f();d();var UQe=h4(),cZn=M0();function NQt(r){UQe.call(this,r??"canceled",UQe.ERR_CANCELED),this.name="CanceledError"}cZn.inherits(NQt,UQe,{__CANCEL__:!0});OQt.exports=NQt});var LQt=E((W4i,FQt)=>{"use strict";f();d();FQt.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}});var HQe=E((j4i,qQt)=>{"use strict";f();d();var Xfe=M0(),uZn=_Qt(),lZn=EQt(),fZn=NQe(),dZn=qQe(),pZn=RQt(),hZn=DQt(),mZn=OQe(),f2=h4(),yZn=Zfe(),bZn=LQt();qQt.exports=function(e){return new Promise(function(n,a){var i=e.data,s=e.headers,o=e.responseType,c;function u(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}Xfe.isFormData(i)&&Xfe.isStandardBrowserEnv()&&delete s["Content-Type"];var l=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.Authorization="Basic "+btoa(p+":"+h)}var m=dZn(e.baseURL,e.url);l.open(e.method.toUpperCase(),fZn(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function y(){if(!!l){var A="getAllResponseHeaders"in l?pZn(l.getAllResponseHeaders()):null,B=!o||o==="text"||o==="json"?l.responseText:l.response,F={data:B,status:l.status,statusText:l.statusText,headers:A,config:e,request:l};uZn(function(K){n(K),u()},function(K){a(K),u()},F),l=null}}if("onloadend"in l?l.onloadend=y:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(y)},l.onabort=function(){!l||(a(new f2("Request aborted",f2.ECONNABORTED,e,l)),l=null)},l.onerror=function(){a(new f2("Network Error",f2.ERR_NETWORK,e,l,l)),l=null},l.ontimeout=function(){var B=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",F=e.transitional||mZn;e.timeoutErrorMessage&&(B=e.timeoutErrorMessage),a(new f2(B,F.clarifyTimeoutError?f2.ETIMEDOUT:f2.ECONNABORTED,e,l)),l=null},Xfe.isStandardBrowserEnv()){var C=(e.withCredentials||hZn(m))&&e.xsrfCookieName?lZn.read(e.xsrfCookieName):void 0;C&&(s[e.xsrfHeaderName]=C)}"setRequestHeader"in l&&Xfe.forEach(s,function(B,F){typeof i>"u"&&F.toLowerCase()==="content-type"?delete s[F]:l.setRequestHeader(F,B)}),Xfe.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(c=function(A){!l||(a(!A||A&&A.type?new yZn:A),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c))),i||(i=null);var P=bZn(m);if(P&&["http","https","file"].indexOf(P)===-1){a(new f2("Unsupported protocol "+P+":",f2.ERR_BAD_REQUEST,e));return}l.send(i)})}});var UQt=E((G4i,WQt)=>{f();d();WQt.exports=null});var tEe=E((Y4i,KQt)=>{"use strict";f();d();var B0=M0(),HQt=hQt(),jQt=h4(),gZn=OQe(),vZn=FQe(),wZn={"Content-Type":"application/x-www-form-urlencoded"};function zQt(r,e){!B0.isUndefined(r)&&B0.isUndefined(r["Content-Type"])&&(r["Content-Type"]=e)}function xZn(){var r;return typeof XMLHttpRequest<"u"?r=HQe():typeof g<"u"&&Object.prototype.toString.call(g)==="[object process]"&&(r=HQe()),r}function _Zn(r,e,t){if(B0.isString(r))try{return(e||JSON.parse)(r),B0.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}var eEe={transitional:gZn,adapter:xZn(),transformRequest:[function(e,t){if(HQt(t,"Accept"),HQt(t,"Content-Type"),B0.isFormData(e)||B0.isArrayBuffer(e)||B0.isBuffer(e)||B0.isStream(e)||B0.isFile(e)||B0.isBlob(e))return e;if(B0.isArrayBufferView(e))return e.buffer;if(B0.isURLSearchParams(e))return zQt(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n=B0.isObject(e),a=t&&t["Content-Type"],i;if((i=B0.isFileList(e))||n&&a==="multipart/form-data"){var s=this.env&&this.env.FormData;return vZn(i?{"files[]":e}:e,s&&new s)}else if(n||a==="application/json")return zQt(t,"application/json"),_Zn(e);return e}],transformResponse:[function(e){var t=this.transitional||eEe.transitional,n=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||a&&B0.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(i)throw s.name==="SyntaxError"?jQt.from(s,jQt.ERR_BAD_RESPONSE,this,null,this.response):s}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:UQt()},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};B0.forEach(["delete","get","head"],function(e){eEe.headers[e]={}});B0.forEach(["post","put","patch"],function(e){eEe.headers[e]=B0.merge(wZn)});KQt.exports=eEe});var VQt=E((Z4i,GQt)=>{"use strict";f();d();var TZn=M0(),EZn=tEe();GQt.exports=function(e,t,n){var a=this||EZn;return TZn.forEach(n,function(s){e=s.call(a,e,t)}),e}});var jQe=E((txi,$Qt)=>{"use strict";f();d();$Qt.exports=function(e){return!!(e&&e.__CANCEL__)}});var JQt=E((axi,QQt)=>{"use strict";f();d();var YQt=M0(),zQe=VQt(),IZn=jQe(),CZn=tEe(),AZn=Zfe();function KQe(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new AZn}QQt.exports=function(e){KQe(e),e.headers=e.headers||{},e.data=zQe.call(e,e.data,e.headers,e.transformRequest),e.headers=YQt.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),YQt.forEach(["delete","get","head","post","put","patch","common"],function(a){delete e.headers[a]});var t=e.adapter||CZn.adapter;return t(e).then(function(a){return KQe(e),a.data=zQe.call(e,a.data,a.headers,e.transformResponse),a},function(a){return IZn(a)||(KQe(e),a&&a.response&&(a.response.data=zQe.call(e,a.response.data,a.response.headers,e.transformResponse))),Promise.reject(a)})}});var GQe=E((oxi,ZQt)=>{"use strict";f();d();var Ad=M0();ZQt.exports=function(e,t){t=t||{};var n={};function a(l,p){return Ad.isPlainObject(l)&&Ad.isPlainObject(p)?Ad.merge(l,p):Ad.isPlainObject(p)?Ad.merge({},p):Ad.isArray(p)?p.slice():p}function i(l){if(Ad.isUndefined(t[l])){if(!Ad.isUndefined(e[l]))return a(void 0,e[l])}else return a(e[l],t[l])}function s(l){if(!Ad.isUndefined(t[l]))return a(void 0,t[l])}function o(l){if(Ad.isUndefined(t[l])){if(!Ad.isUndefined(e[l]))return a(void 0,e[l])}else return a(void 0,t[l])}function c(l){if(l in t)return a(e[l],t[l]);if(l in e)return a(void 0,e[l])}var u={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:c};return Ad.forEach(Object.keys(e).concat(Object.keys(t)),function(p){var h=u[p]||i,m=h(p);Ad.isUndefined(m)&&h!==c||(n[p]=m)}),n}});var VQe=E((lxi,XQt)=>{f();d();XQt.exports={version:"0.27.2"}});var rJt=E((pxi,tJt)=>{"use strict";f();d();var kZn=VQe().version,r5=h4(),$Qe={};["object","boolean","number","function","string","symbol"].forEach(function(r,e){$Qe[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});var eJt={};$Qe.transitional=function(e,t,n){function a(i,s){return"[Axios v"+kZn+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return function(i,s,o){if(e===!1)throw new r5(a(s," has been removed"+(t?" in "+t:"")),r5.ERR_DEPRECATED);return t&&!eJt[s]&&(eJt[s]=!0,console.warn(a(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,s,o):!0}};function SZn(r,e,t){if(typeof r!="object")throw new r5("options must be an object",r5.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(r),a=n.length;a-- >0;){var i=n[a],s=e[i];if(s){var o=r[i],c=o===void 0||s(o,i,r);if(c!==!0)throw new r5("option "+i+" must be "+c,r5.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new r5("Unknown option "+i,r5.ERR_BAD_OPTION)}}tJt.exports={assertOptions:SZn,validators:$Qe}});var cJt=E((yxi,oJt)=>{"use strict";f();d();var iJt=M0(),PZn=NQe(),nJt=dQt(),aJt=JQt(),rEe=GQe(),RZn=qQe(),sJt=rJt(),$re=sJt.validators;function Yre(r){this.defaults=r,this.interceptors={request:new nJt,response:new nJt}}Yre.prototype.request=function(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=rEe(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&sJt.assertOptions(n,{silentJSONParsing:$re.transitional($re.boolean),forcedJSONParsing:$re.transitional($re.boolean),clarifyTimeoutError:$re.transitional($re.boolean)},!1);var a=[],i=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(t)===!1||(i=i&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});var s=[];this.interceptors.response.forEach(function(m){s.push(m.fulfilled,m.rejected)});var o;if(!i){var c=[aJt,void 0];for(Array.prototype.unshift.apply(c,a),c=c.concat(s),o=Promise.resolve(t);c.length;)o=o.then(c.shift(),c.shift());return o}for(var u=t;a.length;){var l=a.shift(),p=a.shift();try{u=l(u)}catch(h){p(h);break}}try{o=aJt(u)}catch(h){return Promise.reject(h)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};Yre.prototype.getUri=function(e){e=rEe(this.defaults,e);var t=RZn(e.baseURL,e.url);return PZn(t,e.params,e.paramsSerializer)};iJt.forEach(["delete","get","head","options"],function(e){Yre.prototype[e]=function(t,n){return this.request(rEe(n||{},{method:e,url:t,data:(n||{}).data}))}});iJt.forEach(["post","put","patch"],function(e){function t(n){return function(i,s,o){return this.request(rEe(o||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Yre.prototype[e]=t(),Yre.prototype[e+"Form"]=t(!0)});oJt.exports=Yre});var lJt=E((vxi,uJt)=>{"use strict";f();d();var MZn=Zfe();function Qre(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(a){e=a});var t=this;this.promise.then(function(n){if(!!t._listeners){var a,i=t._listeners.length;for(a=0;a{"use strict";f();d();fJt.exports=function(e){return function(n){return e.apply(null,n)}}});var hJt=E((Ixi,pJt)=>{"use strict";f();d();var BZn=M0();pJt.exports=function(e){return BZn.isObject(e)&&e.isAxiosError===!0}});var bJt=E((kxi,YQe)=>{"use strict";f();d();var mJt=M0(),DZn=kQe(),nEe=cJt(),NZn=GQe(),OZn=tEe();function yJt(r){var e=new nEe(r),t=DZn(nEe.prototype.request,e);return mJt.extend(t,nEe.prototype,e),mJt.extend(t,e),t.create=function(a){return yJt(NZn(r,a))},t}var kf=yJt(OZn);kf.Axios=nEe;kf.CanceledError=Zfe();kf.CancelToken=lJt();kf.isCancel=jQe();kf.VERSION=VQe().version;kf.toFormData=FQe();kf.AxiosError=h4();kf.Cancel=kf.CanceledError;kf.all=function(e){return Promise.all(e)};kf.spread=dJt();kf.isAxiosError=hJt();YQe.exports=kf;YQe.exports.default=kf});var vJt=E((Rxi,gJt)=>{f();d();gJt.exports=bJt()});var wJt=E(Jre=>{"use strict";f();d();var FZn=Jre&&Jre.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Jre,"__esModule",{value:!0});Jre.SafeService=void 0;var LZn=Yi(),qZn=FZn(vJt()),QQe=class{constructor(e,t){this.serviceUrl=e,this.network=t??qZn.default}async estimateSafeTx(e,t){let n=`${this.serviceUrl}/api/v1/safes/${e}/multisig-transactions/estimations/`,a=await this.network.post(n,t);return LZn.BigNumber.from(a.data.safeTxGas)}async getSafeTxDetails(e){let t=`${this.serviceUrl}/api/v1/multisig-transactions/${e}`;return(await this.network.get(t)).data}async proposeTx(e,t,n,a){let i=`${this.serviceUrl}/api/v1/safes/${e}/multisig-transactions/`,s={...n.data,contractTransactionHash:t,sender:a.signer,signature:a.data};return(await this.network.post(i,s)).data}};Jre.SafeService=QQe});var _Jt=E(xJt=>{"use strict";f();d();Object.defineProperty(xJt,"__esModule",{value:!0})});var EJt=E(TJt=>{"use strict";f();d();Object.defineProperty(TJt,"__esModule",{value:!0})});var CJt=E(IJt=>{"use strict";f();d();Object.defineProperty(IJt,"__esModule",{value:!0})});var kJt=E(AJt=>{"use strict";f();d();Object.defineProperty(AJt,"__esModule",{value:!0})});var PJt=E(SJt=>{"use strict";f();d();Object.defineProperty(SJt,"__esModule",{value:!0})});var MJt=E(RJt=>{"use strict";f();d();Object.defineProperty(RJt,"__esModule",{value:!0})});var DJt=E(BJt=>{"use strict";f();d();Object.defineProperty(BJt,"__esModule",{value:!0})});var OJt=E(NJt=>{"use strict";f();d();Object.defineProperty(NJt,"__esModule",{value:!0})});var FJt=E(ede=>{"use strict";f();d();Object.defineProperty(ede,"__esModule",{value:!0});ede.OperationType=void 0;var WZn;(function(r){r[r.Call=0]="Call",r[r.DelegateCall=1]="DelegateCall"})(WZn=ede.OperationType||(ede.OperationType={}))});var tde=E(Fl=>{"use strict";f();d();var UZn=Fl&&Fl.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var a=Object.getOwnPropertyDescriptor(e,t);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,a)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),d2=Fl&&Fl.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&UZn(e,r,t)};Object.defineProperty(Fl,"__esModule",{value:!0});d2(_Jt(),Fl);d2(EJt(),Fl);d2(CJt(),Fl);d2(kJt(),Fl);d2(PJt(),Fl);d2(MJt(),Fl);d2(DJt(),Fl);d2(OJt(),Fl);d2(FJt(),Fl)});var qJt=E(LJt=>{"use strict";f();d();Object.defineProperty(LJt,"__esModule",{value:!0})});var WJt=E((y_i,HZn)=>{HZn.exports={defaultAddress:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",released:!0,contractName:"GnosisSafeL2",version:"1.3.0",networkAddresses:{"1":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","3":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","5":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","10":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","11":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","12":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","25":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","28":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","40":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","41":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","50":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","51":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","56":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","61":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","63":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","69":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","82":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","83":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","97":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","100":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","106":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","111":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","122":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","123":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","137":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","246":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","250":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","288":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","300":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","321":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","322":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","336":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","338":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","420":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","588":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","592":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","595":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","599":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","686":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","787":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1001":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1008":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1088":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1284":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1285":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1287":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1294":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1807":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1984":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2001":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2002":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2008":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2019":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2020":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2221":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2222":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4002":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4918":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4919":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","7341":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","7700":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","8217":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","9000":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","9001":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","10000":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","10001":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","10200":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11235":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11437":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","12357":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42161":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42170":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42220":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","43113":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","43114":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","44787":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","45000":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","47805":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","54211":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","71401":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","71402":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","73799":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","80001":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","200101":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","200202":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","333999":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","421611":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","421613":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11155111":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1313161554":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1313161555":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1666600000":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1666700000":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","11297108099":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11297108109":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"SafeModuleTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{indexed:!1,internalType:"uint256",name:"safeTxGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gasPrice",type:"uint256"},{indexed:!1,internalType:"address",name:"gasToken",type:"address"},{indexed:!1,internalType:"address payable",name:"refundReceiver",type:"address"},{indexed:!1,internalType:"bytes",name:"signatures",type:"bytes"},{indexed:!1,internalType:"bytes",name:"additionalInfo",type:"bytes"}],name:"SafeMultiSigTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]}});var UJt=E((b_i,jZn)=>{jZn.exports={defaultAddress:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",released:!0,contractName:"GnosisSafe",version:"1.3.0",networkAddresses:{"1":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","3":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","10":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","11":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","12":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","25":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","28":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","40":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","41":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","5":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","50":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","51":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","56":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","61":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","63":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","69":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","82":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","83":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","97":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","100":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","106":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","111":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","122":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","123":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","137":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","246":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","250":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","288":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","300":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","321":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","322":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","336":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","338":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","420":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","588":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","592":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","595":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","599":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","686":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","787":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1001":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1008":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1088":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1284":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1285":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1287":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1294":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1807":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1984":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2001":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2002":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2008":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2019":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2020":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2221":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2222":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4002":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4918":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4919":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","7341":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","7700":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","8217":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","9000":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","9001":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","10000":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","10001":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","10200":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11235":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11437":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","12357":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42161":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42170":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42220":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","43113":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","43114":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","44787":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","45000":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","47805":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","54211":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","71401":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","71402":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","73799":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","80001":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","200101":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","200202":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","333999":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","421611":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","421613":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11155111":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1313161554":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1313161555":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1666600000":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1666700000":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","11297108099":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11297108109":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552"},abi:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]}});var HJt=E((g_i,zZn)=>{zZn.exports={defaultAddress:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",released:!0,contractName:"GnosisSafe",version:"1.2.0",networkAddresses:{"1":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","4":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","42":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","5":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","88":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","100":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","246":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","73799":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185"},abi:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}]}});var jJt=E((v_i,KZn)=>{KZn.exports={defaultAddress:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",released:!0,contractName:"GnosisSafe",version:"1.1.1",networkAddresses:{"1":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","4":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","5":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","42":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","88":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","100":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","246":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","73799":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F"},abi:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}]}});var zJt=E((w_i,GZn)=>{GZn.exports={defaultAddress:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",released:!0,contractName:"GnosisSafe",version:"1.0.0",networkAddresses:{"1":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","4":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","5":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","42":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","100":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A"},abi:[{constant:!1,inputs:[{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"}],name:"signedMessages",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_MODULES",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_OWNERS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NAME",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_MSG_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_TX_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevModule",type:"address"},{name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"oldOwner",type:"address"},{name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"txHash",type:"bytes32"}],name:"ExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{constant:!1,inputs:[{name:"_owners",type:"address[]"},{name:"_threshold",type:"uint256"},{name:"to",type:"address"},{name:"data",type:"bytes"},{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}]}});var GJt=E((x_i,KJt)=>{"use strict";f();d();KJt.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var $Jt=E((E_i,VJt)=>{"use strict";f();d();VJt.exports=ha;ha.Node=m4;ha.create=ha;function ha(r){var e=this;if(e instanceof ha||(e=new ha),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(a){e.push(a)});else if(arguments.length>0)for(var t=0,n=arguments.length;t1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;n!==null;a++)t=r(t,n.value,a),n=n.next;return t};ha.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;n!==null;a--)t=r(t,n.value,a),n=n.prev;return t};ha.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};ha.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};ha.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new ha;if(ethis.length&&(e=this.length);for(var n=0,a=this.head;a!==null&&nthis.length&&(e=this.length);for(var n=this.length,a=this.tail;a!==null&&n>e;n--)a=a.prev;for(;a!==null&&n>r;n--,a=a.prev)t.push(a.value);return t};ha.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,a=this.head;a!==null&&n{"use strict";f();d();var QZn=$Jt(),y4=Symbol("max"),h2=Symbol("length"),Zre=Symbol("lengthCalculator"),nde=Symbol("allowStale"),b4=Symbol("maxAge"),p2=Symbol("dispose"),YJt=Symbol("noDisposeOnSet"),D0=Symbol("lruList"),Em=Symbol("cache"),JJt=Symbol("updateAgeOnGet"),JQe=()=>1,XQe=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[y4]=e.max||1/0,n=e.length||JQe;if(this[Zre]=typeof n!="function"?JQe:n,this[nde]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[b4]=e.maxAge||0,this[p2]=e.dispose,this[YJt]=e.noDisposeOnSet||!1,this[JJt]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[y4]=e||1/0,rde(this)}get max(){return this[y4]}set allowStale(e){this[nde]=!!e}get allowStale(){return this[nde]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[b4]=e,rde(this)}get maxAge(){return this[b4]}set lengthCalculator(e){typeof e!="function"&&(e=JQe),e!==this[Zre]&&(this[Zre]=e,this[h2]=0,this[D0].forEach(t=>{t.length=this[Zre](t.value,t.key),this[h2]+=t.length})),rde(this)}get lengthCalculator(){return this[Zre]}get length(){return this[h2]}get itemCount(){return this[D0].length}rforEach(e,t){t=t||this;for(let n=this[D0].tail;n!==null;){let a=n.prev;QJt(this,e,n,t),n=a}}forEach(e,t){t=t||this;for(let n=this[D0].head;n!==null;){let a=n.next;QJt(this,e,n,t),n=a}}keys(){return this[D0].toArray().map(e=>e.key)}values(){return this[D0].toArray().map(e=>e.value)}reset(){this[p2]&&this[D0]&&this[D0].length&&this[D0].forEach(e=>this[p2](e.key,e.value)),this[Em]=new Map,this[D0]=new QZn,this[h2]=0}dump(){return this[D0].map(e=>aEe(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[D0]}set(e,t,n){if(n=n||this[b4],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let a=n?Date.now():0,i=this[Zre](t,e);if(this[Em].has(e)){if(i>this[y4])return Xre(this,this[Em].get(e)),!1;let c=this[Em].get(e).value;return this[p2]&&(this[YJt]||this[p2](e,c.value)),c.now=a,c.maxAge=n,c.value=t,this[h2]+=i-c.length,c.length=i,this.get(e),rde(this),!0}let s=new eJe(e,t,i,a,n);return s.length>this[y4]?(this[p2]&&this[p2](e,t),!1):(this[h2]+=s.length,this[D0].unshift(s),this[Em].set(e,this[D0].head),rde(this),!0)}has(e){if(!this[Em].has(e))return!1;let t=this[Em].get(e).value;return!aEe(this,t)}get(e){return ZQe(this,e,!0)}peek(e){return ZQe(this,e,!1)}pop(){let e=this[D0].tail;return e?(Xre(this,e),e.value):null}del(e){Xre(this,this[Em].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let a=e[n],i=a.e||0;if(i===0)this.set(a.k,a.v);else{let s=i-t;s>0&&this.set(a.k,a.v,s)}}}prune(){this[Em].forEach((e,t)=>ZQe(this,t,!1))}},ZQe=(r,e,t)=>{let n=r[Em].get(e);if(n){let a=n.value;if(aEe(r,a)){if(Xre(r,n),!r[nde])return}else t&&(r[JJt]&&(n.value.now=Date.now()),r[D0].unshiftNode(n));return a.value}},aEe=(r,e)=>{if(!e||!e.maxAge&&!r[b4])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[b4]&&t>r[b4]},rde=r=>{if(r[h2]>r[y4])for(let e=r[D0].tail;r[h2]>r[y4]&&e!==null;){let t=e.prev;Xre(r,e),e=t}},Xre=(r,e)=>{if(e){let t=e.value;r[p2]&&r[p2](t.key,t.value),r[h2]-=t.length,r[Em].delete(t.key),r[D0].removeNode(e)}},eJe=class{constructor(e,t,n,a,i){this.key=e,this.value=t,this.length=n,this.now=a,this.maxAge=i||0}},QJt=(r,e,t,n)=>{let a=t.value;aEe(r,a)&&(Xre(r,t),r[nde]||(a=void 0)),a&&e.call(n,a.value,a.key,r)};ZJt.exports=XQe});var iEe=E((P_i,eZt)=>{f();d();var JZn=["includePrerelease","loose","rtl"],ZZn=r=>r?typeof r!="object"?{loose:!0}:JZn.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};eZt.exports=ZZn});var tJe=E((B_i,tZt)=>{f();d();var XZn="2.0.0",eXn=Number.MAX_SAFE_INTEGER||9007199254740991,tXn=16;tZt.exports={SEMVER_SPEC_VERSION:XZn,MAX_LENGTH:256,MAX_SAFE_INTEGER:eXn,MAX_SAFE_COMPONENT_LENGTH:tXn}});var ade=E((O_i,rZt)=>{f();d();var rXn=typeof g=="object"&&g.env&&g.env.NODE_DEBUG&&/\bsemver\b/i.test(g.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};rZt.exports=rXn});var sEe=E((n5,nZt)=>{f();d();var{MAX_SAFE_COMPONENT_LENGTH:rJe}=tJe(),nXn=ade();n5=nZt.exports={};var aXn=n5.re=[],Nt=n5.src=[],Ot=n5.t={},iXn=0,on=(r,e,t)=>{let n=iXn++;nXn(r,n,e),Ot[r]=n,Nt[n]=e,aXn[n]=new RegExp(e,t?"g":void 0)};on("NUMERICIDENTIFIER","0|[1-9]\\d*");on("NUMERICIDENTIFIERLOOSE","[0-9]+");on("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");on("MAINVERSION",`(${Nt[Ot.NUMERICIDENTIFIER]})\\.(${Nt[Ot.NUMERICIDENTIFIER]})\\.(${Nt[Ot.NUMERICIDENTIFIER]})`);on("MAINVERSIONLOOSE",`(${Nt[Ot.NUMERICIDENTIFIERLOOSE]})\\.(${Nt[Ot.NUMERICIDENTIFIERLOOSE]})\\.(${Nt[Ot.NUMERICIDENTIFIERLOOSE]})`);on("PRERELEASEIDENTIFIER",`(?:${Nt[Ot.NUMERICIDENTIFIER]}|${Nt[Ot.NONNUMERICIDENTIFIER]})`);on("PRERELEASEIDENTIFIERLOOSE",`(?:${Nt[Ot.NUMERICIDENTIFIERLOOSE]}|${Nt[Ot.NONNUMERICIDENTIFIER]})`);on("PRERELEASE",`(?:-(${Nt[Ot.PRERELEASEIDENTIFIER]}(?:\\.${Nt[Ot.PRERELEASEIDENTIFIER]})*))`);on("PRERELEASELOOSE",`(?:-?(${Nt[Ot.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Nt[Ot.PRERELEASEIDENTIFIERLOOSE]})*))`);on("BUILDIDENTIFIER","[0-9A-Za-z-]+");on("BUILD",`(?:\\+(${Nt[Ot.BUILDIDENTIFIER]}(?:\\.${Nt[Ot.BUILDIDENTIFIER]})*))`);on("FULLPLAIN",`v?${Nt[Ot.MAINVERSION]}${Nt[Ot.PRERELEASE]}?${Nt[Ot.BUILD]}?`);on("FULL",`^${Nt[Ot.FULLPLAIN]}$`);on("LOOSEPLAIN",`[v=\\s]*${Nt[Ot.MAINVERSIONLOOSE]}${Nt[Ot.PRERELEASELOOSE]}?${Nt[Ot.BUILD]}?`);on("LOOSE",`^${Nt[Ot.LOOSEPLAIN]}$`);on("GTLT","((?:<|>)?=?)");on("XRANGEIDENTIFIERLOOSE",`${Nt[Ot.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);on("XRANGEIDENTIFIER",`${Nt[Ot.NUMERICIDENTIFIER]}|x|X|\\*`);on("XRANGEPLAIN",`[v=\\s]*(${Nt[Ot.XRANGEIDENTIFIER]})(?:\\.(${Nt[Ot.XRANGEIDENTIFIER]})(?:\\.(${Nt[Ot.XRANGEIDENTIFIER]})(?:${Nt[Ot.PRERELEASE]})?${Nt[Ot.BUILD]}?)?)?`);on("XRANGEPLAINLOOSE",`[v=\\s]*(${Nt[Ot.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Nt[Ot.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Nt[Ot.XRANGEIDENTIFIERLOOSE]})(?:${Nt[Ot.PRERELEASELOOSE]})?${Nt[Ot.BUILD]}?)?)?`);on("XRANGE",`^${Nt[Ot.GTLT]}\\s*${Nt[Ot.XRANGEPLAIN]}$`);on("XRANGELOOSE",`^${Nt[Ot.GTLT]}\\s*${Nt[Ot.XRANGEPLAINLOOSE]}$`);on("COERCE",`(^|[^\\d])(\\d{1,${rJe}})(?:\\.(\\d{1,${rJe}}))?(?:\\.(\\d{1,${rJe}}))?(?:$|[^\\d])`);on("COERCERTL",Nt[Ot.COERCE],!0);on("LONETILDE","(?:~>?)");on("TILDETRIM",`(\\s*)${Nt[Ot.LONETILDE]}\\s+`,!0);n5.tildeTrimReplace="$1~";on("TILDE",`^${Nt[Ot.LONETILDE]}${Nt[Ot.XRANGEPLAIN]}$`);on("TILDELOOSE",`^${Nt[Ot.LONETILDE]}${Nt[Ot.XRANGEPLAINLOOSE]}$`);on("LONECARET","(?:\\^)");on("CARETTRIM",`(\\s*)${Nt[Ot.LONECARET]}\\s+`,!0);n5.caretTrimReplace="$1^";on("CARET",`^${Nt[Ot.LONECARET]}${Nt[Ot.XRANGEPLAIN]}$`);on("CARETLOOSE",`^${Nt[Ot.LONECARET]}${Nt[Ot.XRANGEPLAINLOOSE]}$`);on("COMPARATORLOOSE",`^${Nt[Ot.GTLT]}\\s*(${Nt[Ot.LOOSEPLAIN]})$|^$`);on("COMPARATOR",`^${Nt[Ot.GTLT]}\\s*(${Nt[Ot.FULLPLAIN]})$|^$`);on("COMPARATORTRIM",`(\\s*)${Nt[Ot.GTLT]}\\s*(${Nt[Ot.LOOSEPLAIN]}|${Nt[Ot.XRANGEPLAIN]})`,!0);n5.comparatorTrimReplace="$1$2$3";on("HYPHENRANGE",`^\\s*(${Nt[Ot.XRANGEPLAIN]})\\s+-\\s+(${Nt[Ot.XRANGEPLAIN]})\\s*$`);on("HYPHENRANGELOOSE",`^\\s*(${Nt[Ot.XRANGEPLAINLOOSE]})\\s+-\\s+(${Nt[Ot.XRANGEPLAINLOOSE]})\\s*$`);on("STAR","(<|>)?=?\\s*\\*");on("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");on("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var oZt=E((U_i,sZt)=>{f();d();var aZt=/^[0-9]+$/,iZt=(r,e)=>{let t=aZt.test(r),n=aZt.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:riZt(e,r);sZt.exports={compareIdentifiers:iZt,rcompareIdentifiers:sXn}});var uEe=E((z_i,fZt)=>{f();d();var oEe=ade(),{MAX_LENGTH:cZt,MAX_SAFE_INTEGER:cEe}=tJe(),{re:uZt,t:lZt}=sEe(),oXn=iEe(),{compareIdentifiers:ene}=oZt(),kd=class{constructor(e,t){if(t=oXn(t),e instanceof kd){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>cZt)throw new TypeError(`version is longer than ${cZt} characters`);oEe("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?uZt[lZt.LOOSE]:uZt[lZt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>cEe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>cEe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>cEe||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let i=+a;if(i>=0&&i=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(ene(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};fZt.exports=kd});var g4=E((V_i,pZt)=>{f();d();var dZt=uEe(),cXn=(r,e,t)=>new dZt(r,t).compare(new dZt(e,t));pZt.exports=cXn});var mZt=E((Q_i,hZt)=>{f();d();var uXn=g4(),lXn=(r,e,t)=>uXn(r,e,t)===0;hZt.exports=lXn});var bZt=E((X_i,yZt)=>{f();d();var fXn=g4(),dXn=(r,e,t)=>fXn(r,e,t)!==0;yZt.exports=dXn});var vZt=E((rTi,gZt)=>{f();d();var pXn=g4(),hXn=(r,e,t)=>pXn(r,e,t)>0;gZt.exports=hXn});var xZt=E((iTi,wZt)=>{f();d();var mXn=g4(),yXn=(r,e,t)=>mXn(r,e,t)>=0;wZt.exports=yXn});var TZt=E((cTi,_Zt)=>{f();d();var bXn=g4(),gXn=(r,e,t)=>bXn(r,e,t)<0;_Zt.exports=gXn});var IZt=E((fTi,EZt)=>{f();d();var vXn=g4(),wXn=(r,e,t)=>vXn(r,e,t)<=0;EZt.exports=wXn});var AZt=E((hTi,CZt)=>{f();d();var xXn=mZt(),_Xn=bZt(),TXn=vZt(),EXn=xZt(),IXn=TZt(),CXn=IZt(),AXn=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return xXn(r,t,n);case"!=":return _Xn(r,t,n);case">":return TXn(r,t,n);case">=":return EXn(r,t,n);case"<":return IXn(r,t,n);case"<=":return CXn(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};CZt.exports=AXn});var BZt=E((bTi,MZt)=>{f();d();var ide=Symbol("SemVer ANY"),tne=class{static get ANY(){return ide}constructor(e,t){if(t=kXn(t),e instanceof tne){if(e.loose===!!t.loose)return e;e=e.value}aJe("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ide?this.value="":this.value=this.operator+this.semver.version,aJe("comp",this)}parse(e){let t=this.options.loose?kZt[SZt.COMPARATORLOOSE]:kZt[SZt.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new PZt(n[2],this.options.loose):this.semver=ide}toString(){return this.value}test(e){if(aJe("Comparator.test",e,this.options.loose),this.semver===ide||e===ide)return!0;if(typeof e=="string")try{e=new PZt(e,this.options)}catch{return!1}return nJe(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof tne))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new RZt(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new RZt(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=nJe(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=nJe(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||a||i&&s||o||c}};MZt.exports=tne;var kXn=iEe(),{re:kZt,t:SZt}=sEe(),nJe=AZt(),aJe=ade(),PZt=uEe(),RZt=iJe()});var iJe=E((wTi,FZt)=>{f();d();var v4=class{constructor(e,t){if(t=PXn(t),e instanceof v4)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new v4(e.raw,t);if(e instanceof sJe)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(a=>!NZt(a[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&NXn(a[0])){this.set=[a];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,a=DZt.get(n);if(a)return a;let i=this.options.loose,s=i?Sf[Ll.HYPHENRANGELOOSE]:Sf[Ll.HYPHENRANGE];e=e.replace(s,KXn(this.options.includePrerelease)),uo("hyphen replace",e),e=e.replace(Sf[Ll.COMPARATORTRIM],MXn),uo("comparator trim",e),e=e.replace(Sf[Ll.TILDETRIM],BXn),e=e.replace(Sf[Ll.CARETTRIM],DXn),e=e.split(/\s+/).join(" ");let o=e.split(" ").map(p=>OXn(p,this.options)).join(" ").split(/\s+/).map(p=>zXn(p,this.options));i&&(o=o.filter(p=>(uo("loose invalid filter",p,this.options),!!p.match(Sf[Ll.COMPARATORLOOSE])))),uo("range list",o);let c=new Map,u=o.map(p=>new sJe(p,this.options));for(let p of u){if(NZt(p))return[p];c.set(p.value,p)}c.size>1&&c.has("")&&c.delete("");let l=[...c.values()];return DZt.set(n,l),l}intersects(e,t){if(!(e instanceof v4))throw new TypeError("a Range is required");return this.set.some(n=>OZt(n,t)&&e.set.some(a=>OZt(a,t)&&n.every(i=>a.every(s=>i.intersects(s,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new RXn(e,this.options)}catch{return!1}for(let t=0;tr.value==="<0.0.0-0",NXn=r=>r.value==="",OZt=(r,e)=>{let t=!0,n=r.slice(),a=n.pop();for(;t&&n.length;)t=n.every(i=>a.intersects(i,e)),a=n.pop();return t},OXn=(r,e)=>(uo("comp",r,e),r=qXn(r,e),uo("caret",r),r=FXn(r,e),uo("tildes",r),r=UXn(r,e),uo("xrange",r),r=jXn(r,e),uo("stars",r),r),ql=r=>!r||r.toLowerCase()==="x"||r==="*",FXn=(r,e)=>r.trim().split(/\s+/).map(t=>LXn(t,e)).join(" "),LXn=(r,e)=>{let t=e.loose?Sf[Ll.TILDELOOSE]:Sf[Ll.TILDE];return r.replace(t,(n,a,i,s,o)=>{uo("tilde",r,n,a,i,s,o);let c;return ql(a)?c="":ql(i)?c=`>=${a}.0.0 <${+a+1}.0.0-0`:ql(s)?c=`>=${a}.${i}.0 <${a}.${+i+1}.0-0`:o?(uo("replaceTilde pr",o),c=`>=${a}.${i}.${s}-${o} <${a}.${+i+1}.0-0`):c=`>=${a}.${i}.${s} <${a}.${+i+1}.0-0`,uo("tilde return",c),c})},qXn=(r,e)=>r.trim().split(/\s+/).map(t=>WXn(t,e)).join(" "),WXn=(r,e)=>{uo("caret",r,e);let t=e.loose?Sf[Ll.CARETLOOSE]:Sf[Ll.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(a,i,s,o,c)=>{uo("caret",r,a,i,s,o,c);let u;return ql(i)?u="":ql(s)?u=`>=${i}.0.0${n} <${+i+1}.0.0-0`:ql(o)?i==="0"?u=`>=${i}.${s}.0${n} <${i}.${+s+1}.0-0`:u=`>=${i}.${s}.0${n} <${+i+1}.0.0-0`:c?(uo("replaceCaret pr",c),i==="0"?s==="0"?u=`>=${i}.${s}.${o}-${c} <${i}.${s}.${+o+1}-0`:u=`>=${i}.${s}.${o}-${c} <${i}.${+s+1}.0-0`:u=`>=${i}.${s}.${o}-${c} <${+i+1}.0.0-0`):(uo("no pr"),i==="0"?s==="0"?u=`>=${i}.${s}.${o}${n} <${i}.${s}.${+o+1}-0`:u=`>=${i}.${s}.${o}${n} <${i}.${+s+1}.0-0`:u=`>=${i}.${s}.${o} <${+i+1}.0.0-0`),uo("caret return",u),u})},UXn=(r,e)=>(uo("replaceXRanges",r,e),r.split(/\s+/).map(t=>HXn(t,e)).join(" ")),HXn=(r,e)=>{r=r.trim();let t=e.loose?Sf[Ll.XRANGELOOSE]:Sf[Ll.XRANGE];return r.replace(t,(n,a,i,s,o,c)=>{uo("xRange",r,n,a,i,s,o,c);let u=ql(i),l=u||ql(s),p=l||ql(o),h=p;return a==="="&&h&&(a=""),c=e.includePrerelease?"-0":"",u?a===">"||a==="<"?n="<0.0.0-0":n="*":a&&h?(l&&(s=0),o=0,a===">"?(a=">=",l?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):a==="<="&&(a="<",l?i=+i+1:s=+s+1),a==="<"&&(c="-0"),n=`${a+i}.${s}.${o}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${s}.0${c} <${i}.${+s+1}.0-0`),uo("xRange return",n),n})},jXn=(r,e)=>(uo("replaceStars",r,e),r.trim().replace(Sf[Ll.STAR],"")),zXn=(r,e)=>(uo("replaceGTE0",r,e),r.trim().replace(Sf[e.includePrerelease?Ll.GTE0PRE:Ll.GTE0],"")),KXn=r=>(e,t,n,a,i,s,o,c,u,l,p,h,m)=>(ql(n)?t="":ql(a)?t=`>=${n}.0.0${r?"-0":""}`:ql(i)?t=`>=${n}.${a}.0${r?"-0":""}`:s?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,ql(u)?c="":ql(l)?c=`<${+u+1}.0.0-0`:ql(p)?c=`<${u}.${+l+1}.0-0`:h?c=`<=${u}.${l}.${p}-${h}`:r?c=`<${u}.${l}.${+p+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),GXn=(r,e,t)=>{for(let n=0;n0){let a=r[n].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0}});var rne=E((TTi,LZt)=>{f();d();var VXn=iJe(),$Xn=(r,e,t)=>{try{e=new VXn(e,t)}catch{return!1}return e.test(r)};LZt.exports=$Xn});var sde=E(nne=>{"use strict";f();d();var YXn=nne&&nne.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nne,"__esModule",{value:!0});nne.findDeployment=void 0;var QXn=YXn(rne()),JXn={released:!0},ZXn=(r=JXn,e)=>e.find(t=>!(r.version&&!QXn.default(t.version,r.version)||typeof r.released=="boolean"&&t.released!=r.released||r.network&&!t.networkAddresses[r.network]));nne.findDeployment=ZXn});var WZt=E(Pf=>{"use strict";f();d();var ode=Pf&&Pf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.getSafeL2SingletonDeployment=Pf._safeL2Deployments=Pf.getSafeSingletonDeployment=Pf._safeDeployments=void 0;var XXn=ode(WJt()),eea=ode(UJt()),tea=ode(HJt()),rea=ode(jJt()),nea=ode(zJt()),qZt=sde();Pf._safeDeployments=[eea.default,tea.default,rea.default,nea.default];var aea=r=>qZt.findDeployment(r,Pf._safeDeployments);Pf.getSafeSingletonDeployment=aea;Pf._safeL2Deployments=[XXn.default];var iea=r=>qZt.findDeployment(r,Pf._safeL2Deployments);Pf.getSafeL2SingletonDeployment=iea});var UZt=E((MTi,sea)=>{sea.exports={defaultAddress:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",released:!0,contractName:"ProxyFactory",version:"1.0.0",networkAddresses:{"1":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","4":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","5":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","42":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","100":"0x12302fE9c02ff50939BaAaaf415fc226C078613C"},abi:[{constant:!1,inputs:[{name:"_mastercopy",type:"address"},{name:"initializer",type:"bytes"},{name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"masterCopy",type:"address"},{name:"data",type:"bytes"}],name:"createProxy",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"}]}});var HZt=E((BTi,oea)=>{oea.exports={defaultAddress:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",released:!0,contractName:"ProxyFactory",version:"1.1.1",networkAddresses:{"1":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","4":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","5":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","42":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","88":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","100":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","246":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","73799":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"masterCopy",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}]}});var jZt=E((DTi,cea)=>{cea.exports={defaultAddress:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",released:!0,contractName:"GnosisSafeProxyFactory",version:"1.3.0",networkAddresses:{"1":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","3":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","5":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","10":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","11":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","12":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","25":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","28":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","40":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","41":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","50":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","51":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","56":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","61":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","63":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","69":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","82":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","83":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","97":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","100":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","106":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","111":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","122":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","123":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","137":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","246":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","250":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","288":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","300":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","321":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","322":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","336":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","338":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","420":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","588":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","592":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","595":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","599":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","686":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","787":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1001":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1008":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1088":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1284":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1285":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1287":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1294":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1807":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1984":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2001":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2002":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2008":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2019":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2020":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2221":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2222":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4002":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4918":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4919":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","7341":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","7700":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","8217":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","9000":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","9001":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","10000":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","10001":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","10200":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11235":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11437":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","12357":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42161":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42170":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42220":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","43113":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","43114":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","44787":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","45000":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","47805":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","54211":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","71401":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","71402":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","73799":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","80001":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","200101":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","200202":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","333999":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","421611":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","421613":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11155111":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1313161554":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1313161555":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1666600000":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1666700000":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","11297108099":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11297108109":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"singleton",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}]}});var zZt=E(ane=>{"use strict";f();d();var oJe=ane&&ane.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ane,"__esModule",{value:!0});ane.getProxyFactoryDeployment=void 0;var uea=oJe(UZt()),lea=oJe(HZt()),fea=oJe(jZt()),dea=sde(),pea=[fea.default,lea.default,uea.default],hea=r=>dea.findDeployment(r,pea);ane.getProxyFactoryDeployment=hea});var KZt=E((LTi,mea)=>{mea.exports={defaultAddress:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",released:!0,contractName:"CreateCall",version:"1.3.0",networkAddresses:{"1":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","3":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","10":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","11":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","12":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","25":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","28":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","40":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","41":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","5":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","50":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","51":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","56":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","61":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","63":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","69":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","82":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","83":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","97":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","100":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","106":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","111":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","122":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","123":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","137":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","246":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","250":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","288":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","300":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","321":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","322":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","336":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","338":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","420":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","588":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","592":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","595":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","599":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","686":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","787":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1001":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1008":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1088":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1284":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1285":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1287":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1294":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1807":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1984":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2001":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2002":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2008":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2019":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2020":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2221":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2222":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4002":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4918":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4919":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","7341":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","7700":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","8217":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","9000":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","9001":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","10000":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","10001":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","10200":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11235":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11437":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","12357":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42161":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42170":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42220":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","43113":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","43114":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","44787":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","45000":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","47805":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","54211":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","71401":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","71402":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","73799":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","80001":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","200101":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","200202":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","333999":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","421611":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","421613":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11155111":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1313161554":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1313161555":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1666600000":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1666700000":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","11297108099":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11297108109":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}]}});var GZt=E((qTi,yea)=>{yea.exports={defaultAddress:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",released:!0,contractName:"MultiSend",version:"1.1.1",networkAddresses:{"1":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","4":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","5":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","42":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","88":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","100":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","246":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","73799":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD"},abi:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]}});var VZt=E((WTi,bea)=>{bea.exports={defaultAddress:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",released:!0,contractName:"MultiSend",version:"1.3.0",networkAddresses:{"1":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","3":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","10":"0x998739BFdAAdde7C933B942a68053933098f9EDa","11":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","12":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","25":"0x998739BFdAAdde7C933B942a68053933098f9EDa","28":"0x998739BFdAAdde7C933B942a68053933098f9EDa","40":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","41":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","5":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","50":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","51":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","56":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","61":"0x998739BFdAAdde7C933B942a68053933098f9EDa","63":"0x998739BFdAAdde7C933B942a68053933098f9EDa","69":"0x998739BFdAAdde7C933B942a68053933098f9EDa","82":"0x998739BFdAAdde7C933B942a68053933098f9EDa","83":"0x998739BFdAAdde7C933B942a68053933098f9EDa","97":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","100":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","106":"0x998739BFdAAdde7C933B942a68053933098f9EDa","111":"0x998739BFdAAdde7C933B942a68053933098f9EDa","122":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","123":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","137":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","246":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","250":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","288":"0x998739BFdAAdde7C933B942a68053933098f9EDa","300":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","321":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","322":"0x6367360366E4c898488091ac315834B779d8f561","336":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","338":"0x998739BFdAAdde7C933B942a68053933098f9EDa","420":"0x998739BFdAAdde7C933B942a68053933098f9EDa","588":"0x998739BFdAAdde7C933B942a68053933098f9EDa","592":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","595":"0x998739BFdAAdde7C933B942a68053933098f9EDa","599":"0x998739BFdAAdde7C933B942a68053933098f9EDa","686":"0x998739BFdAAdde7C933B942a68053933098f9EDa","787":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1001":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1008":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1088":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1284":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1285":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1287":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1294":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1807":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1984":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2001":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2002":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2008":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2019":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2020":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2221":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2222":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4002":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4918":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4919":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","7341":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","7700":"0x998739BFdAAdde7C933B942a68053933098f9EDa","8217":"0x998739BFdAAdde7C933B942a68053933098f9EDa","9000":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","9001":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","10000":"0x998739BFdAAdde7C933B942a68053933098f9EDa","10001":"0x998739BFdAAdde7C933B942a68053933098f9EDa","10200":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11235":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11437":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","12357":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42161":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42170":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42220":"0x998739BFdAAdde7C933B942a68053933098f9EDa","43113":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","43114":"0x998739BFdAAdde7C933B942a68053933098f9EDa","44787":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","45000":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","47805":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","54211":"0x998739BFdAAdde7C933B942a68053933098f9EDa","71401":"0x998739BFdAAdde7C933B942a68053933098f9EDa","71402":"0x998739BFdAAdde7C933B942a68053933098f9EDa","73799":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","80001":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","200101":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","200202":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","333999":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","421611":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","421613":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11155111":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1313161554":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1313161555":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1666600000":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1666700000":"0x998739BFdAAdde7C933B942a68053933098f9EDa","11297108099":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11297108109":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"},abi:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}]}});var $Zt=E((UTi,gea)=>{gea.exports={defaultAddress:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",released:!0,contractName:"MultiSendCallOnly",version:"1.3.0",networkAddresses:{"1":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","3":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","5":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","10":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","11":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","12":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","25":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","28":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","40":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","41":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","50":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","51":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","56":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","61":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","63":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","69":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","82":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","83":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","97":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","100":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","106":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","111":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","122":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","123":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","137":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","246":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","250":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","288":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","300":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","321":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","322":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","336":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","338":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","420":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","588":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","592":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","595":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","599":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","686":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","787":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1001":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1008":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1088":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1284":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1285":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1287":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1294":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1807":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1984":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2001":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2002":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2008":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2019":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2020":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2221":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2222":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4002":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4918":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4919":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","7341":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","7700":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","8217":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","9000":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","9001":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","10000":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","10001":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","10200":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11235":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11437":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","12357":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42161":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42170":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42220":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","43113":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","43114":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","44787":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","45000":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","47805":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","54211":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","71401":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","71402":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","73799":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","80001":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","200101":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","200202":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","333999":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","421611":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","421613":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11155111":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1313161554":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1313161555":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1666600000":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1666700000":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","11297108099":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11297108109":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"},abi:[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}]}});var YZt=E((HTi,vea)=>{vea.exports={defaultAddress:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",contractName:"SignMessageLib",version:"1.3.0",released:!0,networkAddresses:{"1":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","3":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","5":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","10":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","11":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","12":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","25":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","28":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","40":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","41":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","50":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","51":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","56":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","61":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","63":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","69":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","82":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","83":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","97":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","100":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","106":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","111":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","122":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","123":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","137":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","246":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","250":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","288":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","300":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","321":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","322":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","336":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","338":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","420":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","588":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","592":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","595":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","599":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","686":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","787":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1001":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1008":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1088":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1284":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1285":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1287":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1294":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1807":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1984":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2001":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2002":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2008":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2019":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2020":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2221":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2222":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4002":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4918":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4919":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","7341":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","7700":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","8217":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","9000":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","9001":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","10000":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","10001":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","10200":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11235":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11437":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","12357":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42161":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42170":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42220":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","43113":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","43114":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","44787":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","45000":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","47805":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","54211":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","71401":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","71402":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","73799":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","80001":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","200101":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","200202":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","421611":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","421613":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11155111":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1313161554":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1313161555":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1666600000":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1666700000":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","11297108099":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11297108109":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2"},abi:[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}]}});var QZt=E(Zp=>{"use strict";f();d();var cde=Zp&&Zp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Zp,"__esModule",{value:!0});Zp.getSignMessageLibDeployment=Zp.getCreateCallDeployment=Zp.getMultiSendCallOnlyDeployment=Zp.getMultiSendDeployment=void 0;var wea=cde(KZt()),xea=cde(GZt()),_ea=cde(VZt()),Tea=cde($Zt()),Eea=cde(YZt()),lEe=sde(),Iea=[_ea.default,xea.default],Cea=r=>lEe.findDeployment(r,Iea);Zp.getMultiSendDeployment=Cea;var Aea=[Tea.default],kea=r=>lEe.findDeployment(r,Aea);Zp.getMultiSendCallOnlyDeployment=kea;var Sea=[wea.default],Pea=r=>lEe.findDeployment(r,Sea);Zp.getCreateCallDeployment=Pea;var Rea=[Eea.default],Mea=r=>lEe.findDeployment(r,Rea);Zp.getSignMessageLibDeployment=Mea});var JZt=E((GTi,Bea)=>{Bea.exports={defaultAddress:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",released:!0,contractName:"DefaultCallbackHandler",version:"1.1.1",networkAddresses:{"1":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","4":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","5":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","42":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","88":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","100":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","246":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","73799":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44"},abi:[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]}});var ZZt=E((VTi,Dea)=>{Dea.exports={defaultAddress:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",released:!0,contractName:"CompatibilityFallbackHandler",version:"1.3.0",networkAddresses:{"1":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","3":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","10":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","11":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","12":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","25":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","28":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","40":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","41":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","5":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","50":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","51":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","56":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","61":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","63":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","69":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","82":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","83":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","97":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","100":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","106":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","111":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","122":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","123":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","137":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","246":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","250":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","288":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","300":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","321":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","322":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","336":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","338":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","420":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","588":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","592":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","595":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","599":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","686":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","787":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1001":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1008":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1088":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1284":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1285":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1287":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1294":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1807":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1984":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2001":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2002":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2008":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2019":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2020":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2221":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2222":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4002":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4918":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4919":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","7341":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","7700":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","8217":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","9000":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","9001":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","10000":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","10001":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","10200":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11235":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11437":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","12357":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42161":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42170":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42220":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","43113":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","43114":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","44787":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","45000":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","47805":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","54211":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","71401":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","71402":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","73799":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","80001":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","200101":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","200202":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","333999":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","421611":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","421613":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11155111":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1313161554":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1313161555":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1666600000":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1666700000":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","11297108099":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11297108109":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4"},abi:[{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract GnosisSafe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}]}});var rXt=E(by=>{"use strict";f();d();var XZt=by&&by.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(by,"__esModule",{value:!0});by.getFallbackHandlerDeployment=by.getCompatibilityFallbackHandlerDeployment=by.getDefaultCallbackHandlerDeployment=void 0;var eXt=XZt(JZt()),tXt=XZt(ZZt()),cJe=sde(),Nea=[eXt.default],Oea=r=>cJe.findDeployment(r,Nea);by.getDefaultCallbackHandlerDeployment=Oea;var Fea=[tXt.default],Lea=r=>cJe.findDeployment(r,Fea);by.getCompatibilityFallbackHandlerDeployment=Lea;var qea=[tXt.default,eXt.default],Wea=r=>cJe.findDeployment(r,qea);by.getFallbackHandlerDeployment=Wea});var nXt=E(Im=>{"use strict";f();d();var Uea=Im&&Im.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ude=Im&&Im.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Uea(e,r,t)};Object.defineProperty(Im,"__esModule",{value:!0});ude(qJt(),Im);ude(WZt(),Im);ude(zZt(),Im);ude(QZt(),Im);ude(rXt(),Im)});var aXt=E(Sd=>{"use strict";f();d();Object.defineProperty(Sd,"__esModule",{value:!0});Sd.mapReceipt=Sd.createLibInterface=Sd.createLibAddress=Sd.createLibDeployment=void 0;var Hea=$he(),jea=Hf(),zea=nXt();Sd.createLibDeployment=(0,zea.getCreateCallDeployment)();Sd.createLibAddress=Sd.createLibDeployment.defaultAddress;Sd.createLibInterface=new Hea.Interface(Sd.createLibDeployment.abi);var Kea=r=>r.logs.find(t=>t.topics[0]==="0x442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e")?1:0,Gea=(r,e)=>{if(e.to.toLowerCase()===Sd.createLibAddress.toLowerCase()){let t=r.logs.find(n=>n.topics[0]==="0x4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b511");if(t)return(0,jea.getAddress)("0x"+t.data.slice(t.data.length-40))}return r.contractAddress},Vea=(r,e)=>(r.status=Kea(r),r.contractAddress=Gea(r,e),r);Sd.mapReceipt=Vea});var sXt=E(fEe=>{"use strict";f();d();Object.defineProperty(fEe,"__esModule",{value:!0});fEe.SafeEthersSigner=void 0;var $ea=Hy(),lde=Yi(),iXt=tde(),uJe=aXt(),Yea=r=>new Promise(e=>setTimeout(e,r)),lJe=class extends $ea.VoidSigner{constructor(e,t,n,a){super(e.getAddress(),n),this.service=t,this.safe=e,this.options=a}async buildTransactionResponse(e,t){let n=await this.safe,a=this.service;return{to:t.to,value:lde.BigNumber.from(t.value),data:t.data,operation:t.operation,gasLimit:lde.BigNumber.from(t.safeTxGas),gasPrice:lde.BigNumber.from(0),nonce:t.nonce,chainId:await n.getChainId(),hash:e,from:this.address,confirmations:0,wait:async i=>{for(var s,o;;){try{let c=await a.getSafeTxDetails(e);if(c.transactionHash){this._checkProvider("sendTransaction");let u=await this.provider.waitForTransaction(c.transactionHash,i);return(0,uJe.mapReceipt)(u,t)}}catch{}await Yea((o=(s=this.options)===null||s===void 0?void 0:s.pollingDelay)!==null&&o!==void 0?o:5e3)}}}}async sendTransaction(e){var t,n,a;let i=await e,s=iXt.OperationType.Call,o=await i.to,c=(n=(t=await i.data)===null||t===void 0?void 0:t.toString())!==null&&n!==void 0?n:"0x",u=lde.BigNumber.from((a=await i.value)!==null&&a!==void 0?a:0);o||(o=uJe.createLibAddress,c=uJe.createLibInterface.encodeFunctionData("performCreate",[u,c]),u=lde.BigNumber.from(0),s=iXt.OperationType.DelegateCall);let l={to:o,data:c,value:u.toString(),operation:s},p=await this.service.estimateSafeTx(this.address,l),h=await this.safe,m={...l,safeTxGas:p.toNumber()},y=await h.createTransaction({safeTransactionData:m}),C=await h.getTransactionHash(y),P=await h.signTransactionHash(C);return await this.service.proposeTx(this.address,C,y,P),this.buildTransactionResponse(C,y.data)}};fEe.SafeEthersSigner=lJe});var w4=E(a5=>{"use strict";f();d();var Qea=a5&&a5.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var a=Object.getOwnPropertyDescriptor(e,t);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,a)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),oXt=a5&&a5.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Qea(e,r,t)};Object.defineProperty(a5,"__esModule",{value:!0});oXt(wJt(),a5);oXt(sXt(),a5)});var dEe=E(gy=>{"use strict";f();d();Object.defineProperty(gy,"__esModule",{value:!0});gy.safeDeploymentsL1ChainIds=gy.safeDeploymentsVersions=gy.SAFE_BASE_VERSION=gy.SAFE_LAST_VERSION=void 0;gy.SAFE_LAST_VERSION="1.3.0";gy.SAFE_BASE_VERSION="1.0.0";gy.safeDeploymentsVersions={"1.3.0":{safeMasterCopyVersion:"1.3.0",safeMasterCopyL2Version:"1.3.0",safeProxyFactoryVersion:"1.3.0",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.3.0",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.2.0":{safeMasterCopyVersion:"1.2.0",safeMasterCopyL2Version:void 0,safeProxyFactoryVersion:"1.1.1",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.1.1":{safeMasterCopyVersion:"1.1.1",safeMasterCopyL2Version:void 0,safeProxyFactoryVersion:"1.1.1",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.0.0":{safeMasterCopyVersion:"1.0.0",safeMasterCopyL2Version:void 0,safeProxyFactoryVersion:"1.0.0",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"}};gy.safeDeploymentsL1ChainIds=[1]});var uXt=E(cXt=>{"use strict";f();d();Object.defineProperty(cXt,"__esModule",{value:!0})});var lXt=E((mEi,Jea)=>{Jea.exports={defaultAddress:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",released:!0,contractName:"GnosisSafeL2",version:"1.3.0",networkAddresses:{"1":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","3":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","5":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","10":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","11":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","12":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","25":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","28":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","40":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","41":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","50":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","51":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","56":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","61":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","63":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","69":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","82":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","83":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","97":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","100":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","106":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","108":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","111":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","122":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","123":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","137":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","246":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","250":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","288":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","300":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","321":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","322":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","336":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","338":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","420":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","588":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","592":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","595":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","599":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","686":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","787":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1001":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1008":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1088":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1284":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1285":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1287":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1294":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1807":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1984":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2001":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2002":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2008":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2019":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2020":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2221":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","2222":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4002":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4689":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","4918":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","4919":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","7341":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","7700":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","8217":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","9000":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","9001":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","9728":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","10000":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","10001":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","10200":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11235":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11437":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","12357":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42161":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42170":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","42220":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","43113":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","43114":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","43288":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","44787":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","45000":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","47805":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","54211":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","56288":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","71401":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","71402":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","73799":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","80001":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","84531":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","200101":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","200202":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","333999":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","421611":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","421613":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11155111":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1313161554":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1313161555":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","1666600000":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","1666700000":"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","11297108099":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11297108109":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"SafeModuleTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{indexed:!1,internalType:"uint256",name:"safeTxGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gasPrice",type:"uint256"},{indexed:!1,internalType:"address",name:"gasToken",type:"address"},{indexed:!1,internalType:"address payable",name:"refundReceiver",type:"address"},{indexed:!1,internalType:"bytes",name:"signatures",type:"bytes"},{indexed:!1,internalType:"bytes",name:"additionalInfo",type:"bytes"}],name:"SafeMultiSigTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]}});var fXt=E((yEi,Zea)=>{Zea.exports={defaultAddress:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",released:!0,contractName:"GnosisSafe",version:"1.3.0",networkAddresses:{"1":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","3":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","5":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","10":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","11":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","12":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","25":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","28":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","40":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","41":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","50":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","51":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","56":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","61":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","63":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","69":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","82":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","83":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","97":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","100":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","106":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","108":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","111":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","122":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","123":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","137":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","246":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","250":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","288":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","300":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","321":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","322":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","336":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","338":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","420":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","588":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","592":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","595":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","599":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","686":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","787":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1001":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1008":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1088":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1284":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1285":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1287":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1294":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1807":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1984":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2001":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2002":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2008":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2019":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2020":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2221":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","2222":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4002":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4689":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","4918":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","4919":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","7341":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","7700":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","8217":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","9000":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","9001":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","9728":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","10000":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","10001":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","10200":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11235":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11437":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","12357":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42161":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42170":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","42220":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","43113":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","43114":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","43288":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","44787":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","45000":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","47805":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","54211":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","56288":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","71401":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","71402":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","73799":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","80001":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","84531":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","200101":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","200202":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","333999":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","421611":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","421613":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11155111":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1313161554":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1313161555":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","1666600000":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","1666700000":"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","11297108099":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11297108109":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552"},abi:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]}});var dXt=E((bEi,Xea)=>{Xea.exports={defaultAddress:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",released:!0,contractName:"GnosisSafe",version:"1.2.0",networkAddresses:{"1":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","4":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","5":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","42":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","88":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","100":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","246":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185","73799":"0x6851D6fDFAfD08c0295C392436245E5bc78B0185"},abi:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}]}});var pXt=E((gEi,eta)=>{eta.exports={defaultAddress:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",released:!0,contractName:"GnosisSafe",version:"1.1.1",networkAddresses:{"1":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","4":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","5":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","42":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","88":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","100":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","246":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F","73799":"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F"},abi:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}]}});var hXt=E((vEi,tta)=>{tta.exports={defaultAddress:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",released:!0,contractName:"GnosisSafe",version:"1.0.0",networkAddresses:{"1":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","4":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","5":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","42":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A","100":"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A"},abi:[{constant:!1,inputs:[{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"}],name:"signedMessages",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_MODULES",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_OWNERS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NAME",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_MSG_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_TX_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevModule",type:"address"},{name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"oldOwner",type:"address"},{name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"txHash",type:"bytes32"}],name:"ExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{constant:!1,inputs:[{name:"_owners",type:"address[]"},{name:"_threshold",type:"uint256"},{name:"to",type:"address"},{name:"data",type:"bytes"},{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}]}});var fde=E(ine=>{"use strict";f();d();var rta=ine&&ine.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ine,"__esModule",{value:!0});ine.findDeployment=void 0;var nta=rta(rne()),ata={released:!0},ita=(r=ata,e)=>e.find(t=>!(r.version&&!nta.default(t.version,r.version)||typeof r.released=="boolean"&&t.released!=r.released||r.network&&!t.networkAddresses[r.network]));ine.findDeployment=ita});var yXt=E(Rf=>{"use strict";f();d();var dde=Rf&&Rf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rf,"__esModule",{value:!0});Rf.getSafeL2SingletonDeployment=Rf._safeL2Deployments=Rf.getSafeSingletonDeployment=Rf._safeDeployments=void 0;var sta=dde(lXt()),ota=dde(fXt()),cta=dde(dXt()),uta=dde(pXt()),lta=dde(hXt()),mXt=fde();Rf._safeDeployments=[ota.default,cta.default,uta.default,lta.default];var fta=r=>mXt.findDeployment(r,Rf._safeDeployments);Rf.getSafeSingletonDeployment=fta;Rf._safeL2Deployments=[sta.default];var dta=r=>mXt.findDeployment(r,Rf._safeL2Deployments);Rf.getSafeL2SingletonDeployment=dta});var bXt=E((CEi,pta)=>{pta.exports={defaultAddress:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",released:!0,contractName:"ProxyFactory",version:"1.0.0",networkAddresses:{"1":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","4":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","5":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","42":"0x12302fE9c02ff50939BaAaaf415fc226C078613C","100":"0x12302fE9c02ff50939BaAaaf415fc226C078613C"},abi:[{constant:!1,inputs:[{name:"_mastercopy",type:"address"},{name:"initializer",type:"bytes"},{name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"masterCopy",type:"address"},{name:"data",type:"bytes"}],name:"createProxy",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"}]}});var gXt=E((AEi,hta)=>{hta.exports={defaultAddress:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",released:!0,contractName:"ProxyFactory",version:"1.1.1",networkAddresses:{"1":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","4":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","5":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","42":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","88":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","100":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","246":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B","73799":"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"masterCopy",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}]}});var vXt=E((kEi,mta)=>{mta.exports={defaultAddress:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",released:!0,contractName:"GnosisSafeProxyFactory",version:"1.3.0",networkAddresses:{"1":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","3":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","5":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","10":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","11":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","12":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","25":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","28":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","40":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","41":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","50":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","51":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","56":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","61":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","63":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","69":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","82":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","83":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","97":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","100":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","106":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","108":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","111":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","122":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","123":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","137":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","246":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","250":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","288":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","300":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","321":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","322":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","336":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","338":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","420":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","588":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","592":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","595":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","599":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","686":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","787":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1001":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1008":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1088":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1284":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1285":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1287":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1294":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1807":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1984":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2001":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2002":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2008":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2019":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2020":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2221":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","2222":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4002":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4689":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","4918":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","4919":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","7341":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","7700":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","8217":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","9000":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","9001":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","9728":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","10000":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","10001":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","10200":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11235":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11437":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","12357":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42161":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42170":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","42220":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","43113":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","43114":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","43288":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","44787":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","45000":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","47805":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","54211":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","56288":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","71401":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","71402":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","73799":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","80001":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","84531":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","200101":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","200202":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","333999":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","421611":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","421613":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11155111":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1313161554":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1313161555":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","1666600000":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","1666700000":"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","11297108099":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11297108109":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"singleton",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}]}});var wXt=E(sne=>{"use strict";f();d();var fJe=sne&&sne.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(sne,"__esModule",{value:!0});sne.getProxyFactoryDeployment=void 0;var yta=fJe(bXt()),bta=fJe(gXt()),gta=fJe(vXt()),vta=fde(),wta=[gta.default,bta.default,yta.default],xta=r=>vta.findDeployment(r,wta);sne.getProxyFactoryDeployment=xta});var xXt=E((MEi,_ta)=>{_ta.exports={defaultAddress:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",released:!0,contractName:"CreateCall",version:"1.3.0",networkAddresses:{"1":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","3":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","5":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","10":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","11":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","12":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","25":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","28":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","40":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","41":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","50":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","51":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","56":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","61":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","63":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","69":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","82":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","83":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","97":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","100":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","106":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","108":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","111":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","122":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","123":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","137":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","246":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","250":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","288":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","300":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","321":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","322":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","336":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","338":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","420":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","588":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","592":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","595":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","599":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","686":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","787":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1001":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1008":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1088":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1284":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1285":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1287":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1294":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1807":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1984":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2001":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2002":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2008":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2019":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2020":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2221":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","2222":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4002":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4689":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","4918":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","4919":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","7341":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","7700":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","8217":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","9000":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","9001":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","9728":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","10000":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","10001":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","10200":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11235":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11437":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","12357":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42161":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42170":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","42220":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","43113":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","43114":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","43288":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","44787":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","45000":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","47805":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","54211":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","56288":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","71401":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","71402":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","73799":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","80001":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","84531":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","200101":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","200202":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","333999":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","421611":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","421613":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11155111":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1313161554":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1313161555":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","1666600000":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","1666700000":"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","11297108099":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11297108109":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4"},abi:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}]}});var _Xt=E((BEi,Tta)=>{Tta.exports={defaultAddress:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",released:!0,contractName:"MultiSend",version:"1.1.1",networkAddresses:{"1":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","4":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","5":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","42":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","88":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","100":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","246":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD","73799":"0x8D29bE29923b68abfDD21e541b9374737B49cdAD"},abi:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]}});var TXt=E((DEi,Eta)=>{Eta.exports={defaultAddress:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",released:!0,contractName:"MultiSend",version:"1.3.0",networkAddresses:{"1":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","3":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","5":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","10":"0x998739BFdAAdde7C933B942a68053933098f9EDa","11":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","12":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","25":"0x998739BFdAAdde7C933B942a68053933098f9EDa","28":"0x998739BFdAAdde7C933B942a68053933098f9EDa","40":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","41":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","50":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","51":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","56":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","61":"0x998739BFdAAdde7C933B942a68053933098f9EDa","63":"0x998739BFdAAdde7C933B942a68053933098f9EDa","69":"0x998739BFdAAdde7C933B942a68053933098f9EDa","82":"0x998739BFdAAdde7C933B942a68053933098f9EDa","83":"0x998739BFdAAdde7C933B942a68053933098f9EDa","97":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","100":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","106":"0x998739BFdAAdde7C933B942a68053933098f9EDa","108":"0x998739BFdAAdde7C933B942a68053933098f9EDa","111":"0x998739BFdAAdde7C933B942a68053933098f9EDa","122":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","123":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","137":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","246":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","250":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","288":"0x998739BFdAAdde7C933B942a68053933098f9EDa","300":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","321":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","322":"0x6367360366E4c898488091ac315834B779d8f561","336":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","338":"0x998739BFdAAdde7C933B942a68053933098f9EDa","420":"0x998739BFdAAdde7C933B942a68053933098f9EDa","588":"0x998739BFdAAdde7C933B942a68053933098f9EDa","592":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","595":"0x998739BFdAAdde7C933B942a68053933098f9EDa","599":"0x998739BFdAAdde7C933B942a68053933098f9EDa","686":"0x998739BFdAAdde7C933B942a68053933098f9EDa","787":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1001":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1008":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1088":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1284":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1285":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1287":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1294":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1807":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1984":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2001":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2002":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2008":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2019":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2020":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2221":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","2222":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4002":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4689":"0x998739BFdAAdde7C933B942a68053933098f9EDa","4918":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","4919":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","7341":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","7700":"0x998739BFdAAdde7C933B942a68053933098f9EDa","8217":"0x998739BFdAAdde7C933B942a68053933098f9EDa","9000":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","9001":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","9728":"0x998739BFdAAdde7C933B942a68053933098f9EDa","10000":"0x998739BFdAAdde7C933B942a68053933098f9EDa","10001":"0x998739BFdAAdde7C933B942a68053933098f9EDa","10200":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11235":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11437":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","12357":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42161":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42170":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","42220":"0x998739BFdAAdde7C933B942a68053933098f9EDa","43113":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","43114":"0x998739BFdAAdde7C933B942a68053933098f9EDa","43288":"0x998739BFdAAdde7C933B942a68053933098f9EDa","44787":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","45000":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","47805":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","54211":"0x998739BFdAAdde7C933B942a68053933098f9EDa","56288":"0x998739BFdAAdde7C933B942a68053933098f9EDa","71401":"0x998739BFdAAdde7C933B942a68053933098f9EDa","71402":"0x998739BFdAAdde7C933B942a68053933098f9EDa","73799":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","80001":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","84531":"0x998739BFdAAdde7C933B942a68053933098f9EDa","200101":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","200202":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","333999":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","421611":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","421613":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11155111":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1313161554":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1313161555":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","1666600000":"0x998739BFdAAdde7C933B942a68053933098f9EDa","1666700000":"0x998739BFdAAdde7C933B942a68053933098f9EDa","11297108099":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11297108109":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"},abi:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}]}});var EXt=E((NEi,Ita)=>{Ita.exports={defaultAddress:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",released:!0,contractName:"MultiSendCallOnly",version:"1.3.0",networkAddresses:{"1":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","3":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","5":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","10":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","11":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","12":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","25":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","28":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","40":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","41":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","50":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","51":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","56":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","61":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","63":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","69":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","82":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","83":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","97":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","100":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","106":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","108":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","111":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","122":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","123":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","137":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","246":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","250":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","288":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","300":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","321":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","322":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","336":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","338":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","420":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","588":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","592":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","595":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","599":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","686":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","787":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1001":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1008":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1088":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1284":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1285":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1287":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1294":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1807":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1984":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2001":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2002":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2008":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2019":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2020":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2221":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","2222":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4002":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4689":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","4918":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","4919":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","7341":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","7700":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","8217":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","9000":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","9001":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","9728":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","10000":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","10001":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","10200":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11235":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11437":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","12357":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42161":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42170":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","42220":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","43113":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","43114":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","43288":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","44787":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","45000":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","47805":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","54211":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","56288":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","71401":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","71402":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","73799":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","80001":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","84531":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","200101":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","200202":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","333999":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","421611":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","421613":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11155111":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1313161554":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1313161555":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","1666600000":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","1666700000":"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","11297108099":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11297108109":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"},abi:[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}]}});var IXt=E((OEi,Cta)=>{Cta.exports={defaultAddress:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",contractName:"SignMessageLib",version:"1.3.0",released:!0,networkAddresses:{"1":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","3":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","5":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","10":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","11":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","12":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","25":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","28":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","40":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","41":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","50":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","51":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","56":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","61":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","63":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","69":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","82":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","83":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","97":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","100":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","106":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","108":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","111":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","122":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","123":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","137":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","246":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","250":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","288":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","300":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","321":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","322":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","336":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","338":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","420":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","588":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","592":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","595":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","599":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","686":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","787":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1001":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1008":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1088":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1284":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1285":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1287":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1294":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1807":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1984":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2001":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2002":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2008":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2019":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2020":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2221":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","2222":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4002":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4689":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","4918":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","4919":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","7341":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","7700":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","8217":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","9000":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","9001":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","9728":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","10000":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","10001":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","10200":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11235":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11437":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","12357":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42161":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42170":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","42220":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","43113":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","43114":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","43288":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","44787":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","45000":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","47805":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","54211":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","56288":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","71401":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","71402":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","73799":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","80001":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","84531":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","200101":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","200202":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","421611":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","421613":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11155111":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1313161554":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1313161555":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","1666600000":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","1666700000":"0x98FFBBF51bb33A056B08ddf711f289936AafF717","11297108099":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11297108109":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2"},abi:[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}]}});var CXt=E(Xp=>{"use strict";f();d();var pde=Xp&&Xp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xp,"__esModule",{value:!0});Xp.getSignMessageLibDeployment=Xp.getCreateCallDeployment=Xp.getMultiSendCallOnlyDeployment=Xp.getMultiSendDeployment=void 0;var Ata=pde(xXt()),kta=pde(_Xt()),Sta=pde(TXt()),Pta=pde(EXt()),Rta=pde(IXt()),pEe=fde(),Mta=[Sta.default,kta.default],Bta=r=>pEe.findDeployment(r,Mta);Xp.getMultiSendDeployment=Bta;var Dta=[Pta.default],Nta=r=>pEe.findDeployment(r,Dta);Xp.getMultiSendCallOnlyDeployment=Nta;var Ota=[Ata.default],Fta=r=>pEe.findDeployment(r,Ota);Xp.getCreateCallDeployment=Fta;var Lta=[Rta.default],qta=r=>pEe.findDeployment(r,Lta);Xp.getSignMessageLibDeployment=qta});var AXt=E((WEi,Wta)=>{Wta.exports={defaultAddress:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",released:!0,contractName:"DefaultCallbackHandler",version:"1.1.1",networkAddresses:{"1":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","4":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","5":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","42":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","88":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","100":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","246":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44","73799":"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44"},abi:[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]}});var kXt=E((UEi,Uta)=>{Uta.exports={defaultAddress:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",released:!0,contractName:"CompatibilityFallbackHandler",version:"1.3.0",networkAddresses:{"1":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","3":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","5":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","10":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","11":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","12":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","25":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","28":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","40":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","41":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","50":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","51":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","56":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","61":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","63":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","69":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","82":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","83":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","97":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","100":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","106":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","108":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","111":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","122":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","123":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","137":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","246":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","250":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","288":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","300":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","321":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","322":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","336":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","338":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","420":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","588":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","592":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","595":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","599":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","686":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","787":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1001":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1008":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1088":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1284":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1285":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1287":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1294":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1807":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1984":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2001":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2002":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2008":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2019":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2020":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2221":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","2222":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4002":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4689":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","4918":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","4919":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","7341":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","7700":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","8217":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","9000":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","9001":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","9728":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","10000":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","10001":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","10200":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11235":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11437":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","12357":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42161":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42170":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","42220":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","43113":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","43114":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","43288":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","44787":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","45000":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","47805":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","54211":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","56288":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","71401":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","71402":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","73799":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","80001":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","84531":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","200101":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","200202":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","333999":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","421611":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","421613":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11155111":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1313161554":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1313161555":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","1666600000":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","1666700000":"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","11297108099":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11297108109":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4"},abi:[{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract GnosisSafe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}]}});var MXt=E(vy=>{"use strict";f();d();var SXt=vy&&vy.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vy,"__esModule",{value:!0});vy.getFallbackHandlerDeployment=vy.getCompatibilityFallbackHandlerDeployment=vy.getDefaultCallbackHandlerDeployment=void 0;var PXt=SXt(AXt()),RXt=SXt(kXt()),dJe=fde(),Hta=[PXt.default],jta=r=>dJe.findDeployment(r,Hta);vy.getDefaultCallbackHandlerDeployment=jta;var zta=[RXt.default],Kta=r=>dJe.findDeployment(r,zta);vy.getCompatibilityFallbackHandlerDeployment=Kta;var Gta=[RXt.default,PXt.default],Vta=r=>dJe.findDeployment(r,Gta);vy.getFallbackHandlerDeployment=Vta});var BXt=E(Cm=>{"use strict";f();d();var $ta=Cm&&Cm.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),hde=Cm&&Cm.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&$ta(e,r,t)};Object.defineProperty(Cm,"__esModule",{value:!0});hde(uXt(),Cm);hde(yXt(),Cm);hde(wXt(),Cm);hde(CXt(),Cm);hde(MXt(),Cm)});var pJe=E(Di=>{"use strict";f();d();Object.defineProperty(Di,"__esModule",{value:!0});Di.getCreateCallContract=Di.getSignMessageLibContract=Di.getMultiSendCallOnlyContract=Di.getMultiSendContract=Di.getCompatibilityFallbackHandlerContract=Di.getProxyFactoryContract=Di.getSafeContract=Di.getCreateCallContractDeployment=Di.getSignMessageLibContractDeployment=Di.getSafeProxyFactoryContractDeployment=Di.getMultiSendContractDeployment=Di.getMultiSendCallOnlyContractDeployment=Di.getCompatibilityFallbackHandlerContractDeployment=Di.getSafeContractDeployment=void 0;var i5=BXt(),s5=dEe();function DXt(r,e,t=!1){let a={version:s5.safeDeploymentsVersions[r].safeMasterCopyVersion,network:e.toString(),released:!0};return s5.safeDeploymentsL1ChainIds.includes(e)||t?(0,i5.getSafeSingletonDeployment)(a):(0,i5.getSafeL2SingletonDeployment)(a)}Di.getSafeContractDeployment=DXt;function NXt(r,e){let t=s5.safeDeploymentsVersions[r].compatibilityFallbackHandler;return(0,i5.getCompatibilityFallbackHandlerDeployment)({version:t,network:e.toString(),released:!0})}Di.getCompatibilityFallbackHandlerContractDeployment=NXt;function OXt(r,e){let t=s5.safeDeploymentsVersions[r].multiSendCallOnlyVersion;return(0,i5.getMultiSendCallOnlyDeployment)({version:t,network:e.toString(),released:!0})}Di.getMultiSendCallOnlyContractDeployment=OXt;function FXt(r,e){let t=s5.safeDeploymentsVersions[r].multiSendVersion;return(0,i5.getMultiSendDeployment)({version:t,network:e.toString(),released:!0})}Di.getMultiSendContractDeployment=FXt;function LXt(r,e){let t=s5.safeDeploymentsVersions[r].safeProxyFactoryVersion;return(0,i5.getProxyFactoryDeployment)({version:t,network:e.toString(),released:!0})}Di.getSafeProxyFactoryContractDeployment=LXt;function qXt(r,e){let t=s5.safeDeploymentsVersions[r].signMessageLibVersion;return(0,i5.getSignMessageLibDeployment)({version:t,network:e.toString(),released:!0})}Di.getSignMessageLibContractDeployment=qXt;function WXt(r,e){let t=s5.safeDeploymentsVersions[r].createCallVersion;return(0,i5.getCreateCallDeployment)({version:t,network:e.toString(),released:!0})}Di.getCreateCallContractDeployment=WXt;async function Yta({ethAdapter:r,safeVersion:e,chainId:t,customSafeAddress:n,isL1SafeMasterCopy:a,customContracts:i}){let s=DXt(e,t,a),o=r.getSafeContract({safeVersion:e,chainId:t,singletonDeployment:s,customContractAddress:n??i?.safeMasterCopyAddress,customContractAbi:i?.safeMasterCopyAbi});if(!await r.isContractDeployed(o.getAddress()))throw new Error("SafeProxy contract is not deployed on the current network");return o}Di.getSafeContract=Yta;async function Qta({ethAdapter:r,safeVersion:e,chainId:t,customContracts:n}){let a=LXt(e,t),i=await r.getSafeProxyFactoryContract({safeVersion:e,chainId:t,singletonDeployment:a,customContractAddress:n?.safeProxyFactoryAddress,customContractAbi:n?.safeProxyFactoryAbi});if(!await r.isContractDeployed(i.getAddress()))throw new Error("SafeProxyFactory contract is not deployed on the current network");return i}Di.getProxyFactoryContract=Qta;async function Jta({ethAdapter:r,safeVersion:e,chainId:t,customContracts:n}){let a=NXt(e,t),i=await r.getCompatibilityFallbackHandlerContract({safeVersion:e,chainId:t,singletonDeployment:a,customContractAddress:n?.fallbackHandlerAddress,customContractAbi:n?.fallbackHandlerAbi});if(!await r.isContractDeployed(i.getAddress()))throw new Error("CompatibilityFallbackHandler contract is not deployed on the current network");return i}Di.getCompatibilityFallbackHandlerContract=Jta;async function Zta({ethAdapter:r,safeVersion:e,chainId:t,customContracts:n}){let a=FXt(e,t),i=await r.getMultiSendContract({safeVersion:e,chainId:t,singletonDeployment:a,customContractAddress:n?.multiSendAddress,customContractAbi:n?.multiSendAbi});if(!await r.isContractDeployed(i.getAddress()))throw new Error("MultiSend contract is not deployed on the current network");return i}Di.getMultiSendContract=Zta;async function Xta({ethAdapter:r,safeVersion:e,chainId:t,customContracts:n}){let a=OXt(e,t),i=await r.getMultiSendCallOnlyContract({safeVersion:e,chainId:t,singletonDeployment:a,customContractAddress:n?.multiSendCallOnlyAddress,customContractAbi:n?.multiSendCallOnlyAbi});if(!await r.isContractDeployed(i.getAddress()))throw new Error("MultiSendCallOnly contract is not deployed on the current network");return i}Di.getMultiSendCallOnlyContract=Xta;async function era({ethAdapter:r,safeVersion:e,chainId:t,customContracts:n}){let a=qXt(e,t),i=await r.getSignMessageLibContract({safeVersion:e,chainId:t,singletonDeployment:a,customContractAddress:n?.signMessageLibAddress,customContractAbi:n?.signMessageLibAbi});if(!await r.isContractDeployed(i.getAddress()))throw new Error("SignMessageLib contract is not deployed on the current network");return i}Di.getSignMessageLibContract=era;async function tra({ethAdapter:r,safeVersion:e,chainId:t,customContracts:n}){let a=WXt(e,t),i=await r.getCreateCallContract({safeVersion:e,chainId:t,singletonDeployment:a,customContractAddress:n?.createCallAddress,customContractAbi:n?.createCallAbi});if(!await r.isContractDeployed(i.getAddress()))throw new Error("CreateCall contract is not deployed on the current network");return i}Di.getCreateCallContract=tra});var hJe=E(x4=>{"use strict";f();d();var mde=x4&&x4.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},yde=x4&&x4.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},mEe,yEe,bEe,gEe,vEe;Object.defineProperty(x4,"__esModule",{value:!0});var rra=dEe(),hEe=pJe(),bde=class{constructor(){mEe.set(this,void 0),yEe.set(this,void 0),bEe.set(this,void 0),gEe.set(this,void 0),vEe.set(this,void 0)}static async create({ethAdapter:e,safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}){let i=new bde;return await i.init({ethAdapter:e,safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}),i}async init({ethAdapter:e,safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}){let i=await e.getChainId(),s=a?.[i];mde(this,mEe,a,"f"),mde(this,yEe,n,"f");let c=await(await(0,hEe.getSafeContract)({ethAdapter:e,safeVersion:rra.SAFE_LAST_VERSION,chainId:i,isL1SafeMasterCopy:n,customSafeAddress:t,customContracts:s})).getVersion();mde(this,bEe,await(0,hEe.getSafeContract)({ethAdapter:e,safeVersion:c,chainId:i,isL1SafeMasterCopy:n,customSafeAddress:t,customContracts:s}),"f"),mde(this,gEe,await(0,hEe.getMultiSendContract)({ethAdapter:e,safeVersion:c,chainId:i,customContracts:s}),"f"),mde(this,vEe,await(0,hEe.getMultiSendCallOnlyContract)({ethAdapter:e,safeVersion:c,chainId:i,customContracts:s}),"f")}get contractNetworks(){return yde(this,mEe,"f")}get isL1SafeMasterCopy(){return yde(this,yEe,"f")}get safeContract(){return yde(this,bEe,"f")}get multiSendContract(){return yde(this,gEe,"f")}get multiSendCallOnlyContract(){return yde(this,vEe,"f")}};mEe=new WeakMap,yEe=new WeakMap,bEe=new WeakMap,gEe=new WeakMap,vEe=new WeakMap;x4.default=bde});var yJe=E((UXt,mJe)=>{f();d();(function(r,e){"use strict";function t(H,I){if(!H)throw new Error(I||"Assertion failed")}function n(H,I){H.super_=I;var b=function(){};b.prototype=I.prototype,H.prototype=new b,H.prototype.constructor=H}function a(H,I,b){if(a.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((I==="le"||I==="be")&&(b=I,I=10),this._init(H||0,I||10,b||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{i=Uo().Buffer}catch{}a.isBN=function(I){return I instanceof a?!0:I!==null&&typeof I=="object"&&I.constructor.wordSize===a.wordSize&&Array.isArray(I.words)},a.max=function(I,b){return I.cmp(b)>0?I:b},a.min=function(I,b){return I.cmp(b)<0?I:b},a.prototype._init=function(I,b,k){if(typeof I=="number")return this._initNumber(I,b,k);if(typeof I=="object")return this._initArray(I,b,k);b==="hex"&&(b=16),t(b===(b|0)&&b>=2&&b<=36),I=I.toString().replace(/\s+/g,"");var S=0;I[0]==="-"&&S++,b===16?this._parseHex(I,S):this._parseBase(I,b,S),I[0]==="-"&&(this.negative=1),this.strip(),k==="le"&&this._initArray(this.toArray(),b,k)},a.prototype._initNumber=function(I,b,k){I<0&&(this.negative=1,I=-I),I<67108864?(this.words=[I&67108863],this.length=1):I<4503599627370496?(this.words=[I&67108863,I/67108864&67108863],this.length=2):(t(I<9007199254740992),this.words=[I&67108863,I/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),b,k)},a.prototype._initArray=function(I,b,k){if(t(typeof I.length=="number"),I.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(I.length/3),this.words=new Array(this.length);for(var S=0;S=0;S-=3)R=I[S]|I[S-1]<<8|I[S-2]<<16,this.words[w]|=R<>>26-O&67108863,O+=24,O>=26&&(O-=26,w++);else if(k==="le")for(S=0,w=0;S>>26-O&67108863,O+=24,O>=26&&(O-=26,w++);return this.strip()};function s(H,I,b){for(var k=0,S=Math.min(H.length,b),w=I;w=49&&R<=54?k|=R-49+10:R>=17&&R<=22?k|=R-17+10:k|=R&15}return k}a.prototype._parseHex=function(I,b){this.length=Math.ceil((I.length-b)/6),this.words=new Array(this.length);for(var k=0;k=b;k-=6)w=s(I,k,k+6),this.words[S]|=w<>>26-R&4194303,R+=24,R>=26&&(R-=26,S++);k+6!==b&&(w=s(I,b,k+6),this.words[S]|=w<>>26-R&4194303),this.strip()};function o(H,I,b,k){for(var S=0,w=Math.min(H.length,b),R=I;R=49?S+=O-49+10:O>=17?S+=O-17+10:S+=O}return S}a.prototype._parseBase=function(I,b,k){this.words=[0],this.length=1;for(var S=0,w=1;w<=67108863;w*=b)S++;S--,w=w/b|0;for(var R=I.length-k,O=R%S,D=Math.min(R,R-O)+k,T=0,x=k;x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(I,b){I=I||10,b=b|0||1;var k;if(I===16||I==="hex"){k="";for(var S=0,w=0,R=0;R>>24-S&16777215,w!==0||R!==this.length-1?k=c[6-D.length]+D+k:k=D+k,S+=2,S>=26&&(S-=26,R--)}for(w!==0&&(k=w.toString(16)+k);k.length%b!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(I===(I|0)&&I>=2&&I<=36){var T=u[I],x=l[I];k="";var N=this.clone();for(N.negative=0;!N.isZero();){var U=N.modn(x).toString(I);N=N.idivn(x),N.isZero()?k=U+k:k=c[T-U.length]+U+k}for(this.isZero()&&(k="0"+k);k.length%b!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var I=this.words[0];return this.length===2?I+=this.words[1]*67108864:this.length===3&&this.words[2]===1?I+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-I:I},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(I,b){return t(typeof i<"u"),this.toArrayLike(i,I,b)},a.prototype.toArray=function(I,b){return this.toArrayLike(Array,I,b)},a.prototype.toArrayLike=function(I,b,k){var S=this.byteLength(),w=k||Math.max(1,S);t(S<=w,"byte array longer than desired length"),t(w>0,"Requested array length <= 0"),this.strip();var R=b==="le",O=new I(w),D,T,x=this.clone();if(R){for(T=0;!x.isZero();T++)D=x.andln(255),x.iushrn(8),O[T]=D;for(;T=4096&&(k+=13,b>>>=13),b>=64&&(k+=7,b>>>=7),b>=8&&(k+=4,b>>>=4),b>=2&&(k+=2,b>>>=2),k+b},a.prototype._zeroBits=function(I){if(I===0)return 26;var b=I,k=0;return(b&8191)===0&&(k+=13,b>>>=13),(b&127)===0&&(k+=7,b>>>=7),(b&15)===0&&(k+=4,b>>>=4),(b&3)===0&&(k+=2,b>>>=2),(b&1)===0&&k++,k},a.prototype.bitLength=function(){var I=this.words[this.length-1],b=this._countBits(I);return(this.length-1)*26+b};function p(H){for(var I=new Array(H.bitLength()),b=0;b>>S}return I}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var I=0,b=0;bI.length?this.clone().ior(I):I.clone().ior(this)},a.prototype.uor=function(I){return this.length>I.length?this.clone().iuor(I):I.clone().iuor(this)},a.prototype.iuand=function(I){var b;this.length>I.length?b=I:b=this;for(var k=0;kI.length?this.clone().iand(I):I.clone().iand(this)},a.prototype.uand=function(I){return this.length>I.length?this.clone().iuand(I):I.clone().iuand(this)},a.prototype.iuxor=function(I){var b,k;this.length>I.length?(b=this,k=I):(b=I,k=this);for(var S=0;SI.length?this.clone().ixor(I):I.clone().ixor(this)},a.prototype.uxor=function(I){return this.length>I.length?this.clone().iuxor(I):I.clone().iuxor(this)},a.prototype.inotn=function(I){t(typeof I=="number"&&I>=0);var b=Math.ceil(I/26)|0,k=I%26;this._expand(b),k>0&&b--;for(var S=0;S0&&(this.words[S]=~this.words[S]&67108863>>26-k),this.strip()},a.prototype.notn=function(I){return this.clone().inotn(I)},a.prototype.setn=function(I,b){t(typeof I=="number"&&I>=0);var k=I/26|0,S=I%26;return this._expand(k+1),b?this.words[k]=this.words[k]|1<I.length?(k=this,S=I):(k=I,S=this);for(var w=0,R=0;R>>26;for(;w!==0&&R>>26;if(this.length=k.length,w!==0)this.words[this.length]=w,this.length++;else if(k!==this)for(;RI.length?this.clone().iadd(I):I.clone().iadd(this)},a.prototype.isub=function(I){if(I.negative!==0){I.negative=0;var b=this.iadd(I);return I.negative=1,b._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(I),this.negative=1,this._normSign();var k=this.cmp(I);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var S,w;k>0?(S=this,w=I):(S=I,w=this);for(var R=0,O=0;O>26,this.words[O]=b&67108863;for(;R!==0&&O>26,this.words[O]=b&67108863;if(R===0&&O>>26,N=D&67108863,U=Math.min(T,I.length-1),M=Math.max(0,T-H.length+1);M<=U;M++){var V=T-M|0;S=H.words[V]|0,w=I.words[M]|0,R=S*w+N,x+=R/67108864|0,N=R&67108863}b.words[T]=N|0,D=x|0}return D!==0?b.words[T]=D|0:b.length--,b.strip()}var m=function(I,b,k){var S=I.words,w=b.words,R=k.words,O=0,D,T,x,N=S[0]|0,U=N&8191,M=N>>>13,V=S[1]|0,ee=V&8191,$=V>>>13,X=S[2]|0,se=X&8191,ue=X>>>13,ye=S[3]|0,Ie=ye&8191,ge=ye>>>13,xe=S[4]|0,Ue=xe&8191,Te=xe>>>13,Be=S[5]|0,Tr=Be&8191,et=Be>>>13,mt=S[6]|0,jt=mt&8191,je=mt>>>13,ht=S[7]|0,ir=ht&8191,tt=ht>>>13,It=S[8]|0,br=It&8191,lt=It>>>13,Ut=S[9]|0,Or=Ut&8191,Ve=Ut>>>13,At=w[0]|0,Gr=At&8191,rt=At>>>13,Ft=w[1]|0,Vr=Ft&8191,st=Ft>>>13,Lt=w[2]|0,Hr=Lt&8191,nt=Lt>>>13,Kt=w[3]|0,Pr=Kt&8191,ot=Kt>>>13,Gt=w[4]|0,Er=Gt&8191,at=Gt>>>13,Vt=w[5]|0,$r=Vt&8191,it=Vt>>>13,$t=w[6]|0,jr=$t&8191,Le=$t>>>13,yt=w[7]|0,zr=yt&8191,ft=yt>>>13,sr=w[8]|0,wn=sr&8191,bt=sr>>>13,Zt=w[9]|0,xn=Zt&8191,gt=Zt>>>13;k.negative=I.negative^b.negative,k.length=19,D=Math.imul(U,Gr),T=Math.imul(U,rt),T=T+Math.imul(M,Gr)|0,x=Math.imul(M,rt);var Xt=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,D=Math.imul(ee,Gr),T=Math.imul(ee,rt),T=T+Math.imul($,Gr)|0,x=Math.imul($,rt),D=D+Math.imul(U,Vr)|0,T=T+Math.imul(U,st)|0,T=T+Math.imul(M,Vr)|0,x=x+Math.imul(M,st)|0;var qo=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(qo>>>26)|0,qo&=67108863,D=Math.imul(se,Gr),T=Math.imul(se,rt),T=T+Math.imul(ue,Gr)|0,x=Math.imul(ue,rt),D=D+Math.imul(ee,Vr)|0,T=T+Math.imul(ee,st)|0,T=T+Math.imul($,Vr)|0,x=x+Math.imul($,st)|0,D=D+Math.imul(U,Hr)|0,T=T+Math.imul(U,nt)|0,T=T+Math.imul(M,Hr)|0,x=x+Math.imul(M,nt)|0;var un=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(un>>>26)|0,un&=67108863,D=Math.imul(Ie,Gr),T=Math.imul(Ie,rt),T=T+Math.imul(ge,Gr)|0,x=Math.imul(ge,rt),D=D+Math.imul(se,Vr)|0,T=T+Math.imul(se,st)|0,T=T+Math.imul(ue,Vr)|0,x=x+Math.imul(ue,st)|0,D=D+Math.imul(ee,Hr)|0,T=T+Math.imul(ee,nt)|0,T=T+Math.imul($,Hr)|0,x=x+Math.imul($,nt)|0,D=D+Math.imul(U,Pr)|0,T=T+Math.imul(U,ot)|0,T=T+Math.imul(M,Pr)|0,x=x+Math.imul(M,ot)|0;var ln=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(ln>>>26)|0,ln&=67108863,D=Math.imul(Ue,Gr),T=Math.imul(Ue,rt),T=T+Math.imul(Te,Gr)|0,x=Math.imul(Te,rt),D=D+Math.imul(Ie,Vr)|0,T=T+Math.imul(Ie,st)|0,T=T+Math.imul(ge,Vr)|0,x=x+Math.imul(ge,st)|0,D=D+Math.imul(se,Hr)|0,T=T+Math.imul(se,nt)|0,T=T+Math.imul(ue,Hr)|0,x=x+Math.imul(ue,nt)|0,D=D+Math.imul(ee,Pr)|0,T=T+Math.imul(ee,ot)|0,T=T+Math.imul($,Pr)|0,x=x+Math.imul($,ot)|0,D=D+Math.imul(U,Er)|0,T=T+Math.imul(U,at)|0,T=T+Math.imul(M,Er)|0,x=x+Math.imul(M,at)|0;var ho=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(ho>>>26)|0,ho&=67108863,D=Math.imul(Tr,Gr),T=Math.imul(Tr,rt),T=T+Math.imul(et,Gr)|0,x=Math.imul(et,rt),D=D+Math.imul(Ue,Vr)|0,T=T+Math.imul(Ue,st)|0,T=T+Math.imul(Te,Vr)|0,x=x+Math.imul(Te,st)|0,D=D+Math.imul(Ie,Hr)|0,T=T+Math.imul(Ie,nt)|0,T=T+Math.imul(ge,Hr)|0,x=x+Math.imul(ge,nt)|0,D=D+Math.imul(se,Pr)|0,T=T+Math.imul(se,ot)|0,T=T+Math.imul(ue,Pr)|0,x=x+Math.imul(ue,ot)|0,D=D+Math.imul(ee,Er)|0,T=T+Math.imul(ee,at)|0,T=T+Math.imul($,Er)|0,x=x+Math.imul($,at)|0,D=D+Math.imul(U,$r)|0,T=T+Math.imul(U,it)|0,T=T+Math.imul(M,$r)|0,x=x+Math.imul(M,it)|0;var mo=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(mo>>>26)|0,mo&=67108863,D=Math.imul(jt,Gr),T=Math.imul(jt,rt),T=T+Math.imul(je,Gr)|0,x=Math.imul(je,rt),D=D+Math.imul(Tr,Vr)|0,T=T+Math.imul(Tr,st)|0,T=T+Math.imul(et,Vr)|0,x=x+Math.imul(et,st)|0,D=D+Math.imul(Ue,Hr)|0,T=T+Math.imul(Ue,nt)|0,T=T+Math.imul(Te,Hr)|0,x=x+Math.imul(Te,nt)|0,D=D+Math.imul(Ie,Pr)|0,T=T+Math.imul(Ie,ot)|0,T=T+Math.imul(ge,Pr)|0,x=x+Math.imul(ge,ot)|0,D=D+Math.imul(se,Er)|0,T=T+Math.imul(se,at)|0,T=T+Math.imul(ue,Er)|0,x=x+Math.imul(ue,at)|0,D=D+Math.imul(ee,$r)|0,T=T+Math.imul(ee,it)|0,T=T+Math.imul($,$r)|0,x=x+Math.imul($,it)|0,D=D+Math.imul(U,jr)|0,T=T+Math.imul(U,Le)|0,T=T+Math.imul(M,jr)|0,x=x+Math.imul(M,Le)|0;var yo=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(yo>>>26)|0,yo&=67108863,D=Math.imul(ir,Gr),T=Math.imul(ir,rt),T=T+Math.imul(tt,Gr)|0,x=Math.imul(tt,rt),D=D+Math.imul(jt,Vr)|0,T=T+Math.imul(jt,st)|0,T=T+Math.imul(je,Vr)|0,x=x+Math.imul(je,st)|0,D=D+Math.imul(Tr,Hr)|0,T=T+Math.imul(Tr,nt)|0,T=T+Math.imul(et,Hr)|0,x=x+Math.imul(et,nt)|0,D=D+Math.imul(Ue,Pr)|0,T=T+Math.imul(Ue,ot)|0,T=T+Math.imul(Te,Pr)|0,x=x+Math.imul(Te,ot)|0,D=D+Math.imul(Ie,Er)|0,T=T+Math.imul(Ie,at)|0,T=T+Math.imul(ge,Er)|0,x=x+Math.imul(ge,at)|0,D=D+Math.imul(se,$r)|0,T=T+Math.imul(se,it)|0,T=T+Math.imul(ue,$r)|0,x=x+Math.imul(ue,it)|0,D=D+Math.imul(ee,jr)|0,T=T+Math.imul(ee,Le)|0,T=T+Math.imul($,jr)|0,x=x+Math.imul($,Le)|0,D=D+Math.imul(U,zr)|0,T=T+Math.imul(U,ft)|0,T=T+Math.imul(M,zr)|0,x=x+Math.imul(M,ft)|0;var bo=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(bo>>>26)|0,bo&=67108863,D=Math.imul(br,Gr),T=Math.imul(br,rt),T=T+Math.imul(lt,Gr)|0,x=Math.imul(lt,rt),D=D+Math.imul(ir,Vr)|0,T=T+Math.imul(ir,st)|0,T=T+Math.imul(tt,Vr)|0,x=x+Math.imul(tt,st)|0,D=D+Math.imul(jt,Hr)|0,T=T+Math.imul(jt,nt)|0,T=T+Math.imul(je,Hr)|0,x=x+Math.imul(je,nt)|0,D=D+Math.imul(Tr,Pr)|0,T=T+Math.imul(Tr,ot)|0,T=T+Math.imul(et,Pr)|0,x=x+Math.imul(et,ot)|0,D=D+Math.imul(Ue,Er)|0,T=T+Math.imul(Ue,at)|0,T=T+Math.imul(Te,Er)|0,x=x+Math.imul(Te,at)|0,D=D+Math.imul(Ie,$r)|0,T=T+Math.imul(Ie,it)|0,T=T+Math.imul(ge,$r)|0,x=x+Math.imul(ge,it)|0,D=D+Math.imul(se,jr)|0,T=T+Math.imul(se,Le)|0,T=T+Math.imul(ue,jr)|0,x=x+Math.imul(ue,Le)|0,D=D+Math.imul(ee,zr)|0,T=T+Math.imul(ee,ft)|0,T=T+Math.imul($,zr)|0,x=x+Math.imul($,ft)|0,D=D+Math.imul(U,wn)|0,T=T+Math.imul(U,bt)|0,T=T+Math.imul(M,wn)|0,x=x+Math.imul(M,bt)|0;var go=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(go>>>26)|0,go&=67108863,D=Math.imul(Or,Gr),T=Math.imul(Or,rt),T=T+Math.imul(Ve,Gr)|0,x=Math.imul(Ve,rt),D=D+Math.imul(br,Vr)|0,T=T+Math.imul(br,st)|0,T=T+Math.imul(lt,Vr)|0,x=x+Math.imul(lt,st)|0,D=D+Math.imul(ir,Hr)|0,T=T+Math.imul(ir,nt)|0,T=T+Math.imul(tt,Hr)|0,x=x+Math.imul(tt,nt)|0,D=D+Math.imul(jt,Pr)|0,T=T+Math.imul(jt,ot)|0,T=T+Math.imul(je,Pr)|0,x=x+Math.imul(je,ot)|0,D=D+Math.imul(Tr,Er)|0,T=T+Math.imul(Tr,at)|0,T=T+Math.imul(et,Er)|0,x=x+Math.imul(et,at)|0,D=D+Math.imul(Ue,$r)|0,T=T+Math.imul(Ue,it)|0,T=T+Math.imul(Te,$r)|0,x=x+Math.imul(Te,it)|0,D=D+Math.imul(Ie,jr)|0,T=T+Math.imul(Ie,Le)|0,T=T+Math.imul(ge,jr)|0,x=x+Math.imul(ge,Le)|0,D=D+Math.imul(se,zr)|0,T=T+Math.imul(se,ft)|0,T=T+Math.imul(ue,zr)|0,x=x+Math.imul(ue,ft)|0,D=D+Math.imul(ee,wn)|0,T=T+Math.imul(ee,bt)|0,T=T+Math.imul($,wn)|0,x=x+Math.imul($,bt)|0,D=D+Math.imul(U,xn)|0,T=T+Math.imul(U,gt)|0,T=T+Math.imul(M,xn)|0,x=x+Math.imul(M,gt)|0;var q0=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(q0>>>26)|0,q0&=67108863,D=Math.imul(Or,Vr),T=Math.imul(Or,st),T=T+Math.imul(Ve,Vr)|0,x=Math.imul(Ve,st),D=D+Math.imul(br,Hr)|0,T=T+Math.imul(br,nt)|0,T=T+Math.imul(lt,Hr)|0,x=x+Math.imul(lt,nt)|0,D=D+Math.imul(ir,Pr)|0,T=T+Math.imul(ir,ot)|0,T=T+Math.imul(tt,Pr)|0,x=x+Math.imul(tt,ot)|0,D=D+Math.imul(jt,Er)|0,T=T+Math.imul(jt,at)|0,T=T+Math.imul(je,Er)|0,x=x+Math.imul(je,at)|0,D=D+Math.imul(Tr,$r)|0,T=T+Math.imul(Tr,it)|0,T=T+Math.imul(et,$r)|0,x=x+Math.imul(et,it)|0,D=D+Math.imul(Ue,jr)|0,T=T+Math.imul(Ue,Le)|0,T=T+Math.imul(Te,jr)|0,x=x+Math.imul(Te,Le)|0,D=D+Math.imul(Ie,zr)|0,T=T+Math.imul(Ie,ft)|0,T=T+Math.imul(ge,zr)|0,x=x+Math.imul(ge,ft)|0,D=D+Math.imul(se,wn)|0,T=T+Math.imul(se,bt)|0,T=T+Math.imul(ue,wn)|0,x=x+Math.imul(ue,bt)|0,D=D+Math.imul(ee,xn)|0,T=T+Math.imul(ee,gt)|0,T=T+Math.imul($,xn)|0,x=x+Math.imul($,gt)|0;var W0=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(W0>>>26)|0,W0&=67108863,D=Math.imul(Or,Hr),T=Math.imul(Or,nt),T=T+Math.imul(Ve,Hr)|0,x=Math.imul(Ve,nt),D=D+Math.imul(br,Pr)|0,T=T+Math.imul(br,ot)|0,T=T+Math.imul(lt,Pr)|0,x=x+Math.imul(lt,ot)|0,D=D+Math.imul(ir,Er)|0,T=T+Math.imul(ir,at)|0,T=T+Math.imul(tt,Er)|0,x=x+Math.imul(tt,at)|0,D=D+Math.imul(jt,$r)|0,T=T+Math.imul(jt,it)|0,T=T+Math.imul(je,$r)|0,x=x+Math.imul(je,it)|0,D=D+Math.imul(Tr,jr)|0,T=T+Math.imul(Tr,Le)|0,T=T+Math.imul(et,jr)|0,x=x+Math.imul(et,Le)|0,D=D+Math.imul(Ue,zr)|0,T=T+Math.imul(Ue,ft)|0,T=T+Math.imul(Te,zr)|0,x=x+Math.imul(Te,ft)|0,D=D+Math.imul(Ie,wn)|0,T=T+Math.imul(Ie,bt)|0,T=T+Math.imul(ge,wn)|0,x=x+Math.imul(ge,bt)|0,D=D+Math.imul(se,xn)|0,T=T+Math.imul(se,gt)|0,T=T+Math.imul(ue,xn)|0,x=x+Math.imul(ue,gt)|0;var U0=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(U0>>>26)|0,U0&=67108863,D=Math.imul(Or,Pr),T=Math.imul(Or,ot),T=T+Math.imul(Ve,Pr)|0,x=Math.imul(Ve,ot),D=D+Math.imul(br,Er)|0,T=T+Math.imul(br,at)|0,T=T+Math.imul(lt,Er)|0,x=x+Math.imul(lt,at)|0,D=D+Math.imul(ir,$r)|0,T=T+Math.imul(ir,it)|0,T=T+Math.imul(tt,$r)|0,x=x+Math.imul(tt,it)|0,D=D+Math.imul(jt,jr)|0,T=T+Math.imul(jt,Le)|0,T=T+Math.imul(je,jr)|0,x=x+Math.imul(je,Le)|0,D=D+Math.imul(Tr,zr)|0,T=T+Math.imul(Tr,ft)|0,T=T+Math.imul(et,zr)|0,x=x+Math.imul(et,ft)|0,D=D+Math.imul(Ue,wn)|0,T=T+Math.imul(Ue,bt)|0,T=T+Math.imul(Te,wn)|0,x=x+Math.imul(Te,bt)|0,D=D+Math.imul(Ie,xn)|0,T=T+Math.imul(Ie,gt)|0,T=T+Math.imul(ge,xn)|0,x=x+Math.imul(ge,gt)|0;var H0=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(H0>>>26)|0,H0&=67108863,D=Math.imul(Or,Er),T=Math.imul(Or,at),T=T+Math.imul(Ve,Er)|0,x=Math.imul(Ve,at),D=D+Math.imul(br,$r)|0,T=T+Math.imul(br,it)|0,T=T+Math.imul(lt,$r)|0,x=x+Math.imul(lt,it)|0,D=D+Math.imul(ir,jr)|0,T=T+Math.imul(ir,Le)|0,T=T+Math.imul(tt,jr)|0,x=x+Math.imul(tt,Le)|0,D=D+Math.imul(jt,zr)|0,T=T+Math.imul(jt,ft)|0,T=T+Math.imul(je,zr)|0,x=x+Math.imul(je,ft)|0,D=D+Math.imul(Tr,wn)|0,T=T+Math.imul(Tr,bt)|0,T=T+Math.imul(et,wn)|0,x=x+Math.imul(et,bt)|0,D=D+Math.imul(Ue,xn)|0,T=T+Math.imul(Ue,gt)|0,T=T+Math.imul(Te,xn)|0,x=x+Math.imul(Te,gt)|0;var t0=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(t0>>>26)|0,t0&=67108863,D=Math.imul(Or,$r),T=Math.imul(Or,it),T=T+Math.imul(Ve,$r)|0,x=Math.imul(Ve,it),D=D+Math.imul(br,jr)|0,T=T+Math.imul(br,Le)|0,T=T+Math.imul(lt,jr)|0,x=x+Math.imul(lt,Le)|0,D=D+Math.imul(ir,zr)|0,T=T+Math.imul(ir,ft)|0,T=T+Math.imul(tt,zr)|0,x=x+Math.imul(tt,ft)|0,D=D+Math.imul(jt,wn)|0,T=T+Math.imul(jt,bt)|0,T=T+Math.imul(je,wn)|0,x=x+Math.imul(je,bt)|0,D=D+Math.imul(Tr,xn)|0,T=T+Math.imul(Tr,gt)|0,T=T+Math.imul(et,xn)|0,x=x+Math.imul(et,gt)|0;var Wo=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,D=Math.imul(Or,jr),T=Math.imul(Or,Le),T=T+Math.imul(Ve,jr)|0,x=Math.imul(Ve,Le),D=D+Math.imul(br,zr)|0,T=T+Math.imul(br,ft)|0,T=T+Math.imul(lt,zr)|0,x=x+Math.imul(lt,ft)|0,D=D+Math.imul(ir,wn)|0,T=T+Math.imul(ir,bt)|0,T=T+Math.imul(tt,wn)|0,x=x+Math.imul(tt,bt)|0,D=D+Math.imul(jt,xn)|0,T=T+Math.imul(jt,gt)|0,T=T+Math.imul(je,xn)|0,x=x+Math.imul(je,gt)|0;var r0=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(r0>>>26)|0,r0&=67108863,D=Math.imul(Or,zr),T=Math.imul(Or,ft),T=T+Math.imul(Ve,zr)|0,x=Math.imul(Ve,ft),D=D+Math.imul(br,wn)|0,T=T+Math.imul(br,bt)|0,T=T+Math.imul(lt,wn)|0,x=x+Math.imul(lt,bt)|0,D=D+Math.imul(ir,xn)|0,T=T+Math.imul(ir,gt)|0,T=T+Math.imul(tt,xn)|0,x=x+Math.imul(tt,gt)|0;var vo=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(vo>>>26)|0,vo&=67108863,D=Math.imul(Or,wn),T=Math.imul(Or,bt),T=T+Math.imul(Ve,wn)|0,x=Math.imul(Ve,bt),D=D+Math.imul(br,xn)|0,T=T+Math.imul(br,gt)|0,T=T+Math.imul(lt,xn)|0,x=x+Math.imul(lt,gt)|0;var j0=(O+D|0)+((T&8191)<<13)|0;O=(x+(T>>>13)|0)+(j0>>>26)|0,j0&=67108863,D=Math.imul(Or,xn),T=Math.imul(Or,gt),T=T+Math.imul(Ve,xn)|0,x=Math.imul(Ve,gt);var wu=(O+D|0)+((T&8191)<<13)|0;return O=(x+(T>>>13)|0)+(wu>>>26)|0,wu&=67108863,R[0]=Xt,R[1]=qo,R[2]=un,R[3]=ln,R[4]=ho,R[5]=mo,R[6]=yo,R[7]=bo,R[8]=go,R[9]=q0,R[10]=W0,R[11]=U0,R[12]=H0,R[13]=t0,R[14]=Wo,R[15]=r0,R[16]=vo,R[17]=j0,R[18]=wu,O!==0&&(R[19]=O,k.length++),k};Math.imul||(m=h);function y(H,I,b){b.negative=I.negative^H.negative,b.length=H.length+I.length;for(var k=0,S=0,w=0;w>>26)|0,S+=R>>>26,R&=67108863}b.words[w]=O,k=R,R=S}return k!==0?b.words[w]=k:b.length--,b.strip()}function C(H,I,b){var k=new P;return k.mulp(H,I,b)}a.prototype.mulTo=function(I,b){var k,S=this.length+I.length;return this.length===10&&I.length===10?k=m(this,I,b):S<63?k=h(this,I,b):S<1024?k=y(this,I,b):k=C(this,I,b),k};function P(H,I){this.x=H,this.y=I}P.prototype.makeRBT=function(I){for(var b=new Array(I),k=a.prototype._countBits(I)-1,S=0;S>=1;return S},P.prototype.permute=function(I,b,k,S,w,R){for(var O=0;O>>1)w++;return 1<>>13,k[2*R+1]=w&8191,w=w>>>13;for(R=2*b;R>=26,b+=S/67108864|0,b+=w>>>26,this.words[k]=w&67108863}return b!==0&&(this.words[k]=b,this.length++),this},a.prototype.muln=function(I){return this.clone().imuln(I)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(I){var b=p(I);if(b.length===0)return new a(1);for(var k=this,S=0;S=0);var b=I%26,k=(I-b)/26,S=67108863>>>26-b<<26-b,w;if(b!==0){var R=0;for(w=0;w>>26-b}R&&(this.words[w]=R,this.length++)}if(k!==0){for(w=this.length-1;w>=0;w--)this.words[w+k]=this.words[w];for(w=0;w=0);var S;b?S=(b-b%26)/26:S=0;var w=I%26,R=Math.min((I-w)/26,this.length),O=67108863^67108863>>>w<R)for(this.length-=R,T=0;T=0&&(x!==0||T>=S);T--){var N=this.words[T]|0;this.words[T]=x<<26-w|N>>>w,x=N&O}return D&&x!==0&&(D.words[D.length++]=x),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(I,b,k){return t(this.negative===0),this.iushrn(I,b,k)},a.prototype.shln=function(I){return this.clone().ishln(I)},a.prototype.ushln=function(I){return this.clone().iushln(I)},a.prototype.shrn=function(I){return this.clone().ishrn(I)},a.prototype.ushrn=function(I){return this.clone().iushrn(I)},a.prototype.testn=function(I){t(typeof I=="number"&&I>=0);var b=I%26,k=(I-b)/26,S=1<=0);var b=I%26,k=(I-b)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(b!==0&&k++,this.length=Math.min(k,this.length),b!==0){var S=67108863^67108863>>>b<=67108864;b++)this.words[b]-=67108864,b===this.length-1?this.words[b+1]=1:this.words[b+1]++;return this.length=Math.max(this.length,b+1),this},a.prototype.isubn=function(I){if(t(typeof I=="number"),t(I<67108864),I<0)return this.iaddn(-I);if(this.negative!==0)return this.negative=0,this.iaddn(I),this.negative=1,this;if(this.words[0]-=I,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var b=0;b>26)-(D/67108864|0),this.words[w+k]=R&67108863}for(;w>26,this.words[w+k]=R&67108863;if(O===0)return this.strip();for(t(O===-1),O=0,w=0;w>26,this.words[w]=R&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(I,b){var k=this.length-I.length,S=this.clone(),w=I,R=w.words[w.length-1]|0,O=this._countBits(R);k=26-O,k!==0&&(w=w.ushln(k),S.iushln(k),R=w.words[w.length-1]|0);var D=S.length-w.length,T;if(b!=="mod"){T=new a(null),T.length=D+1,T.words=new Array(T.length);for(var x=0;x=0;U--){var M=(S.words[w.length+U]|0)*67108864+(S.words[w.length+U-1]|0);for(M=Math.min(M/R|0,67108863),S._ishlnsubmul(w,M,U);S.negative!==0;)M--,S.negative=0,S._ishlnsubmul(w,1,U),S.isZero()||(S.negative^=1);T&&(T.words[U]=M)}return T&&T.strip(),S.strip(),b!=="div"&&k!==0&&S.iushrn(k),{div:T||null,mod:S}},a.prototype.divmod=function(I,b,k){if(t(!I.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var S,w,R;return this.negative!==0&&I.negative===0?(R=this.neg().divmod(I,b),b!=="mod"&&(S=R.div.neg()),b!=="div"&&(w=R.mod.neg(),k&&w.negative!==0&&w.iadd(I)),{div:S,mod:w}):this.negative===0&&I.negative!==0?(R=this.divmod(I.neg(),b),b!=="mod"&&(S=R.div.neg()),{div:S,mod:R.mod}):(this.negative&I.negative)!==0?(R=this.neg().divmod(I.neg(),b),b!=="div"&&(w=R.mod.neg(),k&&w.negative!==0&&w.isub(I)),{div:R.div,mod:w}):I.length>this.length||this.cmp(I)<0?{div:new a(0),mod:this}:I.length===1?b==="div"?{div:this.divn(I.words[0]),mod:null}:b==="mod"?{div:null,mod:new a(this.modn(I.words[0]))}:{div:this.divn(I.words[0]),mod:new a(this.modn(I.words[0]))}:this._wordDiv(I,b)},a.prototype.div=function(I){return this.divmod(I,"div",!1).div},a.prototype.mod=function(I){return this.divmod(I,"mod",!1).mod},a.prototype.umod=function(I){return this.divmod(I,"mod",!0).mod},a.prototype.divRound=function(I){var b=this.divmod(I);if(b.mod.isZero())return b.div;var k=b.div.negative!==0?b.mod.isub(I):b.mod,S=I.ushrn(1),w=I.andln(1),R=k.cmp(S);return R<0||w===1&&R===0?b.div:b.div.negative!==0?b.div.isubn(1):b.div.iaddn(1)},a.prototype.modn=function(I){t(I<=67108863);for(var b=(1<<26)%I,k=0,S=this.length-1;S>=0;S--)k=(b*k+(this.words[S]|0))%I;return k},a.prototype.idivn=function(I){t(I<=67108863);for(var b=0,k=this.length-1;k>=0;k--){var S=(this.words[k]|0)+b*67108864;this.words[k]=S/I|0,b=S%I}return this.strip()},a.prototype.divn=function(I){return this.clone().idivn(I)},a.prototype.egcd=function(I){t(I.negative===0),t(!I.isZero());var b=this,k=I.clone();b.negative!==0?b=b.umod(I):b=b.clone();for(var S=new a(1),w=new a(0),R=new a(0),O=new a(1),D=0;b.isEven()&&k.isEven();)b.iushrn(1),k.iushrn(1),++D;for(var T=k.clone(),x=b.clone();!b.isZero();){for(var N=0,U=1;(b.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(b.iushrn(N);N-- >0;)(S.isOdd()||w.isOdd())&&(S.iadd(T),w.isub(x)),S.iushrn(1),w.iushrn(1);for(var M=0,V=1;(k.words[0]&V)===0&&M<26;++M,V<<=1);if(M>0)for(k.iushrn(M);M-- >0;)(R.isOdd()||O.isOdd())&&(R.iadd(T),O.isub(x)),R.iushrn(1),O.iushrn(1);b.cmp(k)>=0?(b.isub(k),S.isub(R),w.isub(O)):(k.isub(b),R.isub(S),O.isub(w))}return{a:R,b:O,gcd:k.iushln(D)}},a.prototype._invmp=function(I){t(I.negative===0),t(!I.isZero());var b=this,k=I.clone();b.negative!==0?b=b.umod(I):b=b.clone();for(var S=new a(1),w=new a(0),R=k.clone();b.cmpn(1)>0&&k.cmpn(1)>0;){for(var O=0,D=1;(b.words[0]&D)===0&&O<26;++O,D<<=1);if(O>0)for(b.iushrn(O);O-- >0;)S.isOdd()&&S.iadd(R),S.iushrn(1);for(var T=0,x=1;(k.words[0]&x)===0&&T<26;++T,x<<=1);if(T>0)for(k.iushrn(T);T-- >0;)w.isOdd()&&w.iadd(R),w.iushrn(1);b.cmp(k)>=0?(b.isub(k),S.isub(w)):(k.isub(b),w.isub(S))}var N;return b.cmpn(1)===0?N=S:N=w,N.cmpn(0)<0&&N.iadd(I),N},a.prototype.gcd=function(I){if(this.isZero())return I.abs();if(I.isZero())return this.abs();var b=this.clone(),k=I.clone();b.negative=0,k.negative=0;for(var S=0;b.isEven()&&k.isEven();S++)b.iushrn(1),k.iushrn(1);do{for(;b.isEven();)b.iushrn(1);for(;k.isEven();)k.iushrn(1);var w=b.cmp(k);if(w<0){var R=b;b=k,k=R}else if(w===0||k.cmpn(1)===0)break;b.isub(k)}while(!0);return k.iushln(S)},a.prototype.invm=function(I){return this.egcd(I).a.umod(I)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(I){return this.words[0]&I},a.prototype.bincn=function(I){t(typeof I=="number");var b=I%26,k=(I-b)/26,S=1<>>26,O&=67108863,this.words[R]=O}return w!==0&&(this.words[R]=w,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(I){var b=I<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;this.strip();var k;if(this.length>1)k=1;else{b&&(I=-I),t(I<=67108863,"Number is too big");var S=this.words[0]|0;k=S===I?0:SI.length)return 1;if(this.length=0;k--){var S=this.words[k]|0,w=I.words[k]|0;if(S!==w){Sw&&(b=1);break}}return b},a.prototype.gtn=function(I){return this.cmpn(I)===1},a.prototype.gt=function(I){return this.cmp(I)===1},a.prototype.gten=function(I){return this.cmpn(I)>=0},a.prototype.gte=function(I){return this.cmp(I)>=0},a.prototype.ltn=function(I){return this.cmpn(I)===-1},a.prototype.lt=function(I){return this.cmp(I)===-1},a.prototype.lten=function(I){return this.cmpn(I)<=0},a.prototype.lte=function(I){return this.cmp(I)<=0},a.prototype.eqn=function(I){return this.cmpn(I)===0},a.prototype.eq=function(I){return this.cmp(I)===0},a.red=function(I){return new G(I)},a.prototype.toRed=function(I){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),I.convertTo(this)._forceRed(I)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(I){return this.red=I,this},a.prototype.forceRed=function(I){return t(!this.red,"Already a number in reduction context"),this._forceRed(I)},a.prototype.redAdd=function(I){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,I)},a.prototype.redIAdd=function(I){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,I)},a.prototype.redSub=function(I){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,I)},a.prototype.redISub=function(I){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,I)},a.prototype.redShl=function(I){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,I)},a.prototype.redMul=function(I){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.mul(this,I)},a.prototype.redIMul=function(I){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.imul(this,I)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(I){return t(this.red&&!I.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,I)};var A={k256:null,p224:null,p192:null,p25519:null};function B(H,I){this.name=H,this.p=new a(I,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var I=new a(null);return I.words=new Array(Math.ceil(this.n/13)),I},B.prototype.ireduce=function(I){var b=I,k;do this.split(b,this.tmp),b=this.imulK(b),b=b.iadd(this.tmp),k=b.bitLength();while(k>this.n);var S=k0?b.isub(this.p):b.strip(),b},B.prototype.split=function(I,b){I.iushrn(this.n,0,b)},B.prototype.imulK=function(I){return I.imul(this.k)};function F(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(F,B),F.prototype.split=function(I,b){for(var k=4194303,S=Math.min(I.length,9),w=0;w>>22,R=O}R>>>=22,I.words[w-10]=R,R===0&&I.length>10?I.length-=10:I.length-=9},F.prototype.imulK=function(I){I.words[I.length]=0,I.words[I.length+1]=0,I.length+=2;for(var b=0,k=0;k>>=26,I.words[k]=w,b=S}return b!==0&&(I.words[I.length++]=b),I},a._prime=function(I){if(A[I])return A[I];var b;if(I==="k256")b=new F;else if(I==="p224")b=new W;else if(I==="p192")b=new K;else if(I==="p25519")b=new z;else throw new Error("Unknown prime "+I);return A[I]=b,b};function G(H){if(typeof H=="string"){var I=a._prime(H);this.m=I.p,this.prime=I}else t(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(I){t(I.negative===0,"red works only with positives"),t(I.red,"red works only with red numbers")},G.prototype._verify2=function(I,b){t((I.negative|b.negative)===0,"red works only with positives"),t(I.red&&I.red===b.red,"red works only with red numbers")},G.prototype.imod=function(I){return this.prime?this.prime.ireduce(I)._forceRed(this):I.umod(this.m)._forceRed(this)},G.prototype.neg=function(I){return I.isZero()?I.clone():this.m.sub(I)._forceRed(this)},G.prototype.add=function(I,b){this._verify2(I,b);var k=I.add(b);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},G.prototype.iadd=function(I,b){this._verify2(I,b);var k=I.iadd(b);return k.cmp(this.m)>=0&&k.isub(this.m),k},G.prototype.sub=function(I,b){this._verify2(I,b);var k=I.sub(b);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},G.prototype.isub=function(I,b){this._verify2(I,b);var k=I.isub(b);return k.cmpn(0)<0&&k.iadd(this.m),k},G.prototype.shl=function(I,b){return this._verify1(I),this.imod(I.ushln(b))},G.prototype.imul=function(I,b){return this._verify2(I,b),this.imod(I.imul(b))},G.prototype.mul=function(I,b){return this._verify2(I,b),this.imod(I.mul(b))},G.prototype.isqr=function(I){return this.imul(I,I.clone())},G.prototype.sqr=function(I){return this.mul(I,I)},G.prototype.sqrt=function(I){if(I.isZero())return I.clone();var b=this.m.andln(3);if(t(b%2===1),b===3){var k=this.m.add(new a(1)).iushrn(2);return this.pow(I,k)}for(var S=this.m.subn(1),w=0;!S.isZero()&&S.andln(1)===0;)w++,S.iushrn(1);t(!S.isZero());var R=new a(1).toRed(this),O=R.redNeg(),D=this.m.subn(1).iushrn(1),T=this.m.bitLength();for(T=new a(2*T*T).toRed(this);this.pow(T,D).cmp(O)!==0;)T.redIAdd(O);for(var x=this.pow(T,S),N=this.pow(I,S.addn(1).iushrn(1)),U=this.pow(I,S),M=w;U.cmp(R)!==0;){for(var V=U,ee=0;V.cmp(R)!==0;ee++)V=V.redSqr();t(ee=0;w--){for(var x=b.words[w],N=T-1;N>=0;N--){var U=x>>N&1;if(R!==S[0]&&(R=this.sqr(R)),U===0&&O===0){D=0;continue}O<<=1,O|=U,D++,!(D!==k&&(w!==0||N!==0))&&(R=this.mul(R,S[O]),D=0,O=0)}T=26}return R},G.prototype.convertTo=function(I){var b=I.umod(this.m);return b===I?b.clone():b},G.prototype.convertFrom=function(I){var b=I.clone();return b.red=null,b},a.mont=function(I){return new j(I)};function j(H){G.call(this,H),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(j,G),j.prototype.convertTo=function(I){return this.imod(I.ushln(this.shift))},j.prototype.convertFrom=function(I){var b=this.imod(I.mul(this.rinv));return b.red=null,b},j.prototype.imul=function(I,b){if(I.isZero()||b.isZero())return I.words[0]=0,I.length=1,I;var k=I.imul(b),S=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(S).iushrn(this.shift),R=w;return w.cmp(this.m)>=0?R=w.isub(this.m):w.cmpn(0)<0&&(R=w.iadd(this.m)),R._forceRed(this)},j.prototype.mul=function(I,b){if(I.isZero()||b.isZero())return new a(0)._forceRed(this);var k=I.mul(b),S=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(S).iushrn(this.shift),R=w;return w.cmp(this.m)>=0?R=w.isub(this.m):w.cmpn(0)<0&&(R=w.iadd(this.m)),R._forceRed(this)},j.prototype.invm=function(I){var b=this.imod(I._invmp(this.m).mul(this.r2));return b._forceRed(this)}})(typeof mJe>"u"||mJe,UXt)});var jXt=E((r9i,HXt)=>{f();d();HXt.exports=function(e){if(typeof e!="string")throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return e.slice(0,2)==="0x"}});var KXt=E((i9i,zXt)=>{f();d();var nra=jXt();zXt.exports=function(e){return typeof e!="string"?e:nra(e)?e.slice(2):e}});var bJe=E((c9i,VXt)=>{f();d();var gde=yJe(),GXt=KXt();VXt.exports=function(e){if(typeof e=="string"||typeof e=="number"){var t=new gde(1),n=String(e).toLowerCase().trim(),a=n.substr(0,2)==="0x"||n.substr(0,3)==="-0x",i=GXt(n);if(i.substr(0,1)==="-"&&(i=GXt(i.slice(1)),t=new gde(-1,10)),i=i===""?"0":i,!i.match(/^-?[0-9]+$/)&&i.match(/^[0-9A-Fa-f]+$/)||i.match(/^[a-fA-F]+$/)||a===!0&&i.match(/^[0-9A-Fa-f]+$/))return new gde(i,16).mul(t);if((i.match(/^-?[0-9]+$/)||i==="")&&a===!1)return new gde(i,10).mul(t)}else if(typeof e=="object"&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new gde(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}});var JXt=E((f9i,QXt)=>{"use strict";f();d();var one=yJe(),ara=bJe(),ira=new one(0),$Xt=new one(-1),vde={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function gJe(r){var e=r?r.toLowerCase():"ether",t=vde[e];if(typeof t!="string")throw new Error("[ethjs-unit] the unit provided "+r+" doesn't exists, please use the one of the following units "+JSON.stringify(vde,null,2));return new one(t,10)}function YXt(r){if(typeof r=="string"){if(!r.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+r+"', should be a number matching (^-?[0-9.]+).");return r}else{if(typeof r=="number")return String(r);if(typeof r=="object"&&r.toString&&(r.toTwos||r.dividedToIntegerBy))return r.toPrecision?String(r.toPrecision()):r.toString(10)}throw new Error("while converting number to string, invalid number value '"+r+"' type "+typeof r+".")}function sra(r,e,t){var n=ara(r),a=n.lt(ira),i=gJe(e),s=vde[e].length-1||1,o=t||{};a&&(n=n.mul($Xt));for(var c=n.mod(i).toString(10);c.length2)throw new Error("[ethjs-unit] while converting number "+r+" to wei, too many decimal points");var o=s[0],c=s[1];if(o||(o="0"),c||(c="0"),c.length>a)throw new Error("[ethjs-unit] while converting number "+r+" to wei, too many decimal places");for(;c.length{f();d();(function(r){var e=String.fromCharCode;function t(y){for(var C=[],P=0,A=y.length,B,F;P=55296&&B<=56319&&P65535&&(A-=65536,B+=e(A>>>10&1023|55296),A=56320|A&1023),B+=e(A);return B}function a(y){if(y>=55296&&y<=57343)throw Error("Lone surrogate U+"+y.toString(16).toUpperCase()+" is not a scalar value")}function i(y,C){return e(y>>C&63|128)}function s(y){if((y&4294967168)==0)return e(y);var C="";return(y&4294965248)==0?C=e(y>>6&31|192):(y&4294901760)==0?(a(y),C=e(y>>12&15|224),C+=i(y,6)):(y&4292870144)==0&&(C=e(y>>18&7|240),C+=i(y,12),C+=i(y,6)),C+=e(y&63|128),C}function o(y){for(var C=t(y),P=C.length,A=-1,B,F="";++A=p)throw Error("Invalid byte index");var y=l[h]&255;if(h++,(y&192)==128)return y&63;throw Error("Invalid continuation byte")}function u(){var y,C,P,A,B;if(h>p)throw Error("Invalid byte index");if(h==p)return!1;if(y=l[h]&255,h++,(y&128)==0)return y;if((y&224)==192){if(C=c(),B=(y&31)<<6|C,B>=128)return B;throw Error("Invalid continuation byte")}if((y&240)==224){if(C=c(),P=c(),B=(y&15)<<12|C<<6|P,B>=2048)return a(B),B;throw Error("Invalid continuation byte")}if((y&248)==240&&(C=c(),P=c(),A=c(),B=(y&7)<<18|C<<12|P<<6|A,B>=65536&&B<=1114111))return B;throw Error("Invalid UTF-8 detected")}var l,p,h;function m(y){l=t(y),p=l.length,h=0;for(var C=[],P;(P=u())!==!1;)C.push(P);return n(C)}r.version="3.0.0",r.encode=o,r.decode=m})(typeof wEe>"u"?wEe.utf8={}:wEe)});var rer=E(wy=>{"use strict";f();d();var cra=wy&&wy.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wy,"__esModule",{value:!0});wy.getLength=wy.decode=wy.encode=void 0;var ura=cra(Fr());function eer(r){if(Array.isArray(r)){for(var e=[],t=0;tr.length)throw new Error("invalid rlp: total length is larger than the data");if(a=r.slice(t,c),a.length===0)throw new Error("invalid rlp, List has a invalid length");for(;a.length;)i=wJe(a),s.push(i.data),a=i.remainder;return{data:s,remainder:r.slice(c)}}}function ter(r){return r.slice(0,2)==="0x"}function dra(r){return typeof r!="string"?r:ter(r)?r.slice(2):r}function xJe(r){if(r<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=r.toString(16);return e.length%2?"0"+e:e}function pra(r){return r.length%2?"0"+r:r}function hra(r){var e=xJe(r);return v.Buffer.from(e,"hex")}function _Je(r){if(!v.Buffer.isBuffer(r)){if(typeof r=="string")return ter(r)?v.Buffer.from(pra(dra(r)),"hex"):v.Buffer.from(r);if(typeof r=="number"||typeof r=="bigint")return r?hra(r):v.Buffer.from([]);if(r==null)return v.Buffer.from([]);if(r instanceof Uint8Array)return v.Buffer.from(r);if(ura.default.isBN(r))return v.Buffer.from(r.toArray());throw new Error("invalid type")}return r}});var xy=E(Mf=>{"use strict";f();d();var mra=Mf&&Mf.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var a=Object.getOwnPropertyDescriptor(e,t);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,a)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),yra=Mf&&Mf.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),bra=Mf&&Mf.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&mra(e,r,t);return yra(e,r),e},gra=Mf&&Mf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mf,"__esModule",{value:!0});Mf.rlp=Mf.BN=void 0;var vra=gra(Fr());Mf.BN=vra.default;var wra=bra(rer());Mf.rlp=wra});var IJe=E(lo=>{"use strict";f();d();Object.defineProperty(lo,"__esModule",{value:!0});lo.KECCAK256_RLP=lo.KECCAK256_RLP_S=lo.KECCAK256_RLP_ARRAY=lo.KECCAK256_RLP_ARRAY_S=lo.KECCAK256_NULL=lo.KECCAK256_NULL_S=lo.TWO_POW256=lo.MAX_INTEGER=lo.MAX_UINT64=void 0;var TJe=Uo(),EJe=xy();lo.MAX_UINT64=new EJe.BN("ffffffffffffffff",16);lo.MAX_INTEGER=new EJe.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16);lo.TWO_POW256=new EJe.BN("10000000000000000000000000000000000000000000000000000000000000000",16);lo.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470";lo.KECCAK256_NULL=TJe.Buffer.from(lo.KECCAK256_NULL_S,"hex");lo.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347";lo.KECCAK256_RLP_ARRAY=TJe.Buffer.from(lo.KECCAK256_RLP_ARRAY_S,"hex");lo.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421";lo.KECCAK256_RLP=TJe.Buffer.from(lo.KECCAK256_RLP_S,"hex")});var SJe=E((C9i,ier)=>{"use strict";f();d();function cne(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cne=function(t){return typeof t}:cne=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cne(r)}function xra(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function _ra(r,e){return e&&(cne(e)==="object"||typeof e=="function")?e:Tra(r)}function Tra(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function AJe(r){return AJe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},AJe(r)}function Era(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&kJe(r,e)}function kJe(r,e){return kJe=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},kJe(r,e)}var aer={},une,CJe;function wde(r,e,t){t||(t=Error);function n(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){Era(s,i);function s(o,c,u){var l;return xra(this,s),l=_ra(this,AJe(s).call(this,n(o,c,u))),l.code=r,l}return s}(t);aer[r]=a}function ner(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function Ira(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function Cra(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function Ara(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}wde("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);wde("ERR_INVALID_ARG_TYPE",function(r,e,t){une===void 0&&(une=lne()),une(typeof r=="string","'name' must be a string");var n;typeof e=="string"&&Ira(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(Cra(r," argument"))a="The ".concat(r," ").concat(n," ").concat(ner(e,"type"));else{var i=Ara(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(ner(e,"type"))}return a+=". Received type ".concat(cne(t)),a},TypeError);wde("ERR_INVALID_ARG_VALUE",function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";CJe===void 0&&(CJe=zy());var n=CJe.inspect(e);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(r,"' ").concat(t,". Received ").concat(n)},TypeError,RangeError);wde("ERR_INVALID_RETURN_VALUE",function(r,e,t){var n;return t&&t.constructor&&t.constructor.name?n="instance of ".concat(t.constructor.name):n="type ".concat(cne(t)),"Expected ".concat(r,' to be returned from the "').concat(e,'"')+" function but got ".concat(n,".")},TypeError);wde("ERR_MISSING_ARGS",function(){for(var r=arguments.length,e=new Array(r),t=0;t0,"At least one arg needs to be specified");var n="The ",a=e.length;switch(e=e.map(function(i){return'"'.concat(i,'"')}),a){case 1:n+="".concat(e[0]," argument");break;case 2:n+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:n+=e.slice(0,a-1).join(", "),n+=", and ".concat(e[a-1]," arguments");break}return"".concat(n," must be specified")},TypeError);ier.exports.codes=aer});var ler=E((S9i,uer)=>{"use strict";f();d();function kra(r){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function xEe(r,e,t){return Bra()?xEe=Reflect.construct:xEe=function(a,i,s){var o=[null];o.push.apply(o,i);var c=Function.bind.apply(a,o),u=new c;return s&&Ede(u,s.prototype),u},xEe.apply(null,arguments)}function Dra(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function Ede(r,e){return Ede=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Ede(r,e)}function o5(r){return o5=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},o5(r)}function eh(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?eh=function(t){return typeof t}:eh=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eh(r)}var Nra=zy(),MJe=Nra.inspect,Ora=SJe(),Fra=Ora.codes.ERR_INVALID_ARG_TYPE;function oer(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function Lra(r,e){if(e=Math.floor(e),r.length==0||e==0)return"";var t=r.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)r+=r,e--;return r+=r.substring(0,t-r.length),r}var Am="",xde="",_de="",hu="",_4={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},qra=10;function cer(r){var e=Object.keys(r),t=Object.create(Object.getPrototypeOf(r));return e.forEach(function(n){t[n]=r[n]}),Object.defineProperty(t,"message",{value:r.message}),t}function Tde(r){return MJe(r,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Wra(r,e,t){var n="",a="",i=0,s="",o=!1,c=Tde(r),u=c.split(` +`),l=Tde(e).split(` +`),p=0,h="";if(t==="strictEqual"&&eh(r)==="object"&&eh(e)==="object"&&r!==null&&e!==null&&(t="strictEqualObject"),u.length===1&&l.length===1&&u[0]!==l[0]){var m=u[0].length+l[0].length;if(m<=qra){if((eh(r)!=="object"||r===null)&&(eh(e)!=="object"||e===null)&&(r!==0||e!==0))return"".concat(_4[t],` + +`)+"".concat(u[0]," !== ").concat(l[0],` +`)}else if(t!=="strictEqualObject"){var y=g.stderr&&g.stderr.isTTY?g.stderr.columns:80;if(m2&&(h=` + `.concat(Lra(" ",p),"^"),p=0)}}}for(var C=u[u.length-1],P=l[l.length-1];C===P&&(p++<2?s=` + `.concat(C).concat(s):n=C,u.pop(),l.pop(),!(u.length===0||l.length===0));)C=u[u.length-1],P=l[l.length-1];var A=Math.max(u.length,l.length);if(A===0){var B=c.split(` +`);if(B.length>30)for(B[26]="".concat(Am,"...").concat(hu);B.length>27;)B.pop();return"".concat(_4.notIdentical,` + +`).concat(B.join(` +`),` +`)}p>3&&(s=` +`.concat(Am,"...").concat(hu).concat(s),o=!0),n!==""&&(s=` + `.concat(n).concat(s),n="");var F=0,W=_4[t]+` +`.concat(xde,"+ actual").concat(hu," ").concat(_de,"- expected").concat(hu),K=" ".concat(Am,"...").concat(hu," Lines skipped");for(p=0;p1&&p>2&&(z>4?(a+=` +`.concat(Am,"...").concat(hu),o=!0):z>3&&(a+=` + `.concat(l[p-2]),F++),a+=` + `.concat(l[p-1]),F++),i=p,n+=` +`.concat(_de,"-").concat(hu," ").concat(l[p]),F++;else if(l.length1&&p>2&&(z>4?(a+=` +`.concat(Am,"...").concat(hu),o=!0):z>3&&(a+=` + `.concat(u[p-2]),F++),a+=` + `.concat(u[p-1]),F++),i=p,a+=` +`.concat(xde,"+").concat(hu," ").concat(u[p]),F++;else{var G=l[p],j=u[p],H=j!==G&&(!oer(j,",")||j.slice(0,-1)!==G);H&&oer(G,",")&&G.slice(0,-1)===j&&(H=!1,j+=","),H?(z>1&&p>2&&(z>4?(a+=` +`.concat(Am,"...").concat(hu),o=!0):z>3&&(a+=` + `.concat(u[p-2]),F++),a+=` + `.concat(u[p-1]),F++),i=p,a+=` +`.concat(xde,"+").concat(hu," ").concat(j),n+=` +`.concat(_de,"-").concat(hu," ").concat(G),F+=2):(a+=n,n="",(z===1||p===0)&&(a+=` + `.concat(j),F++))}if(F>20&&p30)for(p[26]="".concat(Am,"...").concat(hu);p.length>27;)p.pop();p.length===1?n=fne(this,o5(e).call(this,"".concat(l," ").concat(p[0]))):n=fne(this,o5(e).call(this,"".concat(l,` + +`).concat(p.join(` +`),` +`)))}else{var h=Tde(o),m="",y=_4[i];i==="notDeepEqual"||i==="notEqual"?(h="".concat(_4[i],` + +`).concat(h),h.length>1024&&(h="".concat(h.slice(0,1021),"..."))):(m="".concat(Tde(c)),h.length>512&&(h="".concat(h.slice(0,509),"...")),m.length>512&&(m="".concat(m.slice(0,509),"...")),i==="deepEqual"||i==="equal"?h="".concat(y,` + +`).concat(h,` + +should equal + +`):m=" ".concat(i," ").concat(m)),n=fne(this,o5(e).call(this,"".concat(h).concat(m)))}return Error.stackTraceLimit=u,n.generatedMessage=!a,Object.defineProperty(PJe(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=o,n.expected=c,n.operator=i,Error.captureStackTrace&&Error.captureStackTrace(PJe(n),s),n.stack,n.name="AssertionError",fne(n)}return Rra(e,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:MJe.custom,value:function(n,a){return MJe(this,kra({},a,{customInspect:!1,depth:0}))}}]),e}(RJe(Error));uer.exports=Ura});var per=E((M9i,der)=>{"use strict";f();d();function fer(r,e){if(r==null)throw new TypeError("Cannot convert first argument to object");for(var t=Object(r),n=1;n{"use strict";f();d();var her=Object.prototype.toString;mer.exports=function(e){var t=her.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&her.call(e.callee)==="[object Function]"),n}});var Eer=E((L9i,Ter)=>{"use strict";f();d();var _er;Object.keys||(Ide=Object.prototype.hasOwnProperty,DJe=Object.prototype.toString,yer=BJe(),NJe=Object.prototype.propertyIsEnumerable,ber=!NJe.call({toString:null},"toString"),ger=NJe.call(function(){},"prototype"),Cde=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],_Ee=function(r){var e=r.constructor;return e&&e.prototype===r},ver={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},wer=function(){if(typeof window>"u")return!1;for(var r in window)try{if(!ver["$"+r]&&Ide.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{_Ee(window[r])}catch{return!0}}catch{return!0}return!1}(),xer=function(r){if(typeof window>"u"||!wer)return _Ee(r);try{return _Ee(r)}catch{return!1}},_er=function(e){var t=e!==null&&typeof e=="object",n=DJe.call(e)==="[object Function]",a=yer(e),i=t&&DJe.call(e)==="[object String]",s=[];if(!t&&!n&&!a)throw new TypeError("Object.keys called on a non-object");var o=ger&&n;if(i&&e.length>0&&!Ide.call(e,0))for(var c=0;c0)for(var u=0;u{"use strict";f();d();var jra=Array.prototype.slice,zra=BJe(),Ier=Object.keys,TEe=Ier?function(e){return Ier(e)}:Eer(),Cer=Object.keys;TEe.shim=function(){if(Object.keys){var e=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);e||(Object.keys=function(n){return zra(n)?Cer(jra.call(n)):Cer(n)})}else Object.keys=TEe;return Object.keys||TEe};Aer.exports=TEe});var Per=E((z9i,Ser)=>{"use strict";f();d();var Kra=Xx(),OJe=Kra("%Object.defineProperty%",!0),FJe=function(){if(OJe)try{return OJe({},"a",{value:1}),!0}catch{return!1}return!1};FJe.hasArrayLengthDefineBug=function(){if(!FJe())return null;try{return OJe([],"length",{value:1}).length!==1}catch{return!0}};Ser.exports=FJe});var Ade=E((V9i,Der)=>{"use strict";f();d();var Gra=ker(),Vra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",$ra=Object.prototype.toString,Yra=Array.prototype.concat,Rer=Object.defineProperty,Qra=function(r){return typeof r=="function"&&$ra.call(r)==="[object Function]"},Jra=Per()(),Mer=Rer&&Jra,Zra=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!Qra(n)||!n())return}Mer?Rer(r,e,{configurable:!0,enumerable:!1,value:t,writable:!0}):r[e]=t},Ber=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Gra(e);Vra&&(n=Yra.call(n,Object.getOwnPropertySymbols(e)));for(var a=0;a{"use strict";f();d();var Ner=function(r){return r!==r};Oer.exports=function(e,t){return e===0&&t===0?1/e===1/t:!!(e===t||Ner(e)&&Ner(t))}});var qJe=E((X9i,Fer)=>{"use strict";f();d();var Xra=LJe();Fer.exports=function(){return typeof Object.is=="function"?Object.is:Xra}});var qer=E((r7i,Ler)=>{"use strict";f();d();var ena=qJe(),tna=Ade();Ler.exports=function(){var e=ena();return tna(Object,{is:e},{is:function(){return Object.is!==e}}),e}});var WJe=E((i7i,Her)=>{"use strict";f();d();var rna=Ade(),nna=lme(),ana=LJe(),Wer=qJe(),ina=qer(),Uer=nna(Wer(),Object);rna(Uer,{getPolyfill:Wer,implementation:ana,shim:ina});Her.exports=Uer});var UJe=E((c7i,jer)=>{"use strict";f();d();jer.exports=function(e){return e!==e}});var HJe=E((f7i,zer)=>{"use strict";f();d();var sna=UJe();zer.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:sna}});var Ger=E((h7i,Ker)=>{"use strict";f();d();var ona=Ade(),cna=HJe();Ker.exports=function(){var e=cna();return ona(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}});var Qer=E((b7i,Yer)=>{"use strict";f();d();var una=lme(),lna=Ade(),fna=UJe(),Ver=HJe(),dna=Ger(),$er=una(Ver(),Number);lna($er,{getPolyfill:Ver,implementation:fna,shim:dna});Yer.exports=$er});var mtr=E((w7i,htr)=>{"use strict";f();d();function Jer(r,e){return mna(r)||hna(r,e)||pna()}function pna(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function hna(r,e){var t=[],n=!0,a=!1,i=void 0;try{for(var s=r[Symbol.iterator](),o;!(n=(o=s.next()).done)&&(t.push(o.value),!(e&&t.length===e));n=!0);}catch(c){a=!0,i=c}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw i}}return t}function mna(r){if(Array.isArray(r))return r}function Pd(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pd=function(t){return typeof t}:Pd=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pd(r)}var yna=/a/g.flags!==void 0,PEe=function(e){var t=[];return e.forEach(function(n){return t.push(n)}),t},Zer=function(e){var t=[];return e.forEach(function(n,a){return t.push([a,n])}),t},utr=Object.is?Object.is:WJe(),kEe=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},jJe=Number.isNaN?Number.isNaN:Qer();function KJe(r){return r.call.bind(r)}var Sde=KJe(Object.prototype.hasOwnProperty),SEe=KJe(Object.prototype.propertyIsEnumerable),Xer=KJe(Object.prototype.toString),Wl=zy().types,bna=Wl.isAnyArrayBuffer,gna=Wl.isArrayBufferView,etr=Wl.isDate,EEe=Wl.isMap,ttr=Wl.isRegExp,IEe=Wl.isSet,vna=Wl.isNativeError,wna=Wl.isBoxedPrimitive,rtr=Wl.isNumberObject,ntr=Wl.isStringObject,atr=Wl.isBooleanObject,itr=Wl.isBigIntObject,xna=Wl.isSymbolObject,_na=Wl.isFloat32Array,Tna=Wl.isFloat64Array;function Ena(r){if(r.length===0||r.length>10)return!0;for(var e=0;e57)return!0}return r.length===10&&r>=Math.pow(2,32)}function CEe(r){return Object.keys(r).filter(Ena).concat(kEe(r).filter(Object.prototype.propertyIsEnumerable.bind(r)))}function ltr(r,e){if(r===e)return 0;for(var t=r.length,n=e.length,a=0,i=Math.min(t,n);a{"use strict";f();d();function c5(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c5=function(t){return typeof t}:c5=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c5(r)}function qna(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}var Wna=SJe(),Rde=Wna.codes,ytr=Rde.ERR_AMBIGUOUS_ARGUMENT,Pde=Rde.ERR_INVALID_ARG_TYPE,Una=Rde.ERR_INVALID_ARG_VALUE,Hna=Rde.ERR_INVALID_RETURN_VALUE,l5=Rde.ERR_MISSING_ARGS,T4=ler(),jna=zy(),zna=jna.inspect,wtr=zy().types,Kna=wtr.isPromise,VJe=wtr.isRegExp,Gna=Object.assign?Object.assign:per().assign,xtr=Object.is?Object.is:WJe(),u5,REe;function Mde(){var r=mtr();u5=r.isDeepEqual,REe=r.isDeepStrictEqual}var btr=!1,$s=Rtr.exports=$Je,MEe={};function km(r){throw r.message instanceof Error?r.message:new T4(r)}function _tr(r,e,t,n,a){var i=arguments.length,s;if(i===0)s="Failed";else if(i===1)t=r,r=void 0;else{if(btr===!1){btr=!0;var o=g.emitWarning?g.emitWarning:console.warn.bind(console);o("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}i===2&&(n="!=")}if(t instanceof Error)throw t;var c={actual:r,expected:e,operator:n===void 0?"fail":n,stackStartFn:a||_tr};t!==void 0&&(c.message=t);var u=new T4(c);throw s&&(u.message=s,u.generatedMessage=!0),u}$s.fail=_tr;$s.AssertionError=T4;function Ttr(r,e,t,n){if(!t){var a=!1;if(e===0)a=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new T4({actual:t,expected:!0,message:n,operator:"==",stackStartFn:r});throw i.generatedMessage=a,i}}function $Je(){for(var r=arguments.length,e=new Array(r),t=0;t1?t-1:0),a=1;a1?t-1:0),a=1;a1?t-1:0),a=1;a1?t-1:0),a=1;a{f();d();var ma={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function rh(r,e){if(!r)throw new Error(e)}function Jn(r,e,t){if(rh(e instanceof Uint8Array,`Expected ${r} to be an Uint8Array`),t!==void 0)if(Array.isArray(t)){let n=t.join(", "),a=`Expected ${r} to be an Uint8Array with length [${n}]`;rh(t.includes(e.length),a)}else{let n=`Expected ${r} to be an Uint8Array with length ${t}`;rh(e.length===t,n)}}function E4(r){rh(dne(r)==="Boolean","Expected compressed to be a Boolean")}function Sm(r=t=>new Uint8Array(t),e){return typeof r=="function"&&(r=r(e)),Jn("output",r,e),r}function dne(r){return Object.prototype.toString.call(r).slice(8,-1)}Mtr.exports=r=>({contextRandomize(e){switch(rh(e===null||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),e!==null&&Jn("seed",e,32),r.contextRandomize(e)){case 1:throw new Error(ma.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return Jn("private key",e,32),r.privateKeyVerify(e)===0},privateKeyNegate(e){switch(Jn("private key",e,32),r.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(ma.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,t){switch(Jn("private key",e,32),Jn("tweak",t,32),r.privateKeyTweakAdd(e,t)){case 0:return e;case 1:throw new Error(ma.TWEAK_ADD)}},privateKeyTweakMul(e,t){switch(Jn("private key",e,32),Jn("tweak",t,32),r.privateKeyTweakMul(e,t)){case 0:return e;case 1:throw new Error(ma.TWEAK_MUL)}},publicKeyVerify(e){return Jn("public key",e,[33,65]),r.publicKeyVerify(e)===0},publicKeyCreate(e,t=!0,n){switch(Jn("private key",e,32),E4(t),n=Sm(n,t?33:65),r.publicKeyCreate(n,e)){case 0:return n;case 1:throw new Error(ma.SECKEY_INVALID);case 2:throw new Error(ma.PUBKEY_SERIALIZE)}},publicKeyConvert(e,t=!0,n){switch(Jn("public key",e,[33,65]),E4(t),n=Sm(n,t?33:65),r.publicKeyConvert(n,e)){case 0:return n;case 1:throw new Error(ma.PUBKEY_PARSE);case 2:throw new Error(ma.PUBKEY_SERIALIZE)}},publicKeyNegate(e,t=!0,n){switch(Jn("public key",e,[33,65]),E4(t),n=Sm(n,t?33:65),r.publicKeyNegate(n,e)){case 0:return n;case 1:throw new Error(ma.PUBKEY_PARSE);case 2:throw new Error(ma.IMPOSSIBLE_CASE);case 3:throw new Error(ma.PUBKEY_SERIALIZE)}},publicKeyCombine(e,t=!0,n){rh(Array.isArray(e),"Expected public keys to be an Array"),rh(e.length>0,"Expected public keys array will have more than zero items");for(let a of e)Jn("public key",a,[33,65]);switch(E4(t),n=Sm(n,t?33:65),r.publicKeyCombine(n,e)){case 0:return n;case 1:throw new Error(ma.PUBKEY_PARSE);case 2:throw new Error(ma.PUBKEY_COMBINE);case 3:throw new Error(ma.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,t,n=!0,a){switch(Jn("public key",e,[33,65]),Jn("tweak",t,32),E4(n),a=Sm(a,n?33:65),r.publicKeyTweakAdd(a,e,t)){case 0:return a;case 1:throw new Error(ma.PUBKEY_PARSE);case 2:throw new Error(ma.TWEAK_ADD)}},publicKeyTweakMul(e,t,n=!0,a){switch(Jn("public key",e,[33,65]),Jn("tweak",t,32),E4(n),a=Sm(a,n?33:65),r.publicKeyTweakMul(a,e,t)){case 0:return a;case 1:throw new Error(ma.PUBKEY_PARSE);case 2:throw new Error(ma.TWEAK_MUL)}},signatureNormalize(e){switch(Jn("signature",e,64),r.signatureNormalize(e)){case 0:return e;case 1:throw new Error(ma.SIG_PARSE)}},signatureExport(e,t){Jn("signature",e,64),t=Sm(t,72);let n={output:t,outputlen:72};switch(r.signatureExport(n,e)){case 0:return t.slice(0,n.outputlen);case 1:throw new Error(ma.SIG_PARSE);case 2:throw new Error(ma.IMPOSSIBLE_CASE)}},signatureImport(e,t){switch(Jn("signature",e),t=Sm(t,64),r.signatureImport(t,e)){case 0:return t;case 1:throw new Error(ma.SIG_PARSE);case 2:throw new Error(ma.IMPOSSIBLE_CASE)}},ecdsaSign(e,t,n={},a){Jn("message",e,32),Jn("private key",t,32),rh(dne(n)==="Object","Expected options to be an Object"),n.data!==void 0&&Jn("options.data",n.data),n.noncefn!==void 0&&rh(dne(n.noncefn)==="Function","Expected options.noncefn to be a Function"),a=Sm(a,64);let i={signature:a,recid:null};switch(r.ecdsaSign(i,e,t,n.data,n.noncefn)){case 0:return i;case 1:throw new Error(ma.SIGN);case 2:throw new Error(ma.IMPOSSIBLE_CASE)}},ecdsaVerify(e,t,n){switch(Jn("signature",e,64),Jn("message",t,32),Jn("public key",n,[33,65]),r.ecdsaVerify(e,t,n)){case 0:return!0;case 3:return!1;case 1:throw new Error(ma.SIG_PARSE);case 2:throw new Error(ma.PUBKEY_PARSE)}},ecdsaRecover(e,t,n,a=!0,i){switch(Jn("signature",e,64),rh(dne(t)==="Number"&&t>=0&&t<=3,"Expected recovery id to be a Number within interval [0, 3]"),Jn("message",n,32),E4(a),i=Sm(i,a?33:65),r.ecdsaRecover(i,e,t,n)){case 0:return i;case 1:throw new Error(ma.SIG_PARSE);case 2:throw new Error(ma.RECOVER);case 3:throw new Error(ma.IMPOSSIBLE_CASE)}},ecdh(e,t,n={},a){switch(Jn("public key",e,[33,65]),Jn("private key",t,32),rh(dne(n)==="Object","Expected options to be an Object"),n.data!==void 0&&Jn("options.data",n.data),n.hashfn!==void 0?(rh(dne(n.hashfn)==="Function","Expected options.hashfn to be a Function"),n.xbuf!==void 0&&Jn("options.xbuf",n.xbuf,32),n.ybuf!==void 0&&Jn("options.ybuf",n.ybuf,32),Jn("output",a)):a=Sm(a,32),r.ecdh(a,e,t,n.data,n.hashfn,n.xbuf,n.ybuf)){case 0:return a;case 1:throw new Error(ma.PUBKEY_PARSE);case 2:throw new Error(ma.ECDH)}}})});var Ntr=E((S7i,Dtr)=>{f();d();var $na=T_().ec,_y=new $na("secp256k1"),Hn=_y.curve,rs=Hn.n.constructor;function Yna(r,e){let t=new rs(e);if(t.cmp(Hn.p)>=0)return null;t=t.toRed(Hn.red);let n=t.redSqr().redIMul(t).redIAdd(Hn.b).redSqrt();return r===3!==n.isOdd()&&(n=n.redNeg()),_y.keyPair({pub:{x:t,y:n}})}function Qna(r,e,t){let n=new rs(e),a=new rs(t);if(n.cmp(Hn.p)>=0||a.cmp(Hn.p)>=0||(n=n.toRed(Hn.red),a=a.toRed(Hn.red),(r===6||r===7)&&a.isOdd()!==(r===7)))return null;let i=n.redSqr().redIMul(n);return a.redSqr().redISub(i.redIAdd(Hn.b)).isZero()?_y.keyPair({pub:{x:n,y:a}}):null}function f5(r){let e=r[0];switch(e){case 2:case 3:return r.length!==33?null:Yna(e,r.subarray(1,33));case 4:case 6:case 7:return r.length!==65?null:Qna(e,r.subarray(1,33),r.subarray(33,65));default:return null}}function I4(r,e){let t=e.encode(null,r.length===33);for(let n=0;n=0||(t.iadd(new rs(r)),t.cmp(Hn.n)>=0&&t.isub(Hn.n),t.isZero()))return 1;let n=t.toArrayLike(Uint8Array,"be",32);return r.set(n),0},privateKeyTweakMul(r,e){let t=new rs(e);if(t.cmp(Hn.n)>=0||t.isZero())return 1;t.imul(new rs(r)),t.cmp(Hn.n)>=0&&(t=t.umod(Hn.n));let n=t.toArrayLike(Uint8Array,"be",32);return r.set(n),0},publicKeyVerify(r){return f5(r)===null?1:0},publicKeyCreate(r,e){let t=new rs(e);if(t.cmp(Hn.n)>=0||t.isZero())return 1;let n=_y.keyFromPrivate(e).getPublic();return I4(r,n),0},publicKeyConvert(r,e){let t=f5(e);if(t===null)return 1;let n=t.getPublic();return I4(r,n),0},publicKeyNegate(r,e){let t=f5(e);if(t===null)return 1;let n=t.getPublic();return n.y=n.y.redNeg(),I4(r,n),0},publicKeyCombine(r,e){let t=new Array(e.length);for(let a=0;a=0)return 2;let a=n.getPublic().add(Hn.g.mul(t));return a.isInfinity()?2:(I4(r,a),0)},publicKeyTweakMul(r,e,t){let n=f5(e);if(n===null)return 1;if(t=new rs(t),t.cmp(Hn.n)>=0||t.isZero())return 2;let a=n.getPublic().mul(t);return I4(r,a),0},signatureNormalize(r){let e=new rs(r.subarray(0,32)),t=new rs(r.subarray(32,64));return e.cmp(Hn.n)>=0||t.cmp(Hn.n)>=0?1:(t.cmp(_y.nh)===1&&r.set(Hn.n.sub(t).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(r,e){let t=e.subarray(0,32),n=e.subarray(32,64);if(new rs(t).cmp(Hn.n)>=0||new rs(n).cmp(Hn.n)>=0)return 1;let{output:a}=r,i=a.subarray(4,4+33);i[0]=0,i.set(t,1);let s=33,o=0;for(;s>1&&i[o]===0&&!(i[o+1]&128);--s,++o);if(i=i.subarray(o),i[0]&128||s>1&&i[0]===0&&!(i[1]&128))return 1;let c=a.subarray(6+33,6+33+33);c[0]=0,c.set(n,1);let u=33,l=0;for(;u>1&&c[l]===0&&!(c[l+1]&128);--u,++l);return c=c.subarray(l),c[0]&128||u>1&&c[0]===0&&!(c[1]&128)?1:(r.outputlen=6+s+u,a[0]=48,a[1]=r.outputlen-2,a[2]=2,a[3]=i.length,a.set(i,4),a[4+s]=2,a[5+s]=c.length,a.set(c,6+s),0)},signatureImport(r,e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return 1;let t=e[3];if(t===0||5+t>=e.length||e[4+t]!==2)return 1;let n=e[5+t];if(n===0||6+t+n!==e.length||e[4]&128||t>1&&e[4]===0&&!(e[5]&128)||e[t+6]&128||n>1&&e[t+6]===0&&!(e[t+7]&128))return 1;let a=e.subarray(4,4+t);if(a.length===33&&a[0]===0&&(a=a.subarray(1)),a.length>32)return 1;let i=e.subarray(6+t);if(i.length===33&&i[0]===0&&(i=i.slice(1)),i.length>32)throw new Error("S length is too long");let s=new rs(a);s.cmp(Hn.n)>=0&&(s=new rs(0));let o=new rs(e.subarray(6+t));return o.cmp(Hn.n)>=0&&(o=new rs(0)),r.set(s.toArrayLike(Uint8Array,"be",32),0),r.set(o.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(r,e,t,n,a){if(a){let o=a;a=c=>{let u=o(e,t,null,n,c);if(!(u instanceof Uint8Array&&u.length===32))throw new Error("This is the way");return new rs(u)}}let i=new rs(t);if(i.cmp(Hn.n)>=0||i.isZero())return 1;let s;try{s=_y.sign(e,t,{canonical:!0,k:a,pers:n})}catch{return 1}return r.signature.set(s.r.toArrayLike(Uint8Array,"be",32),0),r.signature.set(s.s.toArrayLike(Uint8Array,"be",32),32),r.recid=s.recoveryParam,0},ecdsaVerify(r,e,t){let n={r:r.subarray(0,32),s:r.subarray(32,64)},a=new rs(n.r),i=new rs(n.s);if(a.cmp(Hn.n)>=0||i.cmp(Hn.n)>=0)return 1;if(i.cmp(_y.nh)===1||a.isZero()||i.isZero())return 3;let s=f5(t);if(s===null)return 2;let o=s.getPublic();return _y.verify(e,n,o)?0:3},ecdsaRecover(r,e,t,n){let a={r:e.slice(0,32),s:e.slice(32,64)},i=new rs(a.r),s=new rs(a.s);if(i.cmp(Hn.n)>=0||s.cmp(Hn.n)>=0)return 1;if(i.isZero()||s.isZero())return 2;let o;try{o=_y.recoverPubKey(n,a,t)}catch{return 2}return I4(r,o),0},ecdh(r,e,t,n,a,i,s){let o=f5(e);if(o===null)return 1;let c=new rs(t);if(c.cmp(Hn.n)>=0||c.isZero())return 2;let u=o.getPublic().mul(c);if(a===void 0){let l=u.encode(null,!0),p=_y.hash().update(l).digest();for(let h=0;h<32;++h)r[h]=p[h]}else{i||(i=new Uint8Array(32));let l=u.getX().toArray("be",32);for(let y=0;y<32;++y)i[y]=l[y];s||(s=new Uint8Array(32));let p=u.getY().toArray("be",32);for(let y=0;y<32;++y)s[y]=p[y];let h=a(i,s,n);if(!(h instanceof Uint8Array&&h.length===r.length))return 2;r.set(h)}return 0}}});var YJe=E((M7i,Otr)=>{f();d();Otr.exports=Btr()(Ntr())});var Ltr=E(BEe=>{"use strict";f();d();Object.defineProperty(BEe,"__esModule",{value:!0});var Ftr=jy();function Jna(r){return new Promise(function(e,t){Ftr(r,function(n,a){if(n){t(n);return}e(a)})})}BEe.getRandomBytes=Jna;function Zna(r){return Ftr(r)}BEe.getRandomBytesSync=Zna});var QJe=E(Ty=>{"use strict";f();d();var Xna=Ty&&Ty.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(p){s(p)}}function c(l){try{u(n.throw(l))}catch(p){s(p)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},eaa=Ty&&Ty.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";f();d();Object.defineProperty(Fo,"__esModule",{value:!0});Fo.isHexString=Fo.getKeys=Fo.fromAscii=Fo.fromUtf8=Fo.toAscii=Fo.arrayContainsArray=Fo.getBinarySize=Fo.padToEven=Fo.stripHexPrefix=Fo.isHexPrefixed=void 0;function Htr(r){if(typeof r!="string")throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof r));return r[0]==="0"&&r[1]==="x"}Fo.isHexPrefixed=Htr;var aaa=function(r){if(typeof r!="string")throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof r));return Htr(r)?r.slice(2):r};Fo.stripHexPrefix=aaa;function jtr(r){var e=r;if(typeof e!="string")throw new Error("[padToEven] value must be type 'string', received ".concat(typeof e));return e.length%2&&(e="0".concat(e)),e}Fo.padToEven=jtr;function iaa(r){if(typeof r!="string")throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof r));return v.Buffer.byteLength(r,"utf8")}Fo.getBinarySize=iaa;function saa(r,e,t){if(Array.isArray(r)!==!0)throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof r,"'"));if(Array.isArray(e)!==!0)throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof e,"'"));return e[t?"some":"every"](function(n){return r.indexOf(n)>=0})}Fo.arrayContainsArray=saa;function oaa(r){var e="",t=0,n=r.length;for(r.substring(0,2)==="0x"&&(t=2);t{"use strict";f();d();Object.defineProperty(Ey,"__esModule",{value:!0});Ey.assertIsString=Ey.assertIsArray=Ey.assertIsBuffer=Ey.assertIsHexString=void 0;var daa=C4(),paa=function(r){if(!(0,daa.isHexString)(r)){var e="This method only supports 0x-prefixed hex strings but input was: ".concat(r);throw new Error(e)}};Ey.assertIsHexString=paa;var haa=function(r){if(!v.Buffer.isBuffer(r)){var e="This method only supports Buffer but input was: ".concat(r);throw new Error(e)}};Ey.assertIsBuffer=haa;var maa=function(r){if(!Array.isArray(r)){var e="This method only supports number arrays but input was: ".concat(r);throw new Error(e)}};Ey.assertIsArray=maa;var yaa=function(r){if(typeof r!="string"){var e="This method only supports strings but input was: ".concat(r);throw new Error(e)}};Ey.assertIsString=yaa});var d5=E(yr=>{"use strict";f();d();var baa=yr&&yr.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},gaa=yr&&yr.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),a,i=[],s;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i};Object.defineProperty(yr,"__esModule",{value:!0});yr.bufArrToArr=yr.arrToBufArr=yr.validateNoLeadingZeroes=yr.baToJSON=yr.toUtf8=yr.addHexPrefix=yr.toUnsigned=yr.fromSigned=yr.bufferToHex=yr.bufferToInt=yr.toBuffer=yr.unpadHexString=yr.unpadArray=yr.unpadBuffer=yr.setLengthRight=yr.setLengthLeft=yr.zeros=yr.intToBuffer=yr.intToHex=void 0;var JJe=xy(),A4=C4(),Dde=Bde(),vaa=function(r){if(!Number.isSafeInteger(r)||r<0)throw new Error("Received an invalid integer type: ".concat(r));return"0x".concat(r.toString(16))};yr.intToHex=vaa;var waa=function(r){var e=(0,yr.intToHex)(r);return v.Buffer.from((0,A4.padToEven)(e.slice(2)),"hex")};yr.intToBuffer=waa;var xaa=function(r){return v.Buffer.allocUnsafe(r).fill(0)};yr.zeros=xaa;var ztr=function(r,e,t){var n=(0,yr.zeros)(e);return t?r.length0&&e.toString()==="0";)r=r.slice(1),e=r[0];return r},Eaa=function(r){return(0,Dde.assertIsBuffer)(r),ZJe(r)};yr.unpadBuffer=Eaa;var Iaa=function(r){return(0,Dde.assertIsArray)(r),ZJe(r)};yr.unpadArray=Iaa;var Caa=function(r){return(0,Dde.assertIsHexString)(r),r=(0,A4.stripHexPrefix)(r),ZJe(r)};yr.unpadHexString=Caa;var Aaa=function(r){if(r==null)return v.Buffer.allocUnsafe(0);if(v.Buffer.isBuffer(r))return v.Buffer.from(r);if(Array.isArray(r)||r instanceof Uint8Array)return v.Buffer.from(r);if(typeof r=="string"){if(!(0,A4.isHexString)(r))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(r));return v.Buffer.from((0,A4.padToEven)((0,A4.stripHexPrefix)(r)),"hex")}if(typeof r=="number")return(0,yr.intToBuffer)(r);if(JJe.BN.isBN(r)){if(r.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(r));return r.toArrayLike(v.Buffer)}if(r.toArray)return v.Buffer.from(r.toArray());if(r.toBuffer)return v.Buffer.from(r.toBuffer());throw new Error("invalid type")};yr.toBuffer=Aaa;var kaa=function(r){return new JJe.BN((0,yr.toBuffer)(r)).toNumber()};yr.bufferToInt=kaa;var Saa=function(r){return r=(0,yr.toBuffer)(r),"0x"+r.toString("hex")};yr.bufferToHex=Saa;var Paa=function(r){return new JJe.BN(r).fromTwos(256)};yr.fromSigned=Paa;var Raa=function(r){return v.Buffer.from(r.toTwos(256).toArray())};yr.toUnsigned=Raa;var Maa=function(r){return typeof r!="string"||(0,A4.isHexPrefixed)(r)?r:"0x"+r};yr.addHexPrefix=Maa;var Baa=function(r){var e=/^(00)+|(00)+$/g;if(r=(0,A4.stripHexPrefix)(r),r.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");var t=v.Buffer.from(r.replace(e,""),"hex");return t.toString("utf8")};yr.toUtf8=Baa;var Daa=function(r){if(v.Buffer.isBuffer(r))return"0x".concat(r.toString("hex"));if(r instanceof Array){for(var e=[],t=0;t0&&o[0]===0)throw new Error("".concat(s," cannot have leading zeroes, received: ").concat(o.toString("hex")))}}catch(c){e={error:c}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}};yr.validateNoLeadingZeroes=Naa;function Ktr(r){return Array.isArray(r)?r.map(function(e){return Ktr(e)}):v.Buffer.from(r)}yr.arrToBufArr=Ktr;function Gtr(r){return Array.isArray(r)?r.map(function(e){return Gtr(e)}):Uint8Array.from(r??[])}yr.bufArrToArr=Gtr});var Vtr=E(XJe=>{"use strict";f();d();Object.defineProperty(XJe,"__esModule",{value:!0});function Oaa(r){return function(e){var t=r();return t.update(e),v.Buffer.from(t.digest())}}XJe.createHashFunction=Oaa});var $tr=E(pne=>{"use strict";f();d();Object.defineProperty(pne,"__esModule",{value:!0});var DEe=Vtr(),NEe=KLe();pne.keccak224=DEe.createHashFunction(function(){return NEe("keccak224")});pne.keccak256=DEe.createHashFunction(function(){return NEe("keccak256")});pne.keccak384=DEe.createHashFunction(function(){return NEe("keccak384")});pne.keccak512=DEe.createHashFunction(function(){return NEe("keccak512")})});var FEe=E(Ii=>{"use strict";f();d();Object.defineProperty(Ii,"__esModule",{value:!0});Ii.rlphash=Ii.ripemd160FromArray=Ii.ripemd160FromString=Ii.ripemd160=Ii.sha256FromArray=Ii.sha256FromString=Ii.sha256=Ii.keccakFromArray=Ii.keccakFromHexString=Ii.keccakFromString=Ii.keccak256=Ii.keccak=void 0;var OEe=$tr(),Ytr=lv(),Faa=xy(),Nde=d5(),Iy=Bde(),Laa=function(r,e){switch(e===void 0&&(e=256),(0,Iy.assertIsBuffer)(r),e){case 224:return(0,OEe.keccak224)(r);case 256:return(0,OEe.keccak256)(r);case 384:return(0,OEe.keccak384)(r);case 512:return(0,OEe.keccak512)(r);default:throw new Error("Invald algorithm: keccak".concat(e))}};Ii.keccak=Laa;var qaa=function(r){return(0,Ii.keccak)(r)};Ii.keccak256=qaa;var Waa=function(r,e){e===void 0&&(e=256),(0,Iy.assertIsString)(r);var t=v.Buffer.from(r,"utf8");return(0,Ii.keccak)(t,e)};Ii.keccakFromString=Waa;var Uaa=function(r,e){return e===void 0&&(e=256),(0,Iy.assertIsHexString)(r),(0,Ii.keccak)((0,Nde.toBuffer)(r),e)};Ii.keccakFromHexString=Uaa;var Haa=function(r,e){return e===void 0&&(e=256),(0,Iy.assertIsArray)(r),(0,Ii.keccak)((0,Nde.toBuffer)(r),e)};Ii.keccakFromArray=Haa;var eZe=function(r){return r=(0,Nde.toBuffer)(r),Ytr("sha256").update(r).digest()},jaa=function(r){return(0,Iy.assertIsBuffer)(r),eZe(r)};Ii.sha256=jaa;var zaa=function(r){return(0,Iy.assertIsString)(r),eZe(r)};Ii.sha256FromString=zaa;var Kaa=function(r){return(0,Iy.assertIsArray)(r),eZe(r)};Ii.sha256FromArray=Kaa;var tZe=function(r,e){r=(0,Nde.toBuffer)(r);var t=Ytr("rmd160").update(r).digest();return e===!0?(0,Nde.setLengthLeft)(t,32):t},Gaa=function(r,e){return(0,Iy.assertIsBuffer)(r),tZe(r,e)};Ii.ripemd160=Gaa;var Vaa=function(r,e){return(0,Iy.assertIsString)(r),tZe(r,e)};Ii.ripemd160FromString=Vaa;var $aa=function(r,e){return(0,Iy.assertIsArray)(r),tZe(r,e)};Ii.ripemd160FromArray=$aa;var Yaa=function(r){return(0,Ii.keccak)(Faa.rlp.encode(r))};Ii.rlphash=Yaa});var qEe=E(Rd=>{"use strict";f();d();Object.defineProperty(Rd,"__esModule",{value:!0});Rd.toType=Rd.TypeOutput=Rd.bnToRlp=Rd.bnToUnpaddedBuffer=Rd.bnToHex=void 0;var rZe=xy(),Qaa=C4(),Qtr=d5();function Jaa(r){return"0x".concat(r.toString(16))}Rd.bnToHex=Jaa;function Jtr(r){return(0,Qtr.unpadBuffer)(r.toArrayLike(v.Buffer))}Rd.bnToUnpaddedBuffer=Jtr;function Zaa(r){return Jtr(r)}Rd.bnToRlp=Zaa;var LEe;(function(r){r[r.Number=0]="Number",r[r.BN=1]="BN",r[r.Buffer=2]="Buffer",r[r.PrefixedHexString=3]="PrefixedHexString"})(LEe=Rd.TypeOutput||(Rd.TypeOutput={}));function Xaa(r,e){if(r===null)return null;if(r!==void 0){if(typeof r=="string"&&!(0,Qaa.isHexString)(r))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(r));if(typeof r=="number"&&!Number.isSafeInteger(r))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var t=(0,Qtr.toBuffer)(r);if(e===LEe.Buffer)return t;if(e===LEe.BN)return new rZe.BN(t);if(e===LEe.Number){var n=new rZe.BN(t),a=new rZe.BN(Number.MAX_SAFE_INTEGER.toString());if(n.gt(a))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return n.toNumber()}else return"0x".concat(t.toString("hex"))}}Rd.toType=Xaa});var aZe=E(Xr=>{"use strict";f();d();var eia=Xr&&Xr.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),a,i=[],s;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(s)throw s.error}}return i},tia=Xr&&Xr.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.isZeroAddress=Xr.zeroAddress=Xr.importPublic=Xr.privateToAddress=Xr.privateToPublic=Xr.publicToAddress=Xr.pubToAddress=Xr.isValidPublic=Xr.isValidPrivate=Xr.generateAddress2=Xr.generateAddress=Xr.isValidChecksumAddress=Xr.toChecksumAddress=Xr.isValidAddress=Xr.Account=void 0;var nZe=tia(lne()),Pm=xy(),mne=QJe(),ria=C4(),WEe=IJe(),hne=d5(),yne=FEe(),nh=Bde(),UEe=qEe(),nia=function(){function r(e,t,n,a){e===void 0&&(e=new Pm.BN(0)),t===void 0&&(t=new Pm.BN(0)),n===void 0&&(n=WEe.KECCAK256_RLP),a===void 0&&(a=WEe.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=n,this.codeHash=a,this._validate()}return r.fromAccountData=function(e){var t=e.nonce,n=e.balance,a=e.stateRoot,i=e.codeHash;return new r(t?new Pm.BN((0,hne.toBuffer)(t)):void 0,n?new Pm.BN((0,hne.toBuffer)(n)):void 0,a?(0,hne.toBuffer)(a):void 0,i?(0,hne.toBuffer)(i):void 0)},r.fromRlpSerializedAccount=function(e){var t=Pm.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},r.fromValuesArray=function(e){var t=eia(e,4),n=t[0],a=t[1],i=t[2],s=t[3];return new r(new Pm.BN(n),new Pm.BN(a),i,s)},r.prototype._validate=function(){if(this.nonce.lt(new Pm.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new Pm.BN(0)))throw new Error("balance must be greater than zero");if(this.stateRoot.length!==32)throw new Error("stateRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")},r.prototype.raw=function(){return[(0,UEe.bnToUnpaddedBuffer)(this.nonce),(0,UEe.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},r.prototype.serialize=function(){return Pm.rlp.encode(this.raw())},r.prototype.isContract=function(){return!this.codeHash.equals(WEe.KECCAK256_NULL)},r.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(WEe.KECCAK256_NULL)},r}();Xr.Account=nia;var aia=function(r){try{(0,nh.assertIsString)(r)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(r)};Xr.isValidAddress=aia;var iia=function(r,e){(0,nh.assertIsHexString)(r);var t=(0,ria.stripHexPrefix)(r).toLowerCase(),n="";if(e){var a=(0,UEe.toType)(e,UEe.TypeOutput.BN);n=a.toString()+"0x"}for(var i=(0,yne.keccakFromString)(n+t).toString("hex"),s="0x",o=0;o=8?s+=t[o].toUpperCase():s+=t[o];return s};Xr.toChecksumAddress=iia;var sia=function(r,e){return(0,Xr.isValidAddress)(r)&&(0,Xr.toChecksumAddress)(r,e)===r};Xr.isValidChecksumAddress=sia;var oia=function(r,e){(0,nh.assertIsBuffer)(r),(0,nh.assertIsBuffer)(e);var t=new Pm.BN(e);return t.isZero()?(0,yne.rlphash)([r,null]).slice(-20):(0,yne.rlphash)([r,v.Buffer.from(t.toArray())]).slice(-20)};Xr.generateAddress=oia;var cia=function(r,e,t){(0,nh.assertIsBuffer)(r),(0,nh.assertIsBuffer)(e),(0,nh.assertIsBuffer)(t),(0,nZe.default)(r.length===20),(0,nZe.default)(e.length===32);var n=(0,yne.keccak256)(v.Buffer.concat([v.Buffer.from("ff","hex"),r,e,(0,yne.keccak256)(t)]));return n.slice(-20)};Xr.generateAddress2=cia;var uia=function(r){return(0,mne.privateKeyVerify)(r)};Xr.isValidPrivate=uia;var lia=function(r,e){return e===void 0&&(e=!1),(0,nh.assertIsBuffer)(r),r.length===64?(0,mne.publicKeyVerify)(v.Buffer.concat([v.Buffer.from([4]),r])):e?(0,mne.publicKeyVerify)(r):!1};Xr.isValidPublic=lia;var fia=function(r,e){return e===void 0&&(e=!1),(0,nh.assertIsBuffer)(r),e&&r.length!==64&&(r=v.Buffer.from((0,mne.publicKeyConvert)(r,!1).slice(1))),(0,nZe.default)(r.length===64),(0,yne.keccak)(r).slice(-20)};Xr.pubToAddress=fia;Xr.publicToAddress=Xr.pubToAddress;var dia=function(r){return(0,nh.assertIsBuffer)(r),v.Buffer.from((0,mne.publicKeyCreate)(r,!1)).slice(1)};Xr.privateToPublic=dia;var pia=function(r){return(0,Xr.publicToAddress)((0,Xr.privateToPublic)(r))};Xr.privateToAddress=pia;var hia=function(r){return(0,nh.assertIsBuffer)(r),r.length!==64&&(r=v.Buffer.from((0,mne.publicKeyConvert)(r,!1).slice(1))),r};Xr.importPublic=hia;var mia=function(){var r=20,e=(0,hne.zeros)(r);return(0,hne.bufferToHex)(e)};Xr.zeroAddress=mia;var yia=function(r){try{(0,nh.assertIsString)(r)}catch{return!1}var e=(0,Xr.zeroAddress)();return e===r};Xr.isZeroAddress=yia});var Xtr=E(bne=>{"use strict";f();d();var bia=bne&&bne.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bne,"__esModule",{value:!0});bne.Address=void 0;var k4=bia(lne()),HEe=xy(),Ztr=d5(),Ode=aZe(),gia=function(){function r(e){(0,k4.default)(e.length===20,"Invalid address length"),this.buf=e}return r.zero=function(){return new r((0,Ztr.zeros)(20))},r.fromString=function(e){return(0,k4.default)((0,Ode.isValidAddress)(e),"Invalid address"),new r((0,Ztr.toBuffer)(e))},r.fromPublicKey=function(e){(0,k4.default)(v.Buffer.isBuffer(e),"Public key should be Buffer");var t=(0,Ode.pubToAddress)(e);return new r(t)},r.fromPrivateKey=function(e){(0,k4.default)(v.Buffer.isBuffer(e),"Private key should be Buffer");var t=(0,Ode.privateToAddress)(e);return new r(t)},r.generate=function(e,t){return(0,k4.default)(HEe.BN.isBN(t)),new r((0,Ode.generateAddress)(e.buf,t.toArrayLike(v.Buffer)))},r.generate2=function(e,t,n){return(0,k4.default)(v.Buffer.isBuffer(t)),(0,k4.default)(v.Buffer.isBuffer(n)),new r((0,Ode.generateAddress2)(e.buf,t,n))},r.prototype.equals=function(e){return this.buf.equals(e.buf)},r.prototype.isZero=function(){return this.equals(r.zero())},r.prototype.isPrecompileOrSystemAddress=function(){var e=new HEe.BN(this.buf),t=new HEe.BN(0),n=new HEe.BN("ffff","hex");return e.gte(t)&&e.lte(n)},r.prototype.toString=function(){return"0x"+this.buf.toString("hex")},r.prototype.toBuffer=function(){return v.Buffer.from(this.buf)},r}();bne.Address=gia});var err=E(ul=>{"use strict";f();d();Object.defineProperty(ul,"__esModule",{value:!0});ul.hashPersonalMessage=ul.isValidSignature=ul.fromRpcSig=ul.toCompactSig=ul.toRpcSig=ul.ecrecover=ul.ecsign=void 0;var iZe=QJe(),Fde=xy(),ah=d5(),via=FEe(),wia=Bde(),Cy=qEe();function xia(r,e,t){var n=(0,iZe.ecdsaSign)(r,e),a=n.signature,i=n.recid,s=v.Buffer.from(a.slice(0,32)),o=v.Buffer.from(a.slice(32,64));if(!t||typeof t=="number"){if(t&&!Number.isSafeInteger(t))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var c=t?i+(t*2+35):i+27;return{r:s,s:o,v:c}}var u=(0,Cy.toType)(t,Cy.TypeOutput.BN),l=u.muln(2).addn(35).addn(i).toArrayLike(v.Buffer);return{r:s,s:o,v:l}}ul.ecsign=xia;function jEe(r,e){var t=(0,Cy.toType)(r,Cy.TypeOutput.BN);if(t.eqn(0)||t.eqn(1))return(0,Cy.toType)(r,Cy.TypeOutput.BN);if(!e)return t.subn(27);var n=(0,Cy.toType)(e,Cy.TypeOutput.BN);return t.sub(n.muln(2).addn(35))}function zEe(r){var e=new Fde.BN(r);return e.eqn(0)||e.eqn(1)}var _ia=function(r,e,t,n,a){var i=v.Buffer.concat([(0,ah.setLengthLeft)(t,32),(0,ah.setLengthLeft)(n,32)],64),s=jEe(e,a);if(!zEe(s))throw new Error("Invalid signature v value");var o=(0,iZe.ecdsaRecover)(i,s.toNumber(),r);return v.Buffer.from((0,iZe.publicKeyConvert)(o,!1).slice(1))};ul.ecrecover=_ia;var Tia=function(r,e,t,n){var a=jEe(r,n);if(!zEe(a))throw new Error("Invalid signature v value");return(0,ah.bufferToHex)(v.Buffer.concat([(0,ah.setLengthLeft)(e,32),(0,ah.setLengthLeft)(t,32),(0,ah.toBuffer)(r)]))};ul.toRpcSig=Tia;var Eia=function(r,e,t,n){var a=jEe(r,n);if(!zEe(a))throw new Error("Invalid signature v value");var i=(0,Cy.toType)(r,Cy.TypeOutput.Number),s=t;return(i>28&&i%2===1||i===1||i===28)&&(s=v.Buffer.from(t),s[0]|=128),(0,ah.bufferToHex)(v.Buffer.concat([(0,ah.setLengthLeft)(e,32),(0,ah.setLengthLeft)(s,32)]))};ul.toCompactSig=Eia;var Iia=function(r){var e=(0,ah.toBuffer)(r),t,n,a;if(e.length>=65)t=e.slice(0,32),n=e.slice(32,64),a=(0,ah.bufferToInt)(e.slice(64));else if(e.length===64)t=e.slice(0,32),n=e.slice(32,64),a=(0,ah.bufferToInt)(e.slice(32,33))>>7,n[0]&=127;else throw new Error("Invalid signature length");return a<27&&(a+=27),{v:a,r:t,s:n}};ul.fromRpcSig=Iia;var Cia=function(r,e,t,n,a){n===void 0&&(n=!0);var i=new Fde.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new Fde.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(e.length!==32||t.length!==32||!zEe(jEe(r,a)))return!1;var o=new Fde.BN(e),c=new Fde.BN(t);return!(o.isZero()||o.gt(s)||c.isZero()||c.gt(s)||n&&c.cmp(i)===1)};ul.isValidSignature=Cia;var Aia=function(r){(0,wia.assertIsBuffer)(r);var e=v.Buffer.from(`Ethereum Signed Message: +`.concat(r.length),"utf-8");return(0,via.keccak)(v.Buffer.concat([e,r]))};ul.hashPersonalMessage=Aia});var nrr=E(gne=>{"use strict";f();d();var kia=gne&&gne.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(gne,"__esModule",{value:!0});gne.defineProperties=void 0;var trr=kia(lne()),Sia=C4(),rrr=xy(),KEe=d5(),Pia=function(r,e,t){if(r.raw=[],r._fields=[],r.toJSON=function(a){if(a===void 0&&(a=!1),a){var i={};return r._fields.forEach(function(s){i[s]="0x".concat(r[s].toString("hex"))}),i}return(0,KEe.baToJSON)(r.raw)},r.serialize=function(){return rrr.rlp.encode(r.raw)},e.forEach(function(a,i){r._fields.push(a.name);function s(){return r.raw[i]}function o(c){c=(0,KEe.toBuffer)(c),c.toString("hex")==="00"&&!a.allowZero&&(c=v.Buffer.allocUnsafe(0)),a.allowLess&&a.length?(c=(0,KEe.unpadBuffer)(c),(0,trr.default)(a.length>=c.length,"The field ".concat(a.name," must not have more ").concat(a.length," bytes"))):!(a.allowZero&&c.length===0)&&a.length&&(0,trr.default)(a.length===c.length,"The field ".concat(a.name," must have byte length of ").concat(a.length)),r.raw[i]=c}Object.defineProperty(r,a.name,{enumerable:!0,configurable:!0,get:s,set:o}),a.default&&(r[a.name]=a.default),a.alias&&Object.defineProperty(r,a.alias,{enumerable:!1,configurable:!0,set:o,get:s})}),t)if(typeof t=="string"&&(t=v.Buffer.from((0,Sia.stripHexPrefix)(t),"hex")),v.Buffer.isBuffer(t)&&(t=rrr.rlp.decode(t)),Array.isArray(t)){if(t.length>r._fields.length)throw new Error("wrong number of fields in data");t.forEach(function(a,i){r[r._fields[i]]=(0,KEe.toBuffer)(a)})}else if(typeof t=="object"){var n=Object.keys(t);e.forEach(function(a){n.indexOf(a.name)!==-1&&(r[a.name]=t[a.name]),n.indexOf(a.alias)!==-1&&(r[a.alias]=t[a.alias])})}else throw new Error("invalid data")};gne.defineProperties=Pia});var GEe=E(jn=>{"use strict";f();d();var Ria=jn&&jn.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var a=Object.getOwnPropertyDescriptor(e,t);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,a)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),m2=jn&&jn.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ria(e,r,t)};Object.defineProperty(jn,"__esModule",{value:!0});jn.isHexString=jn.getKeys=jn.fromAscii=jn.fromUtf8=jn.toAscii=jn.arrayContainsArray=jn.getBinarySize=jn.padToEven=jn.stripHexPrefix=jn.isHexPrefixed=void 0;m2(IJe(),jn);m2(aZe(),jn);m2(Xtr(),jn);m2(FEe(),jn);m2(err(),jn);m2(d5(),jn);m2(nrr(),jn);m2(xy(),jn);m2(qEe(),jn);var Ay=C4();Object.defineProperty(jn,"isHexPrefixed",{enumerable:!0,get:function(){return Ay.isHexPrefixed}});Object.defineProperty(jn,"stripHexPrefix",{enumerable:!0,get:function(){return Ay.stripHexPrefix}});Object.defineProperty(jn,"padToEven",{enumerable:!0,get:function(){return Ay.padToEven}});Object.defineProperty(jn,"getBinarySize",{enumerable:!0,get:function(){return Ay.getBinarySize}});Object.defineProperty(jn,"arrayContainsArray",{enumerable:!0,get:function(){return Ay.arrayContainsArray}});Object.defineProperty(jn,"toAscii",{enumerable:!0,get:function(){return Ay.toAscii}});Object.defineProperty(jn,"fromUtf8",{enumerable:!0,get:function(){return Ay.fromUtf8}});Object.defineProperty(jn,"fromAscii",{enumerable:!0,get:function(){return Ay.fromAscii}});Object.defineProperty(jn,"getKeys",{enumerable:!0,get:function(){return Ay.getKeys}});Object.defineProperty(jn,"isHexString",{enumerable:!0,get:function(){return Ay.isHexString}})});var irr=E(vne=>{"use strict";f();d();Object.defineProperty(vne,"__esModule",{value:!0});var Mia=Ihe();function Bia(r){return"0x"+Mia.keccak_256(arr(r))}vne.keccak256=Bia;vne.padLeft=(r,e)=>{let t=/^0x/i.test(r)||typeof r=="number";r=r.toString().replace(/^0x/i,"");let n=e-r.length+1>=0?e-r.length+1:0;return(t?"0x":"")+new Array(n).join("0")+r};function Dia(r){let e=[];for(let t=0;t>>4).toString(16)),e.push((r[t]&15).toString(16));return`0x${e.join("").replace(/^0+/,"")}`}vne.bytesToHex=Dia;function arr(r){if(r==null)throw new Error("cannot convert null value to array");if(typeof r=="string"){let e=r.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if(e[1]!=="0x")throw new Error("hex string must have 0x prefix");r=r.substring(2),r.length%2&&(r="0"+r);let t=[];for(let n=0;n=256||parseInt(String(t))!=t)return!1}return!0}function sZe(r){return r.slice!==void 0||(r.slice=()=>{let e=Array.prototype.slice.call(arguments);return sZe(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}});var orr=E(y2=>{"use strict";f();d();Object.defineProperty(y2,"__esModule",{value:!0});var oZe=irr();function VEe(r){return typeof r!="string"||!/^(0x)?[0-9a-f]{512}$/i.test(r)?!1:!!(/^(0x)?[0-9a-f]{512}$/.test(r)||/^(0x)?[0-9A-F]{512}$/.test(r))}y2.isBloom=VEe;function $Ee(r,e){typeof e=="object"&&e.constructor===Uint8Array&&(e=oZe.bytesToHex(e));let t=oZe.keccak256(e).replace("0x","");for(let n=0;n<12;n+=4){let a=(parseInt(t.substr(n,2),16)<<8)+parseInt(t.substr(n+2,2),16)&2047,i=Oia(r.charCodeAt(r.length-1-Math.floor(a/4))),s=1<=48&&r<=57)return r-48;if(r>=65&&r<=70)return r-55;if(r>=97&&r<=102)return r-87;throw new Error("invalid bloom")}function Fia(r,e){if(!VEe(r))throw new Error("Invalid bloom given");if(!cZe(e))throw new Error(`Invalid ethereum address given: "${e}"`);let t=oZe.padLeft(e,64);return $Ee(r,t)}y2.isUserEthereumAddressInBloom=Fia;function Lia(r,e){if(!VEe(r))throw new Error("Invalid bloom given");if(!cZe(e))throw new Error(`Invalid contract address given: "${e}"`);return $Ee(r,e)}y2.isContractAddressInBloom=Lia;function qia(r,e){if(!VEe(r))throw new Error("Invalid bloom given");if(!srr(e))throw new Error("Invalid topic");return $Ee(r,e)}y2.isTopicInBloom=qia;function srr(r){if(typeof r!="string")return!1;if(/^(0x)?[0-9a-f]{64}$/i.test(r)){if(/^(0x)?[0-9a-f]{64}$/.test(r)||/^(0x)?[0-9A-F]{64}$/.test(r))return!0}else return!1;return!1}y2.isTopic=srr;function cZe(r){return typeof r!="string"?!1:!!(r.match(/^(0x)?[0-9a-fA-F]{40}$/)||r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}y2.isAddress=cZe});var pZe=E((SIi,yrr)=>{f();d();var wne=Fr(),Wia=bJe(),crr=ZXt(),YEe=GEe(),xne=orr(),fZe=function(r){return wne.isBN(r)},urr=function(r){return r&&r.constructor&&r.constructor.name==="BigNumber"},Lde=function(r){try{return Wia.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+r+'"')}},Uia=function(r){return"0x"+Lde(r).toTwos(256).toString(16,64)},lrr=function(r){return/^(0x)?[0-9a-f]{40}$/i.test(r)?/^(0x|0X)?[0-9a-f]{40}$/.test(r)||/^(0x|0X)?[0-9A-F]{40}$/.test(r)?!0:frr(r):!1},frr=function(r){r=r.replace(/^0x/i,"");for(var e=QEe(r.toLowerCase()).replace(/^0x/i,""),t=0;t<40;t++)if(parseInt(e[t],16)>7&&r[t].toUpperCase()!==r[t]||parseInt(e[t],16)<=7&&r[t].toLowerCase()!==r[t])return!1;return!0},Hia=function(r,e,t){var n=/^0x/i.test(r)||typeof r=="number";r=r.toString(16).replace(/^0x/i,"");var a=e-r.length+1>=0?e-r.length+1:0;return(n?"0x":"")+new Array(a).join(t||"0")+r},jia=function(r,e,t){var n=/^0x/i.test(r)||typeof r=="number";r=r.toString(16).replace(/^0x/i,"");var a=e-r.length+1>=0?e-r.length+1:0;return(n?"0x":"")+r+new Array(a).join(t||"0")},uZe=function(r){r=crr.encode(r);var e="";r=r.replace(/^(?:\u0000)*/,""),r=r.split("").reverse().join(""),r=r.replace(/^(?:\u0000)*/,""),r=r.split("").reverse().join("");for(var t=0;t>>4).toString(16)),e.push((r[t]&15).toString(16));return"0x"+e.join("")},Via=function(r){if(r=r.toString(16),!S4(r))throw new Error('Given value "'+r+'" is not a valid hex string.');r=r.replace(/^0x/i,"");for(var e=[],t=0;t{f();d();var P4=Fr(),Md=pZe(),nsa=function(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r},asa=function(r){var e=/^\D+(\d+).*$/.exec(r);return e?parseInt(e[1],10):null},isa=function(r){var e=/^\D+\d*\[(\d+)\]$/.exec(r);return e?parseInt(e[1],10):null},brr=function(r){var e=typeof r;if(e==="string")return Md.isHexStrict(r)?new P4(r.replace(/0x/i,""),16):new P4(r,10);if(e==="number")return new P4(r);if(Md.isBigNumber(r))return new P4(r.toString(10));if(Md.isBN(r))return r;throw new Error(r+" is not a number")},grr=function(r,e,t){var n,a;if(r=nsa(r),r==="bytes"){if(e.replace(/^0x/i,"").length%2!==0)throw new Error("Invalid bytes characters "+e.length);return e}else{if(r==="string")return Md.utf8ToHex(e);if(r==="bool")return e?"01":"00";if(r.startsWith("address")){if(t?n=64:n=40,!Md.isAddress(e))throw new Error(e+" is not a valid address, or the checksum is invalid.");return Md.leftPad(e.toLowerCase(),n)}}if(n=asa(r),r.startsWith("bytes")){if(!n)throw new Error("bytes[] not yet supported in solidity");if(t&&(n=32),n<1||n>32||n256)throw new Error("Invalid uint"+n+" size");if(a=brr(e),a.bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+a.bitLength());if(a.lt(new P4(0)))throw new Error("Supplied uint "+a.toString()+" is negative");return n?Md.leftPad(a.toString("hex"),n/8*2):a}else if(r.startsWith("int")){if(n%8||n<8||n>256)throw new Error("Invalid int"+n+" size");if(a=brr(e),a.bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+a.bitLength());return a.lt(new P4(0))?a.toTwos(n).toString("hex"):n?Md.leftPad(a.toString("hex"),n/8*2):a}else throw new Error("Unsupported or invalid type: "+r)},hZe=function(r){if(Array.isArray(r))throw new Error("Autodetection of array types is not supported.");var e,t="",n,a;if(!!r&&typeof r=="object"&&(r.hasOwnProperty("v")||r.hasOwnProperty("t")||r.hasOwnProperty("value")||r.hasOwnProperty("type"))?(e=r.hasOwnProperty("t")?r.t:r.type,t=r.hasOwnProperty("v")?r.v:r.value):(e=Md.toHex(r,!0),t=Md.toHex(r),!e.startsWith("int")&&!e.startsWith("uint")&&(e="bytes")),(e.startsWith("int")||e.startsWith("uint"))&&typeof t=="string"&&!/^(-)?0x/i.test(t)&&(t=new P4(t)),Array.isArray(t)){if(a=isa(e),a&&t.length!==a)throw new Error(e+" is not matching the given array "+JSON.stringify(t));a=t.length}return Array.isArray(t)?(n=t.map(function(i){return grr(e,i,a).toString("hex").replace("0x","")}),n.join("")):(n=grr(e,t,a),n.toString("hex").replace("0x",""))},ssa=function(){var r=Array.prototype.slice.call(arguments),e=r.map(hZe);return Md.sha3("0x"+e.join(""))},osa=function(){return Md.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(hZe).join(""))},csa=function(){var r=Array.prototype.slice.call(arguments),e=r.map(hZe);return"0x"+e.join("").toLowerCase()};vrr.exports={soliditySha3:ssa,soliditySha3Raw:osa,encodePacked:csa}});var Crr=E((NIi,Irr)=>{f();d();var R4=JXt(),Ur=pZe(),mZe=wrr(),usa=jy(),xrr=Fr(),lsa=function(r,e,t,n,a){return!!r&&typeof r=="object"&&!(r instanceof Error)&&r.data&&((!!r.data&&typeof r.data=="object"||Array.isArray(r.data))&&(r.data=JSON.stringify(r.data,null,2)),r=r.message+` +`+r.data),typeof r=="string"&&(r=new Error(r)),typeof n=="function"&&n(r,a),typeof t=="function"&&((e&&typeof e.listeners=="function"&&e.listeners("error").length||typeof n=="function")&&e.catch(function(){}),setTimeout(function(){t(r)},1)),e&&typeof e.emit=="function"&&setTimeout(function(){e.emit("error",r,a),e.removeAllListeners()},1),e},fsa=function(r){return!!r&&typeof r=="object"&&r.name&&r.name.indexOf("(")!==-1?r.name:r.name+"("+yZe(!1,r.inputs).join(",")+")"},yZe=function(r,e){var t=[];return e.forEach(function(n){if(typeof n.components=="object"){if(n.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");var a="",i=n.type.indexOf("[");i>=0&&(a=n.type.substring(i));var s=yZe(r,n.components);Array.isArray(s)&&r?t.push("tuple("+s.join(",")+")"+a):r?t.push("("+s+")"):t.push("("+s.join(",")+")"+a)}else t.push(n.type)}),t},dsa=function(r){return"0x"+usa(r).toString("hex")},_rr=function(r){if(!Ur.isHexStrict(r))throw new Error("The parameter must be a valid HEX string.");var e="",t=0,n=r.length;for(r.substring(0,2)==="0x"&&(t=2);t"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(r))throw new Error('Given address "'+r+'" is not a valid Ethereum address.');r=r.toLowerCase().replace(/^0x/i,"");for(var e=Ur.sha3(r).replace(/^0x/i,""),t="0x",n=0;n7?t+=r[n].toUpperCase():t+=r[n];return t},ysa=function(r,e){if(r===e)return 0;if((r==="genesis"||r==="earliest"||r===0)&&(e==="genesis"||e==="earliest"||e===0))return 0;if(r==="genesis"||r==="earliest"||r===0)return-1;if(e==="genesis"||e==="earliest"||e===0)return 1;if(r==="latest"||r==="finalized")return e==="pending"?-1:1;if(e==="latest"||e==="finalized")return r==="pending"?1:-1;if(r==="pending")return 1;if(e==="pending")return-1;if(r==="safe"||e==="safe")return;{let t=new xrr(r),n=new xrr(e);return t.lt(n)?-1:t.eq(n)?0:1}};Irr.exports={_fireError:lsa,_jsonInterfaceMethodToString:fsa,_flattenTypes:yZe,randomHex:dsa,BN:Ur.BN,isBN:Ur.isBN,isBigNumber:Ur.isBigNumber,isHex:Ur.isHex,isHexStrict:Ur.isHexStrict,sha3:Ur.sha3,sha3Raw:Ur.sha3Raw,keccak256:Ur.sha3,soliditySha3:mZe.soliditySha3,soliditySha3Raw:mZe.soliditySha3Raw,encodePacked:mZe.encodePacked,isAddress:Ur.isAddress,checkAddressChecksum:Ur.checkAddressChecksum,toChecksumAddress:msa,toHex:Ur.toHex,toBN:Ur.toBN,bytesToHex:Ur.bytesToHex,hexToBytes:Ur.hexToBytes,hexToNumberString:Ur.hexToNumberString,hexToNumber:Ur.hexToNumber,toDecimal:Ur.hexToNumber,numberToHex:Ur.numberToHex,fromDecimal:Ur.numberToHex,hexToUtf8:Ur.hexToUtf8,hexToString:Ur.hexToUtf8,toUtf8:Ur.hexToUtf8,stripHexPrefix:Ur.stripHexPrefix,utf8ToHex:Ur.utf8ToHex,stringToHex:Ur.utf8ToHex,fromUtf8:Ur.utf8ToHex,hexToAscii:_rr,toAscii:_rr,asciiToHex:Trr,fromAscii:Trr,unitMap:R4.unitMap,toWei:hsa,fromWei:psa,padLeft:Ur.leftPad,leftPad:Ur.leftPad,padRight:Ur.rightPad,rightPad:Ur.rightPad,toTwosComplement:Ur.toTwosComplement,isBloom:Ur.isBloom,isUserEthereumAddressInBloom:Ur.isUserEthereumAddressInBloom,isContractAddressInBloom:Ur.isContractAddressInBloom,isTopic:Ur.isTopic,isTopicInBloom:Ur.isTopicInBloom,isInBloom:Ur.isInBloom,compareBlockNumbers:ysa,toNumber:Ur.toNumber}});var Arr=E(_ne=>{"use strict";f();d();Object.defineProperty(_ne,"__esModule",{value:!0});_ne.networks=void 0;_ne.networks=[{chainId:1,shortName:"eth"},{chainId:3,shortName:"rop"},{chainId:4,shortName:"rin"},{chainId:5,shortName:"gor"},{chainId:10,shortName:"oeth"},{chainId:11,shortName:"meta"},{chainId:12,shortName:"kal"},{chainId:25,shortName:"cro"},{chainId:28,shortName:"bobarinkeby"},{chainId:40,shortName:"telosevm"},{chainId:41,shortName:"telosevmtestnet"},{chainId:42,shortName:"kov"},{chainId:50,shortName:"xdc"},{chainId:51,shortName:"txdc"},{chainId:56,shortName:"bnb"},{chainId:61,shortName:"etc"},{chainId:63,shortName:"metc"},{chainId:69,shortName:"okov"},{chainId:82,shortName:"meter"},{chainId:83,shortName:"meter-test"},{chainId:97,shortName:"bnbt"},{chainId:100,shortName:"gno"},{chainId:106,shortName:"vlx"},{chainId:108,shortName:"tt"},{chainId:111,shortName:"etl"},{chainId:122,shortName:"fuse"},{chainId:123,shortName:"spark"},{chainId:137,shortName:"matic"},{chainId:246,shortName:"ewt"},{chainId:250,shortName:"ftm"},{chainId:288,shortName:"boba"},{chainId:300,shortName:"ogn"},{chainId:321,shortName:"kcs"},{chainId:322,shortName:"kcst"},{chainId:336,shortName:"sdn"},{chainId:338,shortName:"tcro"},{chainId:420,shortName:"ogor"},{chainId:588,shortName:"metis-stardust"},{chainId:592,shortName:"astr"},{chainId:595,shortName:"maca"},{chainId:599,shortName:"metis-goerli"},{chainId:686,shortName:"kar"},{chainId:787,shortName:"aca"},{chainId:1001,shortName:"baobab"},{chainId:1008,shortName:"eun"},{chainId:1088,shortName:"metis-andromeda"},{chainId:1284,shortName:"mbeam"},{chainId:1285,shortName:"mriver"},{chainId:1287,shortName:"mbase"},{chainId:1294,shortName:"bobabeam"},{chainId:1807,shortName:"rana"},{chainId:1984,shortName:"euntest"},{chainId:2001,shortName:"milkada"},{chainId:2002,shortName:"milkalgo"},{chainId:2008,shortName:"cloudwalk_testnet"},{chainId:2019,shortName:"pmint_test"},{chainId:2020,shortName:"pmint"},{chainId:2221,shortName:"tkava"},{chainId:2222,shortName:"kava"},{chainId:4002,shortName:"tftm"},{chainId:4689,shortName:"iotex-mainnet"},{chainId:4918,shortName:"txvm"},{chainId:4919,shortName:"xvm"},{chainId:7341,shortName:"shyft"},{chainId:7700,shortName:"canto"},{chainId:8217,shortName:"cypress"},{chainId:9e3,shortName:"evmos-testnet"},{chainId:9001,shortName:"evmos"},{chainId:9728,shortName:"boba-testnet"},{chainId:1e4,shortName:"smartbch"},{chainId:10001,shortName:"smartbchtest"},{chainId:10200,shortName:"chi"},{chainId:11235,shortName:"islm"},{chainId:11437,shortName:"shyftt"},{chainId:12357,shortName:"rei-testnet"},{chainId:42161,shortName:"arb1"},{chainId:42170,shortName:"arb-nova"},{chainId:42220,shortName:"celo"},{chainId:43113,shortName:"fuji"},{chainId:43114,shortName:"avax"},{chainId:43288,shortName:"boba-avax"},{chainId:44787,shortName:"alfa"},{chainId:45e3,shortName:"autobahnnetwork"},{chainId:47805,shortName:"rei"},{chainId:54211,shortName:"islmt"},{chainId:56288,shortName:"boba-bnb"},{chainId:71401,shortName:"gw-testnet-v1"},{chainId:71402,shortName:"gw-mainnet-v1"},{chainId:73799,shortName:"vt"},{chainId:80001,shortName:"maticmum"},{chainId:84531,shortName:"base-gor"},{chainId:200101,shortName:"milktada"},{chainId:200202,shortName:"milktalgo"},{chainId:333999,shortName:"olympus"},{chainId:421611,shortName:"arb-rinkeby"},{chainId:421613,shortName:"arb-goerli"},{chainId:11155111,shortName:"sep"},{chainId:1313161554,shortName:"aurora"},{chainId:1313161555,shortName:"aurora-testnet"},{chainId:16666e5,shortName:"hmy-s0"},{chainId:16667e5,shortName:"hmy-b-s0"},{chainId:11297108099,shortName:"tpalm"},{chainId:11297108109,shortName:"palm"}];g.env.TEST_NETWORK==="hardhat"?_ne.networks.push({shortName:"local",chainId:31337}):g.env.TEST_NETWORK==="ganache"&&_ne.networks.push({shortName:"local",chainId:1337})});var Nrr=E(Bf=>{"use strict";f();d();Object.defineProperty(Bf,"__esModule",{value:!0});Bf.validateEip3770Address=Bf.validateEthereumAddress=Bf.validateEip3770NetworkPrefix=Bf.isValidEip3770NetworkPrefix=Bf.getEip3770NetworkPrefixFromChainId=Bf.parseEip3770Address=void 0;var krr=Crr(),Srr=Arr();function Prr(r){let e=r.split(":"),t=e.length>1?e[1]:e[0];return{prefix:e.length>1?e[0]:"",address:t}}Bf.parseEip3770Address=Prr;function Rrr(r){let e=Srr.networks.find(t=>r===t.chainId);if(!e)throw new Error("No network prefix supported for the current chainId");return e.shortName}Bf.getEip3770NetworkPrefixFromChainId=Rrr;function Mrr(r){return Srr.networks.some(({shortName:e})=>e===r)}Bf.isValidEip3770NetworkPrefix=Mrr;function Brr(r,e){let t=r===Rrr(e);if(!Mrr(r)||!t)throw new Error("The network prefix must match the current network")}Bf.validateEip3770NetworkPrefix=Brr;function Drr(r){if(!((0,krr.isHexStrict)(r)&&(0,krr.isAddress)(r)))throw new Error(`Invalid Ethereum address ${r}`)}Bf.validateEthereumAddress=Drr;function bsa(r,e){let{address:t,prefix:n}=Prr(r);return Drr(t),n&&Brr(n,e),{address:t,prefix:n}}Bf.validateEip3770Address=bsa});var qrr=E(Df=>{"use strict";f();d();var gsa=Df&&Df.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Df,"__esModule",{value:!0});Df.generateTypedData=Df.getEip712MessageTypes=Df.EIP712_DOMAIN=Df.EIP712_DOMAIN_BEFORE_V130=void 0;var Orr=gsa(rne()),Frr=">=1.3.0";Df.EIP712_DOMAIN_BEFORE_V130=[{type:"address",name:"verifyingContract"}];Df.EIP712_DOMAIN=[{type:"uint256",name:"chainId"},{type:"address",name:"verifyingContract"}];function Lrr(r){return{EIP712Domain:(0,Orr.default)(r,Frr)?Df.EIP712_DOMAIN:Df.EIP712_DOMAIN_BEFORE_V130,SafeTx:[{type:"address",name:"to"},{type:"uint256",name:"value"},{type:"bytes",name:"data"},{type:"uint8",name:"operation"},{type:"uint256",name:"safeTxGas"},{type:"uint256",name:"baseGas"},{type:"uint256",name:"gasPrice"},{type:"address",name:"gasToken"},{type:"address",name:"refundReceiver"},{type:"uint256",name:"nonce"}]}}Df.getEip712MessageTypes=Lrr;function vsa({safeAddress:r,safeVersion:e,chainId:t,safeTransactionData:n}){let a=(0,Orr.default)(e,Frr),i={types:Lrr(e),domain:{verifyingContract:r},primaryType:"SafeTx",message:{...n,value:n.value,safeTxGas:n.safeTxGas,baseGas:n.baseGas,gasPrice:n.gasPrice,nonce:n.nonce}};return a&&(i.domain.chainId=t),i}Df.generateTypedData=vsa});var Urr=E(b2=>{"use strict";f();d();var wsa=b2&&b2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(b2,"__esModule",{value:!0});b2.hasSafeFeature=b2.SAFE_FEATURES=void 0;var xsa=wsa(rne()),qde;(function(r){r.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",r.SAFE_TX_GUARDS="SAFE_TX_GUARDS",r.SAFE_FALLBACK_HANDLER="SAFE_FALLBACK_HANDLER",r.ETH_SIGN="ETH_SIGN"})(qde=b2.SAFE_FEATURES||(b2.SAFE_FEATURES={}));var Wrr={[qde.SAFE_TX_GAS_OPTIONAL]:">=1.3.0",[qde.SAFE_TX_GUARDS]:">=1.3.0",[qde.SAFE_FALLBACK_HANDLER]:">=1.1.1",[qde.ETH_SIGN]:">=1.1.0"},_sa=(r,e)=>r in Wrr?(0,xsa.default)(e,Wrr[r]):!1;b2.hasSafeFeature=_sa});var Tne=E(g2=>{"use strict";f();d();var Tsa=g2&&g2.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var a=Object.getOwnPropertyDescriptor(e,t);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,a)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),bZe=g2&&g2.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Tsa(e,r,t)};Object.defineProperty(g2,"__esModule",{value:!0});bZe(Nrr(),g2);bZe(qrr(),g2);bZe(Urr(),g2)});var h5=E(p5=>{"use strict";f();d();Object.defineProperty(p5,"__esModule",{value:!0});p5.SENTINEL_ADDRESS=p5.EMPTY_DATA=p5.ZERO_ADDRESS=void 0;p5.ZERO_ADDRESS=`0x${"0".repeat(40)}`;p5.EMPTY_DATA="0x";p5.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001"});var M4=E(ih=>{"use strict";f();d();Object.defineProperty(ih,"__esModule",{value:!0});ih.isSafeMultisigTransactionResponse=ih.isMetaTransactionArray=ih.isRestrictedAddress=ih.isZeroAddress=ih.sameString=void 0;var Hrr=h5();function gZe(r,e){return r.toLowerCase()===e.toLowerCase()}ih.sameString=gZe;function jrr(r){return gZe(r,Hrr.ZERO_ADDRESS)}ih.isZeroAddress=jrr;function Esa(r){return gZe(r,Hrr.SENTINEL_ADDRESS)}function Isa(r){return jrr(r)||Esa(r)}ih.isRestrictedAddress=Isa;function Csa(r){return r?.length!==void 0}ih.isMetaTransactionArray=Csa;function Asa(r){return r.isExecuted!==void 0}ih.isSafeMultisigTransactionResponse=Asa});var Grr=E(N4=>{"use strict";f();d();var zrr=N4&&N4.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},B4=N4&&N4.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Wde,D4,wZe;Object.defineProperty(N4,"__esModule",{value:!0});var Krr=Tne(),vZe=M4(),ksa=h5(),xZe=class{constructor(e,t){Wde.set(this,void 0),D4.set(this,void 0),wZe.set(this,"0x6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5"),zrr(this,Wde,e,"f"),zrr(this,D4,t,"f")}validateFallbackHandlerAddress(e){if(!B4(this,Wde,"f").isAddress(e)||(0,vZe.isZeroAddress)(e))throw new Error("Invalid fallback handler address provided")}validateFallbackHandlerIsNotEnabled(e,t){if((0,vZe.sameString)(e,t))throw new Error("Fallback handler provided is already enabled")}validateFallbackHandlerIsEnabled(e){if((0,vZe.isZeroAddress)(e))throw new Error("There is no fallback handler enabled yet")}async getFallbackHandler(){let e=await B4(this,D4,"f").getVersion();if((0,Krr.hasSafeFeature)(Krr.SAFE_FEATURES.SAFE_FALLBACK_HANDLER,e))return B4(this,Wde,"f").getStorageAt(B4(this,D4,"f").getAddress(),B4(this,wZe,"f"));throw new Error("Current version of the Safe does not support the fallback handler functionality")}async encodeEnableFallbackHandlerData(e){this.validateFallbackHandlerAddress(e);let t=await this.getFallbackHandler();return this.validateFallbackHandlerIsNotEnabled(t,e),B4(this,D4,"f").encode("setFallbackHandler",[e])}async encodeDisableFallbackHandlerData(){let e=await this.getFallbackHandler();return this.validateFallbackHandlerIsEnabled(e),B4(this,D4,"f").encode("setFallbackHandler",[ksa.ZERO_ADDRESS])}};Wde=new WeakMap,D4=new WeakMap,wZe=new WeakMap;N4.default=xZe});var Yrr=E(L4=>{"use strict";f();d();var Vrr=L4&&L4.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},O4=L4&&L4.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},Ude,F4,TZe;Object.defineProperty(L4,"__esModule",{value:!0});var $rr=Tne(),_Ze=M4(),Ssa=h5(),EZe=class{constructor(e,t){Ude.set(this,void 0),F4.set(this,void 0),TZe.set(this,"0x4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8"),Vrr(this,Ude,e,"f"),Vrr(this,F4,t,"f")}validateGuardAddress(e){if(!O4(this,Ude,"f").isAddress(e)||(0,_Ze.isZeroAddress)(e))throw new Error("Invalid guard address provided")}validateGuardIsNotEnabled(e,t){if((0,_Ze.sameString)(e,t))throw new Error("Guard provided is already enabled")}validateGuardIsEnabled(e){if((0,_Ze.isZeroAddress)(e))throw new Error("There is no guard enabled yet")}async getGuard(){let e=await O4(this,F4,"f").getVersion();if((0,$rr.hasSafeFeature)($rr.SAFE_FEATURES.SAFE_TX_GUARDS,e))return O4(this,Ude,"f").getStorageAt(O4(this,F4,"f").getAddress(),O4(this,TZe,"f"));throw new Error("Current version of the Safe does not support Safe transaction guards functionality")}async encodeEnableGuardData(e){this.validateGuardAddress(e);let t=await this.getGuard();return this.validateGuardIsNotEnabled(t,e),O4(this,F4,"f").encode("setGuard",[e])}async encodeDisableGuardData(){let e=await this.getGuard();return this.validateGuardIsEnabled(e),O4(this,F4,"f").encode("setGuard",[Ssa.ZERO_ADDRESS])}};Ude=new WeakMap,F4=new WeakMap,TZe=new WeakMap;L4.default=EZe});var Jrr=E(W4=>{"use strict";f();d();var Qrr=W4&&W4.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},Hde=W4&&W4.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},JEe,q4;Object.defineProperty(W4,"__esModule",{value:!0});var IZe=M4(),Psa=h5(),CZe=class{constructor(e,t){JEe.set(this,void 0),q4.set(this,void 0),Qrr(this,JEe,e,"f"),Qrr(this,q4,t,"f")}validateModuleAddress(e){if(!Hde(this,JEe,"f").isAddress(e)||(0,IZe.isRestrictedAddress)(e))throw new Error("Invalid module address provided")}validateModuleIsNotEnabled(e,t){if(t.findIndex(i=>(0,IZe.sameString)(i,e))>=0)throw new Error("Module provided is already enabled")}validateModuleIsEnabled(e,t){let n=t.findIndex(i=>(0,IZe.sameString)(i,e));if(!(n>=0))throw new Error("Module provided is not enabled yet");return n}async getModules(){return Hde(this,q4,"f").getModules()}async isModuleEnabled(e){return Hde(this,q4,"f").isModuleEnabled(e)}async encodeEnableModuleData(e){this.validateModuleAddress(e);let t=await this.getModules();return this.validateModuleIsNotEnabled(e,t),Hde(this,q4,"f").encode("enableModule",[e])}async encodeDisableModuleData(e){this.validateModuleAddress(e);let t=await this.getModules(),n=this.validateModuleIsEnabled(e,t),a=n===0?Psa.SENTINEL_ADDRESS:t[n-1];return Hde(this,q4,"f").encode("disableModule",[a,e])}};JEe=new WeakMap,q4=new WeakMap;W4.default=CZe});var enr=E(U4=>{"use strict";f();d();var Zrr=U4&&U4.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},m5=U4&&U4.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},ZEe,ky;Object.defineProperty(U4,"__esModule",{value:!0});var AZe=M4(),Xrr=h5(),kZe=class{constructor(e,t){ZEe.set(this,void 0),ky.set(this,void 0),Zrr(this,ZEe,e,"f"),Zrr(this,ky,t,"f")}validateOwnerAddress(e,t){if(!m5(this,ZEe,"f").isAddress(e)||(0,AZe.isRestrictedAddress)(e))throw new Error(t||"Invalid owner address provided")}validateThreshold(e,t){if(e<=0)throw new Error("Threshold needs to be greater than 0");if(e>t)throw new Error("Threshold cannot exceed owner count")}validateAddressIsNotOwner(e,t,n){if(t.findIndex(s=>(0,AZe.sameString)(s,e))>=0)throw new Error(n||"Address provided is already an owner")}validateAddressIsOwner(e,t,n){let a=t.findIndex(s=>(0,AZe.sameString)(s,e));if(!(a>=0))throw new Error(n||"Address provided is not an owner");return a}async getOwners(){return[...await m5(this,ky,"f").getOwners()]}async getThreshold(){return m5(this,ky,"f").getThreshold()}async isOwner(e){return m5(this,ky,"f").isOwner(e)}async encodeAddOwnerWithThresholdData(e,t){this.validateOwnerAddress(e);let n=await this.getOwners();this.validateAddressIsNotOwner(e,n);let a=t??await this.getThreshold();return this.validateThreshold(a,n.length+1),m5(this,ky,"f").encode("addOwnerWithThreshold",[e,a])}async encodeRemoveOwnerData(e,t){this.validateOwnerAddress(e);let n=await this.getOwners(),a=this.validateAddressIsOwner(e,n),i=t??await this.getThreshold()-1;this.validateThreshold(i,n.length-1);let s=a===0?Xrr.SENTINEL_ADDRESS:n[a-1];return m5(this,ky,"f").encode("removeOwner",[s,e,i])}async encodeSwapOwnerData(e,t){this.validateOwnerAddress(t,"Invalid new owner address provided"),this.validateOwnerAddress(e,"Invalid old owner address provided");let n=await this.getOwners();this.validateAddressIsNotOwner(t,n,"New address provided is already an owner");let a=this.validateAddressIsOwner(e,n,"Old address provided is not an owner"),i=a===0?Xrr.SENTINEL_ADDRESS:n[a-1];return m5(this,ky,"f").encode("swapOwner",[i,e,t])}async encodeChangeThresholdData(e){let t=await this.getOwners();return this.validateThreshold(e,t.length),m5(this,ky,"f").encode("changeThreshold",[e])}};ZEe=new WeakMap,ky=new WeakMap;U4.default=kZe});var RZe=E(PZe=>{"use strict";f();d();Object.defineProperty(PZe,"__esModule",{value:!0});var SZe=class{constructor(e,t){this.signer=e,this.data=t}staticPart(){return this.data}dynamicPart(){return""}};PZe.default=SZe});var rnr=E(ll=>{"use strict";f();d();var Rsa=ll&&ll.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ll,"__esModule",{value:!0});ll.generateEIP712Signature=ll.generateSignature=ll.adjustVInSignature=ll.isTxHashSignedWithPrefix=ll.generatePreValidatedSignature=void 0;var MZe=GEe(),Msa=M4(),BZe=Rsa(RZe());function Bsa(r){let e="0x000000000000000000000000"+r.slice(2)+"000000000000000000000000000000000000000000000000000000000000000001";return new BZe.default(r,e)}ll.generatePreValidatedSignature=Bsa;function tnr(r,e,t){let n;try{let a={r:v.Buffer.from(e.slice(2,66),"hex"),s:v.Buffer.from(e.slice(66,130),"hex"),v:parseInt(e.slice(130,132),16)},i=(0,MZe.ecrecover)(v.Buffer.from(r.slice(2),"hex"),a.v,a.r,a.s),s=(0,MZe.bufferToHex)((0,MZe.pubToAddress)(i));n=!(0,Msa.sameString)(s,t)}catch{n=!0}return n}ll.isTxHashSignedWithPrefix=tnr;var Dsa=(r,e,t,n)=>{let a=[0,1,27,28],i=27,s=parseInt(e.slice(-2),16);if(!a.includes(s))throw new Error("Invalid signature");if(r==="eth_sign"){s{"use strict";f();d();Object.defineProperty(NZe,"__esModule",{value:!0});var DZe=class{constructor(e){this.signatures=new Map,this.data=e}addSignature(e){this.signatures.set(e.signer.toLowerCase(),e)}encodedSignatures(){let e=Array.from(this.signatures.keys()).sort(),t=e.length*65,n="",a="";return e.forEach(i=>{let s=this.signatures.get(i);n+=s?.staticPart().slice(2),a+=s?.dynamicPart()}),"0x"+n+a}};NZe.default=DZe});var anr=E(XEe=>{"use strict";f();d();Object.defineProperty(XEe,"__esModule",{value:!0});XEe.estimateTxGas=void 0;var Fsa=Yi(),Lsa=tde();function qsa(r){let e=(t,n)=>n==="0x"?t+0:n==="00"?t+4:t+16;return r.match(/.{2}/g).reduce(e,0)}async function Wsa(r,e,t,n,a,i){let s=0,o=r.getAddress(),c=r.encode("requiredTxGas",[t,n,a,i]);try{let u=(await e.estimateGas({to:o,from:o,data:c})).toString();s=Fsa.BigNumber.from("0x"+u.substring(138)).toNumber()+1e4}catch{}if(s>0){let u=qsa(c),l=1e4;for(let p=0;p<10;p++){try{if(await e.call({to:o,from:o,data:c,gasPrice:0,gasLimit:s+u+l})!=="0x")break}catch{}s+=l,l*=2}return s+l}try{return await e.estimateGas({to:t,from:o,value:n,data:a})}catch(u){return i===Lsa.OperationType.DelegateCall?0:Promise.reject(u)}}XEe.estimateTxGas=Wsa});var OZe=E(y5=>{"use strict";f();d();Object.defineProperty(y5,"__esModule",{value:!0});y5.encodeMultiSendData=y5.standardizeSafeTransactionData=y5.standardizeMetaTransactionData=void 0;var Usa=Qr(),Hsa=ZSe(),onr=tde(),inr=Tne(),snr=h5(),jsa=anr();function zsa(r){var e;return{...r,operation:(e=r.operation)!==null&&e!==void 0?e:onr.OperationType.Call}}y5.standardizeMetaTransactionData=zsa;async function Ksa(r,e,t){var n,a,i,s;let o={to:t.to,value:t.value,data:t.data,operation:(n=t.operation)!==null&&n!==void 0?n:onr.OperationType.Call,baseGas:(a=t.baseGas)!==null&&a!==void 0?a:0,gasPrice:(i=t.gasPrice)!==null&&i!==void 0?i:0,gasToken:t.gasToken||snr.ZERO_ADDRESS,refundReceiver:t.refundReceiver||snr.ZERO_ADDRESS,nonce:(s=t.nonce)!==null&&s!==void 0?s:await r.getNonce()},c;if(typeof t.safeTxGas<"u")return{...o,safeTxGas:t.safeTxGas};let u=await r.getVersion();return(0,inr.hasSafeFeature)(inr.SAFE_FEATURES.SAFE_TX_GAS_OPTIONAL,u)&&o.gasPrice===0?c=0:c=await(0,jsa.estimateTxGas)(r,e,o.to,o.value,o.data,o.operation),{...o,safeTxGas:c}}y5.standardizeSafeTransactionData=Ksa;function Gsa(r){let e=(0,Usa.arrayify)(r.data);return(0,Hsa.pack)(["uint8","address","uint256","uint256","bytes"],[r.operation,r.to,r.value,e.length,e]).slice(2)}function Vsa(r){return"0x"+r.map(e=>Gsa(e)).join("")}y5.encodeMultiSendData=Vsa});var LZe=E(v2=>{"use strict";f();d();var Ene=v2&&v2.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},fr=v2&&v2.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},j4=v2&&v2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},Zc,fo,Sy,H4,Cne,Ane;Object.defineProperty(v2,"__esModule",{value:!0});var cnr=Yi(),$sa=tde(),unr=Tne(),Ysa=j4(hJe()),Qsa=j4(Grr()),Jsa=j4(Yrr()),Zsa=j4(Jrr()),Xsa=j4(enr()),b5=M4(),Ine=rnr(),eoa=j4(RZe()),toa=j4(nnr()),FZe=OZe(),kne=class{constructor(){Zc.set(this,void 0),fo.set(this,void 0),Sy.set(this,void 0),H4.set(this,void 0),Cne.set(this,void 0),Ane.set(this,void 0)}static async create({ethAdapter:e,safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}){let i=new kne;return await i.init({ethAdapter:e,safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}),i}async init({ethAdapter:e,safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}){Ene(this,Zc,e,"f"),Ene(this,fo,await Ysa.default.create({ethAdapter:fr(this,Zc,"f"),safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}),"f"),Ene(this,Sy,new Xsa.default(fr(this,Zc,"f"),fr(this,fo,"f").safeContract),"f"),Ene(this,H4,new Zsa.default(fr(this,Zc,"f"),fr(this,fo,"f").safeContract),"f"),Ene(this,Cne,new Jsa.default(fr(this,Zc,"f"),fr(this,fo,"f").safeContract),"f"),Ene(this,Ane,new Qsa.default(fr(this,Zc,"f"),fr(this,fo,"f").safeContract),"f")}async connect({ethAdapter:e,safeAddress:t,isL1SafeMasterCopy:n,contractNetworks:a}){return await kne.create({ethAdapter:e||fr(this,Zc,"f"),safeAddress:t||this.getAddress(),isL1SafeMasterCopy:n||fr(this,fo,"f").isL1SafeMasterCopy,contractNetworks:a||fr(this,fo,"f").contractNetworks})}getAddress(){return fr(this,fo,"f").safeContract.getAddress()}getContractManager(){return fr(this,fo,"f")}getEthAdapter(){return fr(this,Zc,"f")}getMultiSendAddress(){return fr(this,fo,"f").multiSendContract.getAddress()}getMultiSendCallOnlyAddress(){return fr(this,fo,"f").multiSendCallOnlyContract.getAddress()}async getContractVersion(){return fr(this,fo,"f").safeContract.getVersion()}async getOwners(){return fr(this,Sy,"f").getOwners()}async getNonce(){return fr(this,fo,"f").safeContract.getNonce()}async getThreshold(){return fr(this,Sy,"f").getThreshold()}async getChainId(){return fr(this,Zc,"f").getChainId()}async getBalance(){return fr(this,Zc,"f").getBalance(this.getAddress())}getFallbackHandler(){return fr(this,Ane,"f").getFallbackHandler()}async getGuard(){return fr(this,Cne,"f").getGuard()}async getModules(){return fr(this,H4,"f").getModules()}async isModuleEnabled(e){return fr(this,H4,"f").isModuleEnabled(e)}async isOwner(e){return fr(this,Sy,"f").isOwner(e)}async createTransaction({safeTransactionData:e,onlyCalls:t=!1,options:n}){if((0,b5.isMetaTransactionArray)(e)&&e.length===0)throw new Error("Invalid empty array of transactions");let a;if((0,b5.isMetaTransactionArray)(e)&&e.length>1){let s=t?fr(this,fo,"f").multiSendCallOnlyContract:fr(this,fo,"f").multiSendContract,o=(0,FZe.encodeMultiSendData)(e.map(FZe.standardizeMetaTransactionData));a={...n,to:s.getAddress(),value:"0",data:s.encode("multiSend",[o]),operation:$sa.OperationType.DelegateCall}}else a=(0,b5.isMetaTransactionArray)(e)?{...n,...e[0]}:e;let i=await(0,FZe.standardizeSafeTransactionData)(fr(this,fo,"f").safeContract,fr(this,Zc,"f"),a);return new toa.default(i)}async createRejectionTransaction(e){let t={to:this.getAddress(),nonce:e,value:"0",data:"0x",safeTxGas:0};return this.createTransaction({safeTransactionData:t})}async copyTransaction(e){let t=await this.createTransaction({safeTransactionData:e.data});return e.signatures.forEach(n=>{t.addSignature(n)}),t}async getTransactionHash(e){let t=e.data;return await fr(this,fo,"f").safeContract.getTransactionHash(t)}async signTransactionHash(e){return(0,Ine.generateSignature)(fr(this,Zc,"f"),e)}async signTypedData(e,t){let n={safeAddress:this.getAddress(),safeVersion:await this.getContractVersion(),chainId:await this.getEthAdapter().getChainId(),safeTransactionData:e.data};return(0,Ine.generateEIP712Signature)(fr(this,Zc,"f"),n,t)}async signTransaction(e,t="eth_signTypedData_v4"){let n=(0,b5.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.getOwners(),i=await fr(this,Zc,"f").getSignerAddress();if(!i)throw new Error("EthAdapter must be initialized with a signer to use this method");if(!a.find(u=>i&&(0,b5.sameString)(u,i)))throw new Error("Transactions can only be signed by Safe owners");let o;if(t==="eth_signTypedData_v4")o=await this.signTypedData(n,"v4");else if(t==="eth_signTypedData_v3")o=await this.signTypedData(n,"v3");else if(t==="eth_signTypedData")o=await this.signTypedData(n);else{let u=await this.getContractVersion();if(!(0,unr.hasSafeFeature)(unr.SAFE_FEATURES.ETH_SIGN,u))throw new Error("eth_sign is only supported by Safes >= v1.1.0");let l=await this.getTransactionHash(n);o=await this.signTransactionHash(l)}let c=await this.createTransaction({safeTransactionData:n.data});return n.signatures.forEach(u=>{c.addSignature(u)}),c.addSignature(o),c}async approveTransactionHash(e,t){let n=await this.getOwners(),a=await fr(this,Zc,"f").getSignerAddress();if(!a)throw new Error("EthAdapter must be initialized with a signer to use this method");if(!n.find(s=>a&&(0,b5.sameString)(s,a)))throw new Error("Transaction hashes can only be approved by Safe owners");if(t?.gas&&t?.gasLimit)throw new Error("Cannot specify gas and gasLimit together in transaction options");return fr(this,fo,"f").safeContract.approveHash(e,{from:a,...t})}async getOwnersWhoApprovedTx(e){let t=await this.getOwners(),n=[];for(let a of t)(await fr(this,fo,"f").safeContract.approvedHashes(a,e)).gt(0)&&n.push(a);return n}async createEnableFallbackHandlerTx(e,t){let n={to:this.getAddress(),value:"0",data:await fr(this,Ane,"f").encodeEnableFallbackHandlerData(e),...t};return await this.createTransaction({safeTransactionData:n})}async createDisableFallbackHandlerTx(e){let t={to:this.getAddress(),value:"0",data:await fr(this,Ane,"f").encodeDisableFallbackHandlerData(),...e};return await this.createTransaction({safeTransactionData:t})}async createEnableGuardTx(e,t){let n={to:this.getAddress(),value:"0",data:await fr(this,Cne,"f").encodeEnableGuardData(e),...t};return await this.createTransaction({safeTransactionData:n})}async createDisableGuardTx(e){let t={to:this.getAddress(),value:"0",data:await fr(this,Cne,"f").encodeDisableGuardData(),...e};return await this.createTransaction({safeTransactionData:t})}async createEnableModuleTx(e,t){let n={to:this.getAddress(),value:"0",data:await fr(this,H4,"f").encodeEnableModuleData(e),...t};return await this.createTransaction({safeTransactionData:n})}async createDisableModuleTx(e,t){let n={to:this.getAddress(),value:"0",data:await fr(this,H4,"f").encodeDisableModuleData(e),...t};return await this.createTransaction({safeTransactionData:n})}async createAddOwnerTx({ownerAddress:e,threshold:t},n){let a={to:this.getAddress(),value:"0",data:await fr(this,Sy,"f").encodeAddOwnerWithThresholdData(e,t),...n};return await this.createTransaction({safeTransactionData:a})}async createRemoveOwnerTx({ownerAddress:e,threshold:t},n){let a={to:this.getAddress(),value:"0",data:await fr(this,Sy,"f").encodeRemoveOwnerData(e,t),...n};return await this.createTransaction({safeTransactionData:a})}async createSwapOwnerTx({oldOwnerAddress:e,newOwnerAddress:t},n){let a={to:this.getAddress(),value:"0",data:await fr(this,Sy,"f").encodeSwapOwnerData(e,t),...n};return await this.createTransaction({safeTransactionData:a})}async createChangeThresholdTx(e,t){let n={to:this.getAddress(),value:"0",data:await fr(this,Sy,"f").encodeChangeThresholdData(e),...t};return await this.createTransaction({safeTransactionData:n})}async toSafeTransactionType(e){var t;let n={to:e.to,value:e.value,data:e.data||"0x",operation:e.operation,safeTxGas:e.safeTxGas,baseGas:e.baseGas,gasPrice:Number(e.gasPrice),gasToken:e.gasToken,refundReceiver:e.refundReceiver,nonce:e.nonce},a=await this.createTransaction({safeTransactionData:n});return(t=e.confirmations)===null||t===void 0||t.map(i=>{let s=new eoa.default(i.owner,i.signature);a.addSignature(s)}),a}async isValidTransaction(e,t){let n=(0,b5.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.copyTransaction(n),i=await this.getTransactionHash(a),s=await this.getOwnersWhoApprovedTx(i);for(let l of s)a.addSignature((0,Ine.generatePreValidatedSignature)(l));let o=await this.getOwners(),c=await fr(this,Zc,"f").getSignerAddress();if(!c)throw new Error("EthAdapter must be initialized with a signer to use this method");return o.includes(c)&&a.addSignature((0,Ine.generatePreValidatedSignature)(c)),await fr(this,fo,"f").safeContract.isValidTransaction(a,{from:c,...t})}async executeTransaction(e,t){let n=(0,b5.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.copyTransaction(n),i=await this.getTransactionHash(a),s=await this.getOwnersWhoApprovedTx(i);for(let h of s)a.addSignature((0,Ine.generatePreValidatedSignature)(h));let o=await this.getOwners(),c=await fr(this,Zc,"f").getSignerAddress();c&&o.includes(c)&&a.addSignature((0,Ine.generatePreValidatedSignature)(c));let u=await this.getThreshold();if(u>a.signatures.size){let h=u-a.signatures.size;throw new Error(`There ${h>1?"are":"is"} ${h} signature${h>1?"s":""} missing`)}let l=cnr.BigNumber.from(a.data.value);if(!l.isZero()){let h=await this.getBalance();if(l.gt(cnr.BigNumber.from(h)))throw new Error("Not enough Ether funds")}if(t?.gas&&t?.gasLimit)throw new Error("Cannot specify gas and gasLimit together in transaction options");return await fr(this,fo,"f").safeContract.execTransaction(a,{from:c,...t})}};Zc=new WeakMap,fo=new WeakMap,Sy=new WeakMap,H4=new WeakMap,Cne=new WeakMap,Ane=new WeakMap;v2.default=kne});var lnr=E(Sne=>{"use strict";f();d();Object.defineProperty(Sne,"__esModule",{value:!0});Sne.validateSafeDeploymentConfig=Sne.validateSafeAccountConfig=void 0;var roa=Yi(),noa=({owners:r,threshold:e})=>{if(r.length<=0)throw new Error("Owner list must have at least one owner");if(e<=0)throw new Error("Threshold must be greater than or equal to 1");if(e>r.length)throw new Error("Threshold must be lower than or equal to owners length")};Sne.validateSafeAccountConfig=noa;var aoa=({saltNonce:r})=>{if(roa.BigNumber.from(r).lt(0))throw new Error("saltNonce must be greater than or equal to 0")};Sne.validateSafeDeploymentConfig=aoa});var dnr=E(w2=>{"use strict";f();d();var Pne=w2&&w2.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},ws=w2&&w2.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},fnr=w2&&w2.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},jde,r9e,Rne,Nf,z4,K4;Object.defineProperty(w2,"__esModule",{value:!0});var Py=GEe(),ioa=fnr(rne()),soa=dEe(),qZe=pJe(),ooa=fnr(LZe()),e9e=h5(),t9e=lnr(),zde=class{constructor(){jde.set(this,void 0),r9e.set(this,void 0),Rne.set(this,void 0),Nf.set(this,void 0),z4.set(this,void 0),K4.set(this,void 0)}static async create({ethAdapter:e,safeVersion:t=soa.SAFE_LAST_VERSION,isL1SafeMasterCopy:n=!1,contractNetworks:a}){let i=new zde;return await i.init({ethAdapter:e,safeVersion:t,isL1SafeMasterCopy:n,contractNetworks:a}),i}async init({ethAdapter:e,safeVersion:t,isL1SafeMasterCopy:n,contractNetworks:a}){Pne(this,Nf,e,"f"),Pne(this,Rne,t,"f"),Pne(this,r9e,n,"f"),Pne(this,jde,a,"f");let i=await ws(this,Nf,"f").getChainId(),s=a?.[i];Pne(this,z4,await(0,qZe.getProxyFactoryContract)({ethAdapter:e,safeVersion:t,chainId:i,customContracts:s}),"f"),Pne(this,K4,await(0,qZe.getSafeContract)({ethAdapter:e,safeVersion:t,chainId:i,isL1SafeMasterCopy:n,customContracts:s}),"f")}getEthAdapter(){return ws(this,Nf,"f")}getSafeVersion(){return ws(this,Rne,"f")}getAddress(){return ws(this,z4,"f").getAddress()}async getChainId(){return ws(this,Nf,"f").getChainId()}async encodeSetupCallData({owners:e,threshold:t,to:n=e9e.ZERO_ADDRESS,data:a=e9e.EMPTY_DATA,fallbackHandler:i,paymentToken:s=e9e.ZERO_ADDRESS,payment:o=0,paymentReceiver:c=e9e.ZERO_ADDRESS}){var u;if((0,ioa.default)(ws(this,Rne,"f"),"<=1.0.0"))return ws(this,K4,"f").encode("setup",[e,t,n,a,s,o,c]);let l;if(i)l=i;else{let p=await ws(this,Nf,"f").getChainId(),h=(u=ws(this,jde,"f"))===null||u===void 0?void 0:u[p];l=(await(0,qZe.getCompatibilityFallbackHandlerContract)({ethAdapter:ws(this,Nf,"f"),safeVersion:ws(this,Rne,"f"),chainId:p,customContracts:h})).getAddress()}return ws(this,K4,"f").encode("setup",[e,t,n,a,l,s,o,c])}async predictSafeAddress({safeAccountConfig:e,safeDeploymentConfig:t}){(0,t9e.validateSafeAccountConfig)(e),(0,t9e.validateSafeDeploymentConfig)(t);let n=ws(this,z4,"f").getAddress(),a=await this.encodeSetupCallData(e),i=t.saltNonce,s=(0,Py.toBuffer)(ws(this,Nf,"f").encodeParameters(["uint256"],[i])).toString("hex"),o=(0,Py.keccak256)((0,Py.toBuffer)("0x"+(0,Py.keccak256)((0,Py.toBuffer)(a)).toString("hex")+s)),c=await ws(this,z4,"f").proxyCreationCode(),u=(0,Py.toBuffer)(ws(this,Nf,"f").encodeParameters(["address"],[ws(this,K4,"f").getAddress()])).toString("hex"),l=c+u,p="0x"+(0,Py.generateAddress2)((0,Py.toBuffer)(n),(0,Py.toBuffer)(o),(0,Py.toBuffer)(l)).toString("hex");return ws(this,Nf,"f").getChecksummedAddress(p)}async deploySafe({safeAccountConfig:e,safeDeploymentConfig:t,options:n,callback:a}){var i;(0,t9e.validateSafeAccountConfig)(e),t&&(0,t9e.validateSafeDeploymentConfig)(t);let s=await ws(this,Nf,"f").getSignerAddress();if(!s)throw new Error("EthAdapter must be initialized with a signer to use this method");let o=await this.encodeSetupCallData(e),c=(i=t?.saltNonce)!==null&&i!==void 0?i:(Date.now()*1e3+Math.floor(Math.random()*1e3)).toString();if(n?.gas&&n?.gasLimit)throw new Error("Cannot specify gas and gasLimit together in transaction options");let u=await ws(this,z4,"f").createProxy({safeMasterCopyAddress:ws(this,K4,"f").getAddress(),initializer:o,saltNonce:c,options:{from:s,...n},callback:a});if(!await ws(this,Nf,"f").isContractDeployed(u))throw new Error("SafeProxy contract is not deployed on the current network");return await ooa.default.create({ethAdapter:ws(this,Nf,"f"),safeAddress:u,isL1SafeMasterCopy:ws(this,r9e,"f"),contractNetworks:ws(this,jde,"f")})}};jde=new WeakMap,r9e=new WeakMap,Rne=new WeakMap,Nf=new WeakMap,z4=new WeakMap,K4=new WeakMap;w2.default=zde});var G4=E(Rm=>{"use strict";f();d();var WZe=Rm&&Rm.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rm,"__esModule",{value:!0});Rm.standardizeSafeTransactionData=Rm.SafeFactory=Rm.ContractManager=void 0;var coa=WZe(hJe());Rm.ContractManager=coa.default;var uoa=WZe(LZe()),loa=WZe(dnr());Rm.SafeFactory=loa.default;var foa=OZe();Object.defineProperty(Rm,"standardizeSafeTransactionData",{enumerable:!0,get:function(){return foa.standardizeSafeTransactionData}});Rm.default=uoa.default});var hnr=E(a9e=>{"use strict";f();d();Object.defineProperty(a9e,"__esModule",{value:!0});a9e.Gnosis_safe__factory=void 0;var pnr=ke(),UZe=[{constant:!1,inputs:[{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"}],name:"signedMessages",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_MODULES",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_OWNERS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NAME",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_MSG_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_TX_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevModule",type:"address"},{name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"oldOwner",type:"address"},{name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"txHash",type:"bytes32"}],name:"ExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{constant:!1,inputs:[{name:"_owners",type:"address[]"},{name:"_threshold",type:"uint256"},{name:"to",type:"address"},{name:"data",type:"bytes"},{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],n9e=class{static createInterface(){return new pnr.utils.Interface(UZe)}static connect(e,t){return new pnr.Contract(e,UZe,t)}};a9e.Gnosis_safe__factory=n9e;n9e.abi=UZe});var ynr=E(s9e=>{"use strict";f();d();Object.defineProperty(s9e,"__esModule",{value:!0});s9e.Proxy_factory__factory=void 0;var mnr=ke(),HZe=[{constant:!1,inputs:[{name:"_mastercopy",type:"address"},{name:"initializer",type:"bytes"},{name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"masterCopy",type:"address"},{name:"data",type:"bytes"}],name:"createProxy",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"}],i9e=class{static createInterface(){return new mnr.utils.Interface(HZe)}static connect(e,t){return new mnr.Contract(e,HZe,t)}};s9e.Proxy_factory__factory=i9e;i9e.abi=HZe});var gnr=E(c9e=>{"use strict";f();d();Object.defineProperty(c9e,"__esModule",{value:!0});c9e.Gnosis_safe__factory=void 0;var bnr=ke(),jZe=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],o9e=class{static createInterface(){return new bnr.utils.Interface(jZe)}static connect(e,t){return new bnr.Contract(e,jZe,t)}};c9e.Gnosis_safe__factory=o9e;o9e.abi=jZe});var wnr=E(l9e=>{"use strict";f();d();Object.defineProperty(l9e,"__esModule",{value:!0});l9e.Multi_send__factory=void 0;var vnr=ke(),zZe=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],u9e=class{static createInterface(){return new vnr.utils.Interface(zZe)}static connect(e,t){return new vnr.Contract(e,zZe,t)}};l9e.Multi_send__factory=u9e;u9e.abi=zZe});var _nr=E(d9e=>{"use strict";f();d();Object.defineProperty(d9e,"__esModule",{value:!0});d9e.Proxy_factory__factory=void 0;var xnr=ke(),KZe=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"masterCopy",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}],f9e=class{static createInterface(){return new xnr.utils.Interface(KZe)}static connect(e,t){return new xnr.Contract(e,KZe,t)}};d9e.Proxy_factory__factory=f9e;f9e.abi=KZe});var Enr=E(h9e=>{"use strict";f();d();Object.defineProperty(h9e,"__esModule",{value:!0});h9e.Gnosis_safe__factory=void 0;var Tnr=ke(),GZe=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],p9e=class{static createInterface(){return new Tnr.utils.Interface(GZe)}static connect(e,t){return new Tnr.Contract(e,GZe,t)}};h9e.Gnosis_safe__factory=p9e;p9e.abi=GZe});var Cnr=E(y9e=>{"use strict";f();d();Object.defineProperty(y9e,"__esModule",{value:!0});y9e.Compatibility_fallback_handler__factory=void 0;var Inr=ke(),VZe=[{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract GnosisSafe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}],m9e=class{static createInterface(){return new Inr.utils.Interface(VZe)}static connect(e,t){return new Inr.Contract(e,VZe,t)}};y9e.Compatibility_fallback_handler__factory=m9e;m9e.abi=VZe});var knr=E(g9e=>{"use strict";f();d();Object.defineProperty(g9e,"__esModule",{value:!0});g9e.Gnosis_safe__factory=void 0;var Anr=ke(),$Ze=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],b9e=class{static createInterface(){return new Anr.utils.Interface($Ze)}static connect(e,t){return new Anr.Contract(e,$Ze,t)}};g9e.Gnosis_safe__factory=b9e;b9e.abi=$Ze});var Pnr=E(w9e=>{"use strict";f();d();Object.defineProperty(w9e,"__esModule",{value:!0});w9e.Multi_send_call_only__factory=void 0;var Snr=ke(),YZe=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],v9e=class{static createInterface(){return new Snr.utils.Interface(YZe)}static connect(e,t){return new Snr.Contract(e,YZe,t)}};w9e.Multi_send_call_only__factory=v9e;v9e.abi=YZe});var Mnr=E(_9e=>{"use strict";f();d();Object.defineProperty(_9e,"__esModule",{value:!0});_9e.Multi_send__factory=void 0;var Rnr=ke(),QZe=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],x9e=class{static createInterface(){return new Rnr.utils.Interface(QZe)}static connect(e,t){return new Rnr.Contract(e,QZe,t)}};_9e.Multi_send__factory=x9e;x9e.abi=QZe});var Dnr=E(E9e=>{"use strict";f();d();Object.defineProperty(E9e,"__esModule",{value:!0});E9e.Proxy_factory__factory=void 0;var Bnr=ke(),JZe=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"singleton",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}],T9e=class{static createInterface(){return new Bnr.utils.Interface(JZe)}static connect(e,t){return new Bnr.Contract(e,JZe,t)}};E9e.Proxy_factory__factory=T9e;T9e.abi=JZe});var Onr=E(C9e=>{"use strict";f();d();Object.defineProperty(C9e,"__esModule",{value:!0});C9e.Sign_message_lib__factory=void 0;var Nnr=ke(),ZZe=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}],I9e=class{static createInterface(){return new Nnr.utils.Interface(ZZe)}static connect(e,t){return new Nnr.Contract(e,ZZe,t)}};C9e.Sign_message_lib__factory=I9e;I9e.abi=ZZe});var Lnr=E(k9e=>{"use strict";f();d();Object.defineProperty(k9e,"__esModule",{value:!0});k9e.Create_call__factory=void 0;var Fnr=ke(),XZe=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}],A9e=class{static createInterface(){return new Fnr.utils.Interface(XZe)}static connect(e,t){return new Fnr.Contract(e,XZe,t)}};k9e.Create_call__factory=A9e;A9e.abi=XZe});var qnr=E(tXe=>{"use strict";f();d();Object.defineProperty(tXe,"__esModule",{value:!0});var eXe=class{constructor(e){this.contract=e,this.encode=(t,n)=>this.contract.interface.encodeFunctionData(t,n)}getAddress(){return this.contract.address}};tXe.default=eXe});var Wnr=E(Kde=>{"use strict";f();d();var doa=Kde&&Kde.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Kde,"__esModule",{value:!0});var poa=doa(qnr()),rXe=class extends poa.default{constructor(e){super(e),this.contract=e}};Kde.default=rXe});var x2=E(g5=>{"use strict";f();d();Object.defineProperty(g5,"__esModule",{value:!0});g5.isTypedDataSigner=g5.toTxResult=g5.sameString=void 0;function hoa(r,e){return r.toLowerCase()===e.toLowerCase()}g5.sameString=hoa;function moa(r,e){return{hash:r.hash,options:e,transactionResponse:r}}g5.toTxResult=moa;function yoa(r){return r._signTypedData!==void 0}g5.isTypedDataSigner=yoa});var Hnr=E(aXe=>{"use strict";f();d();Object.defineProperty(aXe,"__esModule",{value:!0});var Unr=x2(),nXe=class{constructor(e){this.contract=e,this.encode=(t,n)=>this.contract.interface.encodeFunctionData(t,n)}getAddress(){return this.contract.address}async performCreate2(e,t,n,a){a&&!a.gasLimit&&(a.gasLimit=await this.estimateGas("performCreate2",[e,t,n],{...a}));let i=await this.contract.performCreate2(e,t,n,a);return(0,Unr.toTxResult)(i,a)}async performCreate(e,t,n){n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("performCreate",[e,t],{...n}));let a=await this.contract.performCreate(e,t,n);return(0,Unr.toTxResult)(a,n)}async estimateGas(e,t,n){return(await this.contract.estimateGas[e](...t,n)).toNumber()}};aXe.default=nXe});var jnr=E(Gde=>{"use strict";f();d();var boa=Gde&&Gde.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gde,"__esModule",{value:!0});var goa=boa(Hnr()),iXe=class extends goa.default{constructor(e){super(e),this.contract=e}};Gde.default=iXe});var Vde=E(v5=>{"use strict";f();d();Object.defineProperty(v5,"__esModule",{value:!0});v5.SENTINEL_ADDRESS=v5.EMPTY_DATA=v5.ZERO_ADDRESS=void 0;v5.ZERO_ADDRESS=`0x${"0".repeat(40)}`;v5.EMPTY_DATA="0x";v5.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001"});var $de=E(oXe=>{"use strict";f();d();Object.defineProperty(oXe,"__esModule",{value:!0});var znr=x2(),sXe=class{constructor(e){this.contract=e,this.encode=(t,n)=>this.contract.interface.encodeFunctionData(t,n)}async getVersion(){return await this.contract.VERSION()}getAddress(){return this.contract.address}async getNonce(){return(await this.contract.nonce()).toNumber()}async getThreshold(){return(await this.contract.getThreshold()).toNumber()}async getOwners(){return this.contract.getOwners()}async isOwner(e){return this.contract.isOwner(e)}async getTransactionHash(e){return this.contract.getTransactionHash(e.to,e.value,e.data,e.operation,e.safeTxGas,e.baseGas,e.gasPrice,e.gasToken,e.refundReceiver,e.nonce)}async approvedHashes(e,t){return this.contract.approvedHashes(e,t)}async approveHash(e,t){t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("approveHash",[e],{...t}));let n=await this.contract.approveHash(e,t);return(0,znr.toTxResult)(n,t)}async isValidTransaction(e,t){let n=!1;try{t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...t})),n=await this.contract.callStatic.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures(),t)}catch{}return n}async execTransaction(e,t){t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...t}));let n=await this.contract.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures(),t);return(0,znr.toTxResult)(n,t)}async estimateGas(e,t,n){return(await this.contract.estimateGas[e](...t,n)).toNumber()}};oXe.default=sXe});var Gnr=E(Yde=>{"use strict";f();d();var voa=Yde&&Yde.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yde,"__esModule",{value:!0});var S9e=Vde(),Knr=x2(),woa=voa($de()),cXe=class extends woa.default{constructor(e){super(e),this.contract=e}async setup(e,t){let{owners:n,threshold:a,to:i=S9e.ZERO_ADDRESS,data:s=S9e.EMPTY_DATA,paymentToken:o=S9e.ZERO_ADDRESS,payment:c=0,paymentReceiver:u=S9e.ZERO_ADDRESS}=e;t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("setup",[n,a,i,s,o,c,u],{...t}));let l=await this.contract.setup(n,a,i,s,o,c,u,t);return(0,Knr.toTxResult)(l,t)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,Knr.sameString)(a,e))}};Yde.default=cXe});var $nr=E(Jde=>{"use strict";f();d();var xoa=Jde&&Jde.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Jde,"__esModule",{value:!0});var Qde=Vde(),Vnr=x2(),_oa=xoa($de()),uXe=class extends _oa.default{constructor(e){super(e),this.contract=e}async setup(e,t){let{owners:n,threshold:a,to:i=Qde.ZERO_ADDRESS,data:s=Qde.EMPTY_DATA,fallbackHandler:o=Qde.ZERO_ADDRESS,paymentToken:c=Qde.ZERO_ADDRESS,payment:u=0,paymentReceiver:l=Qde.ZERO_ADDRESS}=e;t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("setup",[n,a,i,s,o,c,u,l],{...t}));let p=await this.contract.setup(n,a,i,s,o,c,u,l,t);return(0,Vnr.toTxResult)(p,t)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,Vnr.sameString)(a,e))}};Jde.default=uXe});var Ynr=E(Xde=>{"use strict";f();d();var Toa=Xde&&Xde.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xde,"__esModule",{value:!0});var Eoa=x2(),Zde=Vde(),Ioa=Toa($de()),lXe=class extends Ioa.default{constructor(e){super(e),this.contract=e}async setup(e,t){let{owners:n,threshold:a,to:i=Zde.ZERO_ADDRESS,data:s=Zde.EMPTY_DATA,fallbackHandler:o=Zde.ZERO_ADDRESS,paymentToken:c=Zde.ZERO_ADDRESS,payment:u=0,paymentReceiver:l=Zde.ZERO_ADDRESS}=e;t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("setup",[n,a,i,s,o,c,u,l],{...t}));let p=await this.contract.setup(n,a,i,s,o,c,u,l,t);return(0,Eoa.toTxResult)(p,t)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}};Xde.default=lXe});var Qnr=E(epe=>{"use strict";f();d();var Coa=epe&&epe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(epe,"__esModule",{value:!0});var Aoa=x2(),Mne=Vde(),koa=Coa($de()),fXe=class extends koa.default{constructor(e){super(e),this.contract=e}async setup(e,t){let{owners:n,threshold:a,to:i=Mne.ZERO_ADDRESS,data:s=Mne.EMPTY_DATA,fallbackHandler:o=Mne.ZERO_ADDRESS,paymentToken:c=Mne.ZERO_ADDRESS,payment:u=0,paymentReceiver:l=Mne.ZERO_ADDRESS}=e;t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("setup",[n,a,i,s,o,c,u,l],{...t}));let p=await this.contract.setup(n,a,i,s,o,c,u,l,t);return(0,Aoa.toTxResult)(p,t)}async getModules(){let{array:e}=await this.contract.getModulesPaginated(Mne.SENTINEL_ADDRESS,10);return e}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}};epe.default=fXe});var P9e=E(pXe=>{"use strict";f();d();Object.defineProperty(pXe,"__esModule",{value:!0});var Soa=Yi(),dXe=class{constructor(e){this.contract=e}getAddress(){return this.contract.address}async proxyCreationCode(){return this.contract.proxyCreationCode()}async createProxy({safeMasterCopyAddress:e,initializer:t,saltNonce:n,options:a,callback:i}){if(Soa.BigNumber.from(n).lt(0))throw new Error("saltNonce must be greater than or equal to 0");return a&&!a.gasLimit&&(a.gasLimit=await this.estimateGas("createProxyWithNonce",[e,t,n],{...a})),this.contract.createProxyWithNonce(e,t,n,a).then(async o=>{var c;i&&i(o.hash);let u=await o.wait(),l=(c=u?.events)===null||c===void 0?void 0:c.find(({event:h})=>h==="ProxyCreation");if(!l||!l.args)throw new Error("SafeProxy was not deployed correctly");return l.args[0]})}encode(e,t){return this.contract.interface.encodeFunctionData(e,t)}async estimateGas(e,t,n){return(await this.contract.estimateGas[e](...t,n)).toNumber()}};pXe.default=dXe});var Jnr=E(tpe=>{"use strict";f();d();var Poa=tpe&&tpe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(tpe,"__esModule",{value:!0});var Roa=Poa(P9e()),hXe=class extends Roa.default{constructor(e){super(e),this.contract=e}};tpe.default=hXe});var Znr=E(rpe=>{"use strict";f();d();var Moa=rpe&&rpe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(rpe,"__esModule",{value:!0});var Boa=Moa(P9e()),mXe=class extends Boa.default{constructor(e){super(e),this.contract=e}};rpe.default=mXe});var Xnr=E(npe=>{"use strict";f();d();var Doa=npe&&npe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(npe,"__esModule",{value:!0});var Noa=Doa(P9e()),yXe=class extends Noa.default{constructor(e){super(e),this.contract=e}};npe.default=yXe});var vXe=E(gXe=>{"use strict";f();d();Object.defineProperty(gXe,"__esModule",{value:!0});var bXe=class{constructor(e){this.contract=e,this.encode=(t,n)=>this.contract.interface.encodeFunctionData(t,n)}getAddress(){return this.contract.address}};gXe.default=bXe});var ear=E(ape=>{"use strict";f();d();var Ooa=ape&&ape.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ape,"__esModule",{value:!0});var Foa=Ooa(vXe()),wXe=class extends Foa.default{constructor(e){super(e),this.contract=e}};ape.default=wXe});var tar=E(ipe=>{"use strict";f();d();var Loa=ipe&&ipe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ipe,"__esModule",{value:!0});var qoa=Loa(vXe()),xXe=class extends qoa.default{constructor(e){super(e),this.contract=e}};ipe.default=xXe});var rar=E(TXe=>{"use strict";f();d();Object.defineProperty(TXe,"__esModule",{value:!0});var _Xe=class{constructor(e){this.contract=e,this.encode=(t,n)=>this.contract.interface.encodeFunctionData(t,n)}getAddress(){return this.contract.address}};TXe.default=_Xe});var nar=E(spe=>{"use strict";f();d();var Woa=spe&&spe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(spe,"__esModule",{value:!0});var Uoa=Woa(rar()),EXe=class extends Uoa.default{constructor(e){super(e),this.contract=e}};spe.default=EXe});var aar=E(CXe=>{"use strict";f();d();Object.defineProperty(CXe,"__esModule",{value:!0});var Hoa=x2(),IXe=class{constructor(e){this.contract=e,this.encode=(t,n)=>this.contract.interface.encodeFunctionData(t,n)}getAddress(){return this.contract.address}async signMessage(e,t){t&&!t.gasLimit&&(t.gasLimit=await this.estimateGas("signMessage",[e],{...t}));let n=await this.contract.signMessage(e,t);return(0,Hoa.toTxResult)(n,t)}async getMessageHash(e){return this.contract.getMessageHash(e)}async estimateGas(e,t,n){return(await this.contract.estimateGas[e](...t,n)).toNumber()}};CXe.default=IXe});var iar=E(ope=>{"use strict";f();d();var joa=ope&&ope.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ope,"__esModule",{value:!0});var zoa=joa(aar()),AXe=class extends zoa.default{constructor(e){super(e),this.contract=e}};ope.default=AXe});var sar=E(N0=>{"use strict";f();d();var Bd=N0&&N0.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(N0,"__esModule",{value:!0});N0.getCreateCallContractInstance=N0.getSignMessageLibContractInstance=N0.getSafeProxyFactoryContractInstance=N0.getMultiSendCallOnlyContractInstance=N0.getMultiSendContractInstance=N0.getCompatibilityFallbackHandlerContractInstance=N0.getSafeContractInstance=void 0;var Koa=hnr(),Goa=ynr(),Voa=gnr(),$oa=wnr(),Yoa=_nr(),Qoa=Enr(),Joa=Cnr(),Zoa=knr(),Xoa=Pnr(),eca=Mnr(),tca=Dnr(),rca=Onr(),nca=Lnr(),aca=Bd(Wnr()),ica=Bd(jnr()),sca=Bd(Gnr()),oca=Bd($nr()),cca=Bd(Ynr()),uca=Bd(Qnr()),lca=Bd(Jnr()),fca=Bd(Znr()),dca=Bd(Xnr()),pca=Bd(ear()),hca=Bd(tar()),mca=Bd(nar()),yca=Bd(iar());function bca(r,e,t){let n;switch(r){case"1.3.0":return n=Zoa.Gnosis_safe__factory.connect(e,t),new uca.default(n);case"1.2.0":return n=Qoa.Gnosis_safe__factory.connect(e,t),new cca.default(n);case"1.1.1":return n=Voa.Gnosis_safe__factory.connect(e,t),new oca.default(n);case"1.0.0":return n=Koa.Gnosis_safe__factory.connect(e,t),new sca.default(n);default:throw new Error("Invalid Safe version")}}N0.getSafeContractInstance=bca;function gca(r,e,t){let n;switch(r){case"1.3.0":case"1.2.0":case"1.1.1":return n=Joa.Compatibility_fallback_handler__factory.connect(e,t),new aca.default(n);default:throw new Error("Invalid Safe version")}}N0.getCompatibilityFallbackHandlerContractInstance=gca;function vca(r,e,t){let n;switch(r){case"1.3.0":return n=eca.Multi_send__factory.connect(e,t),new hca.default(n);case"1.2.0":case"1.1.1":case"1.0.0":return n=$oa.Multi_send__factory.connect(e,t),new pca.default(n);default:throw new Error("Invalid Safe version")}}N0.getMultiSendContractInstance=vca;function wca(r,e,t){let n;switch(r){case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return n=Xoa.Multi_send_call_only__factory.connect(e,t),new mca.default(n);default:throw new Error("Invalid Safe version")}}N0.getMultiSendCallOnlyContractInstance=wca;function xca(r,e,t){let n;switch(r){case"1.3.0":return n=tca.Proxy_factory__factory.connect(e,t),new dca.default(n);case"1.2.0":case"1.1.1":return n=Yoa.Proxy_factory__factory.connect(e,t),new fca.default(n);case"1.0.0":return n=Goa.Proxy_factory__factory.connect(e,t),new lca.default(n);default:throw new Error("Invalid Safe version")}}N0.getSafeProxyFactoryContractInstance=xca;function _ca(r,e,t){let n;switch(r){case"1.3.0":return n=rca.Sign_message_lib__factory.connect(e,t),new yca.default(n);default:throw new Error("Invalid Safe version")}}N0.getSignMessageLibContractInstance=_ca;function Tca(r,e,t){let n;switch(r){case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return n=nca.Create_call__factory.connect(e,t),new ica.default(n);default:throw new Error("Invalid Safe version")}}N0.getCreateCallContractInstance=Tca});var car=E($4=>{"use strict";f();d();var R9e=$4&&$4.__classPrivateFieldSet||function(r,e,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!a:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(r,t):a?a.value=t:e.set(r,t),t},Mn=$4&&$4.__classPrivateFieldGet||function(r,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(r):n?n.value:e.get(r)},w5,mu,ac;Object.defineProperty($4,"__esModule",{value:!0});var Eca=Hy(),Ica=Yi(),oar=Tne(),V4=sar(),Cca=x2(),kXe=class{constructor({ethers:e,signerOrProvider:t}){if(w5.set(this,void 0),mu.set(this,void 0),ac.set(this,void 0),!e)throw new Error("ethers property missing from options");if(R9e(this,w5,e,"f"),t instanceof Eca.Signer){let a=t;if(!a.provider)throw new Error("Signer must be connected to a provider");R9e(this,ac,a.provider,"f"),R9e(this,mu,a,"f")}else R9e(this,ac,t,"f")}getProvider(){return Mn(this,ac,"f")}getSigner(){return Mn(this,mu,"f")}isAddress(e){return Mn(this,w5,"f").utils.isAddress(e)}async getEip3770Address(e){let t=await this.getChainId();return(0,oar.validateEip3770Address)(e,t)}async getBalance(e,t){return Ica.BigNumber.from(await Mn(this,ac,"f").getBalance(e,t))}async getNonce(e,t){return Mn(this,ac,"f").getTransactionCount(e,t)}async getChainId(){return(await Mn(this,ac,"f").getNetwork()).chainId}getChecksummedAddress(e){return Mn(this,w5,"f").utils.getAddress(e)}getSafeContract({safeVersion:e,chainId:t,singletonDeployment:n,customContractAddress:a}){let i=a||n?.networkAddresses[t];if(!i)throw new Error("Invalid SafeProxy contract address");let s=Mn(this,mu,"f")||Mn(this,ac,"f");return(0,V4.getSafeContractInstance)(e,i,s)}getSafeProxyFactoryContract({safeVersion:e,chainId:t,singletonDeployment:n,customContractAddress:a}){let i=a||n?.networkAddresses[t];if(!i)throw new Error("Invalid SafeProxyFactory contract address");let s=Mn(this,mu,"f")||Mn(this,ac,"f");return(0,V4.getSafeProxyFactoryContractInstance)(e,i,s)}getMultiSendContract({safeVersion:e,chainId:t,singletonDeployment:n,customContractAddress:a}){let i=a||n?.networkAddresses[t];if(!i)throw new Error("Invalid MultiSend contract address");let s=Mn(this,mu,"f")||Mn(this,ac,"f");return(0,V4.getMultiSendContractInstance)(e,i,s)}getMultiSendCallOnlyContract({safeVersion:e,chainId:t,singletonDeployment:n,customContractAddress:a}){let i=a||n?.networkAddresses[t];if(!i)throw new Error("Invalid MultiSendCallOnly contract address");let s=Mn(this,mu,"f")||Mn(this,ac,"f");return(0,V4.getMultiSendCallOnlyContractInstance)(e,i,s)}getCompatibilityFallbackHandlerContract({safeVersion:e,chainId:t,singletonDeployment:n,customContractAddress:a}){let i=a||n?.networkAddresses[t];if(!i)throw new Error("Invalid CompatibilityFallbackHandler contract address");let s=Mn(this,mu,"f")||Mn(this,ac,"f");return(0,V4.getCompatibilityFallbackHandlerContractInstance)(e,i,s)}getSignMessageLibContract({safeVersion:e,chainId:t,singletonDeployment:n,customContractAddress:a}){let i=a||n?.networkAddresses[t];if(!i)throw new Error("Invalid SignMessageLib contract address");let s=Mn(this,mu,"f")||Mn(this,ac,"f");return(0,V4.getSignMessageLibContractInstance)(e,i,s)}getCreateCallContract({safeVersion:e,chainId:t,singletonDeployment:n,customContractAddress:a}){let i=a||n?.networkAddresses[t];if(!i)throw new Error("Invalid CreateCall contract address");let s=Mn(this,mu,"f")||Mn(this,ac,"f");return(0,V4.getCreateCallContractInstance)(e,i,s)}async getContractCode(e,t){return Mn(this,ac,"f").getCode(e,t)}async isContractDeployed(e,t){return await Mn(this,ac,"f").getCode(e,t)!=="0x"}async getStorageAt(e,t){let n=await Mn(this,ac,"f").getStorageAt(e,t);return this.decodeParameters(["address"],n)[0]}async getTransaction(e){return Mn(this,ac,"f").getTransaction(e)}async getSignerAddress(){var e;return(e=Mn(this,mu,"f"))===null||e===void 0?void 0:e.getAddress()}signMessage(e){if(!Mn(this,mu,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");let t=Mn(this,w5,"f").utils.arrayify(e);return Mn(this,mu,"f").signMessage(t)}async signTypedData(e){if(!Mn(this,mu,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");if((0,Cca.isTypedDataSigner)(Mn(this,mu,"f"))){let t=(0,oar.generateTypedData)(e);return await Mn(this,mu,"f")._signTypedData(t.domain,{SafeTx:t.types.SafeTx},t.message)}throw new Error("The current signer does not implement EIP-712 to sign typed data")}async estimateGas(e){return(await Mn(this,ac,"f").estimateGas(e)).toNumber()}call(e,t){return Mn(this,ac,"f").call(e,t)}encodeParameters(e,t){return new(Mn(this,w5,"f")).utils.AbiCoder().encode(e,t)}decodeParameters(e,t){return new(Mn(this,w5,"f")).utils.AbiCoder().decode(e,t)}};w5=new WeakMap,mu=new WeakMap,ac=new WeakMap;$4.default=kXe});var Y4=E(cpe=>{"use strict";f();d();var Aca=cpe&&cpe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(cpe,"__esModule",{value:!0});var kca=Aca(car());cpe.default=kca.default});var D9e=E(B9e=>{"use strict";f();d();Object.defineProperty(B9e,"__esModule",{value:!0});var x5=Oi(),Sca=md(),upe=ke(),uar=w4(),Pca=G4(),Rca=Y4();Xe();function far(r){return r&&r.__esModule?r:{default:r}}var Mca=far(Pca),Bca=far(Rca),M9e={1:"https://safe-transaction-mainnet.safe.global",43114:"https://safe-transaction-avalanche.safe.global",137:"https://safe-transaction-polygon.safe.global",5:"https://safe-transaction-goerli.safe.global",56:"https://safe-transaction-bsc.safe.global",10:"https://safe-transaction-optimism.safe.global"},lar=typeof window>"u",Dca=new Set(Object.keys(M9e).map(Number)),Bne=class extends Sca.TWConnector{constructor(){super(),x5._defineProperty(this,"supportedChains",Bne.supportedChains),x5._defineProperty(this,"id","safe-wallet"),x5._defineProperty(this,"ready",!lar),x5._defineProperty(this,"name","Safe Wallet"),x5._defineProperty(this,"previousConnector",void 0),x5._defineProperty(this,"safeSigner",void 0),x5._defineProperty(this,"personalWallet",void 0),lar||(this.ready=!0)}async connect(e){if(!(e.chain.chainId in M9e))throw new Error("Chain not supported by Safe");return this.safeSigner=await this.createSafeSigner(e),await this.getAddress()}async createSafeSigner(e){this.personalWallet=e.personalWallet;let t=await e.personalWallet.getSigner(),n=e.safeAddress,a=e.chain.chainId;if(!t)throw new Error("cannot create Gnosis Safe signer without a personal signer");if(await t.getChainId()!==a)throw new Error("chainId of personal signer has to match safe chainId");if(!n)throw new Error("safeAddress is required");if(!a)throw new Error("safeChainId is required");let s=M9e[a];if(!s)throw new Error("Chain not supported");let o=new Bca.default({ethers:upe.ethers,signerOrProvider:t}),c=await Mca.default.create({ethAdapter:o,safeAddress:n}),u=new uar.SafeService(s),l=new uar.SafeEthersSigner(c,u,t.provider);return l.signMessage=async p=>{let h={SafeMessage:[{type:"bytes",name:"message"}]},m=upe.ethers.utils._TypedDataEncoder.hash({verifyingContract:n,chainId:await this.getChainId()},h,{message:upe.ethers.utils.hashMessage(p)}),y=upe.ethers.utils.arrayify(m);return(await t.signMessage(y)).replace(/1b$/,"1f").replace(/1c$/,"20")},this.previousConnector=e.personalWallet,l}async disconnect(){this.safeSigner=void 0,this.previousConnector=void 0}async getAddress(){return await(await this.getSigner()).getAddress()}async getChainId(){return(await this.getSigner()).getChainId()}async getProvider(){let e=(await this.getSigner()).provider;if(!e)throw new Error("No provider available");return e}async getSigner(){if(!this.safeSigner)throw new Error("not connected - please call connect() first");return this.safeSigner}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}onAccountsChanged(e){e.length===0?this.emit("disconnect"):this.emit("change",{account:upe.ethers.utils.getAddress(e[0])})}onDisconnect(){this.emit("disconnect")}switchChain(){throw new Error("Safe connector does not support switching chains")}updateChains(){}async setupListeners(){}};x5._defineProperty(Bne,"supportedChains",Object.keys(M9e));B9e.SafeConnector=Bne;B9e.SafeSupportedChainsSet=Dca});var dar=E(N9e=>{"use strict";f();d();Object.defineProperty(N9e,"__esModule",{value:!0});var SXe=Oi(),Nca=Dp(),Oca=D9e();Zu();ao();yf();ke();Xe();Ct();md();w4();G4();Y4();var Q4=class extends Nca.AbstractClientWallet{get walletName(){return"Safe Wallet"}constructor(e){super(Q4.id,{...e}),SXe._defineProperty(this,"connector",void 0)}async getConnector(){if(!this.connector){let{SafeConnector:e}=await Promise.resolve().then(function(){return D9e()});this.connector=new e}return this.connector}async updateChains(e){}async connect(e){return await super.connect({...e,saveParams:!1})}getPersonalWallet(){return this.connector?.personalWallet}};SXe._defineProperty(Q4,"meta",{name:"Safe",iconURL:"ipfs://QmbbyxDDmmLQh8DzzeUR6X6B75bESsNUFmbdvS3ZsQ2pN1/SafeToken.svg"});SXe._defineProperty(Q4,"id","Safe");N9e.SafeSupportedChainsSet=Oca.SafeSupportedChainsSet;N9e.SafeWallet=Q4});var _2=E((rSi,_ar)=>{f();d();var PXe=Object.defineProperty,Fca=Object.getOwnPropertyDescriptor,Lca=Object.getOwnPropertyNames,qca=Object.prototype.hasOwnProperty,Wca=r=>PXe(r,"__esModule",{value:!0}),Uca=(r,e)=>{for(var t in e)PXe(r,t,{get:e[t],enumerable:!0})},Hca=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Lca(e))!qca.call(r,a)&&(t||a!=="default")&&PXe(r,a,{get:()=>e[a],enumerable:!(n=Fca(e,a))||n.enumerable});return r},jca=(r=>(e,t)=>r&&r.get(e)||(t=Hca(Wca({}),e,1),r&&r.set(e,t),t))(typeof WeakMap<"u"?new WeakMap:0),par={};Uca(par,{EthChainType:()=>xar,MagicIncomingWindowMessage:()=>gar,MagicOutgoingWindowMessage:()=>war,MagicPayloadMethod:()=>bar,RPCErrorCode:()=>yar,SDKErrorCode:()=>har,SDKWarningCode:()=>mar});var har=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(har||{}),mar=(r=>(r.SyncWeb3Method="SYNC_WEB3_METHOD",r.DuplicateIframe="DUPLICATE_IFRAME",r.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",r.DeprecationNotice="DEPRECATION_NOTICE",r))(mar||{}),yar=(r=>(r[r.ParseError=-32700]="ParseError",r[r.InvalidRequest=-32600]="InvalidRequest",r[r.MethodNotFound=-32601]="MethodNotFound",r[r.InvalidParams=-32602]="InvalidParams",r[r.InternalError=-32603]="InternalError",r[r.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",r[r.MagicLinkExpired=-10001]="MagicLinkExpired",r[r.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",r[r.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",r[r.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",r[r.UpdateEmailFailed=-10004]="UpdateEmailFailed",r[r.UserRequestEditEmail=-10005]="UserRequestEditEmail",r[r.InactiveRecipient=-10010]="InactiveRecipient",r[r.AccessDeniedToUser=-10011]="AccessDeniedToUser",r))(yar||{}),bar=(r=>(r.LoginWithSms="magic_auth_login_with_sms",r.LoginWithEmailOTP="magic_auth_login_with_email_otp",r.LoginWithMagicLink="magic_auth_login_with_magic_link",r.LoginWithCredential="magic_auth_login_with_credential",r.GetIdToken="magic_auth_get_id_token",r.GenerateIdToken="magic_auth_generate_id_token",r.GetMetadata="magic_auth_get_metadata",r.IsLoggedIn="magic_auth_is_logged_in",r.Logout="magic_auth_logout",r.UpdateEmail="magic_auth_update_email",r.UserSettings="magic_auth_settings",r.UserSettingsTestMode="magic_auth_settings_testing_mode",r.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",r.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",r.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",r.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",r.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",r.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",r.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",r.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",r.LogoutTestMode="magic_auth_logout_testing_mode",r.UpdateEmailTestMode="magic_auth_update_email_testing_mode",r.IntermediaryEvent="magic_intermediary_event",r))(bar||{}),gar=(r=>(r.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",r.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",r.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",r.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",r.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",r))(gar||{}),war=(r=>(r.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",r))(war||{}),xar=(r=>(r.Harmony="HARMONY",r))(xar||{});_ar.exports=jca(par)});var $9e=E((iSi,hir)=>{f();d();var zca=Object.create,ype=Object.defineProperty,Kca=Object.defineProperties,Gca=Object.getOwnPropertyDescriptor,Vca=Object.getOwnPropertyDescriptors,$ca=Object.getOwnPropertyNames,Tar=Object.getOwnPropertySymbols,Yca=Object.getPrototypeOf,Lar=Object.prototype.hasOwnProperty,Qca=Object.prototype.propertyIsEnumerable,Ear=(r,e,t)=>e in r?ype(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,qar=(r,e)=>{for(var t in e||(e={}))Lar.call(e,t)&&Ear(r,t,e[t]);if(Tar)for(var t of Tar(e))Qca.call(e,t)&&Ear(r,t,e[t]);return r},Jca=(r,e)=>Kca(r,Vca(e)),War=r=>ype(r,"__esModule",{value:!0}),Zca=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Uar=(r,e)=>{for(var t in e)ype(r,t,{get:e[t],enumerable:!0})},Har=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of $ca(e))!Lar.call(r,a)&&(t||a!=="default")&&ype(r,a,{get:()=>e[a],enumerable:!(n=Gca(e,a))||n.enumerable});return r},Xca=(r,e)=>Har(War(ype(r!=null?zca(Yca(r)):{},"default",!e&&r&&r.__esModule?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r),e0a=(r=>(e,t)=>r&&r.get(e)||(t=Har(War({}),e,1),r&&r.set(e,t),t))(typeof WeakMap<"u"?new WeakMap:0),E2=(r,e,t)=>new Promise((n,a)=>{var i=c=>{try{o(t.next(c))}catch(u){a(u)}},s=c=>{try{o(t.throw(c))}catch(u){a(u)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);o((t=t.apply(r,e)).next())}),t0a=Zca((r,e)=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(n=!1));function i(u,l,p){this.fn=u,this.context=l,this.once=p||!1}function s(u,l,p,h,m){if(typeof p!="function")throw new TypeError("The listener must be a function");var y=new i(p,h||u,m),C=n?n+l:l;return u._events[C]?u._events[C].fn?u._events[C]=[u._events[C],y]:u._events[C].push(y):(u._events[C]=y,u._eventsCount++),u}function o(u,l){--u._eventsCount===0?u._events=new a:delete u._events[l]}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],l,p;if(this._eventsCount===0)return u;for(p in l=this._events)t.call(l,p)&&u.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},c.prototype.listeners=function(u){var l=n?n+u:u,p=this._events[l];if(!p)return[];if(p.fn)return[p.fn];for(var h=0,m=p.length,y=new Array(m);hOne,MagicExtensionError:()=>LXe,MagicExtensionWarning:()=>BXe,MagicRPCError:()=>ppe,MagicSDKError:()=>T5,MagicSDKWarning:()=>gpe,SDKBase:()=>pir,STORE_KEY_PRIVATE_KEY:()=>V9e,STORE_KEY_PUBLIC_JWK:()=>mpe,TypedEmitter:()=>air,ViewController:()=>Iua,clearKeys:()=>uir,createDeprecationWarning:()=>J0a,createDuplicateIframeWarning:()=>Q0a,createExtensionNotInitializedError:()=>Jar,createIncompatibleExtensionsError:()=>Zar,createInvalidArgumentError:()=>Xar,createJwt:()=>lir,createMalformedResponseError:()=>Qar,createMissingApiKeyError:()=>Yar,createModalNotReadyError:()=>Y0a,createPromiEvent:()=>HXe,createPromise:()=>jXe,createReactNativeEndpointConfigurationWarning:()=>tir,createSDK:()=>V0a,createSynchronousWeb3MethodWarning:()=>eir,createTypedEmitter:()=>UXe,createURL:()=>NXe,decodeJSON:()=>Kar,encodeJSON:()=>FXe,getPayloadId:()=>qXe,isEmpty:()=>j9e,isJsonRpcErrorCode:()=>$ar,isJsonRpcRequestPayload:()=>K0a,isJsonRpcResponsePayload:()=>Var,isMagicPayloadMethod:()=>G0a,isPromiEvent:()=>sir,storage:()=>zXe,uuid:()=>oir});function r0a(r){let e={exports:{}};return r(e,e.exports),e.exports}var n0a=Number.MAX_SAFE_INTEGER||9007199254740991,OXe={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n0a,MAX_SAFE_COMPONENT_LENGTH:16},a0a=typeof g=="object"&&g.env&&g.env.NODE_DEBUG&&/\bsemver\b/i.test(g.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{},Li=a0a,bpe=r0a(function(r,e){let{MAX_SAFE_COMPONENT_LENGTH:t}=OXe,n=(e=r.exports={}).re=[],a=e.src=[],i=e.t={},s=0,o=(c,u,l)=>{let p=s++;Li(p,u),i[c]=p,a[p]=u,n[p]=new RegExp(u,l?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})\\.(${a[i.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})\\.(${a[i.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${a[i.NUMERICIDENTIFIER]}|${a[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${a[i.NUMERICIDENTIFIERLOOSE]}|${a[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${a[i.PRERELEASEIDENTIFIER]}(?:\\.${a[i.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${a[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[i.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${a[i.BUILDIDENTIFIER]}(?:\\.${a[i.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${a[i.MAINVERSION]}${a[i.PRERELEASE]}?${a[i.BUILD]}?`),o("FULL",`^${a[i.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${a[i.MAINVERSIONLOOSE]}${a[i.PRERELEASELOOSE]}?${a[i.BUILD]}?`),o("LOOSE",`^${a[i.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${a[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${a[i.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:\\.(${a[i.XRANGEIDENTIFIER]})(?:${a[i.PRERELEASE]})?${a[i.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[i.XRANGEIDENTIFIERLOOSE]})(?:${a[i.PRERELEASELOOSE]})?${a[i.BUILD]}?)?)?`),o("XRANGE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${a[i.GTLT]}\\s*${a[i.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),o("COERCERTL",a[i.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${a[i.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",o("TILDE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${a[i.LONETILDE]}${a[i.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${a[i.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",o("CARET",`^${a[i.LONECARET]}${a[i.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${a[i.LONECARET]}${a[i.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${a[i.GTLT]}\\s*(${a[i.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${a[i.GTLT]}\\s*(${a[i.LOOSEPLAIN]}|${a[i.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${a[i.XRANGEPLAIN]})\\s+-\\s+(${a[i.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${a[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[i.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}),Iar=/^[0-9]+$/,zar=(r,e)=>{let t=Iar.test(r),n=Iar.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:rzar(e,r),s0a={compareIdentifiers:zar,rcompareIdentifiers:i0a},{MAX_LENGTH:Car,MAX_SAFE_INTEGER:O9e}=OXe,{re:Aar,t:kar}=bpe,{compareIdentifiers:lpe}=s0a,yu=class{constructor(r,e){if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof yu){if(r.loose===!!e.loose&&r.includePrerelease===!!e.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Car)throw new TypeError(`version is longer than ${Car} characters`);Li("SemVer",r,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let t=r.trim().match(e.loose?Aar[kar.LOOSE]:Aar[kar.FULL]);if(!t)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>O9e||this.major<0)throw new TypeError("Invalid major version");if(this.minor>O9e||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>O9e||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){let a=+n;if(a>=0&&a=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}e&&(this.prerelease[0]===e?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}},o0a=(r,e,t)=>new yu(r,t).compare(new yu(e,t)),Fne=o0a,c0a=(r,e,t)=>Fne(r,e,t)===0,u0a=c0a,l0a=(r,e,t)=>Fne(r,e,t)!==0,f0a=l0a,d0a=(r,e,t)=>Fne(r,e,t)>0,p0a=d0a,h0a=(r,e,t)=>Fne(r,e,t)>=0,m0a=h0a,y0a=(r,e,t)=>Fne(r,e,t)<0,b0a=y0a,g0a=(r,e,t)=>Fne(r,e,t)<=0,v0a=g0a,w0a=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return u0a(r,t,n);case"!=":return f0a(r,t,n);case">":return p0a(r,t,n);case">=":return m0a(r,t,n);case"<":return b0a(r,t,n);case"<=":return v0a(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}},RXe=w0a,fpe=Symbol("SemVer ANY"),dpe=class{static get ANY(){return fpe}constructor(r,e){if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof dpe){if(r.loose===!!e.loose)return r;r=r.value}Li("comparator",r,e),this.options=e,this.loose=!!e.loose,this.parse(r),this.semver===fpe?this.value="":this.value=this.operator+this.semver.version,Li("comp",this)}parse(r){let e=this.options.loose?Sar[Par.COMPARATORLOOSE]:Sar[Par.COMPARATOR],t=r.match(e);if(!t)throw new TypeError(`Invalid comparator: ${r}`);this.operator=t[1]!==void 0?t[1]:"",this.operator==="="&&(this.operator=""),t[2]?this.semver=new yu(t[2],this.options.loose):this.semver=fpe}toString(){return this.value}test(r){if(Li("Comparator.test",r,this.options.loose),this.semver===fpe||r===fpe)return!0;if(typeof r=="string")try{r=new yu(r,this.options)}catch{return!1}return RXe(r,this.operator,this.semver,this.options)}intersects(r,e){if(!(r instanceof dpe))throw new TypeError("a Comparator is required");if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),this.operator==="")return this.value===""||new Nne(r.value,e).test(this.value);if(r.operator==="")return r.value===""||new Nne(this.value,e).test(r.semver);let t=!(this.operator!==">="&&this.operator!==">"||r.operator!==">="&&r.operator!==">"),n=!(this.operator!=="<="&&this.operator!=="<"||r.operator!=="<="&&r.operator!=="<"),a=this.semver.version===r.semver.version,i=!(this.operator!==">="&&this.operator!=="<="||r.operator!==">="&&r.operator!=="<="),s=RXe(this.semver,"<",r.semver,e)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),o=RXe(this.semver,">",r.semver,e)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return t||n||a&&i||s||o}},{re:Sar,t:Par}=bpe,Nne=class{constructor(r,e){if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof Nne)return r.loose===!!e.loose&&r.includePrerelease===!!e.includePrerelease?r:new Nne(r.raw,e);if(r instanceof dpe)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(t=>this.parseRange(t.trim())).filter(t=>t.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){let{loose:e}=this.options;r=r.trim();let t=e?fl[bu.HYPHENRANGELOOSE]:fl[bu.HYPHENRANGE];r=r.replace(t,B0a(this.options.includePrerelease)),Li("hyphen replace",r),r=r.replace(fl[bu.COMPARATORTRIM],x0a),Li("comparator trim",r,fl[bu.COMPARATORTRIM]),r=(r=(r=r.replace(fl[bu.TILDETRIM],_0a)).replace(fl[bu.CARETTRIM],T0a)).split(/\s+/).join(" ");let n=e?fl[bu.COMPARATORLOOSE]:fl[bu.COMPARATOR];return r.split(" ").map(a=>E0a(a,this.options)).join(" ").split(/\s+/).map(a=>M0a(a,this.options)).filter(this.options.loose?a=>!!a.match(n):()=>!0).map(a=>new dpe(a,this.options))}intersects(r,e){if(!(r instanceof Nne))throw new TypeError("a Range is required");return this.set.some(t=>Rar(t,e)&&r.set.some(n=>Rar(n,e)&&t.every(a=>n.every(i=>a.intersects(i,e)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new yu(r,this.options)}catch{return!1}for(let e=0;e{let t=!0,n=r.slice(),a=n.pop();for(;t&&n.length;)t=n.every(i=>a.intersects(i,e)),a=n.pop();return t},E0a=(r,e)=>(Li("comp",r,e),r=A0a(r,e),Li("caret",r),r=I0a(r,e),Li("tildes",r),r=S0a(r,e),Li("xrange",r),r=R0a(r,e),Li("stars",r),r),Hl=r=>!r||r.toLowerCase()==="x"||r==="*",I0a=(r,e)=>r.trim().split(/\s+/).map(t=>C0a(t,e)).join(" "),C0a=(r,e)=>{let t=e.loose?fl[bu.TILDELOOSE]:fl[bu.TILDE];return r.replace(t,(n,a,i,s,o)=>{let c;return Li("tilde",r,n,a,i,s,o),Hl(a)?c="":Hl(i)?c=`>=${a}.0.0 <${+a+1}.0.0-0`:Hl(s)?c=`>=${a}.${i}.0 <${a}.${+i+1}.0-0`:o?(Li("replaceTilde pr",o),c=`>=${a}.${i}.${s}-${o} <${a}.${+i+1}.0-0`):c=`>=${a}.${i}.${s} <${a}.${+i+1}.0-0`,Li("tilde return",c),c})},A0a=(r,e)=>r.trim().split(/\s+/).map(t=>k0a(t,e)).join(" "),k0a=(r,e)=>{Li("caret",r,e);let t=e.loose?fl[bu.CARETLOOSE]:fl[bu.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(a,i,s,o,c)=>{let u;return Li("caret",r,a,i,s,o,c),Hl(i)?u="":Hl(s)?u=`>=${i}.0.0${n} <${+i+1}.0.0-0`:Hl(o)?u=i==="0"?`>=${i}.${s}.0${n} <${i}.${+s+1}.0-0`:`>=${i}.${s}.0${n} <${+i+1}.0.0-0`:c?(Li("replaceCaret pr",c),u=i==="0"?s==="0"?`>=${i}.${s}.${o}-${c} <${i}.${s}.${+o+1}-0`:`>=${i}.${s}.${o}-${c} <${i}.${+s+1}.0-0`:`>=${i}.${s}.${o}-${c} <${+i+1}.0.0-0`):(Li("no pr"),u=i==="0"?s==="0"?`>=${i}.${s}.${o}${n} <${i}.${s}.${+o+1}-0`:`>=${i}.${s}.${o}${n} <${i}.${+s+1}.0-0`:`>=${i}.${s}.${o} <${+i+1}.0.0-0`),Li("caret return",u),u})},S0a=(r,e)=>(Li("replaceXRanges",r,e),r.split(/\s+/).map(t=>P0a(t,e)).join(" ")),P0a=(r,e)=>{r=r.trim();let t=e.loose?fl[bu.XRANGELOOSE]:fl[bu.XRANGE];return r.replace(t,(n,a,i,s,o,c)=>{Li("xRange",r,n,a,i,s,o,c);let u=Hl(i),l=u||Hl(s),p=l||Hl(o),h=p;return a==="="&&h&&(a=""),c=e.includePrerelease?"-0":"",u?n=a===">"||a==="<"?"<0.0.0-0":"*":a&&h?(l&&(s=0),o=0,a===">"?(a=">=",l?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):a==="<="&&(a="<",l?i=+i+1:s=+s+1),a==="<"&&(c="-0"),n=`${a+i}.${s}.${o}${c}`):l?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${s}.0${c} <${i}.${+s+1}.0-0`),Li("xRange return",n),n})},R0a=(r,e)=>(Li("replaceStars",r,e),r.trim().replace(fl[bu.STAR],"")),M0a=(r,e)=>(Li("replaceGTE0",r,e),r.trim().replace(fl[e.includePrerelease?bu.GTE0PRE:bu.GTE0],"")),B0a=r=>(e,t,n,a,i,s,o,c,u,l,p,h,m)=>`${t=Hl(n)?"":Hl(a)?`>=${n}.0.0${r?"-0":""}`:Hl(i)?`>=${n}.${a}.0${r?"-0":""}`:s?`>=${t}`:`>=${t}${r?"-0":""}`} ${c=Hl(u)?"":Hl(l)?`<${+u+1}.0.0-0`:Hl(p)?`<${u}.${+l+1}.0-0`:h?`<=${u}.${l}.${p}-${h}`:r?`<${u}.${l}.${+p+1}-0`:`<=${c}`}`.trim(),D0a=(r,e,t)=>{for(let n=0;n0){let a=r[n].semver;if(a.major===e.major&&a.minor===e.minor&&a.patch===e.patch)return!0}return!1}return!0},N0a=(r,e,t)=>{try{e=new Nne(e,t)}catch{return!1}return e.test(r)},{MAX_LENGTH:O0a}=OXe,{re:Mar,t:Bar}=bpe,F0a=(r,e)=>{if(e&&typeof e=="object"||(e={loose:!!e,includePrerelease:!1}),r instanceof yu)return r;if(typeof r!="string"||r.length>O0a||!(e.loose?Mar[Bar.LOOSE]:Mar[Bar.FULL]).test(r))return null;try{return new yu(r,e)}catch{return null}},L0a=F0a,{re:F9e,t:L9e}=bpe,q0a=(r,e)=>{if(r instanceof yu)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;let t=null;if((e=e||{}).rtl){let n;for(;(n=F9e[L9e.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)t&&n.index+n[0].length===t.index+t[0].length||(t=n),F9e[L9e.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;F9e[L9e.COERCERTL].lastIndex=-1}else t=r.match(F9e[L9e.COERCE]);return t===null?null:L0a(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};function W0a(r){return String.fromCharCode(parseInt(r.slice(1),16))}function U0a(r){return`%${`00${r.charCodeAt(0).toString(16)}`.slice(-2)}`}function H0a(r){return btoa(encodeURIComponent(r).replace(/%[0-9A-F]{2}/g,W0a))}function j0a(r){return decodeURIComponent(Array.from(atob(r),U0a).join(""))}function FXe(r){return H0a(JSON.stringify(r))}function Kar(r){return JSON.parse(j0a(r))}var Mm=_2(),Gar=_2();function T2(r){return typeof r>"u"}function z0a(r){return r===null}function G9e(r){return z0a(r)||T2(r)}function K0a(r){return G9e(r)?!1:!T2(r.jsonrpc)&&!T2(r.id)&&!T2(r.method)&&!T2(r.params)}function Var(r){return G9e(r)?!1:!T2(r.jsonrpc)&&!T2(r.id)&&(!T2(r.result)||!T2(r.error))}function G0a(r){return G9e(r)?!1:typeof r=="string"&&Object.values(Gar.MagicPayloadMethod).includes(r)}function $ar(r){return G9e(r)?!1:typeof r=="number"&&Object.values(Gar.RPCErrorCode).includes(r)}function j9e(r){if(!r)return!0;for(let e in r)if(Object.hasOwnProperty.call(r,e))return!1;return!0}var Lo={};function V0a(r,e){return Object.assign(Lo,e),r}var $0a={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn"},T5=class extends Error{constructor(r,e){super(`Magic SDK Error: [${r}] ${e}`),this.code=r,this.rawMessage=e,this.__proto__=Error,Object.setPrototypeOf(this,T5.prototype)}},ppe=class extends Error{constructor(r){super(),this.__proto__=Error;let e=Number(r?.code);this.rawMessage=r?.message||"Internal error",this.code=$ar(e)?e:Mm.RPCErrorCode.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,Object.setPrototypeOf(this,ppe.prototype)}},gpe=class{constructor(r,e){this.code=r,this.rawMessage=e,this.message=`Magic SDK Warning: [${r}] ${e}`}log(){console.warn(this.message)}},LXe=class extends Error{constructor(r,e,t,n){super(`Magic Extension Error (${r.name}): [${e}] ${t}`),this.code=e,this.rawMessage=t,this.data=n,this.__proto__=Error,Object.setPrototypeOf(this,LXe.prototype)}},BXe=class{constructor(r,e,t){this.code=e,this.rawMessage=t,this.message=`Magic Extension Warning (${r.name}): [${e}] ${t}`}log(){console.warn(this.message)}};function Yar(){return new T5(Mm.SDKErrorCode.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function Y0a(){return new T5(Mm.SDKErrorCode.ModalNotReady,"Modal is not ready.")}function Qar(){return new T5(Mm.SDKErrorCode.MalformedResponse,"Response from the Magic iframe is malformed.")}function Jar(r){return new T5(Mm.SDKErrorCode.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${r}\` can be accessed. Do not invoke \`Extension.${r}\` inside an extension constructor.`)}function Zar(r){let e=`Some extensions are incompatible with \`${Lo.sdkName}@${Lo.version}\`:`;return r.filter(t=>typeof t.compat<"u"&&t.compat!==null).forEach(t=>{let n=t.compat[Lo.sdkName];typeof n=="string"?e+=` + - Extension \`${t.name}\` supports version(s) \`${n}\``:n||(e+=` + - Extension \`${t.name}\` does not support ${Lo.platform} environments.`)}),new T5(Mm.SDKErrorCode.IncompatibleExtensions,e)}function Xar(r){let e=t=>{let n=t+1,a=n%10,i=n%100;return a===1&&i!==11?`${n}st`:a===2&&i!==12?`${n}nd`:a===3&&i!==13?`${n}rd`:`${n}th`};return new T5(Mm.SDKErrorCode.InvalidArgument,`Invalid ${e(r.argument)} argument given to \`${r.procedure}\`. + Expected: \`${r.expected}\` + Received: \`${r.received}\``)}function Q0a(){return new gpe(Mm.SDKWarningCode.DuplicateIframe,"Duplicate iframes found.")}function eir(){return new gpe(Mm.SDKWarningCode.SyncWeb3Method,"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}function tir(){return new gpe(Mm.SDKWarningCode.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`